annotations.pb.go 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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: annotations/annotations.proto
  6. package annotations
  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 AnnotationsTestEnum int32
  14. const (
  15. AnnotationsTestEnum_ANNOTATIONS_TEST_ENUM_VALUE AnnotationsTestEnum = 0
  16. )
  17. // Enum value maps for AnnotationsTestEnum.
  18. var (
  19. AnnotationsTestEnum_name = map[int32]string{
  20. 0: "ANNOTATIONS_TEST_ENUM_VALUE",
  21. }
  22. AnnotationsTestEnum_value = map[string]int32{
  23. "ANNOTATIONS_TEST_ENUM_VALUE": 0,
  24. }
  25. )
  26. func (x AnnotationsTestEnum) Enum() *AnnotationsTestEnum {
  27. p := new(AnnotationsTestEnum)
  28. *p = x
  29. return p
  30. }
  31. func (x AnnotationsTestEnum) String() string {
  32. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  33. }
  34. func (AnnotationsTestEnum) Descriptor() protoreflect.EnumDescriptor {
  35. return file_annotations_annotations_proto_enumTypes[0].Descriptor()
  36. }
  37. func (AnnotationsTestEnum) Type() protoreflect.EnumType {
  38. return &file_annotations_annotations_proto_enumTypes[0]
  39. }
  40. func (x AnnotationsTestEnum) Number() protoreflect.EnumNumber {
  41. return protoreflect.EnumNumber(x)
  42. }
  43. // Deprecated: Do not use.
  44. func (x *AnnotationsTestEnum) UnmarshalJSON(b []byte) error {
  45. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  46. if err != nil {
  47. return err
  48. }
  49. *x = AnnotationsTestEnum(num)
  50. return nil
  51. }
  52. // Deprecated: Use AnnotationsTestEnum.Descriptor instead.
  53. func (AnnotationsTestEnum) EnumDescriptor() ([]byte, []int) {
  54. return file_annotations_annotations_proto_rawDescGZIP(), []int{0}
  55. }
  56. type AnnotationsTestMessage struct {
  57. state protoimpl.MessageState
  58. sizeCache protoimpl.SizeCache
  59. unknownFields protoimpl.UnknownFields
  60. AnnotationsTestField *string `protobuf:"bytes,1,opt,name=AnnotationsTestField" json:"AnnotationsTestField,omitempty"`
  61. }
  62. func (x *AnnotationsTestMessage) Reset() {
  63. *x = AnnotationsTestMessage{}
  64. }
  65. func (x *AnnotationsTestMessage) String() string {
  66. return protoimpl.X.MessageStringOf(x)
  67. }
  68. func (*AnnotationsTestMessage) ProtoMessage() {}
  69. func (x *AnnotationsTestMessage) ProtoReflect() protoreflect.Message {
  70. mi := &file_annotations_annotations_proto_msgTypes[0]
  71. if protoimpl.UnsafeEnabled && x != nil {
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. if ms.LoadMessageInfo() == nil {
  74. ms.StoreMessageInfo(mi)
  75. }
  76. return ms
  77. }
  78. return mi.MessageOf(x)
  79. }
  80. // Deprecated: Use AnnotationsTestMessage.ProtoReflect.Descriptor instead.
  81. func (*AnnotationsTestMessage) Descriptor() ([]byte, []int) {
  82. return file_annotations_annotations_proto_rawDescGZIP(), []int{0}
  83. }
  84. func (x *AnnotationsTestMessage) GetAnnotationsTestField() string {
  85. if x != nil && x.AnnotationsTestField != nil {
  86. return *x.AnnotationsTestField
  87. }
  88. return ""
  89. }
  90. var File_annotations_annotations_proto protoreflect.FileDescriptor
  91. var file_annotations_annotations_proto_rawDesc = []byte{
  92. 0x0a, 0x1d, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e,
  93. 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  94. 0x1a, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e,
  95. 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x4c, 0x0a, 0x16, 0x41,
  96. 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65,
  97. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x14, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
  98. 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20,
  99. 0x01, 0x28, 0x09, 0x52, 0x14, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  100. 0x54, 0x65, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x36, 0x0a, 0x13, 0x41, 0x6e, 0x6e,
  101. 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x54, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x75, 0x6d,
  102. 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x5f,
  103. 0x54, 0x45, 0x53, 0x54, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10,
  104. 0x00, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
  105. 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  106. 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67,
  107. 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
  108. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  109. }
  110. var (
  111. file_annotations_annotations_proto_rawDescOnce sync.Once
  112. file_annotations_annotations_proto_rawDescData = file_annotations_annotations_proto_rawDesc
  113. )
  114. func file_annotations_annotations_proto_rawDescGZIP() []byte {
  115. file_annotations_annotations_proto_rawDescOnce.Do(func() {
  116. file_annotations_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(file_annotations_annotations_proto_rawDescData)
  117. })
  118. return file_annotations_annotations_proto_rawDescData
  119. }
  120. var file_annotations_annotations_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  121. var file_annotations_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  122. var file_annotations_annotations_proto_goTypes = []interface{}{
  123. (AnnotationsTestEnum)(0), // 0: goproto.protoc.annotations.AnnotationsTestEnum
  124. (*AnnotationsTestMessage)(nil), // 1: goproto.protoc.annotations.AnnotationsTestMessage
  125. }
  126. var file_annotations_annotations_proto_depIdxs = []int32{
  127. 0, // starting offset of method output_type sub-list
  128. 0, // starting offset of method input_type sub-list
  129. 0, // starting offset of extension type_name sub-list
  130. 0, // starting offset of extension extendee sub-list
  131. 0, // starting offset of field type_name sub-list
  132. }
  133. func init() { file_annotations_annotations_proto_init() }
  134. func file_annotations_annotations_proto_init() {
  135. if File_annotations_annotations_proto != nil {
  136. return
  137. }
  138. if !protoimpl.UnsafeEnabled {
  139. file_annotations_annotations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  140. switch v := v.(*AnnotationsTestMessage); i {
  141. case 0:
  142. return &v.state
  143. case 1:
  144. return &v.sizeCache
  145. case 2:
  146. return &v.unknownFields
  147. default:
  148. return nil
  149. }
  150. }
  151. }
  152. type x struct{}
  153. out := protoimpl.TypeBuilder{
  154. File: protoimpl.DescBuilder{
  155. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  156. RawDescriptor: file_annotations_annotations_proto_rawDesc,
  157. NumEnums: 1,
  158. NumMessages: 1,
  159. NumExtensions: 0,
  160. NumServices: 0,
  161. },
  162. GoTypes: file_annotations_annotations_proto_goTypes,
  163. DependencyIndexes: file_annotations_annotations_proto_depIdxs,
  164. EnumInfos: file_annotations_annotations_proto_enumTypes,
  165. MessageInfos: file_annotations_annotations_proto_msgTypes,
  166. }.Build()
  167. File_annotations_annotations_proto = out.File
  168. file_annotations_annotations_proto_rawDesc = nil
  169. file_annotations_annotations_proto_goTypes = nil
  170. file_annotations_annotations_proto_depIdxs = nil
  171. }