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.MonitoredResourceDescriptorgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic MonitoredResourceDescriptor build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic MonitoredResourceDescriptor buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic MonitoredResourceDescriptor.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder mergeFrom(MonitoredResourceDescriptor other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public MonitoredResourceDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<MonitoredResourceDescriptor.Builder>java.io.IOExceptionpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic ByteString getDescriptionBytes()
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;getDescriptionBytes in interface MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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 MonitoredResourceDescriptorOrBuilderpublic 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.BuildersetUnknownFields in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>public final MonitoredResourceDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder>