public static final class ListReservationsResponse.Builder extends GeneratedMessageV3.Builder<ListReservationsResponse.Builder> implements ListReservationsResponseOrBuilder
Response for ListReservations.
Protobuf type google.cloud.pubsublite.v1.ListReservationsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllReservations(Iterable<? extends Reservation> values)
public ListReservationsResponse.Builder addAllReservations(Iterable<? extends Reservation> values)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.pubsublite.proto.Reservation>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListReservationsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addReservations(Reservation value)
public ListReservationsResponse.Builder addReservations(Reservation value)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
addReservations(Reservation.Builder builderForValue)
public ListReservationsResponse.Builder addReservations(Reservation.Builder builderForValue)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
addReservations(int index, Reservation value)
public ListReservationsResponse.Builder addReservations(int index, Reservation value)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
addReservations(int index, Reservation.Builder builderForValue)
public ListReservationsResponse.Builder addReservations(int index, Reservation.Builder builderForValue)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
addReservationsBuilder()
public Reservation.Builder addReservationsBuilder()
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
addReservationsBuilder(int index)
public Reservation.Builder addReservationsBuilder(int index)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
Parameter |
---|
Name | Description |
index | int
|
build()
public ListReservationsResponse build()
buildPartial()
public ListReservationsResponse buildPartial()
clear()
public ListReservationsResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListReservationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNextPageToken()
public ListReservationsResponse.Builder clearNextPageToken()
A token that can be sent as page_token
to retrieve the next page of
results. If this field is omitted, there are no more results.
string next_page_token = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListReservationsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearReservations()
public ListReservationsResponse.Builder clearReservations()
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
clone()
public ListReservationsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListReservationsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNextPageToken()
public String getNextPageToken()
A token that can be sent as page_token
to retrieve the next page of
results. If this field is omitted, there are no more results.
string next_page_token = 2;
Returns |
---|
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
A token that can be sent as page_token
to retrieve the next page of
results. If this field is omitted, there are no more results.
string next_page_token = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for nextPageToken.
|
getReservations(int index)
public Reservation getReservations(int index)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
Parameter |
---|
Name | Description |
index | int
|
getReservationsBuilder(int index)
public Reservation.Builder getReservationsBuilder(int index)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
Parameter |
---|
Name | Description |
index | int
|
getReservationsBuilderList()
public List<Reservation.Builder> getReservationsBuilderList()
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
getReservationsCount()
public int getReservationsCount()
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
Returns |
---|
Type | Description |
int | |
getReservationsList()
public List<Reservation> getReservationsList()
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
getReservationsOrBuilder(int index)
public ReservationOrBuilder getReservationsOrBuilder(int index)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
Parameter |
---|
Name | Description |
index | int
|
getReservationsOrBuilderList()
public List<? extends ReservationOrBuilder> getReservationsOrBuilderList()
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.ReservationOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListReservationsResponse other)
public ListReservationsResponse.Builder mergeFrom(ListReservationsResponse other)
public ListReservationsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListReservationsResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListReservationsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeReservations(int index)
public ListReservationsResponse.Builder removeReservations(int index)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListReservationsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNextPageToken(String value)
public ListReservationsResponse.Builder setNextPageToken(String value)
A token that can be sent as page_token
to retrieve the next page of
results. If this field is omitted, there are no more results.
string next_page_token = 2;
Parameter |
---|
Name | Description |
value | String
The nextPageToken to set.
|
setNextPageTokenBytes(ByteString value)
public ListReservationsResponse.Builder setNextPageTokenBytes(ByteString value)
A token that can be sent as page_token
to retrieve the next page of
results. If this field is omitted, there are no more results.
string next_page_token = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListReservationsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setReservations(int index, Reservation value)
public ListReservationsResponse.Builder setReservations(int index, Reservation value)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
setReservations(int index, Reservation.Builder builderForValue)
public ListReservationsResponse.Builder setReservations(int index, Reservation.Builder builderForValue)
The list of reservation in the requested parent. The order of the
reservations is unspecified.
repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final ListReservationsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides