Class ListReservationsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
- com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder
-
- All Implemented Interfaces:
ListReservationsResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListReservationsResponse
public static final class ListReservationsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder> implements ListReservationsResponseOrBuilder
Response for ListReservations.
Protobuf typegoogle.cloud.pubsublite.v1.ListReservationsResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListReservationsResponse.Builder
addAllReservations(Iterable<? extends Reservation> values)
The list of reservation in the requested parent.ListReservationsResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListReservationsResponse.Builder
addReservations(int index, Reservation value)
The list of reservation in the requested parent.ListReservationsResponse.Builder
addReservations(int index, Reservation.Builder builderForValue)
The list of reservation in the requested parent.ListReservationsResponse.Builder
addReservations(Reservation value)
The list of reservation in the requested parent.ListReservationsResponse.Builder
addReservations(Reservation.Builder builderForValue)
The list of reservation in the requested parent.Reservation.Builder
addReservationsBuilder()
The list of reservation in the requested parent.Reservation.Builder
addReservationsBuilder(int index)
The list of reservation in the requested parent.ListReservationsResponse
build()
ListReservationsResponse
buildPartial()
ListReservationsResponse.Builder
clear()
ListReservationsResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListReservationsResponse.Builder
clearNextPageToken()
A token that can be sent as `page_token` to retrieve the next page of results.ListReservationsResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListReservationsResponse.Builder
clearReservations()
The list of reservation in the requested parent.ListReservationsResponse.Builder
clone()
ListReservationsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNextPageToken()
A token that can be sent as `page_token` to retrieve the next page of results.com.google.protobuf.ByteString
getNextPageTokenBytes()
A token that can be sent as `page_token` to retrieve the next page of results.Reservation
getReservations(int index)
The list of reservation in the requested parent.Reservation.Builder
getReservationsBuilder(int index)
The list of reservation in the requested parent.List<Reservation.Builder>
getReservationsBuilderList()
The list of reservation in the requested parent.int
getReservationsCount()
The list of reservation in the requested parent.List<Reservation>
getReservationsList()
The list of reservation in the requested parent.ReservationOrBuilder
getReservationsOrBuilder(int index)
The list of reservation in the requested parent.List<? extends ReservationOrBuilder>
getReservationsOrBuilderList()
The list of reservation in the requested parent.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListReservationsResponse.Builder
mergeFrom(ListReservationsResponse other)
ListReservationsResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListReservationsResponse.Builder
mergeFrom(com.google.protobuf.Message other)
ListReservationsResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListReservationsResponse.Builder
removeReservations(int index)
The list of reservation in the requested parent.ListReservationsResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListReservationsResponse.Builder
setNextPageToken(String value)
A token that can be sent as `page_token` to retrieve the next page of results.ListReservationsResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
A token that can be sent as `page_token` to retrieve the next page of results.ListReservationsResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListReservationsResponse.Builder
setReservations(int index, Reservation value)
The list of reservation in the requested parent.ListReservationsResponse.Builder
setReservations(int index, Reservation.Builder builderForValue)
The list of reservation in the requested parent.ListReservationsResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
clear
public ListReservationsResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
getDefaultInstanceForType
public ListReservationsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListReservationsResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListReservationsResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListReservationsResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
setField
public ListReservationsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
clearField
public ListReservationsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
clearOneof
public ListReservationsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
setRepeatedField
public ListReservationsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
addRepeatedField
public ListReservationsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
mergeFrom
public ListReservationsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListReservationsResponse.Builder>
-
mergeFrom
public ListReservationsResponse.Builder mergeFrom(ListReservationsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
mergeFrom
public ListReservationsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListReservationsResponse.Builder>
- Throws:
IOException
-
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;
- Specified by:
getReservationsList
in interfaceListReservationsResponseOrBuilder
-
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;
- Specified by:
getReservationsCount
in interfaceListReservationsResponseOrBuilder
-
getReservations
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;
- Specified by:
getReservations
in interfaceListReservationsResponseOrBuilder
-
setReservations
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
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;
-
addReservations
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
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
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
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;
-
addAllReservations
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;
-
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;
-
removeReservations
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;
-
getReservationsBuilder
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;
-
getReservationsOrBuilder
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;
- Specified by:
getReservationsOrBuilder
in interfaceListReservationsResponseOrBuilder
-
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;
- Specified by:
getReservationsOrBuilderList
in interfaceListReservationsResponseOrBuilder
-
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
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;
-
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;
-
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;
- Specified by:
getNextPageToken
in interfaceListReservationsResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.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;
- Specified by:
getNextPageTokenBytes
in interfaceListReservationsResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
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;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
public ListReservationsResponse.Builder setNextPageTokenBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListReservationsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
mergeUnknownFields
public final ListReservationsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
-
-