Interface CreatePolicyBindingRequestOrBuilder (1.52.0)

public interface CreatePolicyBindingRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract String getParent()

Required. The parent resource where this policy binding will be created. The binding parent is the closest Resource Manager resource (project, folder or organization) to the binding target.

Format:

  • projects/{project_id}/locations/{location}
  • projects/{project_number}/locations/{location}
  • folders/{folder_id}/locations/{location}
  • organizations/{organization_id}/locations/{location}

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

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The parent resource where this policy binding will be created. The binding parent is the closest Resource Manager resource (project, folder or organization) to the binding target.

Format:

  • projects/{project_id}/locations/{location}
  • projects/{project_number}/locations/{location}
  • folders/{folder_id}/locations/{location}
  • organizations/{organization_id}/locations/{location}

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

Returns
Type Description
ByteString

The bytes for parent.

getPolicyBinding()

public abstract PolicyBinding getPolicyBinding()

Required. The policy binding to create.

.google.iam.v3beta.PolicyBinding policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PolicyBinding

The policyBinding.

getPolicyBindingId()

public abstract String getPolicyBindingId()

Required. The ID to use for the policy binding, which will become the final component of the policy binding's resource name.

This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, hyphens, or dots. Pattern, /a-z{2,62}/.

string policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The policyBindingId.

getPolicyBindingIdBytes()

public abstract ByteString getPolicyBindingIdBytes()

Required. The ID to use for the policy binding, which will become the final component of the policy binding's resource name.

This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, hyphens, or dots. Pattern, /a-z{2,62}/.

string policy_binding_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for policyBindingId.

getPolicyBindingOrBuilder()

public abstract PolicyBindingOrBuilder getPolicyBindingOrBuilder()

Required. The policy binding to create.

.google.iam.v3beta.PolicyBinding policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PolicyBindingOrBuilder

getValidateOnly()

public abstract boolean getValidateOnly()

Optional. If set, validate the request and preview the creation, but do not actually post it.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasPolicyBinding()

public abstract boolean hasPolicyBinding()

Required. The policy binding to create.

.google.iam.v3beta.PolicyBinding policy_binding = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the policyBinding field is set.