namespace.pb.go 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.9
  4. // protoc v6.32.1
  5. // source: kubemodel/namespace.proto
  6. package kubemodel
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  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. // Namespace represents a Kubernetes namespace (allocated resource grouping)
  22. type Namespace struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // Identification
  25. ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
  26. ClusterID string `protobuf:"bytes,2,opt,name=clusterID,proto3" json:"clusterID,omitempty"`
  27. // Properties
  28. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  29. Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  30. Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  31. // Resource lifecycle (only when different from cluster window)
  32. CreationTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=creationTime,proto3,oneof" json:"creationTime,omitempty"`
  33. DeletionTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=deletionTime,proto3,oneof" json:"deletionTime,omitempty"`
  34. // Diagnostic information about this resource
  35. Diagnostic *DiagnosticResult `protobuf:"bytes,99,opt,name=diagnostic,proto3,oneof" json:"diagnostic,omitempty"`
  36. unknownFields protoimpl.UnknownFields
  37. sizeCache protoimpl.SizeCache
  38. }
  39. func (x *Namespace) Reset() {
  40. *x = Namespace{}
  41. mi := &file_kubemodel_namespace_proto_msgTypes[0]
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. ms.StoreMessageInfo(mi)
  44. }
  45. func (x *Namespace) String() string {
  46. return protoimpl.X.MessageStringOf(x)
  47. }
  48. func (*Namespace) ProtoMessage() {}
  49. func (x *Namespace) ProtoReflect() protoreflect.Message {
  50. mi := &file_kubemodel_namespace_proto_msgTypes[0]
  51. if x != nil {
  52. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  53. if ms.LoadMessageInfo() == nil {
  54. ms.StoreMessageInfo(mi)
  55. }
  56. return ms
  57. }
  58. return mi.MessageOf(x)
  59. }
  60. // Deprecated: Use Namespace.ProtoReflect.Descriptor instead.
  61. func (*Namespace) Descriptor() ([]byte, []int) {
  62. return file_kubemodel_namespace_proto_rawDescGZIP(), []int{0}
  63. }
  64. func (x *Namespace) GetID() string {
  65. if x != nil {
  66. return x.ID
  67. }
  68. return ""
  69. }
  70. func (x *Namespace) GetClusterID() string {
  71. if x != nil {
  72. return x.ClusterID
  73. }
  74. return ""
  75. }
  76. func (x *Namespace) GetName() string {
  77. if x != nil {
  78. return x.Name
  79. }
  80. return ""
  81. }
  82. func (x *Namespace) GetLabels() map[string]string {
  83. if x != nil {
  84. return x.Labels
  85. }
  86. return nil
  87. }
  88. func (x *Namespace) GetAnnotations() map[string]string {
  89. if x != nil {
  90. return x.Annotations
  91. }
  92. return nil
  93. }
  94. func (x *Namespace) GetCreationTime() *timestamppb.Timestamp {
  95. if x != nil {
  96. return x.CreationTime
  97. }
  98. return nil
  99. }
  100. func (x *Namespace) GetDeletionTime() *timestamppb.Timestamp {
  101. if x != nil {
  102. return x.DeletionTime
  103. }
  104. return nil
  105. }
  106. func (x *Namespace) GetDiagnostic() *DiagnosticResult {
  107. if x != nil {
  108. return x.Diagnostic
  109. }
  110. return nil
  111. }
  112. var File_kubemodel_namespace_proto protoreflect.FileDescriptor
  113. const file_kubemodel_namespace_proto_rawDesc = "" +
  114. "\n" +
  115. "\x19kubemodel/namespace.proto\x12\tkubemodel\x1a\x1akubemodel/diagnostic.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc8\x04\n" +
  116. "\tNamespace\x12\x0e\n" +
  117. "\x02ID\x18\x01 \x01(\tR\x02ID\x12\x1c\n" +
  118. "\tclusterID\x18\x02 \x01(\tR\tclusterID\x12\x12\n" +
  119. "\x04name\x18\x03 \x01(\tR\x04name\x128\n" +
  120. "\x06labels\x18\x04 \x03(\v2 .kubemodel.Namespace.LabelsEntryR\x06labels\x12G\n" +
  121. "\vannotations\x18\x05 \x03(\v2%.kubemodel.Namespace.AnnotationsEntryR\vannotations\x12C\n" +
  122. "\fcreationTime\x18\a \x01(\v2\x1a.google.protobuf.TimestampH\x00R\fcreationTime\x88\x01\x01\x12C\n" +
  123. "\fdeletionTime\x18\b \x01(\v2\x1a.google.protobuf.TimestampH\x01R\fdeletionTime\x88\x01\x01\x12@\n" +
  124. "\n" +
  125. "diagnostic\x18c \x01(\v2\x1b.kubemodel.DiagnosticResultH\x02R\n" +
  126. "diagnostic\x88\x01\x01\x1a9\n" +
  127. "\vLabelsEntry\x12\x10\n" +
  128. "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
  129. "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a>\n" +
  130. "\x10AnnotationsEntry\x12\x10\n" +
  131. "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
  132. "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x0f\n" +
  133. "\r_creationTimeB\x0f\n" +
  134. "\r_deletionTimeB\r\n" +
  135. "\v_diagnosticB:Z8github.com/opencost/opencost/core/pkg/model/pb/kubemodelb\x06proto3"
  136. var (
  137. file_kubemodel_namespace_proto_rawDescOnce sync.Once
  138. file_kubemodel_namespace_proto_rawDescData []byte
  139. )
  140. func file_kubemodel_namespace_proto_rawDescGZIP() []byte {
  141. file_kubemodel_namespace_proto_rawDescOnce.Do(func() {
  142. file_kubemodel_namespace_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kubemodel_namespace_proto_rawDesc), len(file_kubemodel_namespace_proto_rawDesc)))
  143. })
  144. return file_kubemodel_namespace_proto_rawDescData
  145. }
  146. var file_kubemodel_namespace_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  147. var file_kubemodel_namespace_proto_goTypes = []any{
  148. (*Namespace)(nil), // 0: kubemodel.Namespace
  149. nil, // 1: kubemodel.Namespace.LabelsEntry
  150. nil, // 2: kubemodel.Namespace.AnnotationsEntry
  151. (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
  152. (*DiagnosticResult)(nil), // 4: kubemodel.DiagnosticResult
  153. }
  154. var file_kubemodel_namespace_proto_depIdxs = []int32{
  155. 1, // 0: kubemodel.Namespace.labels:type_name -> kubemodel.Namespace.LabelsEntry
  156. 2, // 1: kubemodel.Namespace.annotations:type_name -> kubemodel.Namespace.AnnotationsEntry
  157. 3, // 2: kubemodel.Namespace.creationTime:type_name -> google.protobuf.Timestamp
  158. 3, // 3: kubemodel.Namespace.deletionTime:type_name -> google.protobuf.Timestamp
  159. 4, // 4: kubemodel.Namespace.diagnostic:type_name -> kubemodel.DiagnosticResult
  160. 5, // [5:5] is the sub-list for method output_type
  161. 5, // [5:5] is the sub-list for method input_type
  162. 5, // [5:5] is the sub-list for extension type_name
  163. 5, // [5:5] is the sub-list for extension extendee
  164. 0, // [0:5] is the sub-list for field type_name
  165. }
  166. func init() { file_kubemodel_namespace_proto_init() }
  167. func file_kubemodel_namespace_proto_init() {
  168. if File_kubemodel_namespace_proto != nil {
  169. return
  170. }
  171. file_kubemodel_diagnostic_proto_init()
  172. file_kubemodel_namespace_proto_msgTypes[0].OneofWrappers = []any{}
  173. type x struct{}
  174. out := protoimpl.TypeBuilder{
  175. File: protoimpl.DescBuilder{
  176. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  177. RawDescriptor: unsafe.Slice(unsafe.StringData(file_kubemodel_namespace_proto_rawDesc), len(file_kubemodel_namespace_proto_rawDesc)),
  178. NumEnums: 0,
  179. NumMessages: 3,
  180. NumExtensions: 0,
  181. NumServices: 0,
  182. },
  183. GoTypes: file_kubemodel_namespace_proto_goTypes,
  184. DependencyIndexes: file_kubemodel_namespace_proto_depIdxs,
  185. MessageInfos: file_kubemodel_namespace_proto_msgTypes,
  186. }.Build()
  187. File_kubemodel_namespace_proto = out.File
  188. file_kubemodel_namespace_proto_goTypes = nil
  189. file_kubemodel_namespace_proto_depIdxs = nil
  190. }