Class VmExtensionPolicyLabelSelector (1.105.0)

public final class VmExtensionPolicyLabelSelector extends GeneratedMessage implements VmExtensionPolicyLabelSelectorOrBuilder

A LabelSelector is applied to a VM only if it matches all the specified labels.

Protobuf type google.cloud.compute.v1.VmExtensionPolicyLabelSelector

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > VmExtensionPolicyLabelSelector

Static Fields

INCLUSION_LABELS_FIELD_NUMBER

public static final int INCLUSION_LABELS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VmExtensionPolicyLabelSelector getDefaultInstance()
Returns
Type Description
VmExtensionPolicyLabelSelector

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static VmExtensionPolicyLabelSelector.Builder newBuilder()
Returns
Type Description
VmExtensionPolicyLabelSelector.Builder

newBuilder(VmExtensionPolicyLabelSelector prototype)

public static VmExtensionPolicyLabelSelector.Builder newBuilder(VmExtensionPolicyLabelSelector prototype)
Parameter
Name Description
prototype VmExtensionPolicyLabelSelector
Returns
Type Description
VmExtensionPolicyLabelSelector.Builder

parseDelimitedFrom(InputStream input)

public static VmExtensionPolicyLabelSelector parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmExtensionPolicyLabelSelector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VmExtensionPolicyLabelSelector parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VmExtensionPolicyLabelSelector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VmExtensionPolicyLabelSelector parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VmExtensionPolicyLabelSelector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VmExtensionPolicyLabelSelector parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VmExtensionPolicyLabelSelector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VmExtensionPolicyLabelSelector parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VmExtensionPolicyLabelSelector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VmExtensionPolicyLabelSelector parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VmExtensionPolicyLabelSelector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VmExtensionPolicyLabelSelector
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VmExtensionPolicyLabelSelector> parser()
Returns
Type Description
Parser<VmExtensionPolicyLabelSelector>

Methods

containsInclusionLabels(String key)

public boolean containsInclusionLabels(String key)

Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels specified in this map to be selected (logical AND).

e.g. If the inclusion_labels are {("key1", "value1"), ("key2", "value2")}, the VM labels must contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are ("key1", "value1") and ("something", "else"), it will not be selected.

If the map is empty, it's considered a match.

map<string, string> inclusion_labels = 501312642;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public VmExtensionPolicyLabelSelector getDefaultInstanceForType()
Returns
Type Description
VmExtensionPolicyLabelSelector

getInclusionLabels() (deprecated)

public Map<String,String> getInclusionLabels()
Returns
Type Description
Map<String,String>

getInclusionLabelsCount()

public int getInclusionLabelsCount()

Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels specified in this map to be selected (logical AND).

e.g. If the inclusion_labels are {("key1", "value1"), ("key2", "value2")}, the VM labels must contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are ("key1", "value1") and ("something", "else"), it will not be selected.

If the map is empty, it's considered a match.

map<string, string> inclusion_labels = 501312642;

Returns
Type Description
int

getInclusionLabelsMap()

public Map<String,String> getInclusionLabelsMap()

Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels specified in this map to be selected (logical AND).

e.g. If the inclusion_labels are {("key1", "value1"), ("key2", "value2")}, the VM labels must contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are ("key1", "value1") and ("something", "else"), it will not be selected.

If the map is empty, it's considered a match.

map<string, string> inclusion_labels = 501312642;

Returns
Type Description
Map<String,String>

getInclusionLabelsOrDefault(String key, String defaultValue)

public String getInclusionLabelsOrDefault(String key, String defaultValue)

Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels specified in this map to be selected (logical AND).

e.g. If the inclusion_labels are {("key1", "value1"), ("key2", "value2")}, the VM labels must contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are ("key1", "value1") and ("something", "else"), it will not be selected.

If the map is empty, it's considered a match.

map<string, string> inclusion_labels = 501312642;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getInclusionLabelsOrThrow(String key)

public String getInclusionLabelsOrThrow(String key)

Optional. A map of key-value pairs representing VM labels. VMs must have all of the labels specified in this map to be selected (logical AND).

e.g. If the inclusion_labels are {("key1", "value1"), ("key2", "value2")}, the VM labels must contain both ("key1", "value1") and ("key2", "value2") to be selected. If the VM labels are ("key1", "value1") and ("something", "else"), it will not be selected.

If the map is empty, it's considered a match.

map<string, string> inclusion_labels = 501312642;

Parameter
Name Description
key String
Returns
Type Description
String

getParserForType()

public Parser<VmExtensionPolicyLabelSelector> getParserForType()
Returns
Type Description
Parser<VmExtensionPolicyLabelSelector>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VmExtensionPolicyLabelSelector.Builder newBuilderForType()
Returns
Type Description
VmExtensionPolicyLabelSelector.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected VmExtensionPolicyLabelSelector.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VmExtensionPolicyLabelSelector.Builder
Overrides

toBuilder()

public VmExtensionPolicyLabelSelector.Builder toBuilder()
Returns
Type Description
VmExtensionPolicyLabelSelector.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException