Class Constraint.BooleanConstraint.Builder (2.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Constraint.BooleanConstraint build()
Returns
TypeDescription
Constraint.BooleanConstraint

buildPartial()

public Constraint.BooleanConstraint buildPartial()
Returns
TypeDescription
Constraint.BooleanConstraint

clear()

public Constraint.BooleanConstraint.Builder clear()
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Constraint.BooleanConstraint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Constraint.BooleanConstraint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides

clone()

public Constraint.BooleanConstraint.Builder clone()
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides

getDefaultInstanceForType()

public Constraint.BooleanConstraint getDefaultInstanceForType()
Returns
TypeDescription
Constraint.BooleanConstraint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Constraint.BooleanConstraint other)

public Constraint.BooleanConstraint.Builder mergeFrom(Constraint.BooleanConstraint other)
Parameter
NameDescription
otherConstraint.BooleanConstraint
Returns
TypeDescription
Constraint.BooleanConstraint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Constraint.BooleanConstraint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Constraint.BooleanConstraint.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Constraint.BooleanConstraint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Constraint.BooleanConstraint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Constraint.BooleanConstraint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Constraint.BooleanConstraint.Builder
Overrides