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, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SYSTEM_LABELS_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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;
hasSystemLabels
in interface MonitoredResourceMetadataOrBuilder
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;
getSystemLabels
in interface MonitoredResourceMetadataOrBuilder
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;
getSystemLabelsOrBuilder
in interface MonitoredResourceMetadataOrBuilder
public int getUserLabelsCount()
MonitoredResourceMetadataOrBuilder
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
getUserLabelsCount
in interface MonitoredResourceMetadataOrBuilder
public 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 MonitoredResourceMetadataOrBuilder
public 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 MonitoredResourceMetadataOrBuilder
public 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 MonitoredResourceMetadataOrBuilder
public 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 MonitoredResourceMetadataOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MonitoredResourceMetadata parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MonitoredResourceMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MonitoredResourceMetadata parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MonitoredResourceMetadata parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static MonitoredResourceMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public MonitoredResourceMetadata.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static MonitoredResourceMetadata.Builder newBuilder()
public static MonitoredResourceMetadata.Builder newBuilder(MonitoredResourceMetadata prototype)
public MonitoredResourceMetadata.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected MonitoredResourceMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static MonitoredResourceMetadata getDefaultInstance()
public static Parser<MonitoredResourceMetadata> parser()
public Parser<MonitoredResourceMetadata> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public MonitoredResourceMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder