public final class MonitoredResourceMetadata extends GeneratedMessageV3 implements MonitoredResourceMetadataOrBuilder
Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object. [MonitoredResource][google.api.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| Modifier and Type | Class and Description |
|---|---|
static class |
MonitoredResourceMetadata.Builder
Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
SYSTEM_LABELS_FIELD_NUMBER |
static int |
USER_LABELS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int SYSTEM_LABELS_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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;hasSystemLabels in interface MonitoredResourceMetadataOrBuilderpublic 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;getSystemLabels in interface MonitoredResourceMetadataOrBuilderpublic 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;getSystemLabelsOrBuilder in interface MonitoredResourceMetadataOrBuilderpublic int getUserLabelsCount()
MonitoredResourceMetadataOrBuilderOutput only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;getUserLabelsCount in interface MonitoredResourceMetadataOrBuilderpublic boolean containsUserLabels(java.lang.String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;containsUserLabels in interface MonitoredResourceMetadataOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getUserLabels()
getUserLabelsMap() instead.getUserLabels in interface MonitoredResourceMetadataOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getUserLabelsMap()
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;getUserLabelsMap in interface MonitoredResourceMetadataOrBuilderpublic java.lang.String getUserLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;getUserLabelsOrDefault in interface MonitoredResourceMetadataOrBuilderpublic java.lang.String getUserLabelsOrThrow(java.lang.String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;getUserLabelsOrThrow in interface MonitoredResourceMetadataOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MonitoredResourceMetadata parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MonitoredResourceMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MonitoredResourceMetadata parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MonitoredResourceMetadata parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MonitoredResourceMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MonitoredResourceMetadata.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static MonitoredResourceMetadata.Builder newBuilder()
public static MonitoredResourceMetadata.Builder newBuilder(MonitoredResourceMetadata prototype)
public MonitoredResourceMetadata.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected MonitoredResourceMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static MonitoredResourceMetadata getDefaultInstance()
public static Parser<MonitoredResourceMetadata> parser()
public Parser<MonitoredResourceMetadata> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public MonitoredResourceMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder