1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/monitored_resource.proto
5 Package monitoredres is a generated protocol buffer package.
7 It is generated from these files:
8 google/api/monitored_resource.proto
10 It has these top-level messages:
11 MonitoredResourceDescriptor
16 import proto "github.com/golang/protobuf/proto"
19 import google_api "google.golang.org/genproto/googleapis/api/label"
21 // Reference imports to suppress errors if they are not otherwise used.
26 // This is a compile-time assertion to ensure that this generated file
27 // is compatible with the proto package it is being compiled against.
28 // A compilation error at this line likely means your copy of the
29 // proto package needs to be updated.
30 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
32 // An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
33 // type name and a set of labels. For example, the monitored resource
34 // descriptor for Google Compute Engine VM instances has a type of
35 // `"gce_instance"` and specifies the use of the labels `"instance_id"` and
36 // `"zone"` to identify particular VM instances.
38 // Different APIs can support different monitored resource types. APIs generally
39 // provide a `list` method that returns the monitored resource descriptors used
41 type MonitoredResourceDescriptor struct {
42 // Optional. The resource name of the monitored resource descriptor:
43 // `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
44 // {type} is the value of the `type` field in this object and
45 // {project_id} is a project ID that provides API-specific context for
46 // accessing the type. APIs that do not use project information can use the
47 // resource name format `"monitoredResourceDescriptors/{type}"`.
48 Name string `protobuf:"bytes,5,opt,name=name" json:"name,omitempty"`
49 // Required. The monitored resource type. For example, the type
50 // `"cloudsql_database"` represents databases in Google Cloud SQL.
51 // The maximum length of this value is 256 characters.
52 Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
53 // Optional. A concise name for the monitored resource type that might be
54 // displayed in user interfaces. It should be a Title Cased Noun Phrase,
55 // without any article or other determiners. For example,
56 // `"Google Cloud SQL Database"`.
57 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
58 // Optional. A detailed description of the monitored resource type that might
59 // be used in documentation.
60 Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
61 // Required. A set of labels used to describe instances of this monitored
62 // resource type. For example, an individual Google Cloud SQL database is
63 // identified by values for the labels `"database_id"` and `"zone"`.
64 Labels []*google_api.LabelDescriptor `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty"`
67 func (m *MonitoredResourceDescriptor) Reset() { *m = MonitoredResourceDescriptor{} }
68 func (m *MonitoredResourceDescriptor) String() string { return proto.CompactTextString(m) }
69 func (*MonitoredResourceDescriptor) ProtoMessage() {}
70 func (*MonitoredResourceDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
72 func (m *MonitoredResourceDescriptor) GetName() string {
79 func (m *MonitoredResourceDescriptor) GetType() string {
86 func (m *MonitoredResourceDescriptor) GetDisplayName() string {
93 func (m *MonitoredResourceDescriptor) GetDescription() string {
100 func (m *MonitoredResourceDescriptor) GetLabels() []*google_api.LabelDescriptor {
107 // An object representing a resource that can be used for monitoring, logging,
108 // billing, or other purposes. Examples include virtual machine instances,
109 // databases, and storage devices such as disks. The `type` field identifies a
110 // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object that describes the resource's
111 // schema. Information in the `labels` field identifies the actual resource and
112 // its attributes according to the schema. For example, a particular Compute
113 // Engine VM instance could be represented by the following object, because the
114 // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for `"gce_instance"` has labels
115 // `"instance_id"` and `"zone"`:
117 // { "type": "gce_instance",
118 // "labels": { "instance_id": "12345678901234",
119 // "zone": "us-central1-a" }}
120 type MonitoredResource struct {
121 // Required. The monitored resource type. This field must match
122 // the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
123 // example, the type of a Cloud SQL database is `"cloudsql_database"`.
124 Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
125 // Required. Values for all of the labels listed in the associated monitored
126 // resource descriptor. For example, Cloud SQL databases use the labels
127 // `"database_id"` and `"zone"`.
128 Labels map[string]string `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
131 func (m *MonitoredResource) Reset() { *m = MonitoredResource{} }
132 func (m *MonitoredResource) String() string { return proto.CompactTextString(m) }
133 func (*MonitoredResource) ProtoMessage() {}
134 func (*MonitoredResource) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
136 func (m *MonitoredResource) GetType() string {
143 func (m *MonitoredResource) GetLabels() map[string]string {
151 proto.RegisterType((*MonitoredResourceDescriptor)(nil), "google.api.MonitoredResourceDescriptor")
152 proto.RegisterType((*MonitoredResource)(nil), "google.api.MonitoredResource")
155 func init() { proto.RegisterFile("google/api/monitored_resource.proto", fileDescriptor0) }
157 var fileDescriptor0 = []byte{
158 // 321 bytes of a gzipped FileDescriptorProto
159 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x51, 0x4b, 0x4b, 0x3b, 0x31,
160 0x10, 0x27, 0xdb, 0x07, 0xfc, 0x67, 0xff, 0x88, 0x06, 0x29, 0x4b, 0x7b, 0xa9, 0xf5, 0x52, 0x2f,
161 0xbb, 0x60, 0x2f, 0x3e, 0x4e, 0xad, 0x8a, 0x08, 0x2a, 0xa5, 0x47, 0x2f, 0x25, 0x6d, 0xc3, 0x12,
162 0xdc, 0x66, 0x42, 0xb2, 0x15, 0xf6, 0xeb, 0x08, 0x7e, 0x0e, 0xbf, 0x96, 0x47, 0xc9, 0xa3, 0x76,
163 0xa5, 0xde, 0x26, 0xbf, 0xf9, 0x3d, 0x66, 0x32, 0x70, 0x9a, 0x23, 0xe6, 0x05, 0xcf, 0x98, 0x12,
164 0xd9, 0x1a, 0xa5, 0x28, 0x51, 0xf3, 0xd5, 0x5c, 0x73, 0x83, 0x1b, 0xbd, 0xe4, 0xa9, 0xd2, 0x58,
165 0x22, 0x05, 0x4f, 0x4a, 0x99, 0x12, 0xdd, 0x4e, 0x4d, 0x50, 0xb0, 0x05, 0x2f, 0x3c, 0x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