Class MergeCapacityCommitmentsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
- com.google.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest.Builder
-
- All Implemented Interfaces:
MergeCapacityCommitmentsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MergeCapacityCommitmentsRequest
public static final class MergeCapacityCommitmentsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder> implements MergeCapacityCommitmentsRequestOrBuilder
The request for [ReservationService.MergeCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments].
Protobuf typegoogle.cloud.bigquery.reservation.v1.MergeCapacityCommitmentsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MergeCapacityCommitmentsRequest.Builder
addAllCapacityCommitmentIds(Iterable<String> values)
Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.Builder
addCapacityCommitmentIds(String value)
Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.Builder
addCapacityCommitmentIdsBytes(com.google.protobuf.ByteString value)
Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MergeCapacityCommitmentsRequest
build()
MergeCapacityCommitmentsRequest
buildPartial()
MergeCapacityCommitmentsRequest.Builder
clear()
MergeCapacityCommitmentsRequest.Builder
clearCapacityCommitmentIds()
Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MergeCapacityCommitmentsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MergeCapacityCommitmentsRequest.Builder
clearParent()
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`MergeCapacityCommitmentsRequest.Builder
clone()
String
getCapacityCommitmentIds(int index)
Ids of capacity commitments to merge.com.google.protobuf.ByteString
getCapacityCommitmentIdsBytes(int index)
Ids of capacity commitments to merge.int
getCapacityCommitmentIdsCount()
Ids of capacity commitments to merge.com.google.protobuf.ProtocolStringList
getCapacityCommitmentIdsList()
Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getParent()
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`com.google.protobuf.ByteString
getParentBytes()
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MergeCapacityCommitmentsRequest.Builder
mergeFrom(MergeCapacityCommitmentsRequest other)
MergeCapacityCommitmentsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MergeCapacityCommitmentsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
MergeCapacityCommitmentsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MergeCapacityCommitmentsRequest.Builder
setCapacityCommitmentIds(int index, String value)
Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MergeCapacityCommitmentsRequest.Builder
setParent(String value)
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`MergeCapacityCommitmentsRequest.Builder
setParentBytes(com.google.protobuf.ByteString value)
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`MergeCapacityCommitmentsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MergeCapacityCommitmentsRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
clear
public MergeCapacityCommitmentsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
getDefaultInstanceForType
public MergeCapacityCommitmentsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MergeCapacityCommitmentsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MergeCapacityCommitmentsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MergeCapacityCommitmentsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
setField
public MergeCapacityCommitmentsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
clearField
public MergeCapacityCommitmentsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
clearOneof
public MergeCapacityCommitmentsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
setRepeatedField
public MergeCapacityCommitmentsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
addRepeatedField
public MergeCapacityCommitmentsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
mergeFrom
public MergeCapacityCommitmentsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MergeCapacityCommitmentsRequest.Builder>
-
mergeFrom
public MergeCapacityCommitmentsRequest.Builder mergeFrom(MergeCapacityCommitmentsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
mergeFrom
public MergeCapacityCommitmentsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MergeCapacityCommitmentsRequest.Builder>
- Throws:
IOException
-
getParent
public String getParent()
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`
string parent = 1 [(.google.api.resource_reference) = { ... }
- Specified by:
getParent
in interfaceMergeCapacityCommitmentsRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`
string parent = 1 [(.google.api.resource_reference) = { ... }
- Specified by:
getParentBytes
in interfaceMergeCapacityCommitmentsRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public MergeCapacityCommitmentsRequest.Builder setParent(String value)
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`
string parent = 1 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public MergeCapacityCommitmentsRequest.Builder clearParent()
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`
string parent = 1 [(.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
public MergeCapacityCommitmentsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`
string parent = 1 [(.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getCapacityCommitmentIdsList
public com.google.protobuf.ProtocolStringList getCapacityCommitmentIdsList()
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Specified by:
getCapacityCommitmentIdsList
in interfaceMergeCapacityCommitmentsRequestOrBuilder
- Returns:
- A list containing the capacityCommitmentIds.
-
getCapacityCommitmentIdsCount
public int getCapacityCommitmentIdsCount()
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Specified by:
getCapacityCommitmentIdsCount
in interfaceMergeCapacityCommitmentsRequestOrBuilder
- Returns:
- The count of capacityCommitmentIds.
-
getCapacityCommitmentIds
public String getCapacityCommitmentIds(int index)
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Specified by:
getCapacityCommitmentIds
in interfaceMergeCapacityCommitmentsRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The capacityCommitmentIds at the given index.
-
getCapacityCommitmentIdsBytes
public com.google.protobuf.ByteString getCapacityCommitmentIdsBytes(int index)
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Specified by:
getCapacityCommitmentIdsBytes
in interfaceMergeCapacityCommitmentsRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the capacityCommitmentIds at the given index.
-
setCapacityCommitmentIds
public MergeCapacityCommitmentsRequest.Builder setCapacityCommitmentIds(int index, String value)
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Parameters:
index
- The index to set the value at.value
- The capacityCommitmentIds to set.- Returns:
- This builder for chaining.
-
addCapacityCommitmentIds
public MergeCapacityCommitmentsRequest.Builder addCapacityCommitmentIds(String value)
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Parameters:
value
- The capacityCommitmentIds to add.- Returns:
- This builder for chaining.
-
addAllCapacityCommitmentIds
public MergeCapacityCommitmentsRequest.Builder addAllCapacityCommitmentIds(Iterable<String> values)
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Parameters:
values
- The capacityCommitmentIds to add.- Returns:
- This builder for chaining.
-
clearCapacityCommitmentIds
public MergeCapacityCommitmentsRequest.Builder clearCapacityCommitmentIds()
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Returns:
- This builder for chaining.
-
addCapacityCommitmentIdsBytes
public MergeCapacityCommitmentsRequest.Builder addCapacityCommitmentIdsBytes(com.google.protobuf.ByteString value)
Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc
repeated string capacity_commitment_ids = 2;
- Parameters:
value
- The bytes of the capacityCommitmentIds to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final MergeCapacityCommitmentsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
mergeUnknownFields
public final MergeCapacityCommitmentsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
-