Class OSPolicyAssignment.LabelSet.Builder (2.16.0)

public static final class OSPolicyAssignment.LabelSet.Builder extends GeneratedMessageV3.Builder<OSPolicyAssignment.LabelSet.Builder> 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.v1.OSPolicyAssignment.LabelSet

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicyAssignment.LabelSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicyAssignment.LabelSet.Builder
Overrides

build()

public OSPolicyAssignment.LabelSet build()
Returns
TypeDescription
OSPolicyAssignment.LabelSet

buildPartial()

public OSPolicyAssignment.LabelSet buildPartial()
Returns
TypeDescription
OSPolicyAssignment.LabelSet

clear()

public OSPolicyAssignment.LabelSet.Builder clear()
Returns
TypeDescription
OSPolicyAssignment.LabelSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OSPolicyAssignment.LabelSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OSPolicyAssignment.LabelSet.Builder
Overrides

clearLabels()

public OSPolicyAssignment.LabelSet.Builder clearLabels()
Returns
TypeDescription
OSPolicyAssignment.LabelSet.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicyAssignment.LabelSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OSPolicyAssignment.LabelSet.Builder
Overrides

clone()

public OSPolicyAssignment.LabelSet.Builder clone()
Returns
TypeDescription
OSPolicyAssignment.LabelSet.Builder
Overrides