public final class MonitoredResourceMetadata extends com.google.protobuf.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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
SYSTEM_LABELS_FIELD_NUMBER |
static int |
USER_LABELS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsUserLabels(java.lang.String key)
Output only.
|
boolean |
equals(java.lang.Object obj) |
static MonitoredResourceMetadata |
getDefaultInstance() |
MonitoredResourceMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<MonitoredResourceMetadata> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Struct |
getSystemLabels()
Output only.
|
com.google.protobuf.StructOrBuilder |
getSystemLabelsOrBuilder()
Output only.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
java.util.Map<java.lang.String,java.lang.String> |
getUserLabels()
Deprecated.
|
int |
getUserLabelsCount()
Output only.
|
java.util.Map<java.lang.String,java.lang.String> |
getUserLabelsMap()
Output only.
|
java.lang.String |
getUserLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Output only.
|
java.lang.String |
getUserLabelsOrThrow(java.lang.String key)
Output only.
|
int |
hashCode() |
boolean |
hasSystemLabels()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static MonitoredResourceMetadata.Builder |
newBuilder() |
static MonitoredResourceMetadata.Builder |
newBuilder(MonitoredResourceMetadata prototype) |
MonitoredResourceMetadata.Builder |
newBuilderForType() |
protected MonitoredResourceMetadata.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static MonitoredResourceMetadata |
parseDelimitedFrom(java.io.InputStream input) |
static MonitoredResourceMetadata |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MonitoredResourceMetadata |
parseFrom(byte[] data) |
static MonitoredResourceMetadata |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MonitoredResourceMetadata |
parseFrom(java.nio.ByteBuffer data) |
static MonitoredResourceMetadata |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MonitoredResourceMetadata |
parseFrom(com.google.protobuf.ByteString data) |
static MonitoredResourceMetadata |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MonitoredResourceMetadata |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MonitoredResourceMetadata |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MonitoredResourceMetadata |
parseFrom(java.io.InputStream input) |
static MonitoredResourceMetadata |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MonitoredResourceMetadata> |
parser() |
MonitoredResourceMetadata.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, 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, waitpublic static final int SYSTEM_LABELS_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MonitoredResourceMetadata parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MonitoredResourceMetadata parseFrom(java.io.InputStream input, com.google.protobuf.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, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MonitoredResourceMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MonitoredResourceMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MonitoredResourceMetadata.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MonitoredResourceMetadata.Builder newBuilder()
public static MonitoredResourceMetadata.Builder newBuilder(MonitoredResourceMetadata prototype)
public MonitoredResourceMetadata.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MonitoredResourceMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MonitoredResourceMetadata getDefaultInstance()
public static com.google.protobuf.Parser<MonitoredResourceMetadata> parser()
public com.google.protobuf.Parser<MonitoredResourceMetadata> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MonitoredResourceMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder