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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.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 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 MonitoredResourceMetadataOrBuilder
public 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 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 com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MonitoredResourceMetadata parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static MonitoredResourceMetadata parseFrom(java.io.InputStream input, com.google.protobuf.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, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static MonitoredResourceMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static MonitoredResourceMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public MonitoredResourceMetadata.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static MonitoredResourceMetadata.Builder newBuilder()
public static MonitoredResourceMetadata.Builder newBuilder(MonitoredResourceMetadata prototype)
public MonitoredResourceMetadata.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected MonitoredResourceMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static MonitoredResourceMetadata getDefaultInstance()
public static com.google.protobuf.Parser<MonitoredResourceMetadata> parser()
public com.google.protobuf.Parser<MonitoredResourceMetadata> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public MonitoredResourceMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder