...

Source file src/google.golang.org/genproto/googleapis/cloud/retail/logging/error_log.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/retail/logging

     1  // Copyright 2021 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.26.0
    18  // 	protoc        v3.21.9
    19  // source: google/cloud/retail/logging/error_log.proto
    20  
    21  package logging
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	status "google.golang.org/genproto/googleapis/rpc/status"
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  	structpb "google.golang.org/protobuf/types/known/structpb"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  // Describes a running service that sends errors.
    41  type ServiceContext struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	// An identifier of the service.
    47  	// For example, "retail.googleapis.com".
    48  	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
    49  }
    50  
    51  func (x *ServiceContext) Reset() {
    52  	*x = ServiceContext{}
    53  	if protoimpl.UnsafeEnabled {
    54  		mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[0]
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		ms.StoreMessageInfo(mi)
    57  	}
    58  }
    59  
    60  func (x *ServiceContext) String() string {
    61  	return protoimpl.X.MessageStringOf(x)
    62  }
    63  
    64  func (*ServiceContext) ProtoMessage() {}
    65  
    66  func (x *ServiceContext) ProtoReflect() protoreflect.Message {
    67  	mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[0]
    68  	if protoimpl.UnsafeEnabled && x != nil {
    69  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    70  		if ms.LoadMessageInfo() == nil {
    71  			ms.StoreMessageInfo(mi)
    72  		}
    73  		return ms
    74  	}
    75  	return mi.MessageOf(x)
    76  }
    77  
    78  // Deprecated: Use ServiceContext.ProtoReflect.Descriptor instead.
    79  func (*ServiceContext) Descriptor() ([]byte, []int) {
    80  	return file_google_cloud_retail_logging_error_log_proto_rawDescGZIP(), []int{0}
    81  }
    82  
    83  func (x *ServiceContext) GetService() string {
    84  	if x != nil {
    85  		return x.Service
    86  	}
    87  	return ""
    88  }
    89  
    90  // HTTP request data that is related to a reported error.
    91  type HttpRequestContext struct {
    92  	state         protoimpl.MessageState
    93  	sizeCache     protoimpl.SizeCache
    94  	unknownFields protoimpl.UnknownFields
    95  
    96  	// The HTTP response status code for the request.
    97  	ResponseStatusCode int32 `protobuf:"varint,1,opt,name=response_status_code,json=responseStatusCode,proto3" json:"response_status_code,omitempty"`
    98  }
    99  
   100  func (x *HttpRequestContext) Reset() {
   101  	*x = HttpRequestContext{}
   102  	if protoimpl.UnsafeEnabled {
   103  		mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[1]
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		ms.StoreMessageInfo(mi)
   106  	}
   107  }
   108  
   109  func (x *HttpRequestContext) String() string {
   110  	return protoimpl.X.MessageStringOf(x)
   111  }
   112  
   113  func (*HttpRequestContext) ProtoMessage() {}
   114  
   115  func (x *HttpRequestContext) ProtoReflect() protoreflect.Message {
   116  	mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[1]
   117  	if protoimpl.UnsafeEnabled && x != nil {
   118  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   119  		if ms.LoadMessageInfo() == nil {
   120  			ms.StoreMessageInfo(mi)
   121  		}
   122  		return ms
   123  	}
   124  	return mi.MessageOf(x)
   125  }
   126  
   127  // Deprecated: Use HttpRequestContext.ProtoReflect.Descriptor instead.
   128  func (*HttpRequestContext) Descriptor() ([]byte, []int) {
   129  	return file_google_cloud_retail_logging_error_log_proto_rawDescGZIP(), []int{1}
   130  }
   131  
   132  func (x *HttpRequestContext) GetResponseStatusCode() int32 {
   133  	if x != nil {
   134  		return x.ResponseStatusCode
   135  	}
   136  	return 0
   137  }
   138  
   139  // Indicates a location in the source code of the service for which
   140  // errors are reported.
   141  type SourceLocation struct {
   142  	state         protoimpl.MessageState
   143  	sizeCache     protoimpl.SizeCache
   144  	unknownFields protoimpl.UnknownFields
   145  
   146  	// Human-readable name of a function or method.
   147  	// For example, "google.cloud.retail.v2.UserEventService.ImportUserEvents".
   148  	FunctionName string `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
   149  }
   150  
   151  func (x *SourceLocation) Reset() {
   152  	*x = SourceLocation{}
   153  	if protoimpl.UnsafeEnabled {
   154  		mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[2]
   155  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   156  		ms.StoreMessageInfo(mi)
   157  	}
   158  }
   159  
   160  func (x *SourceLocation) String() string {
   161  	return protoimpl.X.MessageStringOf(x)
   162  }
   163  
   164  func (*SourceLocation) ProtoMessage() {}
   165  
   166  func (x *SourceLocation) ProtoReflect() protoreflect.Message {
   167  	mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[2]
   168  	if protoimpl.UnsafeEnabled && x != nil {
   169  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   170  		if ms.LoadMessageInfo() == nil {
   171  			ms.StoreMessageInfo(mi)
   172  		}
   173  		return ms
   174  	}
   175  	return mi.MessageOf(x)
   176  }
   177  
   178  // Deprecated: Use SourceLocation.ProtoReflect.Descriptor instead.
   179  func (*SourceLocation) Descriptor() ([]byte, []int) {
   180  	return file_google_cloud_retail_logging_error_log_proto_rawDescGZIP(), []int{2}
   181  }
   182  
   183  func (x *SourceLocation) GetFunctionName() string {
   184  	if x != nil {
   185  		return x.FunctionName
   186  	}
   187  	return ""
   188  }
   189  
   190  // A description of the context in which an error occurred.
   191  type ErrorContext struct {
   192  	state         protoimpl.MessageState
   193  	sizeCache     protoimpl.SizeCache
   194  	unknownFields protoimpl.UnknownFields
   195  
   196  	// The HTTP request which was processed when the error was triggered.
   197  	HttpRequest *HttpRequestContext `protobuf:"bytes,1,opt,name=http_request,json=httpRequest,proto3" json:"http_request,omitempty"`
   198  	// The location in the source code where the decision was made to
   199  	// report the error, usually the place where it was logged.
   200  	ReportLocation *SourceLocation `protobuf:"bytes,2,opt,name=report_location,json=reportLocation,proto3" json:"report_location,omitempty"`
   201  }
   202  
   203  func (x *ErrorContext) Reset() {
   204  	*x = ErrorContext{}
   205  	if protoimpl.UnsafeEnabled {
   206  		mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[3]
   207  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   208  		ms.StoreMessageInfo(mi)
   209  	}
   210  }
   211  
   212  func (x *ErrorContext) String() string {
   213  	return protoimpl.X.MessageStringOf(x)
   214  }
   215  
   216  func (*ErrorContext) ProtoMessage() {}
   217  
   218  func (x *ErrorContext) ProtoReflect() protoreflect.Message {
   219  	mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[3]
   220  	if protoimpl.UnsafeEnabled && x != nil {
   221  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   222  		if ms.LoadMessageInfo() == nil {
   223  			ms.StoreMessageInfo(mi)
   224  		}
   225  		return ms
   226  	}
   227  	return mi.MessageOf(x)
   228  }
   229  
   230  // Deprecated: Use ErrorContext.ProtoReflect.Descriptor instead.
   231  func (*ErrorContext) Descriptor() ([]byte, []int) {
   232  	return file_google_cloud_retail_logging_error_log_proto_rawDescGZIP(), []int{3}
   233  }
   234  
   235  func (x *ErrorContext) GetHttpRequest() *HttpRequestContext {
   236  	if x != nil {
   237  		return x.HttpRequest
   238  	}
   239  	return nil
   240  }
   241  
   242  func (x *ErrorContext) GetReportLocation() *SourceLocation {
   243  	if x != nil {
   244  		return x.ReportLocation
   245  	}
   246  	return nil
   247  }
   248  
   249  // The error payload that is populated on LRO import APIs, including
   250  //
   251  //	"google.cloud.retail.v2.ProductService.ImportProducts" and
   252  //	"google.cloud.retail.v2.EventService.ImportUserEvents".
   253  type ImportErrorContext struct {
   254  	state         protoimpl.MessageState
   255  	sizeCache     protoimpl.SizeCache
   256  	unknownFields protoimpl.UnknownFields
   257  
   258  	// The operation resource name of the LRO.
   259  	OperationName string `protobuf:"bytes,1,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"`
   260  	// Cloud Storage file path of the import source.
   261  	// Can be set for batch operation error.
   262  	GcsPath string `protobuf:"bytes,2,opt,name=gcs_path,json=gcsPath,proto3" json:"gcs_path,omitempty"`
   263  	// Line number of the content in file.
   264  	// Should be empty for permission or batch operation error.
   265  	LineNumber string `protobuf:"bytes,3,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
   266  	// Detailed content which caused the error.
   267  	// Should be empty for permission or batch operation error.
   268  	//
   269  	// Types that are assignable to LineContent:
   270  	//
   271  	//	*ImportErrorContext_CatalogItem
   272  	//	*ImportErrorContext_Product
   273  	//	*ImportErrorContext_UserEvent
   274  	LineContent isImportErrorContext_LineContent `protobuf_oneof:"line_content"`
   275  }
   276  
   277  func (x *ImportErrorContext) Reset() {
   278  	*x = ImportErrorContext{}
   279  	if protoimpl.UnsafeEnabled {
   280  		mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[4]
   281  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   282  		ms.StoreMessageInfo(mi)
   283  	}
   284  }
   285  
   286  func (x *ImportErrorContext) String() string {
   287  	return protoimpl.X.MessageStringOf(x)
   288  }
   289  
   290  func (*ImportErrorContext) ProtoMessage() {}
   291  
   292  func (x *ImportErrorContext) ProtoReflect() protoreflect.Message {
   293  	mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[4]
   294  	if protoimpl.UnsafeEnabled && x != nil {
   295  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   296  		if ms.LoadMessageInfo() == nil {
   297  			ms.StoreMessageInfo(mi)
   298  		}
   299  		return ms
   300  	}
   301  	return mi.MessageOf(x)
   302  }
   303  
   304  // Deprecated: Use ImportErrorContext.ProtoReflect.Descriptor instead.
   305  func (*ImportErrorContext) Descriptor() ([]byte, []int) {
   306  	return file_google_cloud_retail_logging_error_log_proto_rawDescGZIP(), []int{4}
   307  }
   308  
   309  func (x *ImportErrorContext) GetOperationName() string {
   310  	if x != nil {
   311  		return x.OperationName
   312  	}
   313  	return ""
   314  }
   315  
   316  func (x *ImportErrorContext) GetGcsPath() string {
   317  	if x != nil {
   318  		return x.GcsPath
   319  	}
   320  	return ""
   321  }
   322  
   323  func (x *ImportErrorContext) GetLineNumber() string {
   324  	if x != nil {
   325  		return x.LineNumber
   326  	}
   327  	return ""
   328  }
   329  
   330  func (m *ImportErrorContext) GetLineContent() isImportErrorContext_LineContent {
   331  	if m != nil {
   332  		return m.LineContent
   333  	}
   334  	return nil
   335  }
   336  
   337  func (x *ImportErrorContext) GetCatalogItem() string {
   338  	if x, ok := x.GetLineContent().(*ImportErrorContext_CatalogItem); ok {
   339  		return x.CatalogItem
   340  	}
   341  	return ""
   342  }
   343  
   344  func (x *ImportErrorContext) GetProduct() string {
   345  	if x, ok := x.GetLineContent().(*ImportErrorContext_Product); ok {
   346  		return x.Product
   347  	}
   348  	return ""
   349  }
   350  
   351  func (x *ImportErrorContext) GetUserEvent() string {
   352  	if x, ok := x.GetLineContent().(*ImportErrorContext_UserEvent); ok {
   353  		return x.UserEvent
   354  	}
   355  	return ""
   356  }
   357  
   358  type isImportErrorContext_LineContent interface {
   359  	isImportErrorContext_LineContent()
   360  }
   361  
   362  type ImportErrorContext_CatalogItem struct {
   363  	// The detailed content which caused the error on importing a catalog item.
   364  	CatalogItem string `protobuf:"bytes,4,opt,name=catalog_item,json=catalogItem,proto3,oneof"`
   365  }
   366  
   367  type ImportErrorContext_Product struct {
   368  	// The detailed content which caused the error on importing a product.
   369  	Product string `protobuf:"bytes,5,opt,name=product,proto3,oneof"`
   370  }
   371  
   372  type ImportErrorContext_UserEvent struct {
   373  	// The detailed content which caused the error on importing a user event.
   374  	UserEvent string `protobuf:"bytes,6,opt,name=user_event,json=userEvent,proto3,oneof"`
   375  }
   376  
   377  func (*ImportErrorContext_CatalogItem) isImportErrorContext_LineContent() {}
   378  
   379  func (*ImportErrorContext_Product) isImportErrorContext_LineContent() {}
   380  
   381  func (*ImportErrorContext_UserEvent) isImportErrorContext_LineContent() {}
   382  
   383  // An error log which is reported to the Error Reporting system.
   384  // This proto a superset of
   385  // google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.
   386  type ErrorLog struct {
   387  	state         protoimpl.MessageState
   388  	sizeCache     protoimpl.SizeCache
   389  	unknownFields protoimpl.UnknownFields
   390  
   391  	// The service context in which this error has occurred.
   392  	ServiceContext *ServiceContext `protobuf:"bytes,1,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
   393  	// A description of the context in which the error occurred.
   394  	Context *ErrorContext `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
   395  	// A message describing the error.
   396  	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
   397  	// The RPC status associated with the error log.
   398  	Status *status.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
   399  	// The API request payload, represented as a protocol buffer.
   400  	//
   401  	// Most API request types are supported. For example:
   402  	//
   403  	//	"type.googleapis.com/google.cloud.retail.v2.ProductService.CreateProductRequest"
   404  	//	"type.googleapis.com/google.cloud.retail.v2.UserEventService.WriteUserEventRequest"
   405  	RequestPayload *structpb.Struct `protobuf:"bytes,5,opt,name=request_payload,json=requestPayload,proto3" json:"request_payload,omitempty"`
   406  	// The API response payload, represented as a protocol buffer.
   407  	//
   408  	// This is used to log some "soft errors", where the response is valid but we
   409  	// consider there are some quality issues like unjoined events.
   410  	//
   411  	// The following API responses are supported and no PII is included:
   412  	//
   413  	//	"google.cloud.retail.v2.PredictionService.Predict"
   414  	//	"google.cloud.retail.v2.UserEventService.WriteUserEvent"
   415  	//	"google.cloud.retail.v2.UserEventService.CollectUserEvent"
   416  	ResponsePayload *structpb.Struct `protobuf:"bytes,6,opt,name=response_payload,json=responsePayload,proto3" json:"response_payload,omitempty"`
   417  	// The error payload that is populated on LRO import APIs.
   418  	ImportPayload *ImportErrorContext `protobuf:"bytes,7,opt,name=import_payload,json=importPayload,proto3" json:"import_payload,omitempty"`
   419  }
   420  
   421  func (x *ErrorLog) Reset() {
   422  	*x = ErrorLog{}
   423  	if protoimpl.UnsafeEnabled {
   424  		mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[5]
   425  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   426  		ms.StoreMessageInfo(mi)
   427  	}
   428  }
   429  
   430  func (x *ErrorLog) String() string {
   431  	return protoimpl.X.MessageStringOf(x)
   432  }
   433  
   434  func (*ErrorLog) ProtoMessage() {}
   435  
   436  func (x *ErrorLog) ProtoReflect() protoreflect.Message {
   437  	mi := &file_google_cloud_retail_logging_error_log_proto_msgTypes[5]
   438  	if protoimpl.UnsafeEnabled && x != nil {
   439  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   440  		if ms.LoadMessageInfo() == nil {
   441  			ms.StoreMessageInfo(mi)
   442  		}
   443  		return ms
   444  	}
   445  	return mi.MessageOf(x)
   446  }
   447  
   448  // Deprecated: Use ErrorLog.ProtoReflect.Descriptor instead.
   449  func (*ErrorLog) Descriptor() ([]byte, []int) {
   450  	return file_google_cloud_retail_logging_error_log_proto_rawDescGZIP(), []int{5}
   451  }
   452  
   453  func (x *ErrorLog) GetServiceContext() *ServiceContext {
   454  	if x != nil {
   455  		return x.ServiceContext
   456  	}
   457  	return nil
   458  }
   459  
   460  func (x *ErrorLog) GetContext() *ErrorContext {
   461  	if x != nil {
   462  		return x.Context
   463  	}
   464  	return nil
   465  }
   466  
   467  func (x *ErrorLog) GetMessage() string {
   468  	if x != nil {
   469  		return x.Message
   470  	}
   471  	return ""
   472  }
   473  
   474  func (x *ErrorLog) GetStatus() *status.Status {
   475  	if x != nil {
   476  		return x.Status
   477  	}
   478  	return nil
   479  }
   480  
   481  func (x *ErrorLog) GetRequestPayload() *structpb.Struct {
   482  	if x != nil {
   483  		return x.RequestPayload
   484  	}
   485  	return nil
   486  }
   487  
   488  func (x *ErrorLog) GetResponsePayload() *structpb.Struct {
   489  	if x != nil {
   490  		return x.ResponsePayload
   491  	}
   492  	return nil
   493  }
   494  
   495  func (x *ErrorLog) GetImportPayload() *ImportErrorContext {
   496  	if x != nil {
   497  		return x.ImportPayload
   498  	}
   499  	return nil
   500  }
   501  
   502  var File_google_cloud_retail_logging_error_log_proto protoreflect.FileDescriptor
   503  
   504  var file_google_cloud_retail_logging_error_log_proto_rawDesc = []byte{
   505  	0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
   506  	0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x65, 0x72,
   507  	0x72, 0x6f, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67,
   508  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61,
   509  	0x69, 0x6c, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
   510  	0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75,
   511  	0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   512  	0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   513  	0x6f, 0x22, 0x2a, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74,
   514  	0x65, 0x78, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01,
   515  	0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x46, 0x0a,
   516  	0x12, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74,
   517  	0x65, 0x78, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f,
   518  	0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   519  	0x05, 0x52, 0x12, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75,
   520  	0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x35, 0x0a, 0x0e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c,
   521  	0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74,
   522  	0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
   523  	0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xb8, 0x01, 0x0a,
   524  	0x0c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x52, 0x0a,
   525  	0x0c, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20,
   526  	0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
   527  	0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e,
   528  	0x67, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e,
   529  	0x74, 0x65, 0x78, 0x74, 0x52, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   530  	0x74, 0x12, 0x54, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61,
   531  	0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f,
   532  	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
   533  	0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c,
   534  	0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x4c,
   535  	0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe9, 0x01, 0x0a, 0x12, 0x49, 0x6d, 0x70, 0x6f,
   536  	0x72, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x25,
   537  	0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
   538  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
   539  	0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x63, 0x73, 0x5f, 0x70, 0x61, 0x74,
   540  	0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x63, 0x73, 0x50, 0x61, 0x74, 0x68,
   541  	0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18,
   542  	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65,
   543  	0x72, 0x12, 0x23, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x69, 0x74, 0x65,
   544  	0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c,
   545  	0x6f, 0x67, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
   546  	0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75,
   547  	0x63, 0x74, 0x12, 0x1f, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74,
   548  	0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x76,
   549  	0x65, 0x6e, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74,
   550  	0x65, 0x6e, 0x74, 0x22, 0xc9, 0x03, 0x0a, 0x08, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67,
   551  	0x12, 0x54, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74,
   552  	0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   553  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
   554  	0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43,
   555  	0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43,
   556  	0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x43, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
   557  	0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   558  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x6c, 0x6f,
   559  	0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65,
   560  	0x78, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d,
   561  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
   562  	0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
   563  	0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72,
   564  	0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
   565  	0x73, 0x12, 0x40, 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x79,
   566  	0x6c, 0x6f, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f,
   567  	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72,
   568  	0x75, 0x63, 0x74, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x79, 0x6c,
   569  	0x6f, 0x61, 0x64, 0x12, 0x42, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f,
   570  	0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
   571  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   572  	0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   573  	0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x56, 0x0a, 0x0e, 0x69, 0x6d, 0x70, 0x6f, 0x72,
   574  	0x74, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32,
   575  	0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72,
   576  	0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x49, 0x6d,
   577  	0x70, 0x6f, 0x72, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
   578  	0x52, 0x0d, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42,
   579  	0xdc, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
   580  	0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x6c, 0x6f, 0x67, 0x67,
   581  	0x69, 0x6e, 0x67, 0x42, 0x0d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67, 0x50, 0x72, 0x6f,
   582  	0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
   583  	0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   584  	0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
   585  	0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
   586  	0x3b, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49,
   587  	0x4c, 0xaa, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64,
   588  	0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0xca,
   589  	0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52,
   590  	0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0xea, 0x02, 0x1e,
   591  	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52,
   592  	0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x62, 0x06,
   593  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   594  }
   595  
   596  var (
   597  	file_google_cloud_retail_logging_error_log_proto_rawDescOnce sync.Once
   598  	file_google_cloud_retail_logging_error_log_proto_rawDescData = file_google_cloud_retail_logging_error_log_proto_rawDesc
   599  )
   600  
   601  func file_google_cloud_retail_logging_error_log_proto_rawDescGZIP() []byte {
   602  	file_google_cloud_retail_logging_error_log_proto_rawDescOnce.Do(func() {
   603  		file_google_cloud_retail_logging_error_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_logging_error_log_proto_rawDescData)
   604  	})
   605  	return file_google_cloud_retail_logging_error_log_proto_rawDescData
   606  }
   607  
   608  var file_google_cloud_retail_logging_error_log_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
   609  var file_google_cloud_retail_logging_error_log_proto_goTypes = []interface{}{
   610  	(*ServiceContext)(nil),     // 0: google.cloud.retail.logging.ServiceContext
   611  	(*HttpRequestContext)(nil), // 1: google.cloud.retail.logging.HttpRequestContext
   612  	(*SourceLocation)(nil),     // 2: google.cloud.retail.logging.SourceLocation
   613  	(*ErrorContext)(nil),       // 3: google.cloud.retail.logging.ErrorContext
   614  	(*ImportErrorContext)(nil), // 4: google.cloud.retail.logging.ImportErrorContext
   615  	(*ErrorLog)(nil),           // 5: google.cloud.retail.logging.ErrorLog
   616  	(*status.Status)(nil),      // 6: google.rpc.Status
   617  	(*structpb.Struct)(nil),    // 7: google.protobuf.Struct
   618  }
   619  var file_google_cloud_retail_logging_error_log_proto_depIdxs = []int32{
   620  	1, // 0: google.cloud.retail.logging.ErrorContext.http_request:type_name -> google.cloud.retail.logging.HttpRequestContext
   621  	2, // 1: google.cloud.retail.logging.ErrorContext.report_location:type_name -> google.cloud.retail.logging.SourceLocation
   622  	0, // 2: google.cloud.retail.logging.ErrorLog.service_context:type_name -> google.cloud.retail.logging.ServiceContext
   623  	3, // 3: google.cloud.retail.logging.ErrorLog.context:type_name -> google.cloud.retail.logging.ErrorContext
   624  	6, // 4: google.cloud.retail.logging.ErrorLog.status:type_name -> google.rpc.Status
   625  	7, // 5: google.cloud.retail.logging.ErrorLog.request_payload:type_name -> google.protobuf.Struct
   626  	7, // 6: google.cloud.retail.logging.ErrorLog.response_payload:type_name -> google.protobuf.Struct
   627  	4, // 7: google.cloud.retail.logging.ErrorLog.import_payload:type_name -> google.cloud.retail.logging.ImportErrorContext
   628  	8, // [8:8] is the sub-list for method output_type
   629  	8, // [8:8] is the sub-list for method input_type
   630  	8, // [8:8] is the sub-list for extension type_name
   631  	8, // [8:8] is the sub-list for extension extendee
   632  	0, // [0:8] is the sub-list for field type_name
   633  }
   634  
   635  func init() { file_google_cloud_retail_logging_error_log_proto_init() }
   636  func file_google_cloud_retail_logging_error_log_proto_init() {
   637  	if File_google_cloud_retail_logging_error_log_proto != nil {
   638  		return
   639  	}
   640  	if !protoimpl.UnsafeEnabled {
   641  		file_google_cloud_retail_logging_error_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   642  			switch v := v.(*ServiceContext); i {
   643  			case 0:
   644  				return &v.state
   645  			case 1:
   646  				return &v.sizeCache
   647  			case 2:
   648  				return &v.unknownFields
   649  			default:
   650  				return nil
   651  			}
   652  		}
   653  		file_google_cloud_retail_logging_error_log_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   654  			switch v := v.(*HttpRequestContext); i {
   655  			case 0:
   656  				return &v.state
   657  			case 1:
   658  				return &v.sizeCache
   659  			case 2:
   660  				return &v.unknownFields
   661  			default:
   662  				return nil
   663  			}
   664  		}
   665  		file_google_cloud_retail_logging_error_log_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   666  			switch v := v.(*SourceLocation); i {
   667  			case 0:
   668  				return &v.state
   669  			case 1:
   670  				return &v.sizeCache
   671  			case 2:
   672  				return &v.unknownFields
   673  			default:
   674  				return nil
   675  			}
   676  		}
   677  		file_google_cloud_retail_logging_error_log_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   678  			switch v := v.(*ErrorContext); i {
   679  			case 0:
   680  				return &v.state
   681  			case 1:
   682  				return &v.sizeCache
   683  			case 2:
   684  				return &v.unknownFields
   685  			default:
   686  				return nil
   687  			}
   688  		}
   689  		file_google_cloud_retail_logging_error_log_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   690  			switch v := v.(*ImportErrorContext); i {
   691  			case 0:
   692  				return &v.state
   693  			case 1:
   694  				return &v.sizeCache
   695  			case 2:
   696  				return &v.unknownFields
   697  			default:
   698  				return nil
   699  			}
   700  		}
   701  		file_google_cloud_retail_logging_error_log_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   702  			switch v := v.(*ErrorLog); i {
   703  			case 0:
   704  				return &v.state
   705  			case 1:
   706  				return &v.sizeCache
   707  			case 2:
   708  				return &v.unknownFields
   709  			default:
   710  				return nil
   711  			}
   712  		}
   713  	}
   714  	file_google_cloud_retail_logging_error_log_proto_msgTypes[4].OneofWrappers = []interface{}{
   715  		(*ImportErrorContext_CatalogItem)(nil),
   716  		(*ImportErrorContext_Product)(nil),
   717  		(*ImportErrorContext_UserEvent)(nil),
   718  	}
   719  	type x struct{}
   720  	out := protoimpl.TypeBuilder{
   721  		File: protoimpl.DescBuilder{
   722  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   723  			RawDescriptor: file_google_cloud_retail_logging_error_log_proto_rawDesc,
   724  			NumEnums:      0,
   725  			NumMessages:   6,
   726  			NumExtensions: 0,
   727  			NumServices:   0,
   728  		},
   729  		GoTypes:           file_google_cloud_retail_logging_error_log_proto_goTypes,
   730  		DependencyIndexes: file_google_cloud_retail_logging_error_log_proto_depIdxs,
   731  		MessageInfos:      file_google_cloud_retail_logging_error_log_proto_msgTypes,
   732  	}.Build()
   733  	File_google_cloud_retail_logging_error_log_proto = out.File
   734  	file_google_cloud_retail_logging_error_log_proto_rawDesc = nil
   735  	file_google_cloud_retail_logging_error_log_proto_goTypes = nil
   736  	file_google_cloud_retail_logging_error_log_proto_depIdxs = nil
   737  }
   738  

View as plain text