public static final class MonitoredResourceDescriptor.Builder extends GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder> implements MonitoredResourceDescriptorOrBuilder
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.Protobuf type
google.api.MonitoredResourceDescriptor
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public MonitoredResourceDescriptor build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public MonitoredResourceDescriptor buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public MonitoredResourceDescriptor.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder mergeFrom(MonitoredResourceDescriptor other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public MonitoredResourceDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<MonitoredResourceDescriptor.Builder>
java.io.IOException
public java.lang.String getName()
Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` 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 `"monitoredResourceDescriptors/{type}"`.
string name = 5;
getName
in interface MonitoredResourceDescriptorOrBuilder
public ByteString getNameBytes()
Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` 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 `"monitoredResourceDescriptors/{type}"`.
string name = 5;
getNameBytes
in interface MonitoredResourceDescriptorOrBuilder
public MonitoredResourceDescriptor.Builder setName(java.lang.String value)
Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` 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 `"monitoredResourceDescriptors/{type}"`.
string name = 5;
public MonitoredResourceDescriptor.Builder clearName()
Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` 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 `"monitoredResourceDescriptors/{type}"`.
string name = 5;
public MonitoredResourceDescriptor.Builder setNameBytes(ByteString value)
Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` 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 `"monitoredResourceDescriptors/{type}"`.
string name = 5;
public java.lang.String getType()
Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.
string type = 1;
getType
in interface MonitoredResourceDescriptorOrBuilder
public ByteString getTypeBytes()
Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.
string type = 1;
getTypeBytes
in interface MonitoredResourceDescriptorOrBuilder
public MonitoredResourceDescriptor.Builder setType(java.lang.String value)
Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.
string type = 1;
public MonitoredResourceDescriptor.Builder clearType()
Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.
string type = 1;
public MonitoredResourceDescriptor.Builder setTypeBytes(ByteString value)
Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.
string type = 1;
public java.lang.String getDisplayName()
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, `"Google Cloud SQL Database"`.
string display_name = 2;
getDisplayName
in interface MonitoredResourceDescriptorOrBuilder
public ByteString getDisplayNameBytes()
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, `"Google Cloud SQL Database"`.
string display_name = 2;
getDisplayNameBytes
in interface MonitoredResourceDescriptorOrBuilder
public MonitoredResourceDescriptor.Builder setDisplayName(java.lang.String value)
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, `"Google Cloud SQL Database"`.
string display_name = 2;
public MonitoredResourceDescriptor.Builder clearDisplayName()
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, `"Google Cloud SQL Database"`.
string display_name = 2;
public MonitoredResourceDescriptor.Builder setDisplayNameBytes(ByteString value)
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, `"Google Cloud SQL Database"`.
string display_name = 2;
public java.lang.String getDescription()
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
getDescription
in interface MonitoredResourceDescriptorOrBuilder
public ByteString getDescriptionBytes()
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
getDescriptionBytes
in interface MonitoredResourceDescriptorOrBuilder
public MonitoredResourceDescriptor.Builder setDescription(java.lang.String value)
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
public MonitoredResourceDescriptor.Builder clearDescription()
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
public MonitoredResourceDescriptor.Builder setDescriptionBytes(ByteString value)
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
public java.util.List<LabelDescriptor> getLabelsList()
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
getLabelsList
in interface MonitoredResourceDescriptorOrBuilder
public int getLabelsCount()
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
getLabelsCount
in interface MonitoredResourceDescriptorOrBuilder
public LabelDescriptor getLabels(int index)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
getLabels
in interface MonitoredResourceDescriptorOrBuilder
public MonitoredResourceDescriptor.Builder setLabels(int index, LabelDescriptor value)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public MonitoredResourceDescriptor.Builder setLabels(int index, LabelDescriptor.Builder builderForValue)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public MonitoredResourceDescriptor.Builder addLabels(LabelDescriptor value)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public MonitoredResourceDescriptor.Builder addLabels(int index, LabelDescriptor value)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public MonitoredResourceDescriptor.Builder addLabels(LabelDescriptor.Builder builderForValue)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public MonitoredResourceDescriptor.Builder addLabels(int index, LabelDescriptor.Builder builderForValue)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public MonitoredResourceDescriptor.Builder addAllLabels(java.lang.Iterable<? extends LabelDescriptor> values)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public MonitoredResourceDescriptor.Builder clearLabels()
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public MonitoredResourceDescriptor.Builder removeLabels(int index)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public LabelDescriptor.Builder getLabelsBuilder(int index)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public LabelDescriptorOrBuilder getLabelsOrBuilder(int index)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
getLabelsOrBuilder
in interface MonitoredResourceDescriptorOrBuilder
public java.util.List<? extends LabelDescriptorOrBuilder> getLabelsOrBuilderList()
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
getLabelsOrBuilderList
in interface MonitoredResourceDescriptorOrBuilder
public LabelDescriptor.Builder addLabelsBuilder()
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public LabelDescriptor.Builder addLabelsBuilder(int index)
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public java.util.List<LabelDescriptor.Builder> getLabelsBuilderList()
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 `"database_id"` and `"zone"`.
repeated .google.api.LabelDescriptor labels = 4;
public int getLaunchStageValue()
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
getLaunchStageValue
in interface MonitoredResourceDescriptorOrBuilder
public MonitoredResourceDescriptor.Builder setLaunchStageValue(int value)
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
public LaunchStage getLaunchStage()
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
getLaunchStage
in interface MonitoredResourceDescriptorOrBuilder
public MonitoredResourceDescriptor.Builder setLaunchStage(LaunchStage value)
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
public MonitoredResourceDescriptor.Builder clearLaunchStage()
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
public final MonitoredResourceDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>
public final MonitoredResourceDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>