1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/monitored_resource.proto
3
4package monitoredres
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	_struct "github.com/golang/protobuf/ptypes/struct"
12	api "google.golang.org/genproto/googleapis/api"
13	label "google.golang.org/genproto/googleapis/api/label"
14)
15
16// Reference imports to suppress errors if they are not otherwise used.
17var _ = proto.Marshal
18var _ = fmt.Errorf
19var _ = math.Inf
20
21// This is a compile-time assertion to ensure that this generated file
22// is compatible with the proto package it is being compiled against.
23// A compilation error at this line likely means your copy of the
24// proto package needs to be updated.
25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
26
27// An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
28// type name and a set of labels.  For example, the monitored resource
29// descriptor for Google Compute Engine VM instances has a type of
30// `"gce_instance"` and specifies the use of the labels `"instance_id"` and
31// `"zone"` to identify particular VM instances.
32//
33// Different APIs can support different monitored resource types. APIs generally
34// provide a `list` method that returns the monitored resource descriptors used
35// by the API.
36type MonitoredResourceDescriptor struct {
37	// Optional. The resource name of the monitored resource descriptor:
38	// `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
39	// {type} is the value of the `type` field in this object and
40	// {project_id} is a project ID that provides API-specific context for
41	// accessing the type.  APIs that do not use project information can use the
42	// resource name format `"monitoredResourceDescriptors/{type}"`.
43	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
44	// Required. The monitored resource type. For example, the type
45	// `"cloudsql_database"` represents databases in Google Cloud SQL.
46	// The maximum length of this value is 256 characters.
47	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
48	// Optional. A concise name for the monitored resource type that might be
49	// displayed in user interfaces. It should be a Title Cased Noun Phrase,
50	// without any article or other determiners. For example,
51	// `"Google Cloud SQL Database"`.
52	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
53	// Optional. A detailed description of the monitored resource type that might
54	// be used in documentation.
55	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
56	// Required. A set of labels used to describe instances of this monitored
57	// resource type. For example, an individual Google Cloud SQL database is
58	// identified by values for the labels `"database_id"` and `"zone"`.
59	Labels []*label.LabelDescriptor `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"`
60	// Optional. The launch stage of the monitored resource definition.
61	LaunchStage          api.LaunchStage `protobuf:"varint,7,opt,name=launch_stage,json=launchStage,proto3,enum=google.api.LaunchStage" json:"launch_stage,omitempty"`
62	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
63	XXX_unrecognized     []byte          `json:"-"`
64	XXX_sizecache        int32           `json:"-"`
65}
66
67func (m *MonitoredResourceDescriptor) Reset()         { *m = MonitoredResourceDescriptor{} }
68func (m *MonitoredResourceDescriptor) String() string { return proto.CompactTextString(m) }
69func (*MonitoredResourceDescriptor) ProtoMessage()    {}
70func (*MonitoredResourceDescriptor) Descriptor() ([]byte, []int) {
71	return fileDescriptor_6cd8bd738b08f2bf, []int{0}
72}
73
74func (m *MonitoredResourceDescriptor) XXX_Unmarshal(b []byte) error {
75	return xxx_messageInfo_MonitoredResourceDescriptor.Unmarshal(m, b)
76}
77func (m *MonitoredResourceDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
78	return xxx_messageInfo_MonitoredResourceDescriptor.Marshal(b, m, deterministic)
79}
80func (m *MonitoredResourceDescriptor) XXX_Merge(src proto.Message) {
81	xxx_messageInfo_MonitoredResourceDescriptor.Merge(m, src)
82}
83func (m *MonitoredResourceDescriptor) XXX_Size() int {
84	return xxx_messageInfo_MonitoredResourceDescriptor.Size(m)
85}
86func (m *MonitoredResourceDescriptor) XXX_DiscardUnknown() {
87	xxx_messageInfo_MonitoredResourceDescriptor.DiscardUnknown(m)
88}
89
90var xxx_messageInfo_MonitoredResourceDescriptor proto.InternalMessageInfo
91
92func (m *MonitoredResourceDescriptor) GetName() string {
93	if m != nil {
94		return m.Name
95	}
96	return ""
97}
98
99func (m *MonitoredResourceDescriptor) GetType() string {
100	if m != nil {
101		return m.Type
102	}
103	return ""
104}
105
106func (m *MonitoredResourceDescriptor) GetDisplayName() string {
107	if m != nil {
108		return m.DisplayName
109	}
110	return ""
111}
112
113func (m *MonitoredResourceDescriptor) GetDescription() string {
114	if m != nil {
115		return m.Description
116	}
117	return ""
118}
119
120func (m *MonitoredResourceDescriptor) GetLabels() []*label.LabelDescriptor {
121	if m != nil {
122		return m.Labels
123	}
124	return nil
125}
126
127func (m *MonitoredResourceDescriptor) GetLaunchStage() api.LaunchStage {
128	if m != nil {
129		return m.LaunchStage
130	}
131	return api.LaunchStage_LAUNCH_STAGE_UNSPECIFIED
132}
133
134// An object representing a resource that can be used for monitoring, logging,
135// billing, or other purposes. Examples include virtual machine instances,
136// databases, and storage devices such as disks. The `type` field identifies a
137// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object that describes the resource's
138// schema. Information in the `labels` field identifies the actual resource and
139// its attributes according to the schema. For example, a particular Compute
140// Engine VM instance could be represented by the following object, because the
141// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for `"gce_instance"` has labels
142// `"instance_id"` and `"zone"`:
143//
144//     { "type": "gce_instance",
145//       "labels": { "instance_id": "12345678901234",
146//                   "zone": "us-central1-a" }}
147type MonitoredResource struct {
148	// Required. The monitored resource type. This field must match
149	// the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
150	// example, the type of a Compute Engine VM instance is `gce_instance`.
151	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
152	// Required. Values for all of the labels listed in the associated monitored
153	// resource descriptor. For example, Compute Engine VM instances use the
154	// labels `"project_id"`, `"instance_id"`, and `"zone"`.
155	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"`
156	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
157	XXX_unrecognized     []byte            `json:"-"`
158	XXX_sizecache        int32             `json:"-"`
159}
160
161func (m *MonitoredResource) Reset()         { *m = MonitoredResource{} }
162func (m *MonitoredResource) String() string { return proto.CompactTextString(m) }
163func (*MonitoredResource) ProtoMessage()    {}
164func (*MonitoredResource) Descriptor() ([]byte, []int) {
165	return fileDescriptor_6cd8bd738b08f2bf, []int{1}
166}
167
168func (m *MonitoredResource) XXX_Unmarshal(b []byte) error {
169	return xxx_messageInfo_MonitoredResource.Unmarshal(m, b)
170}
171func (m *MonitoredResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
172	return xxx_messageInfo_MonitoredResource.Marshal(b, m, deterministic)
173}
174func (m *MonitoredResource) XXX_Merge(src proto.Message) {
175	xxx_messageInfo_MonitoredResource.Merge(m, src)
176}
177func (m *MonitoredResource) XXX_Size() int {
178	return xxx_messageInfo_MonitoredResource.Size(m)
179}
180func (m *MonitoredResource) XXX_DiscardUnknown() {
181	xxx_messageInfo_MonitoredResource.DiscardUnknown(m)
182}
183
184var xxx_messageInfo_MonitoredResource proto.InternalMessageInfo
185
186func (m *MonitoredResource) GetType() string {
187	if m != nil {
188		return m.Type
189	}
190	return ""
191}
192
193func (m *MonitoredResource) GetLabels() map[string]string {
194	if m != nil {
195		return m.Labels
196	}
197	return nil
198}
199
200// Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object.
201// [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to
202// uniquely identify a monitored resource instance. There is some other useful
203// auxiliary metadata. Monitoring and Logging use an ingestion
204// pipeline to extract metadata for cloud resources of all types, and store
205// the metadata in this message.
206type MonitoredResourceMetadata struct {
207	// Output only. Values for predefined system metadata labels.
208	// System labels are a kind of metadata extracted by Google, including
209	// "machine_image", "vpc", "subnet_id",
210	// "security_group", "name", etc.
211	// System label values can be only strings, Boolean values, or a list of
212	// strings. For example:
213	//
214	//     { "name": "my-test-instance",
215	//       "security_group": ["a", "b", "c"],
216	//       "spot_instance": false }
217	SystemLabels *_struct.Struct `protobuf:"bytes,1,opt,name=system_labels,json=systemLabels,proto3" json:"system_labels,omitempty"`
218	// Output only. A map of user-defined metadata labels.
219	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"`
220	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
221	XXX_unrecognized     []byte            `json:"-"`
222	XXX_sizecache        int32             `json:"-"`
223}
224
225func (m *MonitoredResourceMetadata) Reset()         { *m = MonitoredResourceMetadata{} }
226func (m *MonitoredResourceMetadata) String() string { return proto.CompactTextString(m) }
227func (*MonitoredResourceMetadata) ProtoMessage()    {}
228func (*MonitoredResourceMetadata) Descriptor() ([]byte, []int) {
229	return fileDescriptor_6cd8bd738b08f2bf, []int{2}
230}
231
232func (m *MonitoredResourceMetadata) XXX_Unmarshal(b []byte) error {
233	return xxx_messageInfo_MonitoredResourceMetadata.Unmarshal(m, b)
234}
235func (m *MonitoredResourceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
236	return xxx_messageInfo_MonitoredResourceMetadata.Marshal(b, m, deterministic)
237}
238func (m *MonitoredResourceMetadata) XXX_Merge(src proto.Message) {
239	xxx_messageInfo_MonitoredResourceMetadata.Merge(m, src)
240}
241func (m *MonitoredResourceMetadata) XXX_Size() int {
242	return xxx_messageInfo_MonitoredResourceMetadata.Size(m)
243}
244func (m *MonitoredResourceMetadata) XXX_DiscardUnknown() {
245	xxx_messageInfo_MonitoredResourceMetadata.DiscardUnknown(m)
246}
247
248var xxx_messageInfo_MonitoredResourceMetadata proto.InternalMessageInfo
249
250func (m *MonitoredResourceMetadata) GetSystemLabels() *_struct.Struct {
251	if m != nil {
252		return m.SystemLabels
253	}
254	return nil
255}
256
257func (m *MonitoredResourceMetadata) GetUserLabels() map[string]string {
258	if m != nil {
259		return m.UserLabels
260	}
261	return nil
262}
263
264func init() {
265	proto.RegisterType((*MonitoredResourceDescriptor)(nil), "google.api.MonitoredResourceDescriptor")
266	proto.RegisterType((*MonitoredResource)(nil), "google.api.MonitoredResource")
267	proto.RegisterMapType((map[string]string)(nil), "google.api.MonitoredResource.LabelsEntry")
268	proto.RegisterType((*MonitoredResourceMetadata)(nil), "google.api.MonitoredResourceMetadata")
269	proto.RegisterMapType((map[string]string)(nil), "google.api.MonitoredResourceMetadata.UserLabelsEntry")
270}
271
272func init() {
273	proto.RegisterFile("google/api/monitored_resource.proto", fileDescriptor_6cd8bd738b08f2bf)
274}
275
276var fileDescriptor_6cd8bd738b08f2bf = []byte{
277	// 448 bytes of a gzipped FileDescriptorProto
278	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4d, 0x8b, 0xd4, 0x40,
279	0x10, 0xa5, 0x67, 0x66, 0x57, 0xac, 0x8c, 0xab, 0x36, 0xb2, 0xc6, 0xac, 0x42, 0x1c, 0x2f, 0xe3,
280	0x25, 0x81, 0x5d, 0x04, 0x5d, 0xf5, 0xb0, 0xab, 0x22, 0x82, 0x2b, 0x43, 0x16, 0x3d, 0x78, 0x09,
281	0x3d, 0x49, 0x1b, 0x83, 0x49, 0x3a, 0x74, 0x77, 0x84, 0xfc, 0x1d, 0xc1, 0xff, 0xe7, 0x51, 0xf0,
282	0x22, 0xfd, 0x91, 0x49, 0x62, 0x44, 0xf0, 0x56, 0xf5, 0xde, 0xab, 0xaa, 0xf7, 0xd2, 0x04, 0x1e,
283	0x64, 0x8c, 0x65, 0x05, 0x0d, 0x49, 0x9d, 0x87, 0x25, 0xab, 0x72, 0xc9, 0x38, 0x4d, 0x63, 0x4e,
284	0x05, 0x6b, 0x78, 0x42, 0x83, 0x9a, 0x33, 0xc9, 0x30, 0x18, 0x51, 0x40, 0xea, 0xdc, 0x3b, 0x1c,
285	0x0c, 0x14, 0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