deprecated.pb.go 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. // comments/deprecated.proto is a deprecated file.
  6. package comments
  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. // Deprecated: Do not use.
  14. type DeprecatedEnum int32
  15. const (
  16. // Deprecated: Do not use.
  17. DeprecatedEnum_DEPRECATED DeprecatedEnum = 0
  18. )
  19. // Enum value maps for DeprecatedEnum.
  20. var (
  21. DeprecatedEnum_name = map[int32]string{
  22. 0: "DEPRECATED",
  23. }
  24. DeprecatedEnum_value = map[string]int32{
  25. "DEPRECATED": 0,
  26. }
  27. )
  28. func (x DeprecatedEnum) Enum() *DeprecatedEnum {
  29. p := new(DeprecatedEnum)
  30. *p = x
  31. return p
  32. }
  33. func (x DeprecatedEnum) String() string {
  34. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  35. }
  36. func (DeprecatedEnum) Descriptor() protoreflect.EnumDescriptor {
  37. return file_comments_deprecated_proto_enumTypes[0].Descriptor()
  38. }
  39. func (DeprecatedEnum) Type() protoreflect.EnumType {
  40. return &file_comments_deprecated_proto_enumTypes[0]
  41. }
  42. func (x DeprecatedEnum) Number() protoreflect.EnumNumber {
  43. return protoreflect.EnumNumber(x)
  44. }
  45. // Deprecated: Use DeprecatedEnum.Descriptor instead.
  46. func (DeprecatedEnum) EnumDescriptor() ([]byte, []int) {
  47. return file_comments_deprecated_proto_rawDescGZIP(), []int{0}
  48. }
  49. // Deprecated: Do not use.
  50. type DeprecatedMessage struct {
  51. state protoimpl.MessageState
  52. sizeCache protoimpl.SizeCache
  53. unknownFields protoimpl.UnknownFields
  54. // Deprecated: Do not use.
  55. DeprecatedField string `protobuf:"bytes,1,opt,name=deprecated_field,json=deprecatedField,proto3" json:"deprecated_field,omitempty"`
  56. }
  57. func (x *DeprecatedMessage) Reset() {
  58. *x = DeprecatedMessage{}
  59. }
  60. func (x *DeprecatedMessage) String() string {
  61. return protoimpl.X.MessageStringOf(x)
  62. }
  63. func (*DeprecatedMessage) ProtoMessage() {}
  64. func (x *DeprecatedMessage) ProtoReflect() protoreflect.Message {
  65. mi := &file_comments_deprecated_proto_msgTypes[0]
  66. if protoimpl.UnsafeEnabled && x != nil {
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. if ms.LoadMessageInfo() == nil {
  69. ms.StoreMessageInfo(mi)
  70. }
  71. return ms
  72. }
  73. return mi.MessageOf(x)
  74. }
  75. // Deprecated: Use DeprecatedMessage.ProtoReflect.Descriptor instead.
  76. func (*DeprecatedMessage) Descriptor() ([]byte, []int) {
  77. return file_comments_deprecated_proto_rawDescGZIP(), []int{0}
  78. }
  79. // Deprecated: Do not use.
  80. func (x *DeprecatedMessage) GetDeprecatedField() string {
  81. if x != nil {
  82. return x.DeprecatedField
  83. }
  84. return ""
  85. }
  86. var File_comments_deprecated_proto protoreflect.FileDescriptor
  87. var file_comments_deprecated_proto_rawDesc = []byte{
  88. 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65,
  89. 0x63, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70,
  90. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  91. 0x65, 0x6e, 0x74, 0x73, 0x22, 0x46, 0x0a, 0x11, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74,
  92. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x10, 0x64, 0x65, 0x70,
  93. 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20,
  94. 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61,
  95. 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x2a, 0x28, 0x0a, 0x0e,
  96. 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x12,
  97. 0x0a, 0x0a, 0x44, 0x45, 0x50, 0x52, 0x45, 0x43, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x02,
  98. 0x08, 0x01, 0x1a, 0x02, 0x18, 0x01, 0x42, 0x43, 0x5a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  99. 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
  100. 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d,
  101. 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f,
  102. 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0xb8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f,
  103. 0x74, 0x6f, 0x33,
  104. }
  105. var (
  106. file_comments_deprecated_proto_rawDescOnce sync.Once
  107. file_comments_deprecated_proto_rawDescData = file_comments_deprecated_proto_rawDesc
  108. )
  109. func file_comments_deprecated_proto_rawDescGZIP() []byte {
  110. file_comments_deprecated_proto_rawDescOnce.Do(func() {
  111. file_comments_deprecated_proto_rawDescData = protoimpl.X.CompressGZIP(file_comments_deprecated_proto_rawDescData)
  112. })
  113. return file_comments_deprecated_proto_rawDescData
  114. }
  115. var file_comments_deprecated_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  116. var file_comments_deprecated_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  117. var file_comments_deprecated_proto_goTypes = []interface{}{
  118. (DeprecatedEnum)(0), // 0: goproto.protoc.comments.DeprecatedEnum
  119. (*DeprecatedMessage)(nil), // 1: goproto.protoc.comments.DeprecatedMessage
  120. }
  121. var file_comments_deprecated_proto_depIdxs = []int32{
  122. 0, // [0:0] is the sub-list for method output_type
  123. 0, // [0:0] is the sub-list for method input_type
  124. 0, // [0:0] is the sub-list for extension type_name
  125. 0, // [0:0] is the sub-list for extension extendee
  126. 0, // [0:0] is the sub-list for field type_name
  127. }
  128. func init() { file_comments_deprecated_proto_init() }
  129. func file_comments_deprecated_proto_init() {
  130. if File_comments_deprecated_proto != nil {
  131. return
  132. }
  133. if !protoimpl.UnsafeEnabled {
  134. file_comments_deprecated_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  135. switch v := v.(*DeprecatedMessage); i {
  136. case 0:
  137. return &v.state
  138. case 1:
  139. return &v.sizeCache
  140. case 2:
  141. return &v.unknownFields
  142. default:
  143. return nil
  144. }
  145. }
  146. }
  147. type x struct{}
  148. out := protoimpl.TypeBuilder{
  149. File: protoimpl.DescBuilder{
  150. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  151. RawDescriptor: file_comments_deprecated_proto_rawDesc,
  152. NumEnums: 1,
  153. NumMessages: 1,
  154. NumExtensions: 0,
  155. NumServices: 0,
  156. },
  157. GoTypes: file_comments_deprecated_proto_goTypes,
  158. DependencyIndexes: file_comments_deprecated_proto_depIdxs,
  159. EnumInfos: file_comments_deprecated_proto_enumTypes,
  160. MessageInfos: file_comments_deprecated_proto_msgTypes,
  161. }.Build()
  162. File_comments_deprecated_proto = out.File
  163. file_comments_deprecated_proto_rawDesc = nil
  164. file_comments_deprecated_proto_goTypes = nil
  165. file_comments_deprecated_proto_depIdxs = nil
  166. }