multi3.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: multi/multi3.proto
  3. package multitest // import "github.com/golang/protobuf/protoc-gen-go/testdata/multi"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type Multi3_HatType int32
  17. const (
  18. Multi3_FEDORA Multi3_HatType = 1
  19. Multi3_FEZ Multi3_HatType = 2
  20. )
  21. var Multi3_HatType_name = map[int32]string{
  22. 1: "FEDORA",
  23. 2: "FEZ",
  24. }
  25. var Multi3_HatType_value = map[string]int32{
  26. "FEDORA": 1,
  27. "FEZ": 2,
  28. }
  29. func (x Multi3_HatType) Enum() *Multi3_HatType {
  30. p := new(Multi3_HatType)
  31. *p = x
  32. return p
  33. }
  34. func (x Multi3_HatType) String() string {
  35. return proto.EnumName(Multi3_HatType_name, int32(x))
  36. }
  37. func (x *Multi3_HatType) UnmarshalJSON(data []byte) error {
  38. value, err := proto.UnmarshalJSONEnum(Multi3_HatType_value, data, "Multi3_HatType")
  39. if err != nil {
  40. return err
  41. }
  42. *x = Multi3_HatType(value)
  43. return nil
  44. }
  45. func (Multi3_HatType) EnumDescriptor() ([]byte, []int) {
  46. return fileDescriptor_multi3_d55a72b4628b7875, []int{0, 0}
  47. }
  48. type Multi3 struct {
  49. HatType *Multi3_HatType `protobuf:"varint,1,opt,name=hat_type,json=hatType,enum=multitest.Multi3_HatType" json:"hat_type,omitempty"`
  50. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  51. XXX_unrecognized []byte `json:"-"`
  52. XXX_sizecache int32 `json:"-"`
  53. }
  54. func (m *Multi3) Reset() { *m = Multi3{} }
  55. func (m *Multi3) String() string { return proto.CompactTextString(m) }
  56. func (*Multi3) ProtoMessage() {}
  57. func (*Multi3) Descriptor() ([]byte, []int) {
  58. return fileDescriptor_multi3_d55a72b4628b7875, []int{0}
  59. }
  60. func (m *Multi3) XXX_Unmarshal(b []byte) error {
  61. return xxx_messageInfo_Multi3.Unmarshal(m, b)
  62. }
  63. func (m *Multi3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  64. return xxx_messageInfo_Multi3.Marshal(b, m, deterministic)
  65. }
  66. func (dst *Multi3) XXX_Merge(src proto.Message) {
  67. xxx_messageInfo_Multi3.Merge(dst, src)
  68. }
  69. func (m *Multi3) XXX_Size() int {
  70. return xxx_messageInfo_Multi3.Size(m)
  71. }
  72. func (m *Multi3) XXX_DiscardUnknown() {
  73. xxx_messageInfo_Multi3.DiscardUnknown(m)
  74. }
  75. var xxx_messageInfo_Multi3 proto.InternalMessageInfo
  76. func (m *Multi3) GetHatType() Multi3_HatType {
  77. if m != nil && m.HatType != nil {
  78. return *m.HatType
  79. }
  80. return Multi3_FEDORA
  81. }
  82. func init() {
  83. proto.RegisterType((*Multi3)(nil), "multitest.Multi3")
  84. proto.RegisterEnum("multitest.Multi3_HatType", Multi3_HatType_name, Multi3_HatType_value)
  85. }
  86. func init() { proto.RegisterFile("multi/multi3.proto", fileDescriptor_multi3_d55a72b4628b7875) }
  87. var fileDescriptor_multi3_d55a72b4628b7875 = []byte{
  88. // 170 bytes of a gzipped FileDescriptorProto
  89. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xca, 0x2d, 0xcd, 0x29,
  90. 0xc9, 0xd4, 0x07, 0x93, 0xc6, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x9c, 0x60, 0x5e, 0x49,
  91. 0x6a, 0x71, 0x89, 0x52, 0x1c, 0x17, 0x9b, 0x2f, 0x58, 0x4a, 0xc8, 0x84, 0x8b, 0x23, 0x23, 0xb1,
  92. 0x24, 0xbe, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0xcf, 0x48, 0x52, 0x0f, 0xae,
  93. 0x4e, 0x0f, 0xa2, 0x48, 0xcf, 0x23, 0xb1, 0x24, 0xa4, 0xb2, 0x20, 0x35, 0x88, 0x3d, 0x03, 0xc2,
  94. 0x50, 0x92, 0xe3, 0x62, 0x87, 0x8a, 0x09, 0x71, 0x71, 0xb1, 0xb9, 0xb9, 0xba, 0xf8, 0x07, 0x39,
  95. 0x0a, 0x30, 0x0a, 0xb1, 0x73, 0x31, 0xbb, 0xb9, 0x46, 0x09, 0x30, 0x39, 0x39, 0x47, 0x39, 0xa6,
  96. 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xe7, 0x24, 0xe6, 0xa5,
  97. 0xeb, 0x83, 0x5d, 0x91, 0x54, 0x9a, 0x06, 0x61, 0x24, 0xeb, 0xa6, 0xa7, 0xe6, 0xe9, 0xa6, 0xe7,
  98. 0xeb, 0x83, 0x2c, 0x4a, 0x49, 0x2c, 0x49, 0x84, 0x38, 0xd6, 0x1a, 0x6e, 0x39, 0x20, 0x00, 0x00,
  99. 0xff, 0xff, 0xd5, 0xa4, 0x1a, 0x0e, 0xc4, 0x00, 0x00, 0x00,
  100. }