public static final class CapacityHistoryResponse.Builder extends GeneratedMessage.Builder<CapacityHistoryResponse.Builder> implements CapacityHistoryResponseOrBuilderContains the capacity history.
Protobuf type google.cloud.compute.v1.CapacityHistoryResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CapacityHistoryResponse.BuilderImplements
CapacityHistoryResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllPreemptionHistory(Iterable<? extends CapacityHistoryResponsePreemptionRecord> values)
public CapacityHistoryResponse.Builder addAllPreemptionHistory(Iterable<? extends CapacityHistoryResponsePreemptionRecord> values)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord> |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addAllPriceHistory(Iterable<? extends CapacityHistoryResponsePriceRecord> values)
public CapacityHistoryResponse.Builder addAllPriceHistory(Iterable<? extends CapacityHistoryResponsePriceRecord> values)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.compute.v1.CapacityHistoryResponsePriceRecord> |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPreemptionHistory(CapacityHistoryResponsePreemptionRecord value)
public CapacityHistoryResponse.Builder addPreemptionHistory(CapacityHistoryResponsePreemptionRecord value)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameter | |
|---|---|
| Name | Description |
value |
CapacityHistoryResponsePreemptionRecord |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPreemptionHistory(CapacityHistoryResponsePreemptionRecord.Builder builderForValue)
public CapacityHistoryResponse.Builder addPreemptionHistory(CapacityHistoryResponsePreemptionRecord.Builder builderForValue)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CapacityHistoryResponsePreemptionRecord.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPreemptionHistory(int index, CapacityHistoryResponsePreemptionRecord value)
public CapacityHistoryResponse.Builder addPreemptionHistory(int index, CapacityHistoryResponsePreemptionRecord value)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CapacityHistoryResponsePreemptionRecord |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPreemptionHistory(int index, CapacityHistoryResponsePreemptionRecord.Builder builderForValue)
public CapacityHistoryResponse.Builder addPreemptionHistory(int index, CapacityHistoryResponsePreemptionRecord.Builder builderForValue)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CapacityHistoryResponsePreemptionRecord.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPreemptionHistoryBuilder()
public CapacityHistoryResponsePreemptionRecord.Builder addPreemptionHistoryBuilder()The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
addPreemptionHistoryBuilder(int index)
public CapacityHistoryResponsePreemptionRecord.Builder addPreemptionHistoryBuilder(int index)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
addPriceHistory(CapacityHistoryResponsePriceRecord value)
public CapacityHistoryResponse.Builder addPriceHistory(CapacityHistoryResponsePriceRecord value)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameter | |
|---|---|
| Name | Description |
value |
CapacityHistoryResponsePriceRecord |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPriceHistory(CapacityHistoryResponsePriceRecord.Builder builderForValue)
public CapacityHistoryResponse.Builder addPriceHistory(CapacityHistoryResponsePriceRecord.Builder builderForValue)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CapacityHistoryResponsePriceRecord.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPriceHistory(int index, CapacityHistoryResponsePriceRecord value)
public CapacityHistoryResponse.Builder addPriceHistory(int index, CapacityHistoryResponsePriceRecord value)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CapacityHistoryResponsePriceRecord |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPriceHistory(int index, CapacityHistoryResponsePriceRecord.Builder builderForValue)
public CapacityHistoryResponse.Builder addPriceHistory(int index, CapacityHistoryResponsePriceRecord.Builder builderForValue)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CapacityHistoryResponsePriceRecord.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
addPriceHistoryBuilder()
public CapacityHistoryResponsePriceRecord.Builder addPriceHistoryBuilder()The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePriceRecord.Builder |
|
addPriceHistoryBuilder(int index)
public CapacityHistoryResponsePriceRecord.Builder addPriceHistoryBuilder(int index)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePriceRecord.Builder |
|
build()
public CapacityHistoryResponse build()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse |
|
buildPartial()
public CapacityHistoryResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse |
|
clear()
public CapacityHistoryResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
clearLocation()
public CapacityHistoryResponse.Builder clearLocation()Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
optional string location = 290430901;
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
This builder for chaining. |
clearMachineType()
public CapacityHistoryResponse.Builder clearMachineType()The machine type for which the capacity history is returned.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
This builder for chaining. |
clearPreemptionHistory()
public CapacityHistoryResponse.Builder clearPreemptionHistory()The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
clearPriceHistory()
public CapacityHistoryResponse.Builder clearPriceHistory()The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
getDefaultInstanceForType()
public CapacityHistoryResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLocation()
public String getLocation()Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
optional string location = 290430901;
| Returns | |
|---|---|
| Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
optional string location = 290430901;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for location. |
getMachineType()
public String getMachineType()The machine type for which the capacity history is returned.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
String |
The machineType. |
getMachineTypeBytes()
public ByteString getMachineTypeBytes()The machine type for which the capacity history is returned.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for machineType. |
getPreemptionHistory(int index)
public CapacityHistoryResponsePreemptionRecord getPreemptionHistory(int index)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
getPreemptionHistoryBuilder(int index)
public CapacityHistoryResponsePreemptionRecord.Builder getPreemptionHistoryBuilder(int index)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
getPreemptionHistoryBuilderList()
public List<CapacityHistoryResponsePreemptionRecord.Builder> getPreemptionHistoryBuilderList()The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getPreemptionHistoryCount()
public int getPreemptionHistoryCount()The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Returns | |
|---|---|
| Type | Description |
int |
|
getPreemptionHistoryList()
public List<CapacityHistoryResponsePreemptionRecord> getPreemptionHistoryList()The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Returns | |
|---|---|
| Type | Description |
List<CapacityHistoryResponsePreemptionRecord> |
|
getPreemptionHistoryOrBuilder(int index)
public CapacityHistoryResponsePreemptionRecordOrBuilder getPreemptionHistoryOrBuilder(int index)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecordOrBuilder |
|
getPreemptionHistoryOrBuilderList()
public List<? extends CapacityHistoryResponsePreemptionRecordOrBuilder> getPreemptionHistoryOrBuilderList()The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecordOrBuilder> |
|
getPriceHistory(int index)
public CapacityHistoryResponsePriceRecord getPriceHistory(int index)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePriceRecord |
|
getPriceHistoryBuilder(int index)
public CapacityHistoryResponsePriceRecord.Builder getPriceHistoryBuilder(int index)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePriceRecord.Builder |
|
getPriceHistoryBuilderList()
public List<CapacityHistoryResponsePriceRecord.Builder> getPriceHistoryBuilderList()The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getPriceHistoryCount()
public int getPriceHistoryCount()The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Returns | |
|---|---|
| Type | Description |
int |
|
getPriceHistoryList()
public List<CapacityHistoryResponsePriceRecord> getPriceHistoryList()The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Returns | |
|---|---|
| Type | Description |
List<CapacityHistoryResponsePriceRecord> |
|
getPriceHistoryOrBuilder(int index)
public CapacityHistoryResponsePriceRecordOrBuilder getPriceHistoryOrBuilder(int index)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePriceRecordOrBuilder |
|
getPriceHistoryOrBuilderList()
public List<? extends CapacityHistoryResponsePriceRecordOrBuilder> getPriceHistoryOrBuilderList()The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.compute.v1.CapacityHistoryResponsePriceRecordOrBuilder> |
|
hasLocation()
public boolean hasLocation()Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
optional string location = 290430901;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the location field is set. |
hasMachineType()
public boolean hasMachineType()The machine type for which the capacity history is returned.
optional string machine_type = 227711026;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the machineType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CapacityHistoryResponse other)
public CapacityHistoryResponse.Builder mergeFrom(CapacityHistoryResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
CapacityHistoryResponse |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CapacityHistoryResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CapacityHistoryResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
removePreemptionHistory(int index)
public CapacityHistoryResponse.Builder removePreemptionHistory(int index)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
removePriceHistory(int index)
public CapacityHistoryResponse.Builder removePriceHistory(int index)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
setLocation(String value)
public CapacityHistoryResponse.Builder setLocation(String value)Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
optional string location = 290430901;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe location to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public CapacityHistoryResponse.Builder setLocationBytes(ByteString value)Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
optional string location = 290430901;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
This builder for chaining. |
setMachineType(String value)
public CapacityHistoryResponse.Builder setMachineType(String value)The machine type for which the capacity history is returned.
optional string machine_type = 227711026;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineType to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
This builder for chaining. |
setMachineTypeBytes(ByteString value)
public CapacityHistoryResponse.Builder setMachineTypeBytes(ByteString value)The machine type for which the capacity history is returned.
optional string machine_type = 227711026;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineType to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
This builder for chaining. |
setPreemptionHistory(int index, CapacityHistoryResponsePreemptionRecord value)
public CapacityHistoryResponse.Builder setPreemptionHistory(int index, CapacityHistoryResponsePreemptionRecord value)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CapacityHistoryResponsePreemptionRecord |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
setPreemptionHistory(int index, CapacityHistoryResponsePreemptionRecord.Builder builderForValue)
public CapacityHistoryResponse.Builder setPreemptionHistory(int index, CapacityHistoryResponsePreemptionRecord.Builder builderForValue)The preemption history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord preemption_history = 364018222;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CapacityHistoryResponsePreemptionRecord.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
setPriceHistory(int index, CapacityHistoryResponsePriceRecord value)
public CapacityHistoryResponse.Builder setPriceHistory(int index, CapacityHistoryResponsePriceRecord value)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
CapacityHistoryResponsePriceRecord |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|
setPriceHistory(int index, CapacityHistoryResponsePriceRecord.Builder builderForValue)
public CapacityHistoryResponse.Builder setPriceHistory(int index, CapacityHistoryResponsePriceRecord.Builder builderForValue)The price history for the requested machine type and location.
repeated .google.cloud.compute.v1.CapacityHistoryResponsePriceRecord price_history = 326230942;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
CapacityHistoryResponsePriceRecord.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponse.Builder |
|