github.com/cloudwego/kitex@v0.9.0/pkg/remote/codec/protobuf/error.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.15.6
     5  // source: kitex/pkg/remote/codec/protobuf/error.proto
     6  
     7  package protobuf
     8  
     9  import (
    10  	reflect "reflect"
    11  	sync "sync"
    12  
    13  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    14  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  // Messages used for transporting error between server and client.
    25  type ErrorProto struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	TypeID  int32  `protobuf:"varint,1,opt,name=TypeID,proto3" json:"TypeID,omitempty"`
    31  	Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
    32  }
    33  
    34  func (x *ErrorProto) Reset() {
    35  	*x = ErrorProto{}
    36  	if protoimpl.UnsafeEnabled {
    37  		mi := &file_kitex_pkg_remote_codec_protobuf_error_proto_msgTypes[0]
    38  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    39  		ms.StoreMessageInfo(mi)
    40  	}
    41  }
    42  
    43  func (x *ErrorProto) String() string {
    44  	return protoimpl.X.MessageStringOf(x)
    45  }
    46  
    47  func (*ErrorProto) ProtoMessage() {}
    48  
    49  func (x *ErrorProto) ProtoReflect() protoreflect.Message {
    50  	mi := &file_kitex_pkg_remote_codec_protobuf_error_proto_msgTypes[0]
    51  	if protoimpl.UnsafeEnabled && x != nil {
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		if ms.LoadMessageInfo() == nil {
    54  			ms.StoreMessageInfo(mi)
    55  		}
    56  		return ms
    57  	}
    58  	return mi.MessageOf(x)
    59  }
    60  
    61  // Deprecated: Use ErrorProto.ProtoReflect.Descriptor instead.
    62  func (*ErrorProto) Descriptor() ([]byte, []int) {
    63  	return file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescGZIP(), []int{0}
    64  }
    65  
    66  func (x *ErrorProto) GetTypeID() int32 {
    67  	if x != nil {
    68  		return x.TypeID
    69  	}
    70  	return 0
    71  }
    72  
    73  func (x *ErrorProto) GetMessage() string {
    74  	if x != nil {
    75  		return x.Message
    76  	}
    77  	return ""
    78  }
    79  
    80  var File_kitex_pkg_remote_codec_protobuf_error_proto protoreflect.FileDescriptor
    81  
    82  var file_kitex_pkg_remote_codec_protobuf_error_proto_rawDesc = []byte{
    83  	0x0a, 0x2b, 0x6b, 0x69, 0x74, 0x65, 0x78, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x72, 0x65, 0x6d, 0x6f,
    84  	0x74, 0x65, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
    85  	0x66, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70,
    86  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x3e, 0x0a, 0x0a, 0x45, 0x72, 0x72, 0x6f, 0x72,
    87  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x54, 0x79, 0x70, 0x65, 0x49, 0x44, 0x18,
    88  	0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x54, 0x79, 0x70, 0x65, 0x49, 0x44, 0x12, 0x18, 0x0a,
    89  	0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
    90  	0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x35, 0x5a, 0x33, 0x63, 0x6f, 0x64, 0x65, 0x2e,
    91  	0x62, 0x79, 0x74, 0x65, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6b, 0x69, 0x74, 0x65, 0x2f, 0x6b,
    92  	0x69, 0x74, 0x65, 0x78, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x2f,
    93  	0x63, 0x6f, 0x64, 0x65, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06,
    94  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
    95  }
    96  
    97  var (
    98  	file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescOnce sync.Once
    99  	file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescData = file_kitex_pkg_remote_codec_protobuf_error_proto_rawDesc
   100  )
   101  
   102  func file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescGZIP() []byte {
   103  	file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescOnce.Do(func() {
   104  		file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescData = protoimpl.X.CompressGZIP(file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescData)
   105  	})
   106  	return file_kitex_pkg_remote_codec_protobuf_error_proto_rawDescData
   107  }
   108  
   109  var (
   110  	file_kitex_pkg_remote_codec_protobuf_error_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   111  	file_kitex_pkg_remote_codec_protobuf_error_proto_goTypes  = []interface{}{
   112  		(*ErrorProto)(nil), // 0: protobuf.ErrorProto
   113  	}
   114  )
   115  
   116  var file_kitex_pkg_remote_codec_protobuf_error_proto_depIdxs = []int32{
   117  	0, // [0:0] is the sub-list for method output_type
   118  	0, // [0:0] is the sub-list for method input_type
   119  	0, // [0:0] is the sub-list for extension type_name
   120  	0, // [0:0] is the sub-list for extension extendee
   121  	0, // [0:0] is the sub-list for field type_name
   122  }
   123  
   124  func init() { file_kitex_pkg_remote_codec_protobuf_error_proto_init() }
   125  func file_kitex_pkg_remote_codec_protobuf_error_proto_init() {
   126  	if File_kitex_pkg_remote_codec_protobuf_error_proto != nil {
   127  		return
   128  	}
   129  	if !protoimpl.UnsafeEnabled {
   130  		file_kitex_pkg_remote_codec_protobuf_error_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   131  			switch v := v.(*ErrorProto); i {
   132  			case 0:
   133  				return &v.state
   134  			case 1:
   135  				return &v.sizeCache
   136  			case 2:
   137  				return &v.unknownFields
   138  			default:
   139  				return nil
   140  			}
   141  		}
   142  	}
   143  	type x struct{}
   144  	out := protoimpl.TypeBuilder{
   145  		File: protoimpl.DescBuilder{
   146  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   147  			RawDescriptor: file_kitex_pkg_remote_codec_protobuf_error_proto_rawDesc,
   148  			NumEnums:      0,
   149  			NumMessages:   1,
   150  			NumExtensions: 0,
   151  			NumServices:   0,
   152  		},
   153  		GoTypes:           file_kitex_pkg_remote_codec_protobuf_error_proto_goTypes,
   154  		DependencyIndexes: file_kitex_pkg_remote_codec_protobuf_error_proto_depIdxs,
   155  		MessageInfos:      file_kitex_pkg_remote_codec_protobuf_error_proto_msgTypes,
   156  	}.Build()
   157  	File_kitex_pkg_remote_codec_protobuf_error_proto = out.File
   158  	file_kitex_pkg_remote_codec_protobuf_error_proto_rawDesc = nil
   159  	file_kitex_pkg_remote_codec_protobuf_error_proto_goTypes = nil
   160  	file_kitex_pkg_remote_codec_protobuf_error_proto_depIdxs = nil
   161  }