Send feedback
Class MonitoredResourceMetadata (2.50.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int SYSTEM_LABELS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int USER_LABELS_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static MonitoredResourceMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static MonitoredResourceMetadata . Builder newBuilder ()
public static MonitoredResourceMetadata . Builder newBuilder ( MonitoredResourceMetadata prototype )
public static MonitoredResourceMetadata parseDelimitedFrom ( InputStream input )
public static MonitoredResourceMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MonitoredResourceMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static MonitoredResourceMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static MonitoredResourceMetadata parseFrom ( ByteString data )
public static MonitoredResourceMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static MonitoredResourceMetadata parseFrom ( CodedInputStream input )
public static MonitoredResourceMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static MonitoredResourceMetadata parseFrom ( InputStream input )
public static MonitoredResourceMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MonitoredResourceMetadata parseFrom ( ByteBuffer data )
public static MonitoredResourceMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<MonitoredResourceMetadata> parser ()
Methods
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 boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public MonitoredResourceMetadata getDefaultInstanceForType ()
public Parser<MonitoredResourceMetadata> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
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;
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;
Returns
Type
Description
String
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
Returns
Type
Description
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.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
public final boolean isInitialized ()
Overrides
public MonitoredResourceMetadata . Builder newBuilderForType ()
protected MonitoredResourceMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public MonitoredResourceMetadata . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]