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>)
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;
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.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public MonitoredResourceMetadata.Builder newBuilderForType()
protected MonitoredResourceMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public MonitoredResourceMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides