annotations.pb.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: annotations/annotations.proto
  3. package annotations
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. type AnnotationsTestEnum int32
  19. const (
  20. AnnotationsTestEnum_ANNOTATIONS_TEST_ENUM_VALUE AnnotationsTestEnum = 0
  21. )
  22. var AnnotationsTestEnum_name = map[int32]string{
  23. 0: "ANNOTATIONS_TEST_ENUM_VALUE",
  24. }
  25. var AnnotationsTestEnum_value = map[string]int32{
  26. "ANNOTATIONS_TEST_ENUM_VALUE": 0,
  27. }
  28. func (x AnnotationsTestEnum) Enum() *AnnotationsTestEnum {
  29. p := new(AnnotationsTestEnum)
  30. *p = x
  31. return p
  32. }
  33. func (x AnnotationsTestEnum) String() string {
  34. return proto.EnumName(AnnotationsTestEnum_name, int32(x))
  35. }
  36. func (x *AnnotationsTestEnum) UnmarshalJSON(data []byte) error {
  37. value, err := proto.UnmarshalJSONEnum(AnnotationsTestEnum_value, data, "AnnotationsTestEnum")
  38. if err != nil {
  39. return err
  40. }
  41. *x = AnnotationsTestEnum(value)
  42. return nil
  43. }
  44. func (AnnotationsTestEnum) EnumDescriptor() ([]byte, []int) {
  45. return fileDescriptor_21dfaf6fd39fa3b7, []int{0}
  46. }
  47. type AnnotationsTestMessage struct {
  48. AnnotationsTestField *string `protobuf:"bytes,1,opt,name=AnnotationsTestField" json:"AnnotationsTestField,omitempty"`
  49. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  50. XXX_unrecognized []byte `json:"-"`
  51. XXX_sizecache int32 `json:"-"`
  52. }
  53. func (m *AnnotationsTestMessage) Reset() { *m = AnnotationsTestMessage{} }
  54. func (m *AnnotationsTestMessage) String() string { return proto.CompactTextString(m) }
  55. func (*AnnotationsTestMessage) ProtoMessage() {}
  56. func (*AnnotationsTestMessage) Descriptor() ([]byte, []int) {
  57. return fileDescriptor_21dfaf6fd39fa3b7, []int{0}
  58. }
  59. func (m *AnnotationsTestMessage) XXX_Unmarshal(b []byte) error {
  60. return xxx_messageInfo_AnnotationsTestMessage.Unmarshal(m, b)
  61. }
  62. func (m *AnnotationsTestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  63. return xxx_messageInfo_AnnotationsTestMessage.Marshal(b, m, deterministic)
  64. }
  65. func (m *AnnotationsTestMessage) XXX_Merge(src proto.Message) {
  66. xxx_messageInfo_AnnotationsTestMessage.Merge(m, src)
  67. }
  68. func (m *AnnotationsTestMessage) XXX_Size() int {
  69. return xxx_messageInfo_AnnotationsTestMessage.Size(m)
  70. }
  71. func (m *AnnotationsTestMessage) XXX_DiscardUnknown() {
  72. xxx_messageInfo_AnnotationsTestMessage.DiscardUnknown(m)
  73. }
  74. var xxx_messageInfo_AnnotationsTestMessage proto.InternalMessageInfo
  75. func (m *AnnotationsTestMessage) GetAnnotationsTestField() string {
  76. if m != nil && m.AnnotationsTestField != nil {
  77. return *m.AnnotationsTestField
  78. }
  79. return ""
  80. }
  81. func init() {
  82. proto.RegisterEnum("goproto.protoc.annotations.AnnotationsTestEnum", AnnotationsTestEnum_name, AnnotationsTestEnum_value)
  83. proto.RegisterType((*AnnotationsTestMessage)(nil), "goproto.protoc.annotations.AnnotationsTestMessage")
  84. }
  85. func init() { proto.RegisterFile("annotations/annotations.proto", fileDescriptor_21dfaf6fd39fa3b7) }
  86. var fileDescriptor_21dfaf6fd39fa3b7 = []byte{
  87. // 194 bytes of a gzipped FileDescriptorProto
  88. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4d, 0xcc, 0xcb, 0xcb,
  89. 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x47, 0x62, 0xeb, 0x15, 0x14, 0xe5, 0x97, 0xe4,
  90. 0x0b, 0x49, 0xa5, 0xe7, 0x83, 0x19, 0x10, 0x6e, 0xb2, 0x1e, 0x92, 0x0a, 0x25, 0x1f, 0x2e, 0x31,
  91. 0x47, 0x04, 0x37, 0x24, 0xb5, 0xb8, 0xc4, 0x37, 0xb5, 0xb8, 0x38, 0x31, 0x3d, 0x55, 0xc8, 0x88,
  92. 0x4b, 0x04, 0x4d, 0xc6, 0x2d, 0x33, 0x35, 0x27, 0x45, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08,
  93. 0xab, 0x9c, 0x96, 0x19, 0x97, 0x30, 0x9a, 0xb8, 0x6b, 0x5e, 0x69, 0xae, 0x90, 0x3c, 0x97, 0xb4,
  94. 0xa3, 0x9f, 0x9f, 0x7f, 0x88, 0x63, 0x88, 0xa7, 0xbf, 0x5f, 0x70, 0x7c, 0x88, 0x6b, 0x70, 0x48,
  95. 0xbc, 0xab, 0x5f, 0xa8, 0x6f, 0x7c, 0x98, 0xa3, 0x4f, 0xa8, 0xab, 0x00, 0x83, 0x93, 0x5b, 0x94,
  96. 0x4b, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x7e, 0x4e, 0x62,
  97. 0x5e, 0xba, 0x3e, 0xd8, 0xb5, 0x49, 0xa5, 0x69, 0xfa, 0x65, 0x46, 0xfa, 0xc9, 0xb9, 0x29, 0x10,
  98. 0x7e, 0xb2, 0x6e, 0x7a, 0x6a, 0x9e, 0x6e, 0x7a, 0xbe, 0x7e, 0x49, 0x6a, 0x71, 0x49, 0x4a, 0x62,
  99. 0x49, 0x22, 0xb2, 0x7f, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x40, 0xd6, 0xe5, 0x9d, 0x09, 0x01,
  100. 0x00, 0x00,
  101. }