public static final class MonitoredResourceMetadata.Builder extends GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder> implements MonitoredResourceMetadataOrBuilder
Auxiliary metadata for a MonitoredResource object.
MonitoredResource objects contain the minimum set of information to
uniquely identify a monitored resource instance. There is some other useful
auxiliary metadata. Monitoring and Logging use an ingestion
pipeline to extract metadata for cloud resources of all types, and store
the metadata in this message.
Protobuf type google.api.MonitoredResourceMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public MonitoredResourceMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public MonitoredResourceMetadata build()
Returns
public MonitoredResourceMetadata buildPartial()
Returns
public MonitoredResourceMetadata.Builder clear()
Returns
Overrides
public MonitoredResourceMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public MonitoredResourceMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public MonitoredResourceMetadata.Builder clearSystemLabels()
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
.google.protobuf.Struct system_labels = 1;
Returns
public MonitoredResourceMetadata.Builder clearUserLabels()
Returns
public MonitoredResourceMetadata.Builder clone()
Returns
Overrides
public boolean containsUserLabels(String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameter
Returns
public MonitoredResourceMetadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Map<String,String> getMutableUserLabels()
Use alternate mutation accessors instead.
Returns
public Struct getSystemLabels()
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
.google.protobuf.Struct system_labels = 1;
Returns
Type | Description |
Struct | The systemLabels.
|
public Struct.Builder getSystemLabelsBuilder()
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
.google.protobuf.Struct system_labels = 1;
Returns
public StructOrBuilder getSystemLabelsOrBuilder()
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
.google.protobuf.Struct system_labels = 1;
Returns
public Map<String,String> getUserLabels()
Returns
public int getUserLabelsCount()
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Returns
public Map<String,String> getUserLabelsMap()
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Returns
public String getUserLabelsOrDefault(String key, String defaultValue)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameters
Returns
public String getUserLabelsOrThrow(String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameter
Returns
public boolean hasSystemLabels()
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
.google.protobuf.Struct system_labels = 1;
Returns
Type | Description |
boolean | Whether the systemLabels field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public MonitoredResourceMetadata.Builder mergeFrom(MonitoredResourceMetadata other)
Parameter
Returns
public MonitoredResourceMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public MonitoredResourceMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public MonitoredResourceMetadata.Builder mergeSystemLabels(Struct value)
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
.google.protobuf.Struct system_labels = 1;
Parameter
Returns
public final MonitoredResourceMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public MonitoredResourceMetadata.Builder putAllUserLabels(Map<String,String> values)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameter
Returns
public MonitoredResourceMetadata.Builder putUserLabels(String key, String value)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameters
Returns
public MonitoredResourceMetadata.Builder removeUserLabels(String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameter
Returns
public MonitoredResourceMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public MonitoredResourceMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public MonitoredResourceMetadata.Builder setSystemLabels(Struct value)
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
.google.protobuf.Struct system_labels = 1;
Parameter
Returns
public MonitoredResourceMetadata.Builder setSystemLabels(Struct.Builder builderForValue)
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
.google.protobuf.Struct system_labels = 1;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
public final MonitoredResourceMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides