Class PatchJobs.PatchInstanceFilter.GroupLabel (2.5.0)

public static final class PatchJobs.PatchInstanceFilter.GroupLabel extends GeneratedMessageV3 implements PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder

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

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PatchJobs.PatchInstanceFilter.GroupLabel

Static Fields

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PatchJobs.PatchInstanceFilter.GroupLabel getDefaultInstance()
Returns
TypeDescription
PatchJobs.PatchInstanceFilter.GroupLabel

getDescriptor()

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

newBuilder()

public static PatchJobs.PatchInstanceFilter.GroupLabel.Builder newBuilder()
Returns
TypeDescription
PatchJobs.PatchInstanceFilter.GroupLabel.Builder

newBuilder(PatchJobs.PatchInstanceFilter.GroupLabel prototype)

public static PatchJobs.PatchInstanceFilter.GroupLabel.Builder newBuilder(PatchJobs.PatchInstanceFilter.GroupLabel prototype)
Parameter
NameDescription
prototypePatchJobs.PatchInstanceFilter.GroupLabel
Returns
TypeDescription
PatchJobs.PatchInstanceFilter.GroupLabel.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PatchJobs.PatchInstanceFilter.GroupLabel> parser()
Returns
TypeDescription
Parser<GroupLabel>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.

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 PatchJobs.PatchInstanceFilter.GroupLabel getDefaultInstanceForType()
Returns
TypeDescription
PatchJobs.PatchInstanceFilter.GroupLabel

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.

map<string, string> labels = 1;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.

map<string, string> labels = 1;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.

map<string, string> labels = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.

map<string, string> labels = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getParserForType()

public Parser<PatchJobs.PatchInstanceFilter.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 PatchJobs.PatchInstanceFilter.GroupLabel.Builder newBuilderForType()
Returns
TypeDescription
PatchJobs.PatchInstanceFilter.GroupLabel.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public PatchJobs.PatchInstanceFilter.GroupLabel.Builder toBuilder()
Returns
TypeDescription
PatchJobs.PatchInstanceFilter.GroupLabel.Builder

writeTo(CodedOutputStream output)

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