Class CapacityHistoryResponse (1.109.0)

public final class CapacityHistoryResponse extends GeneratedMessage implements CapacityHistoryResponseOrBuilder

Contains the capacity history.

Protobuf type google.cloud.compute.v1.CapacityHistoryResponse

Static Fields

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PREEMPTION_HISTORY_FIELD_NUMBER

public static final int PREEMPTION_HISTORY_FIELD_NUMBER
Field Value
Type Description
int

PRICE_HISTORY_FIELD_NUMBER

public static final int PRICE_HISTORY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CapacityHistoryResponse getDefaultInstance()
Returns
Type Description
CapacityHistoryResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CapacityHistoryResponse.Builder newBuilder()
Returns
Type Description
CapacityHistoryResponse.Builder

newBuilder(CapacityHistoryResponse prototype)

public static CapacityHistoryResponse.Builder newBuilder(CapacityHistoryResponse prototype)
Parameter
Name Description
prototype CapacityHistoryResponse
Returns
Type Description
CapacityHistoryResponse.Builder

parseDelimitedFrom(InputStream input)

public static CapacityHistoryResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CapacityHistoryResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CapacityHistoryResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CapacityHistoryResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CapacityHistoryResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CapacityHistoryResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CapacityHistoryResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CapacityHistoryResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CapacityHistoryResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CapacityHistoryResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CapacityHistoryResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CapacityHistoryResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityHistoryResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CapacityHistoryResponse> parser()
Returns
Type Description
Parser<CapacityHistoryResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CapacityHistoryResponse getDefaultInstanceForType()
Returns
Type Description
CapacityHistoryResponse

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.

getParserForType()

public Parser<CapacityHistoryResponse> getParserForType()
Returns
Type Description
Parser<CapacityHistoryResponse>
Overrides

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

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CapacityHistoryResponse.Builder newBuilderForType()
Returns
Type Description
CapacityHistoryResponse.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected CapacityHistoryResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CapacityHistoryResponse.Builder
Overrides

toBuilder()

public CapacityHistoryResponse.Builder toBuilder()
Returns
Type Description
CapacityHistoryResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException