comments.pb.go 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: comments/comments.proto
  3. // COMMENT: package goproto.protoc.comments;
  4. package comments
  5. import (
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  7. protoregistry "google.golang.org/protobuf/reflect/protoregistry"
  8. protoiface "google.golang.org/protobuf/runtime/protoiface"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. sync "sync"
  11. )
  12. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  13. // COMMENT: Message1
  14. type Message1 struct {
  15. // COMMENT: Field1A
  16. Field1A *string `protobuf:"bytes,1,opt,name=Field1A" json:"Field1A,omitempty"`
  17. // COMMENT: Oneof1A
  18. //
  19. // Types that are valid to be assigned to Oneof1A:
  20. // COMMENT: Oneof1AField1
  21. // *Message1_Oneof1AField1
  22. Oneof1A isMessage1_Oneof1A `protobuf_oneof:"Oneof1a"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  25. XXX_sizecache protoimpl.SizeCache `json:"-"`
  26. }
  27. func (x *Message1) Reset() {
  28. *x = Message1{}
  29. }
  30. func (x *Message1) String() string {
  31. return protoimpl.X.MessageStringOf(x)
  32. }
  33. func (*Message1) ProtoMessage() {}
  34. func (x *Message1) ProtoReflect() protoreflect.Message {
  35. return file_comments_comments_proto_msgTypes[0].MessageOf(x)
  36. }
  37. func (m *Message1) XXX_Methods() *protoiface.Methods {
  38. return file_comments_comments_proto_msgTypes[0].Methods()
  39. }
  40. // Deprecated: Use Message1.ProtoReflect.Type instead.
  41. func (*Message1) Descriptor() ([]byte, []int) {
  42. return file_comments_comments_proto_rawDescGZIP(), []int{0}
  43. }
  44. func (x *Message1) GetField1A() string {
  45. if x != nil && x.Field1A != nil {
  46. return *x.Field1A
  47. }
  48. return ""
  49. }
  50. func (m *Message1) GetOneof1A() isMessage1_Oneof1A {
  51. if m != nil {
  52. return m.Oneof1A
  53. }
  54. return nil
  55. }
  56. func (x *Message1) GetOneof1AField1() string {
  57. if x, ok := x.GetOneof1A().(*Message1_Oneof1AField1); ok {
  58. return x.Oneof1AField1
  59. }
  60. return ""
  61. }
  62. // XXX_OneofWrappers is for the internal use of the proto package.
  63. func (*Message1) XXX_OneofWrappers() []interface{} {
  64. return []interface{}{
  65. (*Message1_Oneof1AField1)(nil),
  66. }
  67. }
  68. type isMessage1_Oneof1A interface {
  69. isMessage1_Oneof1A()
  70. }
  71. type Message1_Oneof1AField1 struct {
  72. Oneof1AField1 string `protobuf:"bytes,2,opt,name=Oneof1AField1,oneof"`
  73. }
  74. func (*Message1_Oneof1AField1) isMessage1_Oneof1A() {}
  75. // COMMENT: Message2
  76. type Message2 struct {
  77. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  78. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  79. XXX_sizecache protoimpl.SizeCache `json:"-"`
  80. }
  81. func (x *Message2) Reset() {
  82. *x = Message2{}
  83. }
  84. func (x *Message2) String() string {
  85. return protoimpl.X.MessageStringOf(x)
  86. }
  87. func (*Message2) ProtoMessage() {}
  88. func (x *Message2) ProtoReflect() protoreflect.Message {
  89. return file_comments_comments_proto_msgTypes[1].MessageOf(x)
  90. }
  91. func (m *Message2) XXX_Methods() *protoiface.Methods {
  92. return file_comments_comments_proto_msgTypes[1].Methods()
  93. }
  94. // Deprecated: Use Message2.ProtoReflect.Type instead.
  95. func (*Message2) Descriptor() ([]byte, []int) {
  96. return file_comments_comments_proto_rawDescGZIP(), []int{1}
  97. }
  98. // COMMENT: Message1A
  99. type Message1_Message1A struct {
  100. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  101. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  102. XXX_sizecache protoimpl.SizeCache `json:"-"`
  103. }
  104. func (x *Message1_Message1A) Reset() {
  105. *x = Message1_Message1A{}
  106. }
  107. func (x *Message1_Message1A) String() string {
  108. return protoimpl.X.MessageStringOf(x)
  109. }
  110. func (*Message1_Message1A) ProtoMessage() {}
  111. func (x *Message1_Message1A) ProtoReflect() protoreflect.Message {
  112. return file_comments_comments_proto_msgTypes[2].MessageOf(x)
  113. }
  114. func (m *Message1_Message1A) XXX_Methods() *protoiface.Methods {
  115. return file_comments_comments_proto_msgTypes[2].Methods()
  116. }
  117. // Deprecated: Use Message1_Message1A.ProtoReflect.Type instead.
  118. func (*Message1_Message1A) Descriptor() ([]byte, []int) {
  119. return file_comments_comments_proto_rawDescGZIP(), []int{0, 0}
  120. }
  121. // COMMENT: Message1B
  122. type Message1_Message1B struct {
  123. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  124. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  125. XXX_sizecache protoimpl.SizeCache `json:"-"`
  126. }
  127. func (x *Message1_Message1B) Reset() {
  128. *x = Message1_Message1B{}
  129. }
  130. func (x *Message1_Message1B) String() string {
  131. return protoimpl.X.MessageStringOf(x)
  132. }
  133. func (*Message1_Message1B) ProtoMessage() {}
  134. func (x *Message1_Message1B) ProtoReflect() protoreflect.Message {
  135. return file_comments_comments_proto_msgTypes[3].MessageOf(x)
  136. }
  137. func (m *Message1_Message1B) XXX_Methods() *protoiface.Methods {
  138. return file_comments_comments_proto_msgTypes[3].Methods()
  139. }
  140. // Deprecated: Use Message1_Message1B.ProtoReflect.Type instead.
  141. func (*Message1_Message1B) Descriptor() ([]byte, []int) {
  142. return file_comments_comments_proto_rawDescGZIP(), []int{0, 1}
  143. }
  144. // COMMENT: Message2A
  145. type Message2_Message2A struct {
  146. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  147. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  148. XXX_sizecache protoimpl.SizeCache `json:"-"`
  149. }
  150. func (x *Message2_Message2A) Reset() {
  151. *x = Message2_Message2A{}
  152. }
  153. func (x *Message2_Message2A) String() string {
  154. return protoimpl.X.MessageStringOf(x)
  155. }
  156. func (*Message2_Message2A) ProtoMessage() {}
  157. func (x *Message2_Message2A) ProtoReflect() protoreflect.Message {
  158. return file_comments_comments_proto_msgTypes[4].MessageOf(x)
  159. }
  160. func (m *Message2_Message2A) XXX_Methods() *protoiface.Methods {
  161. return file_comments_comments_proto_msgTypes[4].Methods()
  162. }
  163. // Deprecated: Use Message2_Message2A.ProtoReflect.Type instead.
  164. func (*Message2_Message2A) Descriptor() ([]byte, []int) {
  165. return file_comments_comments_proto_rawDescGZIP(), []int{1, 0}
  166. }
  167. // COMMENT: Message2B
  168. type Message2_Message2B struct {
  169. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  170. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  171. XXX_sizecache protoimpl.SizeCache `json:"-"`
  172. }
  173. func (x *Message2_Message2B) Reset() {
  174. *x = Message2_Message2B{}
  175. }
  176. func (x *Message2_Message2B) String() string {
  177. return protoimpl.X.MessageStringOf(x)
  178. }
  179. func (*Message2_Message2B) ProtoMessage() {}
  180. func (x *Message2_Message2B) ProtoReflect() protoreflect.Message {
  181. return file_comments_comments_proto_msgTypes[5].MessageOf(x)
  182. }
  183. func (m *Message2_Message2B) XXX_Methods() *protoiface.Methods {
  184. return file_comments_comments_proto_msgTypes[5].Methods()
  185. }
  186. // Deprecated: Use Message2_Message2B.ProtoReflect.Type instead.
  187. func (*Message2_Message2B) Descriptor() ([]byte, []int) {
  188. return file_comments_comments_proto_rawDescGZIP(), []int{1, 1}
  189. }
  190. var File_comments_comments_proto protoreflect.FileDescriptor
  191. var file_comments_comments_proto_rawDesc = []byte{
  192. 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
  193. 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f,
  194. 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
  195. 0x74, 0x73, 0x22, 0x71, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x12, 0x18,
  196. 0x0a, 0x07, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x41, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  197. 0x07, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x41, 0x12, 0x26, 0x0a, 0x0d, 0x4f, 0x6e, 0x65, 0x6f,
  198. 0x66, 0x31, 0x41, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
  199. 0x00, 0x52, 0x0d, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x31, 0x41, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31,
  200. 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x41, 0x1a, 0x0b, 0x0a,
  201. 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x42, 0x42, 0x09, 0x0a, 0x07, 0x4f, 0x6e,
  202. 0x65, 0x6f, 0x66, 0x31, 0x61, 0x22, 0x24, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  203. 0x32, 0x1a, 0x0b, 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x41, 0x1a, 0x0b,
  204. 0x0a, 0x09, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x42, 0x42, 0x40, 0x5a, 0x3e, 0x67,
  205. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
  206. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72,
  207. 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74,
  208. 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73,
  209. }
  210. var (
  211. file_comments_comments_proto_rawDescOnce sync.Once
  212. file_comments_comments_proto_rawDescData = file_comments_comments_proto_rawDesc
  213. )
  214. func file_comments_comments_proto_rawDescGZIP() []byte {
  215. file_comments_comments_proto_rawDescOnce.Do(func() {
  216. file_comments_comments_proto_rawDescData = protoimpl.X.CompressGZIP(file_comments_comments_proto_rawDescData)
  217. })
  218. return file_comments_comments_proto_rawDescData
  219. }
  220. var file_comments_comments_proto_msgTypes = make([]protoimpl.MessageType, 6)
  221. var file_comments_comments_proto_goTypes = []interface{}{
  222. (*Message1)(nil), // 0: goproto.protoc.comments.Message1
  223. (*Message2)(nil), // 1: goproto.protoc.comments.Message2
  224. (*Message1_Message1A)(nil), // 2: goproto.protoc.comments.Message1.Message1A
  225. (*Message1_Message1B)(nil), // 3: goproto.protoc.comments.Message1.Message1B
  226. (*Message2_Message2A)(nil), // 4: goproto.protoc.comments.Message2.Message2A
  227. (*Message2_Message2B)(nil), // 5: goproto.protoc.comments.Message2.Message2B
  228. }
  229. var file_comments_comments_proto_depIdxs = []int32{}
  230. func init() { file_comments_comments_proto_init() }
  231. func file_comments_comments_proto_init() {
  232. if File_comments_comments_proto != nil {
  233. return
  234. }
  235. File_comments_comments_proto = protoimpl.FileBuilder{
  236. RawDescriptor: file_comments_comments_proto_rawDesc,
  237. GoTypes: file_comments_comments_proto_goTypes,
  238. DependencyIndexes: file_comments_comments_proto_depIdxs,
  239. MessageOutputTypes: file_comments_comments_proto_msgTypes,
  240. FilesRegistry: protoregistry.GlobalFiles,
  241. TypesRegistry: protoregistry.GlobalTypes,
  242. }.Init()
  243. file_comments_comments_proto_rawDesc = nil
  244. file_comments_comments_proto_goTypes = nil
  245. file_comments_comments_proto_depIdxs = nil
  246. }