github.com/tsuna/gohbase@v0.0.0-20250731002811-4ffcadfba63e/pb/ErrorHandling.pb.go (about)

     1  //*
     2  // Licensed to the Apache Software Foundation (ASF) under one
     3  // or more contributor license agreements.  See the NOTICE file
     4  // distributed with this work for additional information
     5  // regarding copyright ownership.  The ASF licenses this file
     6  // to you under the Apache License, Version 2.0 (the
     7  // "License"); you may not use this file except in compliance
     8  // with the License.  You may obtain a copy of the License at
     9  //
    10  //     http://www.apache.org/licenses/LICENSE-2.0
    11  //
    12  // Unless required by applicable law or agreed to in writing, software
    13  // distributed under the License is distributed on an "AS IS" BASIS,
    14  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  // See the License for the specific language governing permissions and
    16  // limitations under the License.
    17  
    18  // This file contains protocol buffers that are used for error handling
    19  
    20  // Code generated by protoc-gen-go. DO NOT EDIT.
    21  // versions:
    22  // 	protoc-gen-go v1.36.4
    23  // 	protoc        v5.28.3
    24  // source: ErrorHandling.proto
    25  
    26  package pb
    27  
    28  import (
    29  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    30  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    31  	reflect "reflect"
    32  	sync "sync"
    33  	unsafe "unsafe"
    34  )
    35  
    36  const (
    37  	// Verify that this generated code is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    39  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    41  )
    42  
    43  // *
    44  // Protobuf version of a java.lang.StackTraceElement
    45  // so we can serialize exceptions.
    46  type StackTraceElementMessage struct {
    47  	state          protoimpl.MessageState `protogen:"open.v1"`
    48  	DeclaringClass *string                `protobuf:"bytes,1,opt,name=declaring_class,json=declaringClass" json:"declaring_class,omitempty"`
    49  	MethodName     *string                `protobuf:"bytes,2,opt,name=method_name,json=methodName" json:"method_name,omitempty"`
    50  	FileName       *string                `protobuf:"bytes,3,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
    51  	LineNumber     *int32                 `protobuf:"varint,4,opt,name=line_number,json=lineNumber" json:"line_number,omitempty"`
    52  	unknownFields  protoimpl.UnknownFields
    53  	sizeCache      protoimpl.SizeCache
    54  }
    55  
    56  func (x *StackTraceElementMessage) Reset() {
    57  	*x = StackTraceElementMessage{}
    58  	mi := &file_ErrorHandling_proto_msgTypes[0]
    59  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    60  	ms.StoreMessageInfo(mi)
    61  }
    62  
    63  func (x *StackTraceElementMessage) String() string {
    64  	return protoimpl.X.MessageStringOf(x)
    65  }
    66  
    67  func (*StackTraceElementMessage) ProtoMessage() {}
    68  
    69  func (x *StackTraceElementMessage) ProtoReflect() protoreflect.Message {
    70  	mi := &file_ErrorHandling_proto_msgTypes[0]
    71  	if x != nil {
    72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    73  		if ms.LoadMessageInfo() == nil {
    74  			ms.StoreMessageInfo(mi)
    75  		}
    76  		return ms
    77  	}
    78  	return mi.MessageOf(x)
    79  }
    80  
    81  // Deprecated: Use StackTraceElementMessage.ProtoReflect.Descriptor instead.
    82  func (*StackTraceElementMessage) Descriptor() ([]byte, []int) {
    83  	return file_ErrorHandling_proto_rawDescGZIP(), []int{0}
    84  }
    85  
    86  func (x *StackTraceElementMessage) GetDeclaringClass() string {
    87  	if x != nil && x.DeclaringClass != nil {
    88  		return *x.DeclaringClass
    89  	}
    90  	return ""
    91  }
    92  
    93  func (x *StackTraceElementMessage) GetMethodName() string {
    94  	if x != nil && x.MethodName != nil {
    95  		return *x.MethodName
    96  	}
    97  	return ""
    98  }
    99  
   100  func (x *StackTraceElementMessage) GetFileName() string {
   101  	if x != nil && x.FileName != nil {
   102  		return *x.FileName
   103  	}
   104  	return ""
   105  }
   106  
   107  func (x *StackTraceElementMessage) GetLineNumber() int32 {
   108  	if x != nil && x.LineNumber != nil {
   109  		return *x.LineNumber
   110  	}
   111  	return 0
   112  }
   113  
   114  // *
   115  // Cause of a remote failure for a generic exception. Contains
   116  // all the information for a generic exception as well as
   117  // optional info about the error for generic info passing
   118  // (which should be another protobuffed class).
   119  type GenericExceptionMessage struct {
   120  	state         protoimpl.MessageState      `protogen:"open.v1"`
   121  	ClassName     *string                     `protobuf:"bytes,1,opt,name=class_name,json=className" json:"class_name,omitempty"`
   122  	Message       *string                     `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
   123  	ErrorInfo     []byte                      `protobuf:"bytes,3,opt,name=error_info,json=errorInfo" json:"error_info,omitempty"`
   124  	Trace         []*StackTraceElementMessage `protobuf:"bytes,4,rep,name=trace" json:"trace,omitempty"`
   125  	unknownFields protoimpl.UnknownFields
   126  	sizeCache     protoimpl.SizeCache
   127  }
   128  
   129  func (x *GenericExceptionMessage) Reset() {
   130  	*x = GenericExceptionMessage{}
   131  	mi := &file_ErrorHandling_proto_msgTypes[1]
   132  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   133  	ms.StoreMessageInfo(mi)
   134  }
   135  
   136  func (x *GenericExceptionMessage) String() string {
   137  	return protoimpl.X.MessageStringOf(x)
   138  }
   139  
   140  func (*GenericExceptionMessage) ProtoMessage() {}
   141  
   142  func (x *GenericExceptionMessage) ProtoReflect() protoreflect.Message {
   143  	mi := &file_ErrorHandling_proto_msgTypes[1]
   144  	if x != nil {
   145  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   146  		if ms.LoadMessageInfo() == nil {
   147  			ms.StoreMessageInfo(mi)
   148  		}
   149  		return ms
   150  	}
   151  	return mi.MessageOf(x)
   152  }
   153  
   154  // Deprecated: Use GenericExceptionMessage.ProtoReflect.Descriptor instead.
   155  func (*GenericExceptionMessage) Descriptor() ([]byte, []int) {
   156  	return file_ErrorHandling_proto_rawDescGZIP(), []int{1}
   157  }
   158  
   159  func (x *GenericExceptionMessage) GetClassName() string {
   160  	if x != nil && x.ClassName != nil {
   161  		return *x.ClassName
   162  	}
   163  	return ""
   164  }
   165  
   166  func (x *GenericExceptionMessage) GetMessage() string {
   167  	if x != nil && x.Message != nil {
   168  		return *x.Message
   169  	}
   170  	return ""
   171  }
   172  
   173  func (x *GenericExceptionMessage) GetErrorInfo() []byte {
   174  	if x != nil {
   175  		return x.ErrorInfo
   176  	}
   177  	return nil
   178  }
   179  
   180  func (x *GenericExceptionMessage) GetTrace() []*StackTraceElementMessage {
   181  	if x != nil {
   182  		return x.Trace
   183  	}
   184  	return nil
   185  }
   186  
   187  // *
   188  // Exception sent across the wire when a remote task needs
   189  // to notify other tasks that it failed and why
   190  type ForeignExceptionMessage struct {
   191  	state            protoimpl.MessageState   `protogen:"open.v1"`
   192  	Source           *string                  `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
   193  	GenericException *GenericExceptionMessage `protobuf:"bytes,2,opt,name=generic_exception,json=genericException" json:"generic_exception,omitempty"`
   194  	unknownFields    protoimpl.UnknownFields
   195  	sizeCache        protoimpl.SizeCache
   196  }
   197  
   198  func (x *ForeignExceptionMessage) Reset() {
   199  	*x = ForeignExceptionMessage{}
   200  	mi := &file_ErrorHandling_proto_msgTypes[2]
   201  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   202  	ms.StoreMessageInfo(mi)
   203  }
   204  
   205  func (x *ForeignExceptionMessage) String() string {
   206  	return protoimpl.X.MessageStringOf(x)
   207  }
   208  
   209  func (*ForeignExceptionMessage) ProtoMessage() {}
   210  
   211  func (x *ForeignExceptionMessage) ProtoReflect() protoreflect.Message {
   212  	mi := &file_ErrorHandling_proto_msgTypes[2]
   213  	if x != nil {
   214  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   215  		if ms.LoadMessageInfo() == nil {
   216  			ms.StoreMessageInfo(mi)
   217  		}
   218  		return ms
   219  	}
   220  	return mi.MessageOf(x)
   221  }
   222  
   223  // Deprecated: Use ForeignExceptionMessage.ProtoReflect.Descriptor instead.
   224  func (*ForeignExceptionMessage) Descriptor() ([]byte, []int) {
   225  	return file_ErrorHandling_proto_rawDescGZIP(), []int{2}
   226  }
   227  
   228  func (x *ForeignExceptionMessage) GetSource() string {
   229  	if x != nil && x.Source != nil {
   230  		return *x.Source
   231  	}
   232  	return ""
   233  }
   234  
   235  func (x *ForeignExceptionMessage) GetGenericException() *GenericExceptionMessage {
   236  	if x != nil {
   237  		return x.GenericException
   238  	}
   239  	return nil
   240  }
   241  
   242  var File_ErrorHandling_proto protoreflect.FileDescriptor
   243  
   244  var file_ErrorHandling_proto_rawDesc = string([]byte{
   245  	0x0a, 0x13, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x69, 0x6e, 0x67, 0x2e,
   246  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xa2, 0x01, 0x0a, 0x18, 0x53, 0x74,
   247  	0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4d,
   248  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72,
   249  	0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   250  	0x0e, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12,
   251  	0x1f, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
   252  	0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65,
   253  	0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
   254  	0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a,
   255  	0x0b, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01,
   256  	0x28, 0x05, 0x52, 0x0a, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xa5,
   257  	0x01, 0x0a, 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74,
   258  	0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c,
   259  	0x61, 0x73, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
   260  	0x63, 0x6c, 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
   261  	0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
   262  	0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x66,
   263  	0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x6e,
   264  	0x66, 0x6f, 0x12, 0x32, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28,
   265  	0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63,
   266  	0x65, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
   267  	0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x22, 0x7b, 0x0a, 0x17, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67,
   268  	0x6e, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
   269  	0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   270  	0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x67, 0x65, 0x6e,
   271  	0x65, 0x72, 0x69, 0x63, 0x5f, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
   272  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69,
   273  	0x63, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
   274  	0x65, 0x52, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74,
   275  	0x69, 0x6f, 0x6e, 0x42, 0x4d, 0x0a, 0x2a, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68,
   276  	0x65, 0x2e, 0x68, 0x61, 0x64, 0x6f, 0x6f, 0x70, 0x2e, 0x68, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70,
   277  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65,
   278  	0x64, 0x42, 0x13, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x69, 0x6e, 0x67,
   279  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x48, 0x01, 0x5a, 0x05, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0xa0,
   280  	0x01, 0x01,
   281  })
   282  
   283  var (
   284  	file_ErrorHandling_proto_rawDescOnce sync.Once
   285  	file_ErrorHandling_proto_rawDescData []byte
   286  )
   287  
   288  func file_ErrorHandling_proto_rawDescGZIP() []byte {
   289  	file_ErrorHandling_proto_rawDescOnce.Do(func() {
   290  		file_ErrorHandling_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ErrorHandling_proto_rawDesc), len(file_ErrorHandling_proto_rawDesc)))
   291  	})
   292  	return file_ErrorHandling_proto_rawDescData
   293  }
   294  
   295  var file_ErrorHandling_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   296  var file_ErrorHandling_proto_goTypes = []any{
   297  	(*StackTraceElementMessage)(nil), // 0: pb.StackTraceElementMessage
   298  	(*GenericExceptionMessage)(nil),  // 1: pb.GenericExceptionMessage
   299  	(*ForeignExceptionMessage)(nil),  // 2: pb.ForeignExceptionMessage
   300  }
   301  var file_ErrorHandling_proto_depIdxs = []int32{
   302  	0, // 0: pb.GenericExceptionMessage.trace:type_name -> pb.StackTraceElementMessage
   303  	1, // 1: pb.ForeignExceptionMessage.generic_exception:type_name -> pb.GenericExceptionMessage
   304  	2, // [2:2] is the sub-list for method output_type
   305  	2, // [2:2] is the sub-list for method input_type
   306  	2, // [2:2] is the sub-list for extension type_name
   307  	2, // [2:2] is the sub-list for extension extendee
   308  	0, // [0:2] is the sub-list for field type_name
   309  }
   310  
   311  func init() { file_ErrorHandling_proto_init() }
   312  func file_ErrorHandling_proto_init() {
   313  	if File_ErrorHandling_proto != nil {
   314  		return
   315  	}
   316  	type x struct{}
   317  	out := protoimpl.TypeBuilder{
   318  		File: protoimpl.DescBuilder{
   319  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   320  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_ErrorHandling_proto_rawDesc), len(file_ErrorHandling_proto_rawDesc)),
   321  			NumEnums:      0,
   322  			NumMessages:   3,
   323  			NumExtensions: 0,
   324  			NumServices:   0,
   325  		},
   326  		GoTypes:           file_ErrorHandling_proto_goTypes,
   327  		DependencyIndexes: file_ErrorHandling_proto_depIdxs,
   328  		MessageInfos:      file_ErrorHandling_proto_msgTypes,
   329  	}.Build()
   330  	File_ErrorHandling_proto = out.File
   331  	file_ErrorHandling_proto_goTypes = nil
   332  	file_ErrorHandling_proto_depIdxs = nil
   333  }