public static final class Allocation.Builder extends GeneratedMessageV3.Builder<Allocation.Builder> implements AllocationOrBuilderRepesents Allocation which is part of aggregated reservations data response of "QueryReservations".
Protobuf type google.cloud.capacityplanner.v1beta.Allocation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Allocation.BuilderImplements
AllocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Allocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
build()
public Allocation build()| Returns | |
|---|---|
| Type | Description |
Allocation |
|
buildPartial()
public Allocation buildPartial()| Returns | |
|---|---|
| Type | Description |
Allocation |
|
clear()
public Allocation.Builder clear()| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
clearAllocation()
public Allocation.Builder clearAllocation()The reservation resource name.
string allocation = 5;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
clearAutoDeleteTime()
public Allocation.Builder clearAutoDeleteTime()Absolute time in future when the reservation will be auto-deleted by Compute Engine.
.google.protobuf.Timestamp auto_delete_time = 9;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
clearCreateTime()
public Allocation.Builder clearCreateTime()The creation timestamp for this allocation.
.google.protobuf.Timestamp create_time = 2;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
clearDescription()
public Allocation.Builder clearDescription()A description while creating reservation.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Allocation.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
clearId()
public Allocation.Builder clearId()The unique identifier for the resource. This identifier is defined by the server.
int64 id = 1;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Allocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
clearOwnerProjectId()
public Allocation.Builder clearOwnerProjectId()string owner_project_id = 10;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
clearShareSettings()
public Allocation.Builder clearShareSettings()Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
clearSpecificAllocation()
public Allocation.Builder clearSpecificAllocation()Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
clearStatus()
public Allocation.Builder clearStatus()The status of the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
clearType()
public Allocation.Builder clearType()| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
clearZone()
public Allocation.Builder clearZone()Zone in which the reservation resides.
string zone = 3;
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
clone()
public Allocation.Builder clone()| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
getAllocation()
public String getAllocation()The reservation resource name.
string allocation = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The allocation. |
getAllocationBytes()
public ByteString getAllocationBytes()The reservation resource name.
string allocation = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for allocation. |
getAutoDeleteTime()
public Timestamp getAutoDeleteTime()Absolute time in future when the reservation will be auto-deleted by Compute Engine.
.google.protobuf.Timestamp auto_delete_time = 9;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The autoDeleteTime. |
getAutoDeleteTimeBuilder()
public Timestamp.Builder getAutoDeleteTimeBuilder()Absolute time in future when the reservation will be auto-deleted by Compute Engine.
.google.protobuf.Timestamp auto_delete_time = 9;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getAutoDeleteTimeOrBuilder()
public TimestampOrBuilder getAutoDeleteTimeOrBuilder()Absolute time in future when the reservation will be auto-deleted by Compute Engine.
.google.protobuf.Timestamp auto_delete_time = 9;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getCreateTime()
public Timestamp getCreateTime()The creation timestamp for this allocation.
.google.protobuf.Timestamp create_time = 2;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()The creation timestamp for this allocation.
.google.protobuf.Timestamp create_time = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()The creation timestamp for this allocation.
.google.protobuf.Timestamp create_time = 2;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public Allocation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Allocation |
|
getDescription()
public String getDescription()A description while creating reservation.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()A description while creating reservation.
string description = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getId()
public long getId()The unique identifier for the resource. This identifier is defined by the server.
int64 id = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The id. |
getOwnerProjectId()
public String getOwnerProjectId()string owner_project_id = 10;
| Returns | |
|---|---|
| Type | Description |
String |
The ownerProjectId. |
getOwnerProjectIdBytes()
public ByteString getOwnerProjectIdBytes()string owner_project_id = 10;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ownerProjectId. |
getShareSettings()
public Allocation.ShareSettings getShareSettings()Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
| Returns | |
|---|---|
| Type | Description |
Allocation.ShareSettings |
The shareSettings. |
getShareSettingsBuilder()
public Allocation.ShareSettings.Builder getShareSettingsBuilder()Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
| Returns | |
|---|---|
| Type | Description |
Allocation.ShareSettings.Builder |
|
getShareSettingsOrBuilder()
public Allocation.ShareSettingsOrBuilder getShareSettingsOrBuilder()Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
| Returns | |
|---|---|
| Type | Description |
Allocation.ShareSettingsOrBuilder |
|
getSpecificAllocation()
public Allocation.SpecificSKUAllocation getSpecificAllocation()Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation |
The specificAllocation. |
getSpecificAllocationBuilder()
public Allocation.SpecificSKUAllocation.Builder getSpecificAllocationBuilder()Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.Builder |
|
getSpecificAllocationOrBuilder()
public Allocation.SpecificSKUAllocationOrBuilder getSpecificAllocationOrBuilder()Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocationOrBuilder |
|
getStatus()
public Allocation.Status getStatus()The status of the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;
| Returns | |
|---|---|
| Type | Description |
Allocation.Status |
The status. |
getStatusValue()
public int getStatusValue()The status of the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for status. |
getTypeCase()
public Allocation.TypeCase getTypeCase()| Returns | |
|---|---|
| Type | Description |
Allocation.TypeCase |
|
getZone()
public String getZone()Zone in which the reservation resides.
string zone = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The zone. |
getZoneBytes()
public ByteString getZoneBytes()Zone in which the reservation resides.
string zone = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for zone. |
hasAutoDeleteTime()
public boolean hasAutoDeleteTime()Absolute time in future when the reservation will be auto-deleted by Compute Engine.
.google.protobuf.Timestamp auto_delete_time = 9;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the autoDeleteTime field is set. |
hasCreateTime()
public boolean hasCreateTime()The creation timestamp for this allocation.
.google.protobuf.Timestamp create_time = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasShareSettings()
public boolean hasShareSettings()Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the shareSettings field is set. |
hasSpecificAllocation()
public boolean hasSpecificAllocation()Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the specificAllocation field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAutoDeleteTime(Timestamp value)
public Allocation.Builder mergeAutoDeleteTime(Timestamp value)Absolute time in future when the reservation will be auto-deleted by Compute Engine.
.google.protobuf.Timestamp auto_delete_time = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
mergeCreateTime(Timestamp value)
public Allocation.Builder mergeCreateTime(Timestamp value)The creation timestamp for this allocation.
.google.protobuf.Timestamp create_time = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
mergeFrom(Allocation other)
public Allocation.Builder mergeFrom(Allocation other)| Parameter | |
|---|---|
| Name | Description |
other |
Allocation |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Allocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Allocation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
mergeShareSettings(Allocation.ShareSettings value)
public Allocation.Builder mergeShareSettings(Allocation.ShareSettings value)Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
Allocation.ShareSettings |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
mergeSpecificAllocation(Allocation.SpecificSKUAllocation value)
public Allocation.Builder mergeSpecificAllocation(Allocation.SpecificSKUAllocation value)Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Allocation.SpecificSKUAllocation |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Allocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setAllocation(String value)
public Allocation.Builder setAllocation(String value)The reservation resource name.
string allocation = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe allocation to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setAllocationBytes(ByteString value)
public Allocation.Builder setAllocationBytes(ByteString value)The reservation resource name.
string allocation = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for allocation to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setAutoDeleteTime(Timestamp value)
public Allocation.Builder setAutoDeleteTime(Timestamp value)Absolute time in future when the reservation will be auto-deleted by Compute Engine.
.google.protobuf.Timestamp auto_delete_time = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setAutoDeleteTime(Timestamp.Builder builderForValue)
public Allocation.Builder setAutoDeleteTime(Timestamp.Builder builderForValue)Absolute time in future when the reservation will be auto-deleted by Compute Engine.
.google.protobuf.Timestamp auto_delete_time = 9;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setCreateTime(Timestamp value)
public Allocation.Builder setCreateTime(Timestamp value)The creation timestamp for this allocation.
.google.protobuf.Timestamp create_time = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Allocation.Builder setCreateTime(Timestamp.Builder builderForValue)The creation timestamp for this allocation.
.google.protobuf.Timestamp create_time = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setDescription(String value)
public Allocation.Builder setDescription(String value)A description while creating reservation.
string description = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Allocation.Builder setDescriptionBytes(ByteString value)A description while creating reservation.
string description = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Allocation.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setId(long value)
public Allocation.Builder setId(long value)The unique identifier for the resource. This identifier is defined by the server.
int64 id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe id to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setOwnerProjectId(String value)
public Allocation.Builder setOwnerProjectId(String value)string owner_project_id = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ownerProjectId to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setOwnerProjectIdBytes(ByteString value)
public Allocation.Builder setOwnerProjectIdBytes(ByteString value)string owner_project_id = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ownerProjectId to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Allocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setShareSettings(Allocation.ShareSettings value)
public Allocation.Builder setShareSettings(Allocation.ShareSettings value)Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
Allocation.ShareSettings |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setShareSettings(Allocation.ShareSettings.Builder builderForValue)
public Allocation.Builder setShareSettings(Allocation.ShareSettings.Builder builderForValue)Specify share-settings to create a shared reservation.
.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Allocation.ShareSettings.Builder |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setSpecificAllocation(Allocation.SpecificSKUAllocation value)
public Allocation.Builder setSpecificAllocation(Allocation.SpecificSKUAllocation value)Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Allocation.SpecificSKUAllocation |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setSpecificAllocation(Allocation.SpecificSKUAllocation.Builder builderForValue)
public Allocation.Builder setSpecificAllocation(Allocation.SpecificSKUAllocation.Builder builderForValue)Reservation for instances with specific machine shapes.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Allocation.SpecificSKUAllocation.Builder |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setStatus(Allocation.Status value)
public Allocation.Builder setStatus(Allocation.Status value)The status of the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Allocation.StatusThe status to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setStatusValue(int value)
public Allocation.Builder setStatusValue(int value)The status of the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for status to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Allocation.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
|
setZone(String value)
public Allocation.Builder setZone(String value)Zone in which the reservation resides.
string zone = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe zone to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
public Allocation.Builder setZoneBytes(ByteString value)Zone in which the reservation resides.
string zone = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.Builder |
This builder for chaining. |