enum.pb.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Code generated by protoc-gen-go. DO NOT EDIT.
  5. // source: proto3/enum.proto
  6. package proto3
  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. )
  13. type Enum int32
  14. const (
  15. Enum_ZERO Enum = 0
  16. Enum_ONE Enum = 1
  17. Enum_TWO Enum = 2
  18. )
  19. // Enum value maps for Enum.
  20. var (
  21. Enum_name = map[int32]string{
  22. 0: "ZERO",
  23. 1: "ONE",
  24. 2: "TWO",
  25. }
  26. Enum_value = map[string]int32{
  27. "ZERO": 0,
  28. "ONE": 1,
  29. "TWO": 2,
  30. }
  31. )
  32. func (x Enum) Enum() *Enum {
  33. p := new(Enum)
  34. *p = x
  35. return p
  36. }
  37. func (x Enum) String() string {
  38. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  39. }
  40. func (Enum) Descriptor() protoreflect.EnumDescriptor {
  41. return file_proto3_enum_proto_enumTypes[0].Descriptor()
  42. }
  43. func (Enum) Type() protoreflect.EnumType {
  44. return &file_proto3_enum_proto_enumTypes[0]
  45. }
  46. func (x Enum) Number() protoreflect.EnumNumber {
  47. return protoreflect.EnumNumber(x)
  48. }
  49. // Deprecated: Use Enum.Descriptor instead.
  50. func (Enum) EnumDescriptor() ([]byte, []int) {
  51. return file_proto3_enum_proto_rawDescGZIP(), []int{0}
  52. }
  53. var File_proto3_enum_proto protoreflect.FileDescriptor
  54. var file_proto3_enum_proto_rawDesc = []byte{
  55. 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
  56. 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
  57. 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2a, 0x22, 0x0a, 0x04, 0x45, 0x6e,
  58. 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03,
  59. 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x42, 0x3e,
  60. 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
  61. 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64,
  62. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74,
  63. 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x62, 0x06,
  64. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  65. }
  66. var (
  67. file_proto3_enum_proto_rawDescOnce sync.Once
  68. file_proto3_enum_proto_rawDescData = file_proto3_enum_proto_rawDesc
  69. )
  70. func file_proto3_enum_proto_rawDescGZIP() []byte {
  71. file_proto3_enum_proto_rawDescOnce.Do(func() {
  72. file_proto3_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto3_enum_proto_rawDescData)
  73. })
  74. return file_proto3_enum_proto_rawDescData
  75. }
  76. var file_proto3_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  77. var file_proto3_enum_proto_goTypes = []interface{}{
  78. (Enum)(0), // 0: goproto.protoc.proto3.Enum
  79. }
  80. var file_proto3_enum_proto_depIdxs = []int32{
  81. 0, // [0:0] is the sub-list for method output_type
  82. 0, // [0:0] is the sub-list for method input_type
  83. 0, // [0:0] is the sub-list for extension type_name
  84. 0, // [0:0] is the sub-list for extension extendee
  85. 0, // [0:0] is the sub-list for field type_name
  86. }
  87. func init() { file_proto3_enum_proto_init() }
  88. func file_proto3_enum_proto_init() {
  89. if File_proto3_enum_proto != nil {
  90. return
  91. }
  92. type x struct{}
  93. out := protoimpl.TypeBuilder{
  94. File: protoimpl.DescBuilder{
  95. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  96. RawDescriptor: file_proto3_enum_proto_rawDesc,
  97. NumEnums: 1,
  98. NumMessages: 0,
  99. NumExtensions: 0,
  100. NumServices: 0,
  101. },
  102. GoTypes: file_proto3_enum_proto_goTypes,
  103. DependencyIndexes: file_proto3_enum_proto_depIdxs,
  104. EnumInfos: file_proto3_enum_proto_enumTypes,
  105. }.Build()
  106. File_proto3_enum_proto = out.File
  107. file_proto3_enum_proto_rawDesc = nil
  108. file_proto3_enum_proto_goTypes = nil
  109. file_proto3_enum_proto_depIdxs = nil
  110. }