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()
Methods
public MonitoredResourceMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public MonitoredResourceMetadata build()
public MonitoredResourceMetadata buildPartial()
public MonitoredResourceMetadata.Builder clear()
Overrides
public MonitoredResourceMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public MonitoredResourceMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
public MonitoredResourceMetadata.Builder clearUserLabels()
public MonitoredResourceMetadata.Builder clone()
Overrides
public boolean containsUserLabels(String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameter |
---|
Name | Description |
key | String
|
public MonitoredResourceMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,String> getMutableUserLabels()
Use alternate mutation accessors instead.
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;
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;
public Map<String,String> getUserLabels()
public int getUserLabelsCount()
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Returns |
---|
Type | Description |
int | |
public Map<String,String> getUserLabelsMap()
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
public String getUserLabelsOrDefault(String key, String defaultValue)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
public String getUserLabelsOrThrow(String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameter |
---|
Name | Description |
key | String
|
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()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public MonitoredResourceMetadata.Builder mergeFrom(MonitoredResourceMetadata other)
public MonitoredResourceMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public MonitoredResourceMetadata.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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 |
---|
Name | Description |
value | Struct
|
public final MonitoredResourceMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public MonitoredResourceMetadata.Builder putAllUserLabels(Map<String,String> values)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
public MonitoredResourceMetadata.Builder putUserLabels(String key, String value)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
public MonitoredResourceMetadata.Builder removeUserLabels(String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameter |
---|
Name | Description |
key | String
|
public MonitoredResourceMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public MonitoredResourceMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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 |
---|
Name | Description |
value | Struct
|
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
|
public final MonitoredResourceMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides