Class ListReservationsResponse.Builder (2.37.0)

public static final class ListReservationsResponse.Builder extends GeneratedMessageV3.Builder<ListReservationsResponse.Builder> implements ListReservationsResponseOrBuilder

The response for ReservationService.ListReservations.

Protobuf type google.cloud.bigquery.reservation.v1.ListReservationsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllReservations(Iterable<? extends Reservation> values)

public ListReservationsResponse.Builder addAllReservations(Iterable<? extends Reservation> values)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.reservation.v1.Reservation>
Returns
TypeDescription
ListReservationsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListReservationsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

addReservations(Reservation value)

public ListReservationsResponse.Builder addReservations(Reservation value)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameter
NameDescription
valueReservation
Returns
TypeDescription
ListReservationsResponse.Builder

addReservations(Reservation.Builder builderForValue)

public ListReservationsResponse.Builder addReservations(Reservation.Builder builderForValue)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameter
NameDescription
builderForValueReservation.Builder
Returns
TypeDescription
ListReservationsResponse.Builder

addReservations(int index, Reservation value)

public ListReservationsResponse.Builder addReservations(int index, Reservation value)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameters
NameDescription
indexint
valueReservation
Returns
TypeDescription
ListReservationsResponse.Builder

addReservations(int index, Reservation.Builder builderForValue)

public ListReservationsResponse.Builder addReservations(int index, Reservation.Builder builderForValue)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameters
NameDescription
indexint
builderForValueReservation.Builder
Returns
TypeDescription
ListReservationsResponse.Builder

addReservationsBuilder()

public Reservation.Builder addReservationsBuilder()

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Returns
TypeDescription
Reservation.Builder

addReservationsBuilder(int index)

public Reservation.Builder addReservationsBuilder(int index)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Reservation.Builder

build()

public ListReservationsResponse build()
Returns
TypeDescription
ListReservationsResponse

buildPartial()

public ListReservationsResponse buildPartial()
Returns
TypeDescription
ListReservationsResponse

clear()

public ListReservationsResponse.Builder clear()
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListReservationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

clearNextPageToken()

public ListReservationsResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ListReservationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListReservationsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

clearReservations()

public ListReservationsResponse.Builder clearReservations()

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Returns
TypeDescription
ListReservationsResponse.Builder

clone()

public ListReservationsResponse.Builder clone()
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListReservationsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListReservationsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getReservations(int index)

public Reservation getReservations(int index)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Reservation

getReservationsBuilder(int index)

public Reservation.Builder getReservationsBuilder(int index)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Reservation.Builder

getReservationsBuilderList()

public List<Reservation.Builder> getReservationsBuilderList()

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Returns
TypeDescription
List<Builder>

getReservationsCount()

public int getReservationsCount()

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Returns
TypeDescription
int

getReservationsList()

public List<Reservation> getReservationsList()

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Returns
TypeDescription
List<Reservation>

getReservationsOrBuilder(int index)

public ReservationOrBuilder getReservationsOrBuilder(int index)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReservationOrBuilder

getReservationsOrBuilderList()

public List<? extends ReservationOrBuilder> getReservationsOrBuilderList()

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.reservation.v1.ReservationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListReservationsResponse other)

public ListReservationsResponse.Builder mergeFrom(ListReservationsResponse other)
Parameter
NameDescription
otherListReservationsResponse
Returns
TypeDescription
ListReservationsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListReservationsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListReservationsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListReservationsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

removeReservations(int index)

public ListReservationsResponse.Builder removeReservations(int index)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListReservationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListReservationsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

setNextPageToken(String value)

public ListReservationsResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListReservationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListReservationsResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListReservationsResponse.Builder

This builder for chaining.

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

public ListReservationsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides

setReservations(int index, Reservation value)

public ListReservationsResponse.Builder setReservations(int index, Reservation value)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameters
NameDescription
indexint
valueReservation
Returns
TypeDescription
ListReservationsResponse.Builder

setReservations(int index, Reservation.Builder builderForValue)

public ListReservationsResponse.Builder setReservations(int index, Reservation.Builder builderForValue)

List of reservations visible to the user.

repeated .google.cloud.bigquery.reservation.v1.Reservation reservations = 1;

Parameters
NameDescription
indexint
builderForValueReservation.Builder
Returns
TypeDescription
ListReservationsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListReservationsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListReservationsResponse.Builder
Overrides