error_reason.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v3.20.0--rc1
  5. // source: helloworld/v1/error_reason.proto
  6. package v1
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type ErrorReason int32
  21. const (
  22. ErrorReason_GREETER_UNSPECIFIED ErrorReason = 0
  23. ErrorReason_USER_NOT_FOUND ErrorReason = 1
  24. )
  25. // Enum value maps for ErrorReason.
  26. var (
  27. ErrorReason_name = map[int32]string{
  28. 0: "GREETER_UNSPECIFIED",
  29. 1: "USER_NOT_FOUND",
  30. }
  31. ErrorReason_value = map[string]int32{
  32. "GREETER_UNSPECIFIED": 0,
  33. "USER_NOT_FOUND": 1,
  34. }
  35. )
  36. func (x ErrorReason) Enum() *ErrorReason {
  37. p := new(ErrorReason)
  38. *p = x
  39. return p
  40. }
  41. func (x ErrorReason) String() string {
  42. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  43. }
  44. func (ErrorReason) Descriptor() protoreflect.EnumDescriptor {
  45. return file_helloworld_v1_error_reason_proto_enumTypes[0].Descriptor()
  46. }
  47. func (ErrorReason) Type() protoreflect.EnumType {
  48. return &file_helloworld_v1_error_reason_proto_enumTypes[0]
  49. }
  50. func (x ErrorReason) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Use ErrorReason.Descriptor instead.
  54. func (ErrorReason) EnumDescriptor() ([]byte, []int) {
  55. return file_helloworld_v1_error_reason_proto_rawDescGZIP(), []int{0}
  56. }
  57. var File_helloworld_v1_error_reason_proto protoreflect.FileDescriptor
  58. const file_helloworld_v1_error_reason_proto_rawDesc = "" +
  59. "\n" +
  60. " helloworld/v1/error_reason.proto\x12\rhelloworld.v1*:\n" +
  61. "\vErrorReason\x12\x17\n" +
  62. "\x13GREETER_UNSPECIFIED\x10\x00\x12\x12\n" +
  63. "\x0eUSER_NOT_FOUND\x10\x01B@\n" +
  64. "\rhelloworld.v1P\x01Z\x1bserver/api/helloworld/v1;v1\xa2\x02\x0fAPIHelloworldV1b\x06proto3"
  65. var (
  66. file_helloworld_v1_error_reason_proto_rawDescOnce sync.Once
  67. file_helloworld_v1_error_reason_proto_rawDescData []byte
  68. )
  69. func file_helloworld_v1_error_reason_proto_rawDescGZIP() []byte {
  70. file_helloworld_v1_error_reason_proto_rawDescOnce.Do(func() {
  71. file_helloworld_v1_error_reason_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_helloworld_v1_error_reason_proto_rawDesc), len(file_helloworld_v1_error_reason_proto_rawDesc)))
  72. })
  73. return file_helloworld_v1_error_reason_proto_rawDescData
  74. }
  75. var file_helloworld_v1_error_reason_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  76. var file_helloworld_v1_error_reason_proto_goTypes = []any{
  77. (ErrorReason)(0), // 0: helloworld.v1.ErrorReason
  78. }
  79. var file_helloworld_v1_error_reason_proto_depIdxs = []int32{
  80. 0, // [0:0] is the sub-list for method output_type
  81. 0, // [0:0] is the sub-list for method input_type
  82. 0, // [0:0] is the sub-list for extension type_name
  83. 0, // [0:0] is the sub-list for extension extendee
  84. 0, // [0:0] is the sub-list for field type_name
  85. }
  86. func init() { file_helloworld_v1_error_reason_proto_init() }
  87. func file_helloworld_v1_error_reason_proto_init() {
  88. if File_helloworld_v1_error_reason_proto != nil {
  89. return
  90. }
  91. type x struct{}
  92. out := protoimpl.TypeBuilder{
  93. File: protoimpl.DescBuilder{
  94. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  95. RawDescriptor: unsafe.Slice(unsafe.StringData(file_helloworld_v1_error_reason_proto_rawDesc), len(file_helloworld_v1_error_reason_proto_rawDesc)),
  96. NumEnums: 1,
  97. NumMessages: 0,
  98. NumExtensions: 0,
  99. NumServices: 0,
  100. },
  101. GoTypes: file_helloworld_v1_error_reason_proto_goTypes,
  102. DependencyIndexes: file_helloworld_v1_error_reason_proto_depIdxs,
  103. EnumInfos: file_helloworld_v1_error_reason_proto_enumTypes,
  104. }.Build()
  105. File_helloworld_v1_error_reason_proto = out.File
  106. file_helloworld_v1_error_reason_proto_goTypes = nil
  107. file_helloworld_v1_error_reason_proto_depIdxs = nil
  108. }