Class ListReservationTopicsResponse.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<ListReservationTopicsResponse.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<ListReservationTopicsResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ListReservationTopicsResponse.Builder>
      • mergeFrom

        public ListReservationTopicsResponse.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<ListReservationTopicsResponse.Builder>
        Throws:
        IOException
      • getTopicsList

        public com.google.protobuf.ProtocolStringList getTopicsList()
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Specified by:
        getTopicsList in interface ListReservationTopicsResponseOrBuilder
        Returns:
        A list containing the topics.
      • getTopicsCount

        public int getTopicsCount()
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Specified by:
        getTopicsCount in interface ListReservationTopicsResponseOrBuilder
        Returns:
        The count of topics.
      • getTopics

        public String getTopics​(int index)
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Specified by:
        getTopics in interface ListReservationTopicsResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The topics at the given index.
      • getTopicsBytes

        public com.google.protobuf.ByteString getTopicsBytes​(int index)
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Specified by:
        getTopicsBytes in interface ListReservationTopicsResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the topics at the given index.
      • setTopics

        public ListReservationTopicsResponse.Builder setTopics​(int index,
                                                               String value)
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Parameters:
        index - The index to set the value at.
        value - The topics to set.
        Returns:
        This builder for chaining.
      • addTopics

        public ListReservationTopicsResponse.Builder addTopics​(String value)
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Parameters:
        value - The topics to add.
        Returns:
        This builder for chaining.
      • addAllTopics

        public ListReservationTopicsResponse.Builder addAllTopics​(Iterable<String> values)
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Parameters:
        values - The topics to add.
        Returns:
        This builder for chaining.
      • clearTopics

        public ListReservationTopicsResponse.Builder clearTopics()
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Returns:
        This builder for chaining.
      • addTopicsBytes

        public ListReservationTopicsResponse.Builder addTopicsBytes​(com.google.protobuf.ByteString value)
         The names of topics attached to the reservation. The order of the
         topics is unspecified.
         
        repeated string topics = 1;
        Parameters:
        value - The bytes of the topics to add.
        Returns:
        This builder for chaining.
      • 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 ListReservationTopicsResponseOrBuilder
        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 ListReservationTopicsResponseOrBuilder
        Returns:
        The bytes for nextPageToken.
      • setNextPageToken

        public ListReservationTopicsResponse.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 ListReservationTopicsResponse.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 ListReservationTopicsResponse.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.