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.BuilderaddAllCapacityCommitmentIds(Iterable<String> values)Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.BuilderaddCapacityCommitmentIds(String value)Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.BuilderaddCapacityCommitmentIdsBytes(com.google.protobuf.ByteString value)Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MergeCapacityCommitmentsRequestbuild()MergeCapacityCommitmentsRequestbuildPartial()MergeCapacityCommitmentsRequest.Builderclear()MergeCapacityCommitmentsRequest.BuilderclearCapacityCommitmentIds()Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MergeCapacityCommitmentsRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MergeCapacityCommitmentsRequest.BuilderclearParent()Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`MergeCapacityCommitmentsRequest.Builderclone()StringgetCapacityCommitmentIds(int index)Ids of capacity commitments to merge.com.google.protobuf.ByteStringgetCapacityCommitmentIdsBytes(int index)Ids of capacity commitments to merge.intgetCapacityCommitmentIdsCount()Ids of capacity commitments to merge.com.google.protobuf.ProtocolStringListgetCapacityCommitmentIdsList()Ids of capacity commitments to merge.MergeCapacityCommitmentsRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetParent()Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`com.google.protobuf.ByteStringgetParentBytes()Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MergeCapacityCommitmentsRequest.BuildermergeFrom(MergeCapacityCommitmentsRequest other)MergeCapacityCommitmentsRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MergeCapacityCommitmentsRequest.BuildermergeFrom(com.google.protobuf.Message other)MergeCapacityCommitmentsRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MergeCapacityCommitmentsRequest.BuildersetCapacityCommitmentIds(int index, String value)Ids of capacity commitments to merge.MergeCapacityCommitmentsRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MergeCapacityCommitmentsRequest.BuildersetParent(String value)Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`MergeCapacityCommitmentsRequest.BuildersetParentBytes(com.google.protobuf.ByteString value)Parent resource that identifies admin project and location e.g., `projects/myproject/locations/us`MergeCapacityCommitmentsRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MergeCapacityCommitmentsRequest.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
clear
public MergeCapacityCommitmentsRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
getDefaultInstanceForType
public MergeCapacityCommitmentsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MergeCapacityCommitmentsRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MergeCapacityCommitmentsRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MergeCapacityCommitmentsRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
setField
public MergeCapacityCommitmentsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
clearField
public MergeCapacityCommitmentsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
clearOneof
public MergeCapacityCommitmentsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
setRepeatedField
public MergeCapacityCommitmentsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
addRepeatedField
public MergeCapacityCommitmentsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
mergeFrom
public MergeCapacityCommitmentsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MergeCapacityCommitmentsRequest.Builder>
-
mergeFrom
public MergeCapacityCommitmentsRequest.Builder mergeFrom(MergeCapacityCommitmentsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getParentin 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:
getParentBytesin 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:
getCapacityCommitmentIdsListin 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:
getCapacityCommitmentIdsCountin 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:
getCapacityCommitmentIdsin 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:
getCapacityCommitmentIdsBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
mergeUnknownFields
public final MergeCapacityCommitmentsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder>
-
-