Send feedback
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static ReservationData . Builder newBuilder ()
newBuilder(ReservationData prototype)
public static ReservationData . Builder newBuilder ( ReservationData prototype )
public static ReservationData parseDelimitedFrom ( InputStream input )
public static ReservationData parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static ReservationData parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReservationData parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static ReservationData parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReservationData parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static ReservationData parseFrom ( CodedInputStream input )
public static ReservationData parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static ReservationData parseFrom ( InputStream input )
public static ReservationData parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static ReservationData parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReservationData parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<ReservationData> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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
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;
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
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 ()
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
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;
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
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()
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 ()
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;
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;
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()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public ReservationData . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ReservationData . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public ReservationData . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]