Package pbx

Class Model.ClientDel.Builder

    • Method Detail

      • hasId

        public boolean hasId()
        optional string id = 1 [json_name = "id"];
        Specified by:
        hasId in interface Model.ClientDelOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public java.lang.String getId()
        optional string id = 1 [json_name = "id"];
        Specified by:
        getId in interface Model.ClientDelOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
        optional string id = 1 [json_name = "id"];
        Specified by:
        getIdBytes in interface Model.ClientDelOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Model.ClientDel.Builder setId​(java.lang.String value)
        optional string id = 1 [json_name = "id"];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Model.ClientDel.Builder clearId()
        optional string id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • setIdBytes

        public Model.ClientDel.Builder setIdBytes​(com.google.protobuf.ByteString value)
        optional string id = 1 [json_name = "id"];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getTopic

        public java.lang.String getTopic()
        string topic = 2 [json_name = "topic"];
        Specified by:
        getTopic in interface Model.ClientDelOrBuilder
        Returns:
        The topic.
      • getTopicBytes

        public com.google.protobuf.ByteString getTopicBytes()
        string topic = 2 [json_name = "topic"];
        Specified by:
        getTopicBytes in interface Model.ClientDelOrBuilder
        Returns:
        The bytes for topic.
      • setTopic

        public Model.ClientDel.Builder setTopic​(java.lang.String value)
        string topic = 2 [json_name = "topic"];
        Parameters:
        value - The topic to set.
        Returns:
        This builder for chaining.
      • clearTopic

        public Model.ClientDel.Builder clearTopic()
        string topic = 2 [json_name = "topic"];
        Returns:
        This builder for chaining.
      • setTopicBytes

        public Model.ClientDel.Builder setTopicBytes​(com.google.protobuf.ByteString value)
        string topic = 2 [json_name = "topic"];
        Parameters:
        value - The bytes for topic to set.
        Returns:
        This builder for chaining.
      • getWhatValue

        public int getWhatValue()
        .pbx.ClientDel.What what = 3 [json_name = "what"];
        Specified by:
        getWhatValue in interface Model.ClientDelOrBuilder
        Returns:
        The enum numeric value on the wire for what.
      • setWhatValue

        public Model.ClientDel.Builder setWhatValue​(int value)
        .pbx.ClientDel.What what = 3 [json_name = "what"];
        Parameters:
        value - The what to set.
        Returns:
        This builder for chaining.
      • setWhat

        public Model.ClientDel.Builder setWhat​(Model.ClientDel.What value)
        .pbx.ClientDel.What what = 3 [json_name = "what"];
        Parameters:
        value - The enum numeric value on the wire for what to set.
        Returns:
        This builder for chaining.
      • clearWhat

        public Model.ClientDel.Builder clearWhat()
        .pbx.ClientDel.What what = 3 [json_name = "what"];
        Returns:
        This builder for chaining.
      • getDelSeqCount

        public int getDelSeqCount()
         Delete messages by id or range of ids
         
        repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"];
        Specified by:
        getDelSeqCount in interface Model.ClientDelOrBuilder
      • setDelSeq

        public Model.ClientDel.Builder setDelSeq​(int index,
                                                 Model.SeqRange value)
         Delete messages by id or range of ids
         
        repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"];
      • addDelSeq

        public Model.ClientDel.Builder addDelSeq​(int index,
                                                 Model.SeqRange value)
         Delete messages by id or range of ids
         
        repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"];
      • addAllDelSeq

        public Model.ClientDel.Builder addAllDelSeq​(java.lang.Iterable<? extends Model.SeqRange> values)
         Delete messages by id or range of ids
         
        repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"];
      • clearDelSeq

        public Model.ClientDel.Builder clearDelSeq()
         Delete messages by id or range of ids
         
        repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"];
      • removeDelSeq

        public Model.ClientDel.Builder removeDelSeq​(int index)
         Delete messages by id or range of ids
         
        repeated .pbx.SeqRange del_seq = 4 [json_name = "delSeq"];
      • hasUserId

        public boolean hasUserId()
         User ID of the subscription to delete
         
        optional string user_id = 5 [json_name = "userId"];
        Specified by:
        hasUserId in interface Model.ClientDelOrBuilder
        Returns:
        Whether the userId field is set.
      • getUserId

        public java.lang.String getUserId()
         User ID of the subscription to delete
         
        optional string user_id = 5 [json_name = "userId"];
        Specified by:
        getUserId in interface Model.ClientDelOrBuilder
        Returns:
        The userId.
      • getUserIdBytes

        public com.google.protobuf.ByteString getUserIdBytes()
         User ID of the subscription to delete
         
        optional string user_id = 5 [json_name = "userId"];
        Specified by:
        getUserIdBytes in interface Model.ClientDelOrBuilder
        Returns:
        The bytes for userId.
      • setUserId

        public Model.ClientDel.Builder setUserId​(java.lang.String value)
         User ID of the subscription to delete
         
        optional string user_id = 5 [json_name = "userId"];
        Parameters:
        value - The userId to set.
        Returns:
        This builder for chaining.
      • clearUserId

        public Model.ClientDel.Builder clearUserId()
         User ID of the subscription to delete
         
        optional string user_id = 5 [json_name = "userId"];
        Returns:
        This builder for chaining.
      • setUserIdBytes

        public Model.ClientDel.Builder setUserIdBytes​(com.google.protobuf.ByteString value)
         User ID of the subscription to delete
         
        optional string user_id = 5 [json_name = "userId"];
        Parameters:
        value - The bytes for userId to set.
        Returns:
        This builder for chaining.
      • hasCred

        public boolean hasCred()
         Credential to delete.
         
        optional .pbx.ClientCred cred = 6 [json_name = "cred"];
        Specified by:
        hasCred in interface Model.ClientDelOrBuilder
        Returns:
        Whether the cred field is set.
      • clearCred

        public Model.ClientDel.Builder clearCred()
         Credential to delete.
         
        optional .pbx.ClientCred cred = 6 [json_name = "cred"];
      • hasHard

        public boolean hasHard()
         Request to hard-delete messages for all users, if such option is available.
         
        optional bool hard = 7 [json_name = "hard"];
        Specified by:
        hasHard in interface Model.ClientDelOrBuilder
        Returns:
        Whether the hard field is set.
      • getHard

        public boolean getHard()
         Request to hard-delete messages for all users, if such option is available.
         
        optional bool hard = 7 [json_name = "hard"];
        Specified by:
        getHard in interface Model.ClientDelOrBuilder
        Returns:
        The hard.
      • setHard

        public Model.ClientDel.Builder setHard​(boolean value)
         Request to hard-delete messages for all users, if such option is available.
         
        optional bool hard = 7 [json_name = "hard"];
        Parameters:
        value - The hard to set.
        Returns:
        This builder for chaining.
      • clearHard

        public Model.ClientDel.Builder clearHard()
         Request to hard-delete messages for all users, if such option is available.
         
        optional bool hard = 7 [json_name = "hard"];
        Returns:
        This builder for chaining.