Class OrgPolicyOverlay.CustomConstraintOverlay.Builder (0.64.0)

public static final class OrgPolicyOverlay.CustomConstraintOverlay.Builder extends GeneratedMessage.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

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.

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 GeneratedMessage.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

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.