Class OrgPolicyOverlay.CustomConstraintOverlay.Builder (0.49.0)

public static final class OrgPolicyOverlay.CustomConstraintOverlay.Builder extends GeneratedMessageV3.Builder<OrgPolicyOverlay.CustomConstraintOverlay.Builder> implements OrgPolicyOverlay.CustomConstraintOverlayOrBuilder

A change to an OrgPolicy custom constraint.

Protobuf type google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrgPolicyOverlay.CustomConstraintOverlay build()
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay

buildPartial()

public OrgPolicyOverlay.CustomConstraintOverlay buildPartial()
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay

clear()

public OrgPolicyOverlay.CustomConstraintOverlay.Builder clear()
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder
Overrides

clearCustomConstraint()

public OrgPolicyOverlay.CustomConstraintOverlay.Builder clearCustomConstraint()

Optional. The new or updated custom constraint.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

clearCustomConstraintParent()

public OrgPolicyOverlay.CustomConstraintOverlay.Builder clearCustomConstraintParent()

Optional. Resource the constraint is attached to. Example: "organization/987654"

string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public OrgPolicyOverlay.CustomConstraintOverlay.Builder clone()
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder
Overrides

getCustomConstraint()

public CustomConstraint getCustomConstraint()

Optional. The new or updated custom constraint.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.cloud.orgpolicy.v2.CustomConstraint

The customConstraint.

getCustomConstraintBuilder()

public CustomConstraint.Builder getCustomConstraintBuilder()

Optional. The new or updated custom constraint.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.cloud.orgpolicy.v2.CustomConstraint.Builder

getCustomConstraintOrBuilder()

public CustomConstraintOrBuilder getCustomConstraintOrBuilder()

Optional. The new or updated custom constraint.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.cloud.orgpolicy.v2.CustomConstraintOrBuilder

getCustomConstraintParent()

public String getCustomConstraintParent()

Optional. Resource the constraint is attached to. Example: "organization/987654"

string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The customConstraintParent.

getCustomConstraintParentBytes()

public ByteString getCustomConstraintParentBytes()

Optional. Resource the constraint is attached to. Example: "organization/987654"

string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for customConstraintParent.

getDefaultInstanceForType()

public OrgPolicyOverlay.CustomConstraintOverlay getDefaultInstanceForType()
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay

getDescriptorForType()

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

hasCustomConstraint()

public boolean hasCustomConstraint()

Optional. The new or updated custom constraint.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customConstraint field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomConstraint(CustomConstraint value)

public OrgPolicyOverlay.CustomConstraintOverlay.Builder mergeCustomConstraint(CustomConstraint value)

Optional. The new or updated custom constraint.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.cloud.orgpolicy.v2.CustomConstraint
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

mergeFrom(OrgPolicyOverlay.CustomConstraintOverlay other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomConstraint(CustomConstraint value)

public OrgPolicyOverlay.CustomConstraintOverlay.Builder setCustomConstraint(CustomConstraint value)

Optional. The new or updated custom constraint.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value com.google.cloud.orgpolicy.v2.CustomConstraint
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

setCustomConstraint(CustomConstraint.Builder builderForValue)

public OrgPolicyOverlay.CustomConstraintOverlay.Builder setCustomConstraint(CustomConstraint.Builder builderForValue)

Optional. The new or updated custom constraint.

.google.cloud.orgpolicy.v2.CustomConstraint custom_constraint = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue com.google.cloud.orgpolicy.v2.CustomConstraint.Builder
Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

setCustomConstraintParent(String value)

public OrgPolicyOverlay.CustomConstraintOverlay.Builder setCustomConstraintParent(String value)

Optional. Resource the constraint is attached to. Example: "organization/987654"

string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The customConstraintParent to set.

Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

This builder for chaining.

setCustomConstraintParentBytes(ByteString value)

public OrgPolicyOverlay.CustomConstraintOverlay.Builder setCustomConstraintParentBytes(ByteString value)

Optional. Resource the constraint is attached to. Example: "organization/987654"

string custom_constraint_parent = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for customConstraintParent to set.

Returns
Type Description
OrgPolicyOverlay.CustomConstraintOverlay.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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