Class ReservationData.Builder (0.1.0)

public static final class ReservationData.Builder extends GeneratedMessageV3.Builder<ReservationData.Builder> implements ReservationDataOrBuilder

Response entity for reservations data.

Protobuf type google.cloud.capacityplanner.v1beta.ReservationData

Static Methods

getDescriptor()

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

Methods

addAllAllocations(Iterable<? extends Allocation> values)

public ReservationData.Builder addAllAllocations(Iterable<? extends Allocation> values)

Allocations filtered by the criteria.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.capacityplanner.v1beta.Allocation>
Returns
Type Description
ReservationData.Builder

addAllFutureReservations(Iterable<? extends FutureReservation> values)

public ReservationData.Builder addAllFutureReservations(Iterable<? extends FutureReservation> values)

Future reservations filtered by the criteria.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.capacityplanner.v1beta.FutureReservation>
Returns
Type Description
ReservationData.Builder

addAllocations(Allocation value)

public ReservationData.Builder addAllocations(Allocation value)

Allocations filtered by the criteria.

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

Parameter
Name Description
value Allocation
Returns
Type Description
ReservationData.Builder

addAllocations(Allocation.Builder builderForValue)

public ReservationData.Builder addAllocations(Allocation.Builder builderForValue)

Allocations filtered by the criteria.

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

Parameter
Name Description
builderForValue Allocation.Builder
Returns
Type Description
ReservationData.Builder

addAllocations(int index, Allocation value)

public ReservationData.Builder addAllocations(int index, Allocation value)

Allocations filtered by the criteria.

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

Parameters
Name Description
index int
value Allocation
Returns
Type Description
ReservationData.Builder

addAllocations(int index, Allocation.Builder builderForValue)

public ReservationData.Builder addAllocations(int index, Allocation.Builder builderForValue)

Allocations filtered by the criteria.

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

Parameters
Name Description
index int
builderForValue Allocation.Builder
Returns
Type Description
ReservationData.Builder

addAllocationsBuilder()

public Allocation.Builder addAllocationsBuilder()

Allocations filtered by the criteria.

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

Returns
Type Description
Allocation.Builder

addAllocationsBuilder(int index)

public Allocation.Builder addAllocationsBuilder(int index)

Allocations filtered by the criteria.

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

Parameter
Name Description
index int
Returns
Type Description
Allocation.Builder

addFutureReservations(FutureReservation value)

public ReservationData.Builder addFutureReservations(FutureReservation value)

Future reservations filtered by the criteria.

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

Parameter
Name Description
value FutureReservation
Returns
Type Description
ReservationData.Builder

addFutureReservations(FutureReservation.Builder builderForValue)

public ReservationData.Builder addFutureReservations(FutureReservation.Builder builderForValue)

Future reservations filtered by the criteria.

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

Parameter
Name Description
builderForValue FutureReservation.Builder
Returns
Type Description
ReservationData.Builder

addFutureReservations(int index, FutureReservation value)

public ReservationData.Builder addFutureReservations(int index, FutureReservation value)

Future reservations filtered by the criteria.

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

Parameters
Name Description
index int
value FutureReservation
Returns
Type Description
ReservationData.Builder

addFutureReservations(int index, FutureReservation.Builder builderForValue)

public ReservationData.Builder addFutureReservations(int index, FutureReservation.Builder builderForValue)

Future reservations filtered by the criteria.

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

Parameters
Name Description
index int
builderForValue FutureReservation.Builder
Returns
Type Description
ReservationData.Builder

addFutureReservationsBuilder()

public FutureReservation.Builder addFutureReservationsBuilder()

Future reservations filtered by the criteria.

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

Returns
Type Description
FutureReservation.Builder

addFutureReservationsBuilder(int index)

public FutureReservation.Builder addFutureReservationsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReservationData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReservationData.Builder
Overrides

build()

public ReservationData build()
Returns
Type Description
ReservationData

buildPartial()

public ReservationData buildPartial()
Returns
Type Description
ReservationData

clear()

public ReservationData.Builder clear()
Returns
Type Description
ReservationData.Builder
Overrides

clearAllocations()

public ReservationData.Builder clearAllocations()

Allocations filtered by the criteria.

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

Returns
Type Description
ReservationData.Builder

clearField(Descriptors.FieldDescriptor field)

public ReservationData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReservationData.Builder
Overrides

clearFutureReservations()

public ReservationData.Builder clearFutureReservations()

Future reservations filtered by the criteria.

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

Returns
Type Description
ReservationData.Builder

clearName()

public ReservationData.Builder clearName()

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
ReservationData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReservationData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReservationData.Builder
Overrides

clearTimeSeries()

public ReservationData.Builder clearTimeSeries()

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
ReservationData.Builder

clearUsedReservationValues()

public ReservationData.Builder clearUsedReservationValues()

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
ReservationData.Builder

clone()

public ReservationData.Builder clone()
Returns
Type Description
ReservationData.Builder
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

getAllocationsBuilder(int index)

public Allocation.Builder getAllocationsBuilder(int index)

Allocations filtered by the criteria.

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

Parameter
Name Description
index int
Returns
Type Description
Allocation.Builder

getAllocationsBuilderList()

public List<Allocation.Builder> getAllocationsBuilderList()

Allocations filtered by the criteria.

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

Returns
Type Description
List<Builder>

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getFutureReservationsBuilder(int index)

public FutureReservation.Builder getFutureReservationsBuilder(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.Builder

getFutureReservationsBuilderList()

public List<FutureReservation.Builder> getFutureReservationsBuilderList()

Future reservations filtered by the criteria.

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

Returns
Type Description
List<Builder>

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.

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.

getTimeSeriesBuilder()

public TimeSeries.Builder getTimeSeriesBuilder()

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.Builder

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.

getUsedReservationValuesBuilder()

public TimeSeries.Builder getUsedReservationValuesBuilder()

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.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReservationData other)

public ReservationData.Builder mergeFrom(ReservationData other)
Parameter
Name Description
other ReservationData
Returns
Type Description
ReservationData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReservationData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReservationData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReservationData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReservationData.Builder
Overrides

mergeTimeSeries(TimeSeries value)

public ReservationData.Builder mergeTimeSeries(TimeSeries value)

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;

Parameter
Name Description
value TimeSeries
Returns
Type Description
ReservationData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReservationData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReservationData.Builder
Overrides

mergeUsedReservationValues(TimeSeries value)

public ReservationData.Builder mergeUsedReservationValues(TimeSeries value)

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;

Parameter
Name Description
value TimeSeries
Returns
Type Description
ReservationData.Builder

removeAllocations(int index)

public ReservationData.Builder removeAllocations(int index)

Allocations filtered by the criteria.

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

Parameter
Name Description
index int
Returns
Type Description
ReservationData.Builder

removeFutureReservations(int index)

public ReservationData.Builder removeFutureReservations(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
ReservationData.Builder

setAllocations(int index, Allocation value)

public ReservationData.Builder setAllocations(int index, Allocation value)

Allocations filtered by the criteria.

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

Parameters
Name Description
index int
value Allocation
Returns
Type Description
ReservationData.Builder

setAllocations(int index, Allocation.Builder builderForValue)

public ReservationData.Builder setAllocations(int index, Allocation.Builder builderForValue)

Allocations filtered by the criteria.

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

Parameters
Name Description
index int
builderForValue Allocation.Builder
Returns
Type Description
ReservationData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReservationData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReservationData.Builder
Overrides

setFutureReservations(int index, FutureReservation value)

public ReservationData.Builder setFutureReservations(int index, FutureReservation value)

Future reservations filtered by the criteria.

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

Parameters
Name Description
index int
value FutureReservation
Returns
Type Description
ReservationData.Builder

setFutureReservations(int index, FutureReservation.Builder builderForValue)

public ReservationData.Builder setFutureReservations(int index, FutureReservation.Builder builderForValue)

Future reservations filtered by the criteria.

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

Parameters
Name Description
index int
builderForValue FutureReservation.Builder
Returns
Type Description
ReservationData.Builder

setName(String value)

public ReservationData.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ReservationData.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReservationData.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ReservationData.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReservationData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReservationData.Builder
Overrides

setTimeSeries(TimeSeries value)

public ReservationData.Builder setTimeSeries(TimeSeries value)

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;

Parameter
Name Description
value TimeSeries
Returns
Type Description
ReservationData.Builder

setTimeSeries(TimeSeries.Builder builderForValue)

public ReservationData.Builder setTimeSeries(TimeSeries.Builder builderForValue)

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;

Parameter
Name Description
builderForValue TimeSeries.Builder
Returns
Type Description
ReservationData.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ReservationData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReservationData.Builder
Overrides

setUsedReservationValues(TimeSeries value)

public ReservationData.Builder setUsedReservationValues(TimeSeries value)

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;

Parameter
Name Description
value TimeSeries
Returns
Type Description
ReservationData.Builder

setUsedReservationValues(TimeSeries.Builder builderForValue)

public ReservationData.Builder setUsedReservationValues(TimeSeries.Builder builderForValue)

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;

Parameter
Name Description
builderForValue TimeSeries.Builder
Returns
Type Description
ReservationData.Builder