Class ReservationData (0.1.0)

public final class ReservationData extends GeneratedMessageV3 implements ReservationDataOrBuilder

Response entity for reservations data.

Protobuf type google.cloud.capacityplanner.v1beta.ReservationData

Static Fields

ALLOCATIONS_FIELD_NUMBER

public static final int ALLOCATIONS_FIELD_NUMBER
Field Value
Type Description
int

FUTURE_RESERVATIONS_FIELD_NUMBER

public static final int FUTURE_RESERVATIONS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TIME_SERIES_FIELD_NUMBER

public static final int TIME_SERIES_FIELD_NUMBER
Field Value
Type Description
int

USED_RESERVATION_VALUES_FIELD_NUMBER

public static final int USED_RESERVATION_VALUES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReservationData getDefaultInstance()
Returns
Type Description
ReservationData

getDescriptor()

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

newBuilder()

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

newBuilder(ReservationData prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAllocations(int index)

public Allocation getAllocations(int index)

Allocations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.Allocation allocations = 4;

Parameter
Name Description
index int
Returns
Type Description
Allocation

getAllocationsCount()

public int getAllocationsCount()

Allocations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.Allocation allocations = 4;

Returns
Type Description
int

getAllocationsList()

public List<Allocation> getAllocationsList()

Allocations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.Allocation allocations = 4;

Returns
Type Description
List<Allocation>

getAllocationsOrBuilder(int index)

public AllocationOrBuilder getAllocationsOrBuilder(int index)

Allocations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.Allocation allocations = 4;

Parameter
Name Description
index int
Returns
Type Description
AllocationOrBuilder

getAllocationsOrBuilderList()

public List<? extends AllocationOrBuilder> getAllocationsOrBuilderList()

Allocations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.Allocation allocations = 4;

Returns
Type Description
List<? extends com.google.cloud.capacityplanner.v1beta.AllocationOrBuilder>

getDefaultInstanceForType()

public ReservationData getDefaultInstanceForType()
Returns
Type Description
ReservationData

getFutureReservations(int index)

public FutureReservation getFutureReservations(int index)

Future reservations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.FutureReservation future_reservations = 3;

Parameter
Name Description
index int
Returns
Type Description
FutureReservation

getFutureReservationsCount()

public int getFutureReservationsCount()

Future reservations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.FutureReservation future_reservations = 3;

Returns
Type Description
int

getFutureReservationsList()

public List<FutureReservation> getFutureReservationsList()

Future reservations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.FutureReservation future_reservations = 3;

Returns
Type Description
List<FutureReservation>

getFutureReservationsOrBuilder(int index)

public FutureReservationOrBuilder getFutureReservationsOrBuilder(int index)

Future reservations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.FutureReservation future_reservations = 3;

Parameter
Name Description
index int
Returns
Type Description
FutureReservationOrBuilder

getFutureReservationsOrBuilderList()

public List<? extends FutureReservationOrBuilder> getFutureReservationsOrBuilderList()

Future reservations filtered by the criteria.

repeated .google.cloud.capacityplanner.v1beta.FutureReservation future_reservations = 3;

Returns
Type Description
List<? extends com.google.cloud.capacityplanner.v1beta.FutureReservationOrBuilder>

getName()

public String getName()

Identifier. The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/reservations/{reservation_id} or organizations/{organization_id}/locations/{location_id}/reservations/{reservation_id} or folders/{folder_id}/locations/{location_id}/reservations/{reservation_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the connection in the form of: projects/{project_id}/locations/{location_id}/reservations/{reservation_id} or organizations/{organization_id}/locations/{location_id}/reservations/{reservation_id} or folders/{folder_id}/locations/{location_id}/reservations/{reservation_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTimeSeries()

public TimeSeries getTimeSeries()

The collection of data points that represent the aggregated reserved value for reservations filtered by the criteria.

.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 2;

Returns
Type Description
TimeSeries

The timeSeries.

getTimeSeriesOrBuilder()

public TimeSeriesOrBuilder getTimeSeriesOrBuilder()

The collection of data points that represent the aggregated reserved value for reservations filtered by the criteria.

.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 2;

Returns
Type Description
TimeSeriesOrBuilder

getUsedReservationValues()

public TimeSeries getUsedReservationValues()

The collection of data points that represent the aggregated used value for reservations filtered by the criteria.

.google.cloud.capacityplanner.v1beta.TimeSeries used_reservation_values = 5;

Returns
Type Description
TimeSeries

The usedReservationValues.

getUsedReservationValuesOrBuilder()

public TimeSeriesOrBuilder getUsedReservationValuesOrBuilder()

The collection of data points that represent the aggregated used value for reservations filtered by the criteria.

.google.cloud.capacityplanner.v1beta.TimeSeries used_reservation_values = 5;

Returns
Type Description
TimeSeriesOrBuilder

hasTimeSeries()

public boolean hasTimeSeries()

The collection of data points that represent the aggregated reserved value for reservations filtered by the criteria.

.google.cloud.capacityplanner.v1beta.TimeSeries time_series = 2;

Returns
Type Description
boolean

Whether the timeSeries field is set.

hasUsedReservationValues()

public boolean hasUsedReservationValues()

The collection of data points that represent the aggregated used value for reservations filtered by the criteria.

.google.cloud.capacityplanner.v1beta.TimeSeries used_reservation_values = 5;

Returns
Type Description
boolean

Whether the usedReservationValues field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReservationData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReservationData.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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