Class SyncRequest.SyncRequestFilter.Builder

    • Method Detail

      • setAccount

        public SyncRequest.SyncRequestFilter.Builder setAccount​(java.lang.String value)
         Twitter username to fetch feed for
         
        string account = 1;
        Parameters:
        value - The account to set.
        Returns:
        This builder for chaining.
      • setAccountBytes

        public SyncRequest.SyncRequestFilter.Builder setAccountBytes​(com.google.protobuf.ByteString value)
         Twitter username to fetch feed for
         
        string account = 1;
        Parameters:
        value - The bytes for account to set.
        Returns:
        This builder for chaining.
      • getMentions

        public java.lang.String getMentions​(int index)
         Array of mentions to search for
         
        repeated string mentions = 2;
        Specified by:
        getMentions in interface SyncRequest.SyncRequestFilterOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The mentions at the given index.
      • getMentionsBytes

        public com.google.protobuf.ByteString getMentionsBytes​(int index)
         Array of mentions to search for
         
        repeated string mentions = 2;
        Specified by:
        getMentionsBytes in interface SyncRequest.SyncRequestFilterOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the mentions at the given index.
      • setMentions

        public SyncRequest.SyncRequestFilter.Builder setMentions​(int index,
                                                                 java.lang.String value)
         Array of mentions to search for
         
        repeated string mentions = 2;
        Parameters:
        index - The index to set the value at.
        value - The mentions to set.
        Returns:
        This builder for chaining.
      • addMentions

        public SyncRequest.SyncRequestFilter.Builder addMentions​(java.lang.String value)
         Array of mentions to search for
         
        repeated string mentions = 2;
        Parameters:
        value - The mentions to add.
        Returns:
        This builder for chaining.
      • addAllMentions

        public SyncRequest.SyncRequestFilter.Builder addAllMentions​(java.lang.Iterable<java.lang.String> values)
         Array of mentions to search for
         
        repeated string mentions = 2;
        Parameters:
        values - The mentions to add.
        Returns:
        This builder for chaining.
      • addMentionsBytes

        public SyncRequest.SyncRequestFilter.Builder addMentionsBytes​(com.google.protobuf.ByteString value)
         Array of mentions to search for
         
        repeated string mentions = 2;
        Parameters:
        value - The bytes of the mentions to add.
        Returns:
        This builder for chaining.
      • getHashtags

        public java.lang.String getHashtags​(int index)
         Array of hashtags to search for
         
        repeated string hashtags = 3;
        Specified by:
        getHashtags in interface SyncRequest.SyncRequestFilterOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The hashtags at the given index.
      • getHashtagsBytes

        public com.google.protobuf.ByteString getHashtagsBytes​(int index)
         Array of hashtags to search for
         
        repeated string hashtags = 3;
        Specified by:
        getHashtagsBytes in interface SyncRequest.SyncRequestFilterOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the hashtags at the given index.
      • setHashtags

        public SyncRequest.SyncRequestFilter.Builder setHashtags​(int index,
                                                                 java.lang.String value)
         Array of hashtags to search for
         
        repeated string hashtags = 3;
        Parameters:
        index - The index to set the value at.
        value - The hashtags to set.
        Returns:
        This builder for chaining.
      • addHashtags

        public SyncRequest.SyncRequestFilter.Builder addHashtags​(java.lang.String value)
         Array of hashtags to search for
         
        repeated string hashtags = 3;
        Parameters:
        value - The hashtags to add.
        Returns:
        This builder for chaining.
      • addAllHashtags

        public SyncRequest.SyncRequestFilter.Builder addAllHashtags​(java.lang.Iterable<java.lang.String> values)
         Array of hashtags to search for
         
        repeated string hashtags = 3;
        Parameters:
        values - The hashtags to add.
        Returns:
        This builder for chaining.
      • addHashtagsBytes

        public SyncRequest.SyncRequestFilter.Builder addHashtagsBytes​(com.google.protobuf.ByteString value)
         Array of hashtags to search for
         
        repeated string hashtags = 3;
        Parameters:
        value - The bytes of the hashtags to add.
        Returns:
        This builder for chaining.
      • setPage

        public SyncRequest.SyncRequestFilter.Builder setPage​(int value)
         Page number, 0 by default
         
        int32 page = 4;
        Parameters:
        value - The page to set.
        Returns:
        This builder for chaining.
      • setPageSize

        public SyncRequest.SyncRequestFilter.Builder setPageSize​(int value)
         Amount of items per page, 25 by default
         
        int32 page_size = 5;
        Parameters:
        value - The pageSize to set.
        Returns:
        This builder for chaining.
      • getCursorBytes

        public com.google.protobuf.ByteString getCursorBytes()
         Pass biggest internal status id for consistent pagination
         
        string cursor = 6;
        Specified by:
        getCursorBytes in interface SyncRequest.SyncRequestFilterOrBuilder
        Returns:
        The bytes for cursor.
      • setCursor

        public SyncRequest.SyncRequestFilter.Builder setCursor​(java.lang.String value)
         Pass biggest internal status id for consistent pagination
         
        string cursor = 6;
        Parameters:
        value - The cursor to set.
        Returns:
        This builder for chaining.
      • clearCursor

        public SyncRequest.SyncRequestFilter.Builder clearCursor()
         Pass biggest internal status id for consistent pagination
         
        string cursor = 6;
        Returns:
        This builder for chaining.
      • setCursorBytes

        public SyncRequest.SyncRequestFilter.Builder setCursorBytes​(com.google.protobuf.ByteString value)
         Pass biggest internal status id for consistent pagination
         
        string cursor = 6;
        Parameters:
        value - The bytes for cursor to set.
        Returns:
        This builder for chaining.
      • setOrder

        public SyncRequest.SyncRequestFilter.Builder setOrder​(java.lang.String value)
         could be asc or desc
         
        string order = 7;
        Parameters:
        value - The order to set.
        Returns:
        This builder for chaining.
      • setOrderBytes

        public SyncRequest.SyncRequestFilter.Builder setOrderBytes​(com.google.protobuf.ByteString value)
         could be asc or desc
         
        string order = 7;
        Parameters:
        value - The bytes for order to set.
        Returns:
        This builder for chaining.
      • getAccountsList

        public java.util.List<java.lang.String> getAccountsList()
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9;
        Specified by:
        getAccountsList in interface SyncRequest.SyncRequestFilterOrBuilder
        Returns:
        A list containing the accounts.
      • getAccounts

        public java.lang.String getAccounts​(int index)
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9;
        Specified by:
        getAccounts in interface SyncRequest.SyncRequestFilterOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The accounts at the given index.
      • getAccountsBytes

        public com.google.protobuf.ByteString getAccountsBytes​(int index)
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9;
        Specified by:
        getAccountsBytes in interface SyncRequest.SyncRequestFilterOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the accounts at the given index.
      • setAccounts

        public SyncRequest.SyncRequestFilter.Builder setAccounts​(int index,
                                                                 java.lang.String value)
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9;
        Parameters:
        index - The index to set the value at.
        value - The accounts to set.
        Returns:
        This builder for chaining.
      • addAccounts

        public SyncRequest.SyncRequestFilter.Builder addAccounts​(java.lang.String value)
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9;
        Parameters:
        value - The accounts to add.
        Returns:
        This builder for chaining.
      • addAllAccounts

        public SyncRequest.SyncRequestFilter.Builder addAllAccounts​(java.lang.Iterable<java.lang.String> values)
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9;
        Parameters:
        values - The accounts to add.
        Returns:
        This builder for chaining.
      • clearAccounts

        public SyncRequest.SyncRequestFilter.Builder clearAccounts()
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9;
        Returns:
        This builder for chaining.
      • addAccountsBytes

        public SyncRequest.SyncRequestFilter.Builder addAccountsBytes​(com.google.protobuf.ByteString value)
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9;
        Parameters:
        value - The bytes of the accounts to add.
        Returns:
        This builder for chaining.