Class AnalyzerOrgPolicyConstraint.Constraint.Builder (3.50.0)

public static final class AnalyzerOrgPolicyConstraint.Constraint.Builder extends GeneratedMessageV3.Builder<AnalyzerOrgPolicyConstraint.Constraint.Builder> implements AnalyzerOrgPolicyConstraint.ConstraintOrBuilder

The definition of a constraint.

Protobuf type google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearBooleanConstraint()

public AnalyzerOrgPolicyConstraint.Constraint.Builder clearBooleanConstraint()

Defines this constraint as being a BooleanConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

clearConstraintDefault()

public AnalyzerOrgPolicyConstraint.Constraint.Builder clearConstraintDefault()

The evaluation behavior of this constraint in the absence of 'Policy'.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

clearConstraintType()

public AnalyzerOrgPolicyConstraint.Constraint.Builder clearConstraintType()
Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

clearDescription()

public AnalyzerOrgPolicyConstraint.Constraint.Builder clearDescription()

Detailed description of what this Constraint controls as well as how and where it is enforced.

string description = 3;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

clearDisplayName()

public AnalyzerOrgPolicyConstraint.Constraint.Builder clearDisplayName()

The human readable name of the constraint.

string display_name = 2;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearListConstraint()

public AnalyzerOrgPolicyConstraint.Constraint.Builder clearListConstraint()

Defines this constraint as being a ListConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

clearName()

public AnalyzerOrgPolicyConstraint.Constraint.Builder clearName()

The unique name of the constraint. Format of the name should be

  • constraints/{constraint_name}

    For example, constraints/compute.disableSerialPortAccess.

string name = 1;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBooleanConstraint()

public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint getBooleanConstraint()

Defines this constraint as being a BooleanConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint

The booleanConstraint.

getBooleanConstraintBuilder()

public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder getBooleanConstraintBuilder()

Defines this constraint as being a BooleanConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder

getBooleanConstraintOrBuilder()

public AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintOrBuilder getBooleanConstraintOrBuilder()

Defines this constraint as being a BooleanConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraintOrBuilder

getConstraintDefault()

public AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault getConstraintDefault()

The evaluation behavior of this constraint in the absence of 'Policy'.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault

The constraintDefault.

getConstraintDefaultValue()

public int getConstraintDefaultValue()

The evaluation behavior of this constraint in the absence of 'Policy'.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;

Returns
Type Description
int

The enum numeric value on the wire for constraintDefault.

getConstraintTypeCase()

public AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase getConstraintTypeCase()
Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.ConstraintTypeCase

getDefaultInstanceForType()

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

getDescription()

public String getDescription()

Detailed description of what this Constraint controls as well as how and where it is enforced.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Detailed description of what this Constraint controls as well as how and where it is enforced.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The human readable name of the constraint.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human readable name of the constraint.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getListConstraint()

public AnalyzerOrgPolicyConstraint.Constraint.ListConstraint getListConstraint()

Defines this constraint as being a ListConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.ListConstraint

The listConstraint.

getListConstraintBuilder()

public AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder getListConstraintBuilder()

Defines this constraint as being a ListConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder

getListConstraintOrBuilder()

public AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder getListConstraintOrBuilder()

Defines this constraint as being a ListConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.ListConstraintOrBuilder

getName()

public String getName()

The unique name of the constraint. Format of the name should be

  • constraints/{constraint_name}

    For example, constraints/compute.disableSerialPortAccess.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The unique name of the constraint. Format of the name should be

  • constraints/{constraint_name}

    For example, constraints/compute.disableSerialPortAccess.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasBooleanConstraint()

public boolean hasBooleanConstraint()

Defines this constraint as being a BooleanConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;

Returns
Type Description
boolean

Whether the booleanConstraint field is set.

hasListConstraint()

public boolean hasListConstraint()

Defines this constraint as being a ListConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;

Returns
Type Description
boolean

Whether the listConstraint field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint value)

Defines this constraint as being a BooleanConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

mergeFrom(AnalyzerOrgPolicyConstraint.Constraint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder mergeListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint value)

Defines this constraint as being a ListConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint value)

Defines this constraint as being a BooleanConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint
Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

setBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder builderForValue)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setBooleanConstraint(AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder builderForValue)

Defines this constraint as being a BooleanConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6;

Parameter
Name Description
builderForValue AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint.Builder
Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

setConstraintDefault(AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setConstraintDefault(AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault value)

The evaluation behavior of this constraint in the absence of 'Policy'.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault

The constraintDefault to set.

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

setConstraintDefaultValue(int value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setConstraintDefaultValue(int value)

The evaluation behavior of this constraint in the absence of 'Policy'.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for constraintDefault to set.

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

setDescription(String value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setDescription(String value)

Detailed description of what this Constraint controls as well as how and where it is enforced.

string description = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setDescriptionBytes(ByteString value)

Detailed description of what this Constraint controls as well as how and where it is enforced.

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

setDisplayName(String value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setDisplayName(String value)

The human readable name of the constraint.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setDisplayNameBytes(ByteString value)

The human readable name of the constraint.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint value)

Defines this constraint as being a ListConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint.Constraint.ListConstraint
Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

setListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder builderForValue)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setListConstraint(AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder builderForValue)

Defines this constraint as being a ListConstraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5;

Parameter
Name Description
builderForValue AnalyzerOrgPolicyConstraint.Constraint.ListConstraint.Builder
Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

setName(String value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setName(String value)

The unique name of the constraint. Format of the name should be

  • constraints/{constraint_name}

    For example, constraints/compute.disableSerialPortAccess.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AnalyzerOrgPolicyConstraint.Constraint.Builder setNameBytes(ByteString value)

The unique name of the constraint. Format of the name should be

  • constraints/{constraint_name}

    For example, constraints/compute.disableSerialPortAccess.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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