Class SyncRequest.SyncRequestFilter.Builder

    • Method Detail

      • getAccountBytes

        public com.google.protobuf.ByteString getAccountBytes()
         Twitter username to fetch feed for
         
        string account = 1 [json_name = "account"];
        Specified by:
        getAccountBytes in interface SyncRequest.SyncRequestFilterOrBuilder
        Returns:
        The bytes for account.
      • setAccount

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

        public SyncRequest.SyncRequestFilter.Builder clearAccount()
         Twitter username to fetch feed for
         
        string account = 1 [json_name = "account"];
        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 [json_name = "account"];
        Parameters:
        value - The bytes for account to set.
        Returns:
        This builder for chaining.
      • getMentionsList

        public java.util.List<java.lang.String> getMentionsList()
         Array of mentions to search for
         
        repeated string mentions = 2 [json_name = "mentions"];
        Specified by:
        getMentionsList in interface SyncRequest.SyncRequestFilterOrBuilder
        Returns:
        A list containing the mentions.
      • getMentions

        public java.lang.String getMentions​(int index)
         Array of mentions to search for
         
        repeated string mentions = 2 [json_name = "mentions"];
        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 [json_name = "mentions"];
        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 [json_name = "mentions"];
        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 [json_name = "mentions"];
        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 [json_name = "mentions"];
        Parameters:
        values - The mentions to add.
        Returns:
        This builder for chaining.
      • clearMentions

        public SyncRequest.SyncRequestFilter.Builder clearMentions()
         Array of mentions to search for
         
        repeated string mentions = 2 [json_name = "mentions"];
        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 [json_name = "mentions"];
        Parameters:
        value - The bytes of the mentions to add.
        Returns:
        This builder for chaining.
      • getHashtagsList

        public java.util.List<java.lang.String> getHashtagsList()
         Array of hashtags to search for
         
        repeated string hashtags = 3 [json_name = "hashtags"];
        Specified by:
        getHashtagsList in interface SyncRequest.SyncRequestFilterOrBuilder
        Returns:
        A list containing the hashtags.
      • getHashtags

        public java.lang.String getHashtags​(int index)
         Array of hashtags to search for
         
        repeated string hashtags = 3 [json_name = "hashtags"];
        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 [json_name = "hashtags"];
        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 [json_name = "hashtags"];
        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 [json_name = "hashtags"];
        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 [json_name = "hashtags"];
        Parameters:
        values - The hashtags to add.
        Returns:
        This builder for chaining.
      • clearHashtags

        public SyncRequest.SyncRequestFilter.Builder clearHashtags()
         Array of hashtags to search for
         
        repeated string hashtags = 3 [json_name = "hashtags"];
        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 [json_name = "hashtags"];
        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 [json_name = "page"];
        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 [json_name = "pageSize"];
        Parameters:
        value - The pageSize to set.
        Returns:
        This builder for chaining.
      • clearPageSize

        public SyncRequest.SyncRequestFilter.Builder clearPageSize()
         Amount of items per page, 25 by default
         
        int32 page_size = 5 [json_name = "pageSize"];
        Returns:
        This builder for chaining.
      • getCursor

        public java.lang.String getCursor()
         Pass biggest internal status id for consistent pagination
         
        string cursor = 6 [json_name = "cursor"];
        Specified by:
        getCursor in interface SyncRequest.SyncRequestFilterOrBuilder
        Returns:
        The cursor.
      • getCursorBytes

        public com.google.protobuf.ByteString getCursorBytes()
         Pass biggest internal status id for consistent pagination
         
        string cursor = 6 [json_name = "cursor"];
        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 [json_name = "cursor"];
        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 [json_name = "cursor"];
        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 [json_name = "cursor"];
        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 [json_name = "order"];
        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 [json_name = "order"];
        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 [json_name = "accounts"];
        Specified by:
        getAccountsList in interface SyncRequest.SyncRequestFilterOrBuilder
        Returns:
        A list containing the accounts.
      • getAccountsCount

        public int getAccountsCount()
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9 [json_name = "accounts"];
        Specified by:
        getAccountsCount in interface SyncRequest.SyncRequestFilterOrBuilder
        Returns:
        The count of accounts.
      • getAccounts

        public java.lang.String getAccounts​(int index)
         Same as account, but an array. If provided OVERRIDES account
         
        repeated string accounts = 9 [json_name = "accounts"];
        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 [json_name = "accounts"];
        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 [json_name = "accounts"];
        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 [json_name = "accounts"];
        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 [json_name = "accounts"];
        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 [json_name = "accounts"];
        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 [json_name = "accounts"];
        Parameters:
        value - The bytes of the accounts to add.
        Returns:
        This builder for chaining.