public static final class CreateCapacityCommitmentRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder> implements CreateCapacityCommitmentRequestOrBuilder
The request for [ReservationService.CreateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment].Protobuf type
google.cloud.bigquery.reservation.v1.CreateCapacityCommitmentRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CreateCapacityCommitmentRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CreateCapacityCommitmentRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CreateCapacityCommitmentRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder mergeFrom(CreateCapacityCommitmentRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public CreateCapacityCommitmentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateCapacityCommitmentRequest.Builder>IOExceptionpublic 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) = { ... }
getParent in interface CreateCapacityCommitmentRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getParentBytes in interface CreateCapacityCommitmentRequestOrBuilderpublic 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) = { ... }
value - The parent to set.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) = { ... }
public CreateCapacityCommitmentRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
value - The bytes for parent to set.public boolean hasCapacityCommitment()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
hasCapacityCommitment in interface CreateCapacityCommitmentRequestOrBuilderpublic CapacityCommitment getCapacityCommitment()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
getCapacityCommitment in interface CreateCapacityCommitmentRequestOrBuilderpublic CreateCapacityCommitmentRequest.Builder setCapacityCommitment(CapacityCommitment value)
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
public CreateCapacityCommitmentRequest.Builder setCapacityCommitment(CapacityCommitment.Builder builderForValue)
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
public CreateCapacityCommitmentRequest.Builder mergeCapacityCommitment(CapacityCommitment value)
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
public CreateCapacityCommitmentRequest.Builder clearCapacityCommitment()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
public CapacityCommitment.Builder getCapacityCommitmentBuilder()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
public CapacityCommitmentOrBuilder getCapacityCommitmentOrBuilder()
Content of the capacity commitment to create.
.google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
getCapacityCommitmentOrBuilder in interface CreateCapacityCommitmentRequestOrBuilderpublic 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;getEnforceSingleAdminProjectPerOrg in interface CreateCapacityCommitmentRequestOrBuilderpublic 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;value - The enforceSingleAdminProjectPerOrg to set.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;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;getCapacityCommitmentId in interface CreateCapacityCommitmentRequestOrBuilderpublic com.google.protobuf.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;getCapacityCommitmentIdBytes in interface CreateCapacityCommitmentRequestOrBuilderpublic 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;value - The capacityCommitmentId to set.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;public CreateCapacityCommitmentRequest.Builder setCapacityCommitmentIdBytes(com.google.protobuf.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;value - The bytes for capacityCommitmentId to set.public final CreateCapacityCommitmentRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>public final CreateCapacityCommitmentRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.