- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.6
- 2.3.1
- 2.2.7
- 2.1.4
public static final class CreateCapacityCommitmentRequest.Builder extends GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder> implements CreateCapacityCommitmentRequestOrBuilder
The request for ReservationService.CreateCapacityCommitment.
Protobuf type google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateCapacityCommitmentRequest.BuilderImplements
CreateCapacityCommitmentRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateCapacityCommitmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
build()
public CreateCapacityCommitmentRequest build()
Type | Description |
CreateCapacityCommitmentRequest |
buildPartial()
public CreateCapacityCommitmentRequest buildPartial()
Type | Description |
CreateCapacityCommitmentRequest |
clear()
public CreateCapacityCommitmentRequest.Builder clear()
Type | Description |
CreateCapacityCommitmentRequest.Builder |
clearCapacityCommitment()
public CreateCapacityCommitmentRequest.Builder clearCapacityCommitment()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Type | Description |
CreateCapacityCommitmentRequest.Builder |
clearCapacityCommitmentId()
public CreateCapacityCommitmentRequest.Builder clearCapacityCommitmentId()
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;
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
clearEnforceSingleAdminProjectPerOrg()
public CreateCapacityCommitmentRequest.Builder clearEnforceSingleAdminProjectPerOrg()
If true, fail the request if another project in the organization has a capacity commitment.
bool enforce_single_admin_project_per_org = 4;
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateCapacityCommitmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCapacityCommitmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
clearParent()
public CreateCapacityCommitmentRequest.Builder clearParent()
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) = { ... }
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
clone()
public CreateCapacityCommitmentRequest.Builder clone()
Type | Description |
CreateCapacityCommitmentRequest.Builder |
getCapacityCommitment()
public CapacityCommitment getCapacityCommitment()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Type | Description |
CapacityCommitment | The capacityCommitment. |
getCapacityCommitmentBuilder()
public CapacityCommitment.Builder getCapacityCommitmentBuilder()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Type | Description |
CapacityCommitment.Builder |
getCapacityCommitmentId()
public 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;
Type | Description |
String | The capacityCommitmentId. |
getCapacityCommitmentIdBytes()
public 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;
Type | Description |
ByteString | The bytes for capacityCommitmentId. |
getCapacityCommitmentOrBuilder()
public CapacityCommitmentOrBuilder getCapacityCommitmentOrBuilder()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Type | Description |
CapacityCommitmentOrBuilder |
getDefaultInstanceForType()
public CreateCapacityCommitmentRequest getDefaultInstanceForType()
Type | Description |
CreateCapacityCommitmentRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnforceSingleAdminProjectPerOrg()
public 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;
Type | Description |
boolean | The enforceSingleAdminProjectPerOrg. |
getParent()
public 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) = { ... }
Type | Description |
String | The parent. |
getParentBytes()
public 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) = { ... }
Type | Description |
ByteString | The bytes for parent. |
hasCapacityCommitment()
public boolean hasCapacityCommitment()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Type | Description |
boolean | Whether the capacityCommitment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCapacityCommitment(CapacityCommitment value)
public CreateCapacityCommitmentRequest.Builder mergeCapacityCommitment(CapacityCommitment value)
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Name | Description |
value | CapacityCommitment |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
mergeFrom(CreateCapacityCommitmentRequest other)
public CreateCapacityCommitmentRequest.Builder mergeFrom(CreateCapacityCommitmentRequest other)
Name | Description |
other | CreateCapacityCommitmentRequest |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateCapacityCommitmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CreateCapacityCommitmentRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCapacityCommitmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
setCapacityCommitment(CapacityCommitment value)
public CreateCapacityCommitmentRequest.Builder setCapacityCommitment(CapacityCommitment value)
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Name | Description |
value | CapacityCommitment |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
setCapacityCommitment(CapacityCommitment.Builder builderForValue)
public CreateCapacityCommitmentRequest.Builder setCapacityCommitment(CapacityCommitment.Builder builderForValue)
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Name | Description |
builderForValue | CapacityCommitment.Builder |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
setCapacityCommitmentId(String value)
public CreateCapacityCommitmentRequest.Builder setCapacityCommitmentId(String value)
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;
Name | Description |
value | String The capacityCommitmentId to set. |
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
setCapacityCommitmentIdBytes(ByteString value)
public CreateCapacityCommitmentRequest.Builder setCapacityCommitmentIdBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for capacityCommitmentId to set. |
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
setEnforceSingleAdminProjectPerOrg(boolean value)
public CreateCapacityCommitmentRequest.Builder setEnforceSingleAdminProjectPerOrg(boolean value)
If true, fail the request if another project in the organization has a capacity commitment.
bool enforce_single_admin_project_per_org = 4;
Name | Description |
value | boolean The enforceSingleAdminProjectPerOrg to set. |
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCapacityCommitmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
setParent(String value)
public CreateCapacityCommitmentRequest.Builder setParent(String value)
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) = { ... }
Name | Description |
value | String The parent to set. |
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public CreateCapacityCommitmentRequest.Builder setParentBytes(ByteString value)
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) = { ... }
Name | Description |
value | ByteString The bytes for parent to set. |
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateCapacityCommitmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CreateCapacityCommitmentRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCapacityCommitmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateCapacityCommitmentRequest.Builder |