You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

294 lines
14 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/monitored_resource.proto
  3. package monitoredres // import "google.golang.org/genproto/googleapis/api/monitoredres"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _struct "github.com/golang/protobuf/ptypes/struct"
  8. import label "google.golang.org/genproto/googleapis/api/label"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // An object that describes the schema of a
  19. // [MonitoredResource][google.api.MonitoredResource] object using a type name
  20. // and a set of labels. For example, the monitored resource descriptor for
  21. // Google Compute Engine VM instances has a type of
  22. // `"gce_instance"` and specifies the use of the labels `"instance_id"` and
  23. // `"zone"` to identify particular VM instances.
  24. //
  25. // Different APIs can support different monitored resource types. APIs generally
  26. // provide a `list` method that returns the monitored resource descriptors used
  27. // by the API.
  28. type MonitoredResourceDescriptor struct {
  29. // Optional. The resource name of the monitored resource descriptor:
  30. // `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
  31. // {type} is the value of the `type` field in this object and
  32. // {project_id} is a project ID that provides API-specific context for
  33. // accessing the type. APIs that do not use project information can use the
  34. // resource name format `"monitoredResourceDescriptors/{type}"`.
  35. Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
  36. // Required. The monitored resource type. For example, the type
  37. // `"cloudsql_database"` represents databases in Google Cloud SQL.
  38. // The maximum length of this value is 256 characters.
  39. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  40. // Optional. A concise name for the monitored resource type that might be
  41. // displayed in user interfaces. It should be a Title Cased Noun Phrase,
  42. // without any article or other determiners. For example,
  43. // `"Google Cloud SQL Database"`.
  44. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  45. // Optional. A detailed description of the monitored resource type that might
  46. // be used in documentation.
  47. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  48. // Required. A set of labels used to describe instances of this monitored
  49. // resource type. For example, an individual Google Cloud SQL database is
  50. // identified by values for the labels `"database_id"` and `"zone"`.
  51. Labels []*label.LabelDescriptor `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"`
  52. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  53. XXX_unrecognized []byte `json:"-"`
  54. XXX_sizecache int32 `json:"-"`
  55. }
  56. func (m *MonitoredResourceDescriptor) Reset() { *m = MonitoredResourceDescriptor{} }
  57. func (m *MonitoredResourceDescriptor) String() string { return proto.CompactTextString(m) }
  58. func (*MonitoredResourceDescriptor) ProtoMessage() {}
  59. func (*MonitoredResourceDescriptor) Descriptor() ([]byte, []int) {
  60. return fileDescriptor_monitored_resource_fb985cf78be5ad98, []int{0}
  61. }
  62. func (m *MonitoredResourceDescriptor) XXX_Unmarshal(b []byte) error {
  63. return xxx_messageInfo_MonitoredResourceDescriptor.Unmarshal(m, b)
  64. }
  65. func (m *MonitoredResourceDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  66. return xxx_messageInfo_MonitoredResourceDescriptor.Marshal(b, m, deterministic)
  67. }
  68. func (dst *MonitoredResourceDescriptor) XXX_Merge(src proto.Message) {
  69. xxx_messageInfo_MonitoredResourceDescriptor.Merge(dst, src)
  70. }
  71. func (m *MonitoredResourceDescriptor) XXX_Size() int {
  72. return xxx_messageInfo_MonitoredResourceDescriptor.Size(m)
  73. }
  74. func (m *MonitoredResourceDescriptor) XXX_DiscardUnknown() {
  75. xxx_messageInfo_MonitoredResourceDescriptor.DiscardUnknown(m)
  76. }
  77. var xxx_messageInfo_MonitoredResourceDescriptor proto.InternalMessageInfo
  78. func (m *MonitoredResourceDescriptor) GetName() string {
  79. if m != nil {
  80. return m.Name
  81. }
  82. return ""
  83. }
  84. func (m *MonitoredResourceDescriptor) GetType() string {
  85. if m != nil {
  86. return m.Type
  87. }
  88. return ""
  89. }
  90. func (m *MonitoredResourceDescriptor) GetDisplayName() string {
  91. if m != nil {
  92. return m.DisplayName
  93. }
  94. return ""
  95. }
  96. func (m *MonitoredResourceDescriptor) GetDescription() string {
  97. if m != nil {
  98. return m.Description
  99. }
  100. return ""
  101. }
  102. func (m *MonitoredResourceDescriptor) GetLabels() []*label.LabelDescriptor {
  103. if m != nil {
  104. return m.Labels
  105. }
  106. return nil
  107. }
  108. // An object representing a resource that can be used for monitoring, logging,
  109. // billing, or other purposes. Examples include virtual machine instances,
  110. // databases, and storage devices such as disks. The `type` field identifies a
  111. // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object
  112. // that describes the resource's schema. Information in the `labels` field
  113. // identifies the actual resource and its attributes according to the schema.
  114. // For example, a particular Compute Engine VM instance could be represented by
  115. // the following object, because the
  116. // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
  117. // `"gce_instance"` has labels
  118. // `"instance_id"` and `"zone"`:
  119. //
  120. // { "type": "gce_instance",
  121. // "labels": { "instance_id": "12345678901234",
  122. // "zone": "us-central1-a" }}
  123. type MonitoredResource struct {
  124. // Required. The monitored resource type. This field must match
  125. // the `type` field of a
  126. // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
  127. // object. For example, the type of a Compute Engine VM instance is
  128. // `gce_instance`.
  129. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  130. // Required. Values for all of the labels listed in the associated monitored
  131. // resource descriptor. For example, Compute Engine VM instances use the
  132. // labels `"project_id"`, `"instance_id"`, and `"zone"`.
  133. Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  134. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  135. XXX_unrecognized []byte `json:"-"`
  136. XXX_sizecache int32 `json:"-"`
  137. }
  138. func (m *MonitoredResource) Reset() { *m = MonitoredResource{} }
  139. func (m *MonitoredResource) String() string { return proto.CompactTextString(m) }
  140. func (*MonitoredResource) ProtoMessage() {}
  141. func (*MonitoredResource) Descriptor() ([]byte, []int) {
  142. return fileDescriptor_monitored_resource_fb985cf78be5ad98, []int{1}
  143. }
  144. func (m *MonitoredResource) XXX_Unmarshal(b []byte) error {
  145. return xxx_messageInfo_MonitoredResource.Unmarshal(m, b)
  146. }
  147. func (m *MonitoredResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  148. return xxx_messageInfo_MonitoredResource.Marshal(b, m, deterministic)
  149. }
  150. func (dst *MonitoredResource) XXX_Merge(src proto.Message) {
  151. xxx_messageInfo_MonitoredResource.Merge(dst, src)
  152. }
  153. func (m *MonitoredResource) XXX_Size() int {
  154. return xxx_messageInfo_MonitoredResource.Size(m)
  155. }
  156. func (m *MonitoredResource) XXX_DiscardUnknown() {
  157. xxx_messageInfo_MonitoredResource.DiscardUnknown(m)
  158. }
  159. var xxx_messageInfo_MonitoredResource proto.InternalMessageInfo
  160. func (m *MonitoredResource) GetType() string {
  161. if m != nil {
  162. return m.Type
  163. }
  164. return ""
  165. }
  166. func (m *MonitoredResource) GetLabels() map[string]string {
  167. if m != nil {
  168. return m.Labels
  169. }
  170. return nil
  171. }
  172. // Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource]
  173. // object. [MonitoredResource][google.api.MonitoredResource] objects contain the
  174. // minimum set of information to uniquely identify a monitored resource
  175. // instance. There is some other useful auxiliary metadata. Monitoring and
  176. // Logging use an ingestion pipeline to extract metadata for cloud resources of
  177. // all types, and store the metadata in this message.
  178. type MonitoredResourceMetadata struct {
  179. // Output only. Values for predefined system metadata labels.
  180. // System labels are a kind of metadata extracted by Google, including
  181. // "machine_image", "vpc", "subnet_id",
  182. // "security_group", "name", etc.
  183. // System label values can be only strings, Boolean values, or a list of
  184. // strings. For example:
  185. //
  186. // { "name": "my-test-instance",
  187. // "security_group": ["a", "b", "c"],
  188. // "spot_instance": false }
  189. SystemLabels *_struct.Struct `protobuf:"bytes,1,opt,name=system_labels,json=systemLabels,proto3" json:"system_labels,omitempty"`
  190. // Output only. A map of user-defined metadata labels.
  191. UserLabels map[string]string `protobuf:"bytes,2,rep,name=user_labels,json=userLabels,proto3" json:"user_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  192. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  193. XXX_unrecognized []byte `json:"-"`
  194. XXX_sizecache int32 `json:"-"`
  195. }
  196. func (m *MonitoredResourceMetadata) Reset() { *m = MonitoredResourceMetadata{} }
  197. func (m *MonitoredResourceMetadata) String() string { return proto.CompactTextString(m) }
  198. func (*MonitoredResourceMetadata) ProtoMessage() {}
  199. func (*MonitoredResourceMetadata) Descriptor() ([]byte, []int) {
  200. return fileDescriptor_monitored_resource_fb985cf78be5ad98, []int{2}
  201. }
  202. func (m *MonitoredResourceMetadata) XXX_Unmarshal(b []byte) error {
  203. return xxx_messageInfo_MonitoredResourceMetadata.Unmarshal(m, b)
  204. }
  205. func (m *MonitoredResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  206. return xxx_messageInfo_MonitoredResourceMetadata.Marshal(b, m, deterministic)
  207. }
  208. func (dst *MonitoredResourceMetadata) XXX_Merge(src proto.Message) {
  209. xxx_messageInfo_MonitoredResourceMetadata.Merge(dst, src)
  210. }
  211. func (m *MonitoredResourceMetadata) XXX_Size() int {
  212. return xxx_messageInfo_MonitoredResourceMetadata.Size(m)
  213. }
  214. func (m *MonitoredResourceMetadata) XXX_DiscardUnknown() {
  215. xxx_messageInfo_MonitoredResourceMetadata.DiscardUnknown(m)
  216. }
  217. var xxx_messageInfo_MonitoredResourceMetadata proto.InternalMessageInfo
  218. func (m *MonitoredResourceMetadata) GetSystemLabels() *_struct.Struct {
  219. if m != nil {
  220. return m.SystemLabels
  221. }
  222. return nil
  223. }
  224. func (m *MonitoredResourceMetadata) GetUserLabels() map[string]string {
  225. if m != nil {
  226. return m.UserLabels
  227. }
  228. return nil
  229. }
  230. func init() {
  231. proto.RegisterType((*MonitoredResourceDescriptor)(nil), "google.api.MonitoredResourceDescriptor")
  232. proto.RegisterType((*MonitoredResource)(nil), "google.api.MonitoredResource")
  233. proto.RegisterMapType((map[string]string)(nil), "google.api.MonitoredResource.LabelsEntry")
  234. proto.RegisterType((*MonitoredResourceMetadata)(nil), "google.api.MonitoredResourceMetadata")
  235. proto.RegisterMapType((map[string]string)(nil), "google.api.MonitoredResourceMetadata.UserLabelsEntry")
  236. }
  237. func init() {
  238. proto.RegisterFile("google/api/monitored_resource.proto", fileDescriptor_monitored_resource_fb985cf78be5ad98)
  239. }
  240. var fileDescriptor_monitored_resource_fb985cf78be5ad98 = []byte{
  241. // 415 bytes of a gzipped FileDescriptorProto
  242. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4d, 0xab, 0xd3, 0x40,
  243. 0x14, 0x65, 0xd2, 0x0f, 0xf0, 0xa6, 0x7e, 0x0d, 0x52, 0x63, 0xea, 0xa2, 0xd6, 0x4d, 0xdd, 0x24,
  244. 0xd0, 0x22, 0xf8, 0xb9, 0x68, 0x55, 0x44, 0xb0, 0x52, 0x22, 0xba, 0x70, 0x13, 0xa6, 0xc9, 0x18,
  245. 0x82, 0x49, 0x26, 0xcc, 0x4c, 0x84, 0xfc, 0x1d, 0xc1, 0xdf, 0xe1, 0x5f, 0x72, 0xe9, 0x52, 0x32,
  246. 0x33, 0x69, 0xd3, 0x97, 0xc7, 0x83, 0xb7, 0xbb, 0xf7, 0xdc, 0x73, 0xcf, 0x3d, 0x27, 0x43, 0xe0,
  247. 0x71, 0xc2, 0x58, 0x92, 0x51, 0x9f, 0x94, 0xa9, 0x9f, 0xb3, 0x22, 0x95, 0x8c, 0xd3, 0x38, 0xe4,
  248. 0x54, 0xb0, 0x8a, 0x47, 0xd4, 0x2b, 0x39, 0x93, 0x0c, 0x83, 0x26, 0x79, 0xa4, 0x4c, 0xdd, 0x69,
  249. 0x67, 0x21, 0x23, 0x07, 0x9a, 0x69, 0x8e, 0xfb, 0xd0, 0xe0, 0xaa, 0x3b, 0x54, 0xdf, 0x7d, 0x21,
  250. 0x79, 0x15, 0x49, 0x3d, 0x5d, 0xfc, 0x41, 0x30, 0xdb, 0xb5, 0xf2, 0x81, 0x51, 0x7f, 0x4b, 0x45,
  251. 0xc4, 0xd3, 0x52, 0x32, 0x8e, 0x31, 0x0c, 0x0b, 0x92, 0x53, 0x67, 0x34, 0x47, 0xcb, 0x1b, 0x81,
  252. 0xaa, 0x1b, 0x4c, 0xd6, 0x25, 0x75, 0x90, 0xc6, 0x9a, 0x1a, 0x3f, 0x82, 0x49, 0x9c, 0x8a, 0x32,
  253. 0x23, 0x75, 0xa8, 0xf8, 0x96, 0x9a, 0xd9, 0x06, 0xfb, 0xd4, 0xac, 0xcd, 0xc1, 0x8e, 0x8d, 0x70,
  254. 0xca, 0x0a, 0x67, 0x60, 0x18, 0x27, 0x08, 0xaf, 0x61, 0xac, 0x9c, 0x0b, 0x67, 0x38, 0x1f, 0x2c,
  255. 0xed, 0xd5, 0xcc, 0x3b, 0xe5, 0xf3, 0x3e, 0x36, 0x93, 0x93, 0xb3, 0xc0, 0x50, 0x17, 0xbf, 0x11,
  256. 0xdc, 0xed, 0x25, 0xb8, 0xd4, 0xe3, 0xe6, 0x28, 0x6f, 0x29, 0xf9, 0x27, 0x5d, 0xf9, 0x9e, 0x84,
  257. 0x3e, 0x28, 0xde, 0x15, 0x92, 0xd7, 0xed, 0x31, 0xf7, 0x39, 0xd8, 0x1d, 0x18, 0xdf, 0x81, 0xc1,
  258. 0x0f, 0x5a, 0x9b, 0x23, 0x4d, 0x89, 0xef, 0xc1, 0xe8, 0x27, 0xc9, 0xaa, 0xf6, 0x03, 0xe8, 0xe6,
  259. 0x85, 0xf5, 0x0c, 0x2d, 0xfe, 0x22, 0x78, 0xd0, 0x3b, 0xb2, 0xa3, 0x92, 0xc4, 0x44, 0x12, 0xfc,
  260. 0x0a, 0x6e, 0x8a, 0x5a, 0x48, 0x9a, 0x87, 0xc6, 0x62, 0xa3, 0x69, 0xaf, 0xee, 0xb7, 0x16, 0xdb,
  261. 0xd7, 0xf3, 0x3e, 0xab, 0xd7, 0x0b, 0x26, 0x9a, 0xad, 0xcd, 0xe0, 0xaf, 0x60, 0x57, 0x82, 0xf2,
  262. 0xf0, 0x2c, 0xde, 0xd3, 0x2b, 0xe3, 0xb5, 0x97, 0xbd, 0x2f, 0x82, 0xf2, 0x6e, 0x54, 0xa8, 0x8e,
  263. 0x80, 0xfb, 0x1a, 0x6e, 0x5f, 0x18, 0x5f, 0x27, 0xf2, 0xb6, 0x86, 0x5b, 0x11, 0xcb, 0x3b, 0x36,
  264. 0xb6, 0xd3, 0x9e, 0x8f, 0x7d, 0x13, 0x6c, 0x8f, 0xbe, 0xbd, 0x31, 0xac, 0x84, 0x65, 0xa4, 0x48,
  265. 0x3c, 0xc6, 0x13, 0x3f, 0xa1, 0x85, 0x8a, 0xed, 0xeb, 0x11, 0x29, 0x53, 0x71, 0xfe, 0x3b, 0x70,
  266. 0x2a, 0x5e, 0x76, 0x9b, 0x7f, 0x08, 0xfd, 0xb2, 0x86, 0xef, 0x37, 0xfb, 0x0f, 0x87, 0xb1, 0xda,
  267. 0x5c, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x10, 0x16, 0x7c, 0xe9, 0x47, 0x03, 0x00, 0x00,
  268. }