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 type google.cloud.pubsublite.v1.ListReservationsResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • getDefaultInstanceForType

      public ListReservationsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ListReservationsResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListReservationsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • setField

      public ListReservationsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • clearField

      public ListReservationsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • clearOneof

      public ListReservationsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • addRepeatedField

      public ListReservationsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • mergeFrom

      public ListReservationsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListReservationsResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface ListReservationsResponseOrBuilder
    • 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 interface ListReservationsResponseOrBuilder
    • 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 interface ListReservationsResponseOrBuilder
    • 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 interface ListReservationsResponseOrBuilder
    • 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 interface ListReservationsResponseOrBuilder
    • 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 interface ListReservationsResponseOrBuilder
      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 interface ListReservationsResponseOrBuilder
      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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>
    • mergeUnknownFields

      public final ListReservationsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationsResponse.Builder>