Class GuestPolicies.Assignment (2.14.0)

public static final class GuestPolicies.Assignment extends GeneratedMessageV3 implements GuestPolicies.AssignmentOrBuilder

An assignment represents the group or groups of VM instances that the policy applies to. If an assignment is empty, it applies to all VM instances. Otherwise, the targeted VM instances must meet all the criteria specified. So if both labels and zones are specified, the policy applies to VM instances with those labels and in those zones.

Protobuf type google.cloud.osconfig.v1beta.Assignment

Static Fields

GROUP_LABELS_FIELD_NUMBER

public static final int GROUP_LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCES_FIELD_NUMBER

public static final int INSTANCES_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_NAME_PREFIXES_FIELD_NUMBER

public static final int INSTANCE_NAME_PREFIXES_FIELD_NUMBER
Field Value
TypeDescription
int

OS_TYPES_FIELD_NUMBER

public static final int OS_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

ZONES_FIELD_NUMBER

public static final int ZONES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(GuestPolicies.Assignment prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static GuestPolicies.Assignment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GuestPolicies.A