Class GuestPolicies.Assignment.GroupLabel (2.16.0)

public static final class GuestPolicies.Assignment.GroupLabel extends GeneratedMessageV3 implements GuestPolicies.Assignment.GroupLabelOrBuilder

Represents a group of VM intances that can be identified as having all these labels, for example "env=prod and app=web".

Protobuf type google.cloud.osconfig.v1beta.Assignment.GroupLabel

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GuestPolicies.Assignment.GroupLabel

Static Fields

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GuestPolicies.Assignment.GroupLabel getDefaultInstance()
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GuestPolicies.Assignment.GroupLabel.Builder newBuilder()
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel.Builder

newBuilder(GuestPolicies.Assignment.GroupLabel prototype)

public static GuestPolicies.Assignment.GroupLabel.Builder newBuilder(GuestPolicies.Assignment.GroupLabel prototype)
Parameter
NameDescription
prototypeGuestPolicies.Assignment.GroupLabel
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel.Builder

parseDelimitedFrom(InputStream input)

public static GuestPolicies.Assignment.GroupLabel parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.Assignment.GroupLabel parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GuestPolicies.Assignment.GroupLabel parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.Assignment.GroupLabel parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GuestPolicies.Assignment.GroupLabel parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.Assignment.GroupLabel parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GuestPolicies.Assignment.GroupLabel parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.Assignment.GroupLabel parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GuestPolicies.Assignment.GroupLabel parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.Assignment.GroupLabel parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GuestPolicies.Assignment.GroupLabel parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GuestPolicies.Assignment.GroupLabel parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GuestPolicies.Assignment.GroupLabel> parser()
Returns
TypeDescription
Parser<GroupLabel>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GuestPolicies.Assignment.GroupLabel getDefaultInstanceForType()
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Google Compute Engine instance labels that must be present for an instance to be included in this assignment group.

map<string, string> labels = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getParserForType()

public Parser<GuestPolicies.Assignment.GroupLabel> getParserForType()
Returns
TypeDescription
Parser<GroupLabel>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GuestPolicies.Assignment.GroupLabel.Builder newBuilderForType()
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GuestPolicies.Assignment.GroupLabel.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GuestPolicies.Assignment.GroupLabel.Builder toBuilder()
Returns
TypeDescription
GuestPolicies.Assignment.GroupLabel.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException