public static final class MonitoredResourceMetadata.Builder extends GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder> 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public MonitoredResourceMetadata build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public MonitoredResourceMetadata buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public MonitoredResourceMetadata.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder mergeFrom(MonitoredResourceMetadata other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public MonitoredResourceMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<MonitoredResourceMetadata.Builder>
java.io.IOException
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 MonitoredResourceMetadata.Builder setSystemLabels(Struct value)
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 MonitoredResourceMetadata.Builder setSystemLabels(Struct.Builder builderForValue)
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 MonitoredResourceMetadata.Builder mergeSystemLabels(Struct value)
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 MonitoredResourceMetadata.Builder clearSystemLabels()
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 Struct.Builder getSystemLabelsBuilder()
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 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 MonitoredResourceMetadata.Builder clearUserLabels()
public MonitoredResourceMetadata.Builder removeUserLabels(java.lang.String key)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableUserLabels()
public MonitoredResourceMetadata.Builder putUserLabels(java.lang.String key, java.lang.String value)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
public MonitoredResourceMetadata.Builder putAllUserLabels(java.util.Map<java.lang.String,java.lang.String> values)
Output only. A map of user-defined metadata labels.
map<string, string> user_labels = 2;
public final MonitoredResourceMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>
public final MonitoredResourceMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<MonitoredResourceMetadata.Builder>