public final class MonitoredResourceMetadata extends GeneratedMessageV3 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
Static Fields
public static final int SYSTEM_LABELS_FIELD_NUMBER
Field Value
public static final int USER_LABELS_FIELD_NUMBER
Field Value
Static Methods
public static MonitoredResourceMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static MonitoredResourceMetadata.Builder newBuilder()
Returns
public static MonitoredResourceMetadata.Builder newBuilder(MonitoredResourceMetadata prototype)
Parameter
Returns
public static MonitoredResourceMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MonitoredResourceMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static MonitoredResourceMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<MonitoredResourceMetadata> parser()
Returns
Methods
public boolean containsUserLabels(String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
Parameter
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public MonitoredResourceMetadata getDefaultInstanceForType()
Returns
public Parser<MonitoredResourceMetadata> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
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 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 final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public MonitoredResourceMetadata.Builder newBuilderForType()
Returns
protected MonitoredResourceMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public MonitoredResourceMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions