Class Constraint.BooleanConstraint.Builder (2.43.0)

public static final class Constraint.BooleanConstraint.Builder extends GeneratedMessageV3.Builder<Constraint.BooleanConstraint.Builder> implements Constraint.BooleanConstraintOrBuilder

A constraint that is either enforced or not.

For example, a constraint constraints/compute.disableSerialPortAccess. If it is enforced on a VM instance, serial port connections will not be opened to that instance.

Protobuf type google.cloud.orgpolicy.v2.Constraint.BooleanConstraint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Constraint.BooleanConstraint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

build()

public Constraint.BooleanConstraint build()
Returns
Type Description
Constraint.BooleanConstraint

buildPartial()

public Constraint.BooleanConstraint buildPartial()
Returns
Type Description
Constraint.BooleanConstraint

clear()

public Constraint.BooleanConstraint.Builder clear()
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Constraint.BooleanConstraint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Constraint.BooleanConstraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

clone()

public Constraint.BooleanConstraint.Builder clone()
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

getDefaultInstanceForType()

public Constraint.BooleanConstraint getDefaultInstanceForType()
Returns
Type Description
Constraint.BooleanConstraint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Constraint.BooleanConstraint other)

public Constraint.BooleanConstraint.Builder mergeFrom(Constraint.BooleanConstraint other)
Parameter
Name Description
other Constraint.BooleanConstraint
Returns
Type Description
Constraint.BooleanConstraint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Constraint.BooleanConstraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Constraint.BooleanConstraint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Constraint.BooleanConstraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Constraint.BooleanConstraint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Constraint.BooleanConstraint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Constraint.BooleanConstraint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Constraint.BooleanConstraint.Builder
Overrides