Show / Hide Table of Contents

Class MonitoredResourceDescriptor

An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of "gce_instance" and specifies the use of the labels "instance_id" and "zone" to identify particular VM instances.

Different APIs can support different monitored resource types. APIs generally provide a list method that returns the monitored resource descriptors used by the API.

Inheritance
System.Object
MonitoredResourceDescriptor
Implements
IMessage<MonitoredResourceDescriptor>
IMessage
System.IEquatable<MonitoredResourceDescriptor>
IDeepCloneable<MonitoredResourceDescriptor>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class MonitoredResourceDescriptor : IMessage<MonitoredResourceDescriptor>, IMessage, IEquatable<MonitoredResourceDescriptor>, IDeepCloneable<MonitoredResourceDescriptor>

Constructors

MonitoredResourceDescriptor()

Declaration
public MonitoredResourceDescriptor()

MonitoredResourceDescriptor(MonitoredResourceDescriptor)

Declaration
public MonitoredResourceDescriptor(MonitoredResourceDescriptor other)
Parameters
Type Name Description
MonitoredResourceDescriptor other

Fields

DescriptionFieldNumber

Field number for the "description" field.

Declaration
public const int DescriptionFieldNumber = 3
Field Value
Type Description
System.Int32

DisplayNameFieldNumber

Field number for the "display_name" field.

Declaration
public const int DisplayNameFieldNumber = 2
Field Value
Type Description
System.Int32

LabelsFieldNumber

Field number for the "labels" field.

Declaration
public const int LabelsFieldNumber = 4
Field Value
Type Description
System.Int32

LaunchStageFieldNumber

Field number for the "launch_stage" field.

Declaration
public const int LaunchStageFieldNumber = 7
Field Value
Type Description
System.Int32

NameFieldNumber

Field number for the "name" field.

Declaration
public const int NameFieldNumber = 5
Field Value
Type Description
System.Int32

TypeFieldNumber

Field number for the "type" field.

Declaration
public const int TypeFieldNumber = 1
Field Value
Type Description
System.Int32

Properties

Description

Optional. A detailed description of the monitored resource type that might be used in documentation.

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

DisplayName

Optional. A concise name for the monitored resource type that might be displayed in user interfaces. It should be a Title Cased Noun Phrase, without any article or other determiners. For example, &quot;Google Cloud SQL Database&quot;.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
System.String

Labels

Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels &quot;database_id&quot; and &quot;zone&quot;.

Declaration
public RepeatedField<LabelDescriptor> Labels { get; }
Property Value
Type Description
RepeatedField<LabelDescriptor>

LaunchStage

Optional. The launch stage of the monitored resource definition.

Declaration
public LaunchStage LaunchStage { get; set; }
Property Value
Type Description
LaunchStage

Name

Optional. The resource name of the monitored resource descriptor: &quot;projects/{project_id}/monitoredResourceDescriptors/{type}&quot; where {type} is the value of the type field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format &quot;monitoredResourceDescriptors/{type}&quot;.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

Parser

Declaration
public static MessageParser<MonitoredResourceDescriptor> Parser { get; }
Property Value
Type Description
MessageParser<MonitoredResourceDescriptor>

Type

Required. The monitored resource type. For example, the type &quot;cloudsql_database&quot; represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.

Declaration
public string Type { get; set; }
Property Value
Type Description
System.String

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public MonitoredResourceDescriptor Clone()
Returns
Type Description
MonitoredResourceDescriptor
Implements
IDeepCloneable<T>.Clone()

Equals(MonitoredResourceDescriptor)

Declaration
public bool Equals(MonitoredResourceDescriptor other)
Parameters
Type Name Description
MonitoredResourceDescriptor other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(MonitoredResourceDescriptor)

Declaration
public void MergeFrom(MonitoredResourceDescriptor other)
Parameters
Type Name Description
MonitoredResourceDescriptor other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top