Interface OrgPolicyOverlay.PolicyOverlayOrBuilder (0.49.0)

public static interface OrgPolicyOverlay.PolicyOverlayOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPolicy()

public abstract Policy getPolicy()

Optional. The new or updated OrgPolicy.

.google.cloud.orgpolicy.v2.Policy policy = 2 [(.google.api.field_behavior) = OPTIONAL];

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

The policy.

getPolicyOrBuilder()

public abstract PolicyOrBuilder getPolicyOrBuilder()

Optional. The new or updated OrgPolicy.

.google.cloud.orgpolicy.v2.Policy policy = 2 [(.google.api.field_behavior) = OPTIONAL];

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

getPolicyParent()

public abstract String getPolicyParent()

Optional. The parent of the policy we are attaching to. Example: "projects/123456"

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

Returns
Type Description
String

The policyParent.

getPolicyParentBytes()

public abstract ByteString getPolicyParentBytes()

Optional. The parent of the policy we are attaching to. Example: "projects/123456"

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

Returns
Type Description
ByteString

The bytes for policyParent.

hasPolicy()

public abstract boolean hasPolicy()

Optional. The new or updated OrgPolicy.

.google.cloud.orgpolicy.v2.Policy policy = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the policy field is set.