- 2.52.0 (latest)
- 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()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateCapacityCommitmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |
build()
public CreateCapacityCommitmentRequest build()
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest |
buildPartial()
public CreateCapacityCommitmentRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest |
clear()
public CreateCapacityCommitmentRequest.Builder clear()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateCapacityCommitmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCapacityCommitmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
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) = { ... }
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
clone()
public CreateCapacityCommitmentRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |
getCapacityCommitment()
public CapacityCommitment getCapacityCommitment()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
CapacityCommitmentOrBuilder |
getDefaultInstanceForType()
public CreateCapacityCommitmentRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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;
Returns | |
---|---|
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) = { ... }
Returns | |
---|---|
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) = { ... }
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
boolean | Whether the capacityCommitment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | CapacityCommitment |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |
mergeFrom(CreateCapacityCommitmentRequest other)
public CreateCapacityCommitmentRequest.Builder mergeFrom(CreateCapacityCommitmentRequest other)
Parameter | |
---|---|
Name | Description |
other | CreateCapacityCommitmentRequest |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateCapacityCommitmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateCapacityCommitmentRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCapacityCommitmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | CapacityCommitment |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
builderForValue | CapacityCommitment.Builder |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | String The capacityCommitmentId to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for capacityCommitmentId to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | boolean The enforceSingleAdminProjectPerOrg to set. |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCapacityCommitmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
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) = { ... }
Parameter | |
---|---|
Name | Description |
value | String The parent to set. |
Returns | |
---|---|
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) = { ... }
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for parent to set. |
Returns | |
---|---|
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)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCapacityCommitmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateCapacityCommitmentRequest.Builder |