status.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.18.0
  5. // source: udpa/annotations/status.proto
  6. package annotations
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. descriptorpb "google.golang.org/protobuf/types/descriptorpb"
  12. reflect "reflect"
  13. sync "sync"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // This is a compile-time assertion that a sufficiently up-to-date version
  22. // of the legacy proto package is being used.
  23. const _ = proto.ProtoPackageIsVersion4
  24. type PackageVersionStatus int32
  25. const (
  26. PackageVersionStatus_UNKNOWN PackageVersionStatus = 0
  27. PackageVersionStatus_FROZEN PackageVersionStatus = 1
  28. PackageVersionStatus_ACTIVE PackageVersionStatus = 2
  29. PackageVersionStatus_NEXT_MAJOR_VERSION_CANDIDATE PackageVersionStatus = 3
  30. )
  31. // Enum value maps for PackageVersionStatus.
  32. var (
  33. PackageVersionStatus_name = map[int32]string{
  34. 0: "UNKNOWN",
  35. 1: "FROZEN",
  36. 2: "ACTIVE",
  37. 3: "NEXT_MAJOR_VERSION_CANDIDATE",
  38. }
  39. PackageVersionStatus_value = map[string]int32{
  40. "UNKNOWN": 0,
  41. "FROZEN": 1,
  42. "ACTIVE": 2,
  43. "NEXT_MAJOR_VERSION_CANDIDATE": 3,
  44. }
  45. )
  46. func (x PackageVersionStatus) Enum() *PackageVersionStatus {
  47. p := new(PackageVersionStatus)
  48. *p = x
  49. return p
  50. }
  51. func (x PackageVersionStatus) String() string {
  52. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  53. }
  54. func (PackageVersionStatus) Descriptor() protoreflect.EnumDescriptor {
  55. return file_udpa_annotations_status_proto_enumTypes[0].Descriptor()
  56. }
  57. func (PackageVersionStatus) Type() protoreflect.EnumType {
  58. return &file_udpa_annotations_status_proto_enumTypes[0]
  59. }
  60. func (x PackageVersionStatus) Number() protoreflect.EnumNumber {
  61. return protoreflect.EnumNumber(x)
  62. }
  63. // Deprecated: Use PackageVersionStatus.Descriptor instead.
  64. func (PackageVersionStatus) EnumDescriptor() ([]byte, []int) {
  65. return file_udpa_annotations_status_proto_rawDescGZIP(), []int{0}
  66. }
  67. type StatusAnnotation struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. WorkInProgress bool `protobuf:"varint,1,opt,name=work_in_progress,json=workInProgress,proto3" json:"work_in_progress,omitempty"`
  72. PackageVersionStatus PackageVersionStatus `protobuf:"varint,2,opt,name=package_version_status,json=packageVersionStatus,proto3,enum=udpa.annotations.PackageVersionStatus" json:"package_version_status,omitempty"`
  73. }
  74. func (x *StatusAnnotation) Reset() {
  75. *x = StatusAnnotation{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_udpa_annotations_status_proto_msgTypes[0]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *StatusAnnotation) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*StatusAnnotation) ProtoMessage() {}
  86. func (x *StatusAnnotation) ProtoReflect() protoreflect.Message {
  87. mi := &file_udpa_annotations_status_proto_msgTypes[0]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use StatusAnnotation.ProtoReflect.Descriptor instead.
  98. func (*StatusAnnotation) Descriptor() ([]byte, []int) {
  99. return file_udpa_annotations_status_proto_rawDescGZIP(), []int{0}
  100. }
  101. func (x *StatusAnnotation) GetWorkInProgress() bool {
  102. if x != nil {
  103. return x.WorkInProgress
  104. }
  105. return false
  106. }
  107. func (x *StatusAnnotation) GetPackageVersionStatus() PackageVersionStatus {
  108. if x != nil {
  109. return x.PackageVersionStatus
  110. }
  111. return PackageVersionStatus_UNKNOWN
  112. }
  113. var file_udpa_annotations_status_proto_extTypes = []protoimpl.ExtensionInfo{
  114. {
  115. ExtendedType: (*descriptorpb.FileOptions)(nil),
  116. ExtensionType: (*StatusAnnotation)(nil),
  117. Field: 222707719,
  118. Name: "udpa.annotations.file_status",
  119. Tag: "bytes,222707719,opt,name=file_status",
  120. Filename: "udpa/annotations/status.proto",
  121. },
  122. }
  123. // Extension fields to descriptorpb.FileOptions.
  124. var (
  125. // optional udpa.annotations.StatusAnnotation file_status = 222707719;
  126. E_FileStatus = &file_udpa_annotations_status_proto_extTypes[0]
  127. )
  128. var File_udpa_annotations_status_proto protoreflect.FileDescriptor
  129. var file_udpa_annotations_status_proto_rawDesc = []byte{
  130. 0x0a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
  131. 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  132. 0x10, 0x75, 0x64, 0x70, 0x61, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  133. 0x73, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  134. 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
  135. 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x01, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x41, 0x6e,
  136. 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x77, 0x6f, 0x72, 0x6b,
  137. 0x5f, 0x69, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
  138. 0x28, 0x08, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65,
  139. 0x73, 0x73, 0x12, 0x5c, 0x0a, 0x16, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65,
  140. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01,
  141. 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x75, 0x64, 0x70, 0x61, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
  142. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72,
  143. 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x14, 0x70, 0x61, 0x63, 0x6b,
  144. 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  145. 0x2a, 0x5d, 0x0a, 0x14, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69,
  146. 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e,
  147. 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x52, 0x4f, 0x5a, 0x45, 0x4e, 0x10,
  148. 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x20, 0x0a,
  149. 0x1c, 0x4e, 0x45, 0x58, 0x54, 0x5f, 0x4d, 0x41, 0x4a, 0x4f, 0x52, 0x5f, 0x56, 0x45, 0x52, 0x53,
  150. 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x41, 0x4e, 0x44, 0x49, 0x44, 0x41, 0x54, 0x45, 0x10, 0x03, 0x3a,
  151. 0x64, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c,
  152. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  153. 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x87, 0x80, 0x99,
  154. 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x75, 0x64, 0x70, 0x61, 0x2e, 0x61, 0x6e, 0x6e,
  155. 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x41,
  156. 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x53,
  157. 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x24, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  158. 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6e, 0x63, 0x66, 0x2f, 0x78, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x2f,
  159. 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
  160. 0x74, 0x6f, 0x33,
  161. }
  162. var (
  163. file_udpa_annotations_status_proto_rawDescOnce sync.Once
  164. file_udpa_annotations_status_proto_rawDescData = file_udpa_annotations_status_proto_rawDesc
  165. )
  166. func file_udpa_annotations_status_proto_rawDescGZIP() []byte {
  167. file_udpa_annotations_status_proto_rawDescOnce.Do(func() {
  168. file_udpa_annotations_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_udpa_annotations_status_proto_rawDescData)
  169. })
  170. return file_udpa_annotations_status_proto_rawDescData
  171. }
  172. var file_udpa_annotations_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  173. var file_udpa_annotations_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  174. var file_udpa_annotations_status_proto_goTypes = []interface{}{
  175. (PackageVersionStatus)(0), // 0: udpa.annotations.PackageVersionStatus
  176. (*StatusAnnotation)(nil), // 1: udpa.annotations.StatusAnnotation
  177. (*descriptorpb.FileOptions)(nil), // 2: google.protobuf.FileOptions
  178. }
  179. var file_udpa_annotations_status_proto_depIdxs = []int32{
  180. 0, // 0: udpa.annotations.StatusAnnotation.package_version_status:type_name -> udpa.annotations.PackageVersionStatus
  181. 2, // 1: udpa.annotations.file_status:extendee -> google.protobuf.FileOptions
  182. 1, // 2: udpa.annotations.file_status:type_name -> udpa.annotations.StatusAnnotation
  183. 3, // [3:3] is the sub-list for method output_type
  184. 3, // [3:3] is the sub-list for method input_type
  185. 2, // [2:3] is the sub-list for extension type_name
  186. 1, // [1:2] is the sub-list for extension extendee
  187. 0, // [0:1] is the sub-list for field type_name
  188. }
  189. func init() { file_udpa_annotations_status_proto_init() }
  190. func file_udpa_annotations_status_proto_init() {
  191. if File_udpa_annotations_status_proto != nil {
  192. return
  193. }
  194. if !protoimpl.UnsafeEnabled {
  195. file_udpa_annotations_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  196. switch v := v.(*StatusAnnotation); i {
  197. case 0:
  198. return &v.state
  199. case 1:
  200. return &v.sizeCache
  201. case 2:
  202. return &v.unknownFields
  203. default:
  204. return nil
  205. }
  206. }
  207. }
  208. type x struct{}
  209. out := protoimpl.TypeBuilder{
  210. File: protoimpl.DescBuilder{
  211. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  212. RawDescriptor: file_udpa_annotations_status_proto_rawDesc,
  213. NumEnums: 1,
  214. NumMessages: 1,
  215. NumExtensions: 1,
  216. NumServices: 0,
  217. },
  218. GoTypes: file_udpa_annotations_status_proto_goTypes,
  219. DependencyIndexes: file_udpa_annotations_status_proto_depIdxs,
  220. EnumInfos: file_udpa_annotations_status_proto_enumTypes,
  221. MessageInfos: file_udpa_annotations_status_proto_msgTypes,
  222. ExtensionInfos: file_udpa_annotations_status_proto_extTypes,
  223. }.Build()
  224. File_udpa_annotations_status_proto = out.File
  225. file_udpa_annotations_status_proto_rawDesc = nil
  226. file_udpa_annotations_status_proto_goTypes = nil
  227. file_udpa_annotations_status_proto_depIdxs = nil
  228. }