Interface CreateCapacityCommitmentRequestOrBuilder (2.9.0)

public interface CreateCapacityCommitmentRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCapacityCommitment()

public abstract CapacityCommitment getCapacityCommitment()

Content of the capacity commitment to create.

.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;

Returns
TypeDescription
CapacityCommitment

The capacityCommitment.

getCapacityCommitmentId()

public abstract String getCapacityCommitmentId()

The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

string capacity_commitment_id = 5;

Returns
TypeDescription
String

The capacityCommitmentId.

getCapacityCommitmentIdBytes()

public abstract ByteString getCapacityCommitmentIdBytes()

The optional capacity commitment ID. Capacity commitment name will be generated automatically if this field is empty. This field must only contain lower case alphanumeric characters or dashes. The first and last character cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if the capacity commitment is split or merged.

string capacity_commitment_id = 5;

Returns
TypeDescription
ByteString

The bytes for capacityCommitmentId.

getCapacityCommitmentOrBuilder()

public abstract CapacityCommitmentOrBuilder getCapacityCommitmentOrBuilder()

Content of the capacity commitment to create.

.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;

Returns
TypeDescription
CapacityCommitmentOrBuilder

getEnforceSingleAdminProjectPerOrg()

public abstract boolean getEnforceSingleAdminProjectPerOrg()

If true, fail the request if another project in the organization has a capacity commitment.

bool enforce_single_admin_project_per_org = 4;

Returns
TypeDescription
boolean

The enforceSingleAdminProjectPerOrg.

getParent()

public abstract String getParent()

Required. Resource name of the parent reservation. E.g., projects/myproject/locations/US

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. Resource name of the parent reservation. E.g., projects/myproject/locations/US

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasCapacityCommitment()

public abstract boolean hasCapacityCommitment()

Content of the capacity commitment to create.

.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;

Returns
TypeDescription
boolean

Whether the capacityCommitment field is set.