| // Code generated by protoc-gen-go. |
| // source: google/api/monitored_resource.proto |
| // DO NOT EDIT! |
| |
| package api |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // A descriptor that describes the schema of [MonitoredResource][google.api.MonitoredResource]. |
| type MonitoredResourceDescriptor struct { |
| // The monitored resource type. For example, the type `"cloudsql_database"` |
| // represents databases in Google Cloud SQL. |
| Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` |
| // A concise name for the monitored resource type that can be displayed in |
| // user interfaces. For example, `"Google Cloud SQL Database"`. |
| DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"` |
| // A detailed description of the monitored resource type that can be used in |
| // documentation. |
| Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` |
| // A set of labels that can be used to describe instances of this monitored |
| // resource type. For example, Google Cloud SQL databases can be labeled with |
| // their `"database_id"` and their `"zone"`. |
| Labels []*LabelDescriptor `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty"` |
| } |
| |
| func (m *MonitoredResourceDescriptor) Reset() { *m = MonitoredResourceDescriptor{} } |
| func (m *MonitoredResourceDescriptor) String() string { return proto.CompactTextString(m) } |
| func (*MonitoredResourceDescriptor) ProtoMessage() {} |
| func (*MonitoredResourceDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} } |
| |
| func (m *MonitoredResourceDescriptor) GetLabels() []*LabelDescriptor { |
| if m != nil { |
| return m.Labels |
| } |
| return nil |
| } |
| |
| // A monitored resource describes a resource that can be used for monitoring |
| // purpose. It can also be used for logging, billing, and other purposes. Each |
| // resource has a `type` and a set of `labels`. The labels contain information |
| // that identifies the resource and describes attributes of it. For example, |
| // you can use monitored resource to describe a normal file, where the resource |
| // has `type` as `"file"`, the label `path` identifies the file, and the label |
| // `size` describes the file size. The monitoring system can use a set of |
| // monitored resources of files to generate file size distribution. |
| type MonitoredResource struct { |
| // The monitored resource type. This field must match the corresponding |
| // [MonitoredResourceDescriptor.type][google.api.MonitoredResourceDescriptor.type] to this resource.. For example, |
| // `"cloudsql_database"` represents Cloud SQL databases. |
| Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` |
| // Values for some or all of the labels listed in the associated monitored |
| // resource descriptor. For example, you specify a specific Cloud SQL database |
| // by supplying values for both the `"database_id"` and `"zone"` labels. |
| 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"` |
| } |
| |
| func (m *MonitoredResource) Reset() { *m = MonitoredResource{} } |
| func (m *MonitoredResource) String() string { return proto.CompactTextString(m) } |
| func (*MonitoredResource) ProtoMessage() {} |
| func (*MonitoredResource) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} } |
| |
| func (m *MonitoredResource) GetLabels() map[string]string { |
| if m != nil { |
| return m.Labels |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*MonitoredResourceDescriptor)(nil), "google.api.MonitoredResourceDescriptor") |
| proto.RegisterType((*MonitoredResource)(nil), "google.api.MonitoredResource") |
| } |
| |
| var fileDescriptor3 = []byte{ |
| // 300 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x51, 0xcf, 0x4b, 0xfb, 0x30, |
| 0x14, 0x27, 0xeb, 0xbe, 0x83, 0xef, 0xab, 0x88, 0x06, 0x19, 0x65, 0xbb, 0xd4, 0x79, 0xd9, 0x0e, |
| 0x6b, 0xc1, 0x5d, 0xd4, 0x9b, 0x43, 0x6f, 0x2a, 0xa3, 0xe0, 0xc5, 0xcb, 0xe8, 0x8f, 0x50, 0x83, |
| 0x69, 0x53, 0x92, 0x54, 0xe8, 0x1f, 0xe4, 0xc9, 0x7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