public static final class MonitoredResourceDescriptor.Builder extends GeneratedMessageV3.Builder<MonitoredResourceDescriptor.Builder> implements MonitoredResourceDescriptorOrBuilder
An object that describes the schema of a 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MonitoredResourceDescriptor.BuilderImplements
MonitoredResourceDescriptorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllLabels(Iterable<? extends LabelDescriptor> values)
public MonitoredResourceDescriptor.Builder addAllLabels(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;
Name | Description |
values | Iterable<? extends com.google.api.LabelDescriptor> |
Type | Description |
MonitoredResourceDescriptor.Builder |
addLabels(LabelDescriptor value)
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;
Name | Description |
value | LabelDescriptor |
Type | Description |
MonitoredResourceDescriptor.Builder |
addLabels(LabelDescriptor.Builder builderForValue)
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;
Name | Description |
builderForValue | LabelDescriptor.Builder |
Type | Description |
MonitoredResourceDescriptor.Builder |
addLabels(int index, LabelDescriptor value)
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;
Name | Description |
index | int |
value | LabelDescriptor |
Type | Description |
MonitoredResourceDescriptor.Builder |
addLabels(int index, LabelDescriptor.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | LabelDescriptor.Builder |
Type | Description |
MonitoredResourceDescriptor.Builder |
addLabelsBuilder()
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;
Type | Description |
LabelDescriptor.Builder |
addLabelsBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
LabelDescriptor.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MonitoredResourceDescriptor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MonitoredResourceDescriptor.Builder |
build()
public MonitoredResourceDescriptor build()
Type | Description |
MonitoredResourceDescriptor |
buildPartial()
public MonitoredResourceDescriptor buildPartial()
Type | Description |
MonitoredResourceDescriptor |
clear()
public MonitoredResourceDescriptor.Builder clear()
Type | Description |
MonitoredResourceDescriptor.Builder |
clearDescription()
public MonitoredResourceDescriptor.Builder clearDescription()
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
clearDisplayName()
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;
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public MonitoredResourceDescriptor.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
MonitoredResourceDescriptor.Builder |
clearLabels()
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;
Type | Description |
MonitoredResourceDescriptor.Builder |
clearLaunchStage()
public MonitoredResourceDescriptor.Builder clearLaunchStage()
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
clearName()
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;
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MonitoredResourceDescriptor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
MonitoredResourceDescriptor.Builder |
clearType()
public MonitoredResourceDescriptor.Builder clearType()
Required. The monitored resource type. For example, the type
"cloudsql_database"
represents databases in Google Cloud SQL.
string type = 1;
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
clone()
public MonitoredResourceDescriptor.Builder clone()
Type | Description |
MonitoredResourceDescriptor.Builder |
getDefaultInstanceForType()
public MonitoredResourceDescriptor getDefaultInstanceForType()
Type | Description |
MonitoredResourceDescriptor |
getDescription()
public String getDescription()
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public 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;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
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;
Type | Description |
ByteString | The bytes for displayName. |
getLabels(int index)
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;
Name | Description |
index | int |
Type | Description |
LabelDescriptor |
getLabelsBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
LabelDescriptor.Builder |
getLabelsBuilderList()
public 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;
Type | Description |
List<Builder> |
getLabelsCount()
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;
Type | Description |
int |
getLabelsList()
public 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;
Type | Description |
List<LabelDescriptor> |
getLabelsOrBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
LabelDescriptorOrBuilder |
getLabelsOrBuilderList()
public 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;
Type | Description |
List<? extends com.google.api.LabelDescriptorOrBuilder> |
getLaunchStage()
public LaunchStage getLaunchStage()
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
Type | Description |
LaunchStage | The launchStage. |
getLaunchStageValue()
public int getLaunchStageValue()
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
Type | Description |
int | The enum numeric value on the wire for launchStage. |
getName()
public 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;
Type | Description |
String | The name. |
getNameBytes()
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;
Type | Description |
ByteString | The bytes for name. |
getType()
public String getType()
Required. The monitored resource type. For example, the type
"cloudsql_database"
represents databases in Google Cloud SQL.
string type = 1;
Type | Description |
String | The type. |
getTypeBytes()
public ByteString getTypeBytes()
Required. The monitored resource type. For example, the type
"cloudsql_database"
represents databases in Google Cloud SQL.
string type = 1;
Type | Description |
ByteString | The bytes for type. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(MonitoredResourceDescriptor other)
public MonitoredResourceDescriptor.Builder mergeFrom(MonitoredResourceDescriptor other)
Name | Description |
other | MonitoredResourceDescriptor |
Type | Description |
MonitoredResourceDescriptor.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MonitoredResourceDescriptor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MonitoredResourceDescriptor.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public MonitoredResourceDescriptor.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
MonitoredResourceDescriptor.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MonitoredResourceDescriptor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MonitoredResourceDescriptor.Builder |
removeLabels(int index)
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;
Name | Description |
index | int |
Type | Description |
MonitoredResourceDescriptor.Builder |
setDescription(String value)
public MonitoredResourceDescriptor.Builder setDescription(String value)
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
Name | Description |
value | String The description to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public MonitoredResourceDescriptor.Builder setDescriptionBytes(ByteString value)
Optional. A detailed description of the monitored resource type that might be used in documentation.
string description = 3;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setDisplayName(String value)
public MonitoredResourceDescriptor.Builder setDisplayName(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;
Name | Description |
value | String The displayName to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public MonitoredResourceDescriptor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MonitoredResourceDescriptor.Builder |
setLabels(int index, LabelDescriptor value)
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;
Name | Description |
index | int |
value | LabelDescriptor |
Type | Description |
MonitoredResourceDescriptor.Builder |
setLabels(int index, LabelDescriptor.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | LabelDescriptor.Builder |
Type | Description |
MonitoredResourceDescriptor.Builder |
setLaunchStage(LaunchStage value)
public MonitoredResourceDescriptor.Builder setLaunchStage(LaunchStage value)
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
Name | Description |
value | LaunchStage The launchStage to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setLaunchStageValue(int value)
public MonitoredResourceDescriptor.Builder setLaunchStageValue(int value)
Optional. The launch stage of the monitored resource definition.
.google.api.LaunchStage launch_stage = 7;
Name | Description |
value | int The enum numeric value on the wire for launchStage to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setName(String value)
public MonitoredResourceDescriptor.Builder setName(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;
Name | Description |
value | String The name to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setNameBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MonitoredResourceDescriptor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
MonitoredResourceDescriptor.Builder |
setType(String value)
public MonitoredResourceDescriptor.Builder setType(String value)
Required. The monitored resource type. For example, the type
"cloudsql_database"
represents databases in Google Cloud SQL.
string type = 1;
Name | Description |
value | String The type to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setTypeBytes(ByteString value)
public MonitoredResourceDescriptor.Builder setTypeBytes(ByteString value)
Required. The monitored resource type. For example, the type
"cloudsql_database"
represents databases in Google Cloud SQL.
string type = 1;
Name | Description |
value | ByteString The bytes for type to set. |
Type | Description |
MonitoredResourceDescriptor.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final MonitoredResourceDescriptor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MonitoredResourceDescriptor.Builder |