public static final class CapacityHistoryResponsePreemptionRecord.Builder extends GeneratedMessage.Builder<CapacityHistoryResponsePreemptionRecord.Builder> implements CapacityHistoryResponsePreemptionRecordOrBuilderA record of Spot VM preemption history.
Protobuf type google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CapacityHistoryResponsePreemptionRecord.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CapacityHistoryResponsePreemptionRecord build()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
buildPartial()
public CapacityHistoryResponsePreemptionRecord buildPartial()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
clear()
public CapacityHistoryResponsePreemptionRecord.Builder clear()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
clearInterval()
public CapacityHistoryResponsePreemptionRecord.Builder clearInterval()The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
clearPreemptionRate()
public CapacityHistoryResponsePreemptionRecord.Builder clearPreemptionRate()The preemption rate during the interval, representing the fraction of Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total Spots that stopped running).
optional double preemption_rate = 140651910;
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CapacityHistoryResponsePreemptionRecord getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInterval()
public Interval getInterval()The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Returns | |
|---|---|
| Type | Description |
Interval |
The interval. |
getIntervalBuilder()
public Interval.Builder getIntervalBuilder()The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Returns | |
|---|---|
| Type | Description |
Interval.Builder |
|
getIntervalOrBuilder()
public IntervalOrBuilder getIntervalOrBuilder()The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Returns | |
|---|---|
| Type | Description |
IntervalOrBuilder |
|
getPreemptionRate()
public double getPreemptionRate()The preemption rate during the interval, representing the fraction of Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total Spots that stopped running).
optional double preemption_rate = 140651910;
| Returns | |
|---|---|
| Type | Description |
double |
The preemptionRate. |
hasInterval()
public boolean hasInterval()The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the interval field is set. |
hasPreemptionRate()
public boolean hasPreemptionRate()The preemption rate during the interval, representing the fraction of Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total Spots that stopped running).
optional double preemption_rate = 140651910;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the preemptionRate field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CapacityHistoryResponsePreemptionRecord other)
public CapacityHistoryResponsePreemptionRecord.Builder mergeFrom(CapacityHistoryResponsePreemptionRecord other)| Parameter | |
|---|---|
| Name | Description |
other |
CapacityHistoryResponsePreemptionRecord |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CapacityHistoryResponsePreemptionRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CapacityHistoryResponsePreemptionRecord.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
mergeInterval(Interval value)
public CapacityHistoryResponsePreemptionRecord.Builder mergeInterval(Interval value)The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Parameter | |
|---|---|
| Name | Description |
value |
Interval |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
setInterval(Interval value)
public CapacityHistoryResponsePreemptionRecord.Builder setInterval(Interval value)The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Parameter | |
|---|---|
| Name | Description |
value |
Interval |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
setInterval(Interval.Builder builderForValue)
public CapacityHistoryResponsePreemptionRecord.Builder setInterval(Interval.Builder builderForValue)The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Interval.Builder |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
setPreemptionRate(double value)
public CapacityHistoryResponsePreemptionRecord.Builder setPreemptionRate(double value)The preemption rate during the interval, representing the fraction of Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is calculated as (total preempted Spots) / (total Spots that stopped running).
optional double preemption_rate = 140651910;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe preemptionRate to set. |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
This builder for chaining. |