Class ListReservationsResponse.Builder

    • Method Detail

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