public static final class OSPolicyAssignment.LabelSet extends com.google.protobuf.GeneratedMessageV3 implements OSPolicyAssignment.LabelSetOrBuilder
Message representing label set.
* A label is a key value pair set for a VM.
* A LabelSet is a set of labels.
* Labels within a LabelSet are ANDed. In other words, a LabelSet is
applicable for a VM only if it matches all the labels in the
LabelSet.
* Example: A LabelSet with 2 labels: `env=prod` and `type=webserver` will
only be applicable for those VMs with both labels
present.
Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet| Modifier and Type | Class and Description |
|---|---|
static class |
OSPolicyAssignment.LabelSet.Builder
Message representing label set.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
LABELS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Labels are identified by key/value pairs in this map.
|
boolean |
equals(Object obj) |
static OSPolicyAssignment.LabelSet |
getDefaultInstance() |
OSPolicyAssignment.LabelSet |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels are identified by key/value pairs in this map.
|
Map<String,String> |
getLabelsMap()
Labels are identified by key/value pairs in this map.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels are identified by key/value pairs in this map.
|
String |
getLabelsOrThrow(String key)
Labels are identified by key/value pairs in this map.
|
com.google.protobuf.Parser<OSPolicyAssignment.LabelSet> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static OSPolicyAssignment.LabelSet.Builder |
newBuilder() |
static OSPolicyAssignment.LabelSet.Builder |
newBuilder(OSPolicyAssignment.LabelSet prototype) |
OSPolicyAssignment.LabelSet.Builder |
newBuilderForType() |
protected OSPolicyAssignment.LabelSet.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OSPolicyAssignment.LabelSet |
parseDelimitedFrom(InputStream input) |
static OSPolicyAssignment.LabelSet |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.LabelSet |
parseFrom(byte[] data) |
static OSPolicyAssignment.LabelSet |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.LabelSet |
parseFrom(ByteBuffer data) |
static OSPolicyAssignment.LabelSet |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.LabelSet |
parseFrom(com.google.protobuf.ByteString data) |
static OSPolicyAssignment.LabelSet |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.LabelSet |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OSPolicyAssignment.LabelSet |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OSPolicyAssignment.LabelSet |
parseFrom(InputStream input) |
static OSPolicyAssignment.LabelSet |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OSPolicyAssignment.LabelSet> |
parser() |
OSPolicyAssignment.LabelSet.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, 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, waitpublic static final int LABELS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 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 int getLabelsCount()
OSPolicyAssignment.LabelSetOrBuilderLabels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;getLabelsCount in interface OSPolicyAssignment.LabelSetOrBuilderpublic boolean containsLabels(String key)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;containsLabels in interface OSPolicyAssignment.LabelSetOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface OSPolicyAssignment.LabelSetOrBuilderpublic Map<String,String> getLabelsMap()
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;getLabelsMap in interface OSPolicyAssignment.LabelSetOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;getLabelsOrDefault in interface OSPolicyAssignment.LabelSetOrBuilderpublic String getLabelsOrThrow(String key)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;getLabelsOrThrow in interface OSPolicyAssignment.LabelSetOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(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 OSPolicyAssignment.LabelSet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicyAssignment.LabelSet parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignment.LabelSet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OSPolicyAssignment.LabelSet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OSPolicyAssignment.LabelSet.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OSPolicyAssignment.LabelSet.Builder newBuilder()
public static OSPolicyAssignment.LabelSet.Builder newBuilder(OSPolicyAssignment.LabelSet prototype)
public OSPolicyAssignment.LabelSet.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OSPolicyAssignment.LabelSet.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OSPolicyAssignment.LabelSet getDefaultInstance()
public static com.google.protobuf.Parser<OSPolicyAssignment.LabelSet> parser()
public com.google.protobuf.Parser<OSPolicyAssignment.LabelSet> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OSPolicyAssignment.LabelSet getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.