Interface CreateCustomConstraintRequestOrBuilder (2.43.0)

public interface CreateCustomConstraintRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCustomConstraint()

public abstract CustomConstraint getCustomConstraint()

Required. Custom constraint to create.

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

Returns
Type Description
CustomConstraint

The customConstraint.

getCustomConstraintOrBuilder()

public abstract CustomConstraintOrBuilder getCustomConstraintOrBuilder()

Required. Custom constraint to create.

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

Returns
Type Description
CustomConstraintOrBuilder

getParent()

public abstract String getParent()

Required. Must be in the following form:

  • organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. Must be in the following form:

  • organizations/{organization_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasCustomConstraint()

public abstract boolean hasCustomConstraint()

Required. Custom constraint to create.

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

Returns
Type Description
boolean

Whether the customConstraint field is set.