public final class CapacityHistoryResponsePreemptionRecord extends GeneratedMessage implements CapacityHistoryResponsePreemptionRecordOrBuilderA record of Spot VM preemption history.
Protobuf type google.cloud.compute.v1.CapacityHistoryResponsePreemptionRecord
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CapacityHistoryResponsePreemptionRecordStatic Fields
INTERVAL_FIELD_NUMBER
public static final int INTERVAL_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PREEMPTION_RATE_FIELD_NUMBER
public static final int PREEMPTION_RATE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static CapacityHistoryResponsePreemptionRecord getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static CapacityHistoryResponsePreemptionRecord.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
newBuilder(CapacityHistoryResponsePreemptionRecord prototype)
public static CapacityHistoryResponsePreemptionRecord.Builder newBuilder(CapacityHistoryResponsePreemptionRecord prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
CapacityHistoryResponsePreemptionRecord |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
parseDelimitedFrom(InputStream input)
public static CapacityHistoryResponsePreemptionRecord parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CapacityHistoryResponsePreemptionRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static CapacityHistoryResponsePreemptionRecord parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CapacityHistoryResponsePreemptionRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static CapacityHistoryResponsePreemptionRecord parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CapacityHistoryResponsePreemptionRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static CapacityHistoryResponsePreemptionRecord parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CapacityHistoryResponsePreemptionRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static CapacityHistoryResponsePreemptionRecord parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CapacityHistoryResponsePreemptionRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static CapacityHistoryResponsePreemptionRecord parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CapacityHistoryResponsePreemptionRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<CapacityHistoryResponsePreemptionRecord> parser()| Returns | |
|---|---|
| Type | Description |
Parser<CapacityHistoryResponsePreemptionRecord> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public CapacityHistoryResponsePreemptionRecord getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord |
|
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. |
getIntervalOrBuilder()
public IntervalOrBuilder getIntervalOrBuilder()The time interval for this preemption record.
optional .google.cloud.compute.v1.Interval interval = 33547461;
| Returns | |
|---|---|
| Type | Description |
IntervalOrBuilder |
|
getParserForType()
public Parser<CapacityHistoryResponsePreemptionRecord> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<CapacityHistoryResponsePreemptionRecord> |
|
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. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public CapacityHistoryResponsePreemptionRecord.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CapacityHistoryResponsePreemptionRecord.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
toBuilder()
public CapacityHistoryResponsePreemptionRecord.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
CapacityHistoryResponsePreemptionRecord.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|