github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/protobuf/protoc-gen-go-grain/test/error/error.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.32.0 4 // protoc v4.25.0 5 // source: test/error/error.proto 6 7 package hello 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type ErrorReason int32 24 25 const ( 26 ErrorReason_USER_NOT_FOUND ErrorReason = 0 27 ErrorReason_CONTENT_MISSING ErrorReason = 1 28 ) 29 30 // Enum value maps for ErrorReason. 31 var ( 32 ErrorReason_name = map[int32]string{ 33 0: "USER_NOT_FOUND", 34 1: "CONTENT_MISSING", 35 } 36 ErrorReason_value = map[string]int32{ 37 "USER_NOT_FOUND": 0, 38 "CONTENT_MISSING": 1, 39 } 40 ) 41 42 func (x ErrorReason) Enum() *ErrorReason { 43 p := new(ErrorReason) 44 *p = x 45 return p 46 } 47 48 func (x ErrorReason) String() string { 49 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 50 } 51 52 func (ErrorReason) Descriptor() protoreflect.EnumDescriptor { 53 return file_test_error_error_proto_enumTypes[0].Descriptor() 54 } 55 56 func (ErrorReason) Type() protoreflect.EnumType { 57 return &file_test_error_error_proto_enumTypes[0] 58 } 59 60 func (x ErrorReason) Number() protoreflect.EnumNumber { 61 return protoreflect.EnumNumber(x) 62 } 63 64 // Deprecated: Use ErrorReason.Descriptor instead. 65 func (ErrorReason) EnumDescriptor() ([]byte, []int) { 66 return file_test_error_error_proto_rawDescGZIP(), []int{0} 67 } 68 69 var File_test_error_error_proto protoreflect.FileDescriptor 70 71 var file_test_error_error_proto_rawDesc = []byte{ 72 0x0a, 0x16, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2f, 0x65, 0x72, 0x72, 73 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2a, 74 0x36, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x12, 75 0x0a, 0x0e, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 76 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x4d, 0x49, 77 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 78 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x73, 0x79, 0x6e, 0x6b, 0x72, 0x6f, 0x6e, 0x2f, 0x70, 79 0x72, 0x6f, 0x74, 0x6f, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 80 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2d, 0x67, 0x72, 0x61, 0x69, 0x6e, 81 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x62, 82 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 83 } 84 85 var ( 86 file_test_error_error_proto_rawDescOnce sync.Once 87 file_test_error_error_proto_rawDescData = file_test_error_error_proto_rawDesc 88 ) 89 90 func file_test_error_error_proto_rawDescGZIP() []byte { 91 file_test_error_error_proto_rawDescOnce.Do(func() { 92 file_test_error_error_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_error_error_proto_rawDescData) 93 }) 94 return file_test_error_error_proto_rawDescData 95 } 96 97 var file_test_error_error_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 98 var file_test_error_error_proto_goTypes = []interface{}{ 99 (ErrorReason)(0), // 0: hello.ErrorReason 100 } 101 var file_test_error_error_proto_depIdxs = []int32{ 102 0, // [0:0] is the sub-list for method output_type 103 0, // [0:0] is the sub-list for method input_type 104 0, // [0:0] is the sub-list for extension type_name 105 0, // [0:0] is the sub-list for extension extendee 106 0, // [0:0] is the sub-list for field type_name 107 } 108 109 func init() { file_test_error_error_proto_init() } 110 func file_test_error_error_proto_init() { 111 if File_test_error_error_proto != nil { 112 return 113 } 114 type x struct{} 115 out := protoimpl.TypeBuilder{ 116 File: protoimpl.DescBuilder{ 117 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 118 RawDescriptor: file_test_error_error_proto_rawDesc, 119 NumEnums: 1, 120 NumMessages: 0, 121 NumExtensions: 0, 122 NumServices: 0, 123 }, 124 GoTypes: file_test_error_error_proto_goTypes, 125 DependencyIndexes: file_test_error_error_proto_depIdxs, 126 EnumInfos: file_test_error_error_proto_enumTypes, 127 }.Build() 128 File_test_error_error_proto = out.File 129 file_test_error_error_proto_rawDesc = nil 130 file_test_error_error_proto_goTypes = nil 131 file_test_error_error_proto_depIdxs = nil 132 }