Class AnalyzerOrgPolicyConstraint.Builder (3.24.0)

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

The organization policy constraint definition.

Protobuf type google.cloud.asset.v1.AnalyzerOrgPolicyConstraint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnalyzerOrgPolicyConstraint build()
Returns
Type Description
AnalyzerOrgPolicyConstraint

buildPartial()

public AnalyzerOrgPolicyConstraint buildPartial()
Returns
Type Description
AnalyzerOrgPolicyConstraint

clear()

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

clearConstraintDefinition()

public AnalyzerOrgPolicyConstraint.Builder clearConstraintDefinition()
Returns
Type Description
AnalyzerOrgPolicyConstraint.Builder

clearCustomConstraint()

public AnalyzerOrgPolicyConstraint.Builder clearCustomConstraint()

The definition of the custom constraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGoogleDefinedConstraint()

public AnalyzerOrgPolicyConstraint.Builder clearGoogleDefinedConstraint()

The definition of the canned constraint defined by Google.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConstraintDefinitionCase()

public AnalyzerOrgPolicyConstraint.ConstraintDefinitionCase getConstraintDefinitionCase()
Returns
Type Description
AnalyzerOrgPolicyConstraint.ConstraintDefinitionCase

getCustomConstraint()

public AnalyzerOrgPolicyConstraint.CustomConstraint getCustomConstraint()

The definition of the custom constraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;

Returns
Type Description
AnalyzerOrgPolicyConstraint.CustomConstraint

The customConstraint.

getCustomConstraintBuilder()

public AnalyzerOrgPolicyConstraint.CustomConstraint.Builder getCustomConstraintBuilder()

The definition of the custom constraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;

Returns
Type Description
AnalyzerOrgPolicyConstraint.CustomConstraint.Builder

getCustomConstraintOrBuilder()

public AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder getCustomConstraintOrBuilder()

The definition of the custom constraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;

Returns
Type Description
AnalyzerOrgPolicyConstraint.CustomConstraintOrBuilder

getDefaultInstanceForType()

public AnalyzerOrgPolicyConstraint getDefaultInstanceForType()
Returns
Type Description
AnalyzerOrgPolicyConstraint

getDescriptorForType()

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

getGoogleDefinedConstraint()

public AnalyzerOrgPolicyConstraint.Constraint getGoogleDefinedConstraint()

The definition of the canned constraint defined by Google.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint

The googleDefinedConstraint.

getGoogleDefinedConstraintBuilder()

public AnalyzerOrgPolicyConstraint.Constraint.Builder getGoogleDefinedConstraintBuilder()

The definition of the canned constraint defined by Google.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Constraint.Builder

getGoogleDefinedConstraintOrBuilder()

public AnalyzerOrgPolicyConstraint.ConstraintOrBuilder getGoogleDefinedConstraintOrBuilder()

The definition of the canned constraint defined by Google.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;

Returns
Type Description
AnalyzerOrgPolicyConstraint.ConstraintOrBuilder

hasCustomConstraint()

public boolean hasCustomConstraint()

The definition of the custom constraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;

Returns
Type Description
boolean

Whether the customConstraint field is set.

hasGoogleDefinedConstraint()

public boolean hasGoogleDefinedConstraint()

The definition of the canned constraint defined by Google.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;

Returns
Type Description
boolean

Whether the googleDefinedConstraint field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint value)

public AnalyzerOrgPolicyConstraint.Builder mergeCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint value)

The definition of the custom constraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint.CustomConstraint
Returns
Type Description
AnalyzerOrgPolicyConstraint.Builder

mergeFrom(AnalyzerOrgPolicyConstraint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint value)

public AnalyzerOrgPolicyConstraint.Builder mergeGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint value)

The definition of the canned constraint defined by Google.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint value)

public AnalyzerOrgPolicyConstraint.Builder setCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint value)

The definition of the custom constraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint.CustomConstraint
Returns
Type Description
AnalyzerOrgPolicyConstraint.Builder

setCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint.Builder builderForValue)

public AnalyzerOrgPolicyConstraint.Builder setCustomConstraint(AnalyzerOrgPolicyConstraint.CustomConstraint.Builder builderForValue)

The definition of the custom constraint.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2;

Parameter
Name Description
builderForValue AnalyzerOrgPolicyConstraint.CustomConstraint.Builder
Returns
Type Description
AnalyzerOrgPolicyConstraint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint value)

public AnalyzerOrgPolicyConstraint.Builder setGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint value)

The definition of the canned constraint defined by Google.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;

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

setGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint.Builder builderForValue)

public AnalyzerOrgPolicyConstraint.Builder setGoogleDefinedConstraint(AnalyzerOrgPolicyConstraint.Constraint.Builder builderForValue)

The definition of the canned constraint defined by Google.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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