github.com/annwntech/go-micro/v2@v2.9.5/errors/errors.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.13.0
     5  // source: errors/errors.proto
     6  
     7  package errors
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    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  // This is a compile-time assertion that a sufficiently up-to-date version
    25  // of the legacy proto package is being used.
    26  const _ = proto.ProtoPackageIsVersion4
    27  
    28  type Error struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    34  	Code   int32  `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
    35  	Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
    36  	Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
    37  }
    38  
    39  func (x *Error) Reset() {
    40  	*x = Error{}
    41  	if protoimpl.UnsafeEnabled {
    42  		mi := &file_errors_errors_proto_msgTypes[0]
    43  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    44  		ms.StoreMessageInfo(mi)
    45  	}
    46  }
    47  
    48  func (x *Error) String() string {
    49  	return protoimpl.X.MessageStringOf(x)
    50  }
    51  
    52  func (*Error) ProtoMessage() {}
    53  
    54  func (x *Error) ProtoReflect() protoreflect.Message {
    55  	mi := &file_errors_errors_proto_msgTypes[0]
    56  	if protoimpl.UnsafeEnabled && x != nil {
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		if ms.LoadMessageInfo() == nil {
    59  			ms.StoreMessageInfo(mi)
    60  		}
    61  		return ms
    62  	}
    63  	return mi.MessageOf(x)
    64  }
    65  
    66  // Deprecated: Use Error.ProtoReflect.Descriptor instead.
    67  func (*Error) Descriptor() ([]byte, []int) {
    68  	return file_errors_errors_proto_rawDescGZIP(), []int{0}
    69  }
    70  
    71  func (x *Error) GetId() string {
    72  	if x != nil {
    73  		return x.Id
    74  	}
    75  	return ""
    76  }
    77  
    78  func (x *Error) GetCode() int32 {
    79  	if x != nil {
    80  		return x.Code
    81  	}
    82  	return 0
    83  }
    84  
    85  func (x *Error) GetDetail() string {
    86  	if x != nil {
    87  		return x.Detail
    88  	}
    89  	return ""
    90  }
    91  
    92  func (x *Error) GetStatus() string {
    93  	if x != nil {
    94  		return x.Status
    95  	}
    96  	return ""
    97  }
    98  
    99  var File_errors_errors_proto protoreflect.FileDescriptor
   100  
   101  var file_errors_errors_proto_rawDesc = []byte{
   102  	0x0a, 0x13, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e,
   103  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e,
   104  	0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x5b, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12,
   105  	0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
   106  	0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63,
   107  	0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20,
   108  	0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73,
   109  	0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61,
   110  	0x74, 0x75, 0x73, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
   111  	0x6d, 0x2f, 0x61, 0x6e, 0x6e, 0x77, 0x6e, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x67, 0x6f, 0x2d, 0x6d,
   112  	0x69, 0x63, 0x72, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x3b, 0x65,
   113  	0x72, 0x72, 0x6f, 0x72, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   114  }
   115  
   116  var (
   117  	file_errors_errors_proto_rawDescOnce sync.Once
   118  	file_errors_errors_proto_rawDescData = file_errors_errors_proto_rawDesc
   119  )
   120  
   121  func file_errors_errors_proto_rawDescGZIP() []byte {
   122  	file_errors_errors_proto_rawDescOnce.Do(func() {
   123  		file_errors_errors_proto_rawDescData = protoimpl.X.CompressGZIP(file_errors_errors_proto_rawDescData)
   124  	})
   125  	return file_errors_errors_proto_rawDescData
   126  }
   127  
   128  var file_errors_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   129  var file_errors_errors_proto_goTypes = []interface{}{
   130  	(*Error)(nil), // 0: go.micro.errors.Error
   131  }
   132  var file_errors_errors_proto_depIdxs = []int32{
   133  	0, // [0:0] is the sub-list for method output_type
   134  	0, // [0:0] is the sub-list for method input_type
   135  	0, // [0:0] is the sub-list for extension type_name
   136  	0, // [0:0] is the sub-list for extension extendee
   137  	0, // [0:0] is the sub-list for field type_name
   138  }
   139  
   140  func init() { file_errors_errors_proto_init() }
   141  func file_errors_errors_proto_init() {
   142  	if File_errors_errors_proto != nil {
   143  		return
   144  	}
   145  	if !protoimpl.UnsafeEnabled {
   146  		file_errors_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   147  			switch v := v.(*Error); i {
   148  			case 0:
   149  				return &v.state
   150  			case 1:
   151  				return &v.sizeCache
   152  			case 2:
   153  				return &v.unknownFields
   154  			default:
   155  				return nil
   156  			}
   157  		}
   158  	}
   159  	type x struct{}
   160  	out := protoimpl.TypeBuilder{
   161  		File: protoimpl.DescBuilder{
   162  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   163  			RawDescriptor: file_errors_errors_proto_rawDesc,
   164  			NumEnums:      0,
   165  			NumMessages:   1,
   166  			NumExtensions: 0,
   167  			NumServices:   0,
   168  		},
   169  		GoTypes:           file_errors_errors_proto_goTypes,
   170  		DependencyIndexes: file_errors_errors_proto_depIdxs,
   171  		MessageInfos:      file_errors_errors_proto_msgTypes,
   172  	}.Build()
   173  	File_errors_errors_proto = out.File
   174  	file_errors_errors_proto_rawDesc = nil
   175  	file_errors_errors_proto_goTypes = nil
   176  	file_errors_errors_proto_depIdxs = nil
   177  }