Package pbx

Class Model.ClientAcc.Builder

    • Method Detail

      • hasId

        public boolean hasId()
        optional string id = 1 [json_name = "id"];
        Specified by:
        hasId in interface Model.ClientAccOrBuilder
        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.ClientAccOrBuilder
        Returns:
        The id.
      • getIdBytes

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

        public Model.ClientAcc.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.ClientAcc.Builder clearId()
        optional string id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • setIdBytes

        public Model.ClientAcc.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.
      • getUserId

        public java.lang.String getUserId()
         User being created or updated
         
        string user_id = 2 [json_name = "userId"];
        Specified by:
        getUserId in interface Model.ClientAccOrBuilder
        Returns:
        The userId.
      • getUserIdBytes

        public com.google.protobuf.ByteString getUserIdBytes()
         User being created or updated
         
        string user_id = 2 [json_name = "userId"];
        Specified by:
        getUserIdBytes in interface Model.ClientAccOrBuilder
        Returns:
        The bytes for userId.
      • setUserId

        public Model.ClientAcc.Builder setUserId​(java.lang.String value)
         User being created or updated
         
        string user_id = 2 [json_name = "userId"];
        Parameters:
        value - The userId to set.
        Returns:
        This builder for chaining.
      • clearUserId

        public Model.ClientAcc.Builder clearUserId()
         User being created or updated
         
        string user_id = 2 [json_name = "userId"];
        Returns:
        This builder for chaining.
      • setUserIdBytes

        public Model.ClientAcc.Builder setUserIdBytes​(com.google.protobuf.ByteString value)
         User being created or updated
         
        string user_id = 2 [json_name = "userId"];
        Parameters:
        value - The bytes for userId to set.
        Returns:
        This builder for chaining.
      • hasScheme

        public boolean hasScheme()
         The initial authentication scheme the account can use
         
        optional string scheme = 3 [json_name = "scheme"];
        Specified by:
        hasScheme in interface Model.ClientAccOrBuilder
        Returns:
        Whether the scheme field is set.
      • getScheme

        public java.lang.String getScheme()
         The initial authentication scheme the account can use
         
        optional string scheme = 3 [json_name = "scheme"];
        Specified by:
        getScheme in interface Model.ClientAccOrBuilder
        Returns:
        The scheme.
      • getSchemeBytes

        public com.google.protobuf.ByteString getSchemeBytes()
         The initial authentication scheme the account can use
         
        optional string scheme = 3 [json_name = "scheme"];
        Specified by:
        getSchemeBytes in interface Model.ClientAccOrBuilder
        Returns:
        The bytes for scheme.
      • setScheme

        public Model.ClientAcc.Builder setScheme​(java.lang.String value)
         The initial authentication scheme the account can use
         
        optional string scheme = 3 [json_name = "scheme"];
        Parameters:
        value - The scheme to set.
        Returns:
        This builder for chaining.
      • clearScheme

        public Model.ClientAcc.Builder clearScheme()
         The initial authentication scheme the account can use
         
        optional string scheme = 3 [json_name = "scheme"];
        Returns:
        This builder for chaining.
      • setSchemeBytes

        public Model.ClientAcc.Builder setSchemeBytes​(com.google.protobuf.ByteString value)
         The initial authentication scheme the account can use
         
        optional string scheme = 3 [json_name = "scheme"];
        Parameters:
        value - The bytes for scheme to set.
        Returns:
        This builder for chaining.
      • hasSecret

        public boolean hasSecret()
         Shared secret
         
        optional bytes secret = 4 [json_name = "secret"];
        Specified by:
        hasSecret in interface Model.ClientAccOrBuilder
        Returns:
        Whether the secret field is set.
      • getSecret

        public com.google.protobuf.ByteString getSecret()
         Shared secret
         
        optional bytes secret = 4 [json_name = "secret"];
        Specified by:
        getSecret in interface Model.ClientAccOrBuilder
        Returns:
        The secret.
      • setSecret

        public Model.ClientAcc.Builder setSecret​(com.google.protobuf.ByteString value)
         Shared secret
         
        optional bytes secret = 4 [json_name = "secret"];
        Parameters:
        value - The secret to set.
        Returns:
        This builder for chaining.
      • clearSecret

        public Model.ClientAcc.Builder clearSecret()
         Shared secret
         
        optional bytes secret = 4 [json_name = "secret"];
        Returns:
        This builder for chaining.
      • hasLogin

        public boolean hasLogin()
         Authenticate session with the newly created account
         
        optional bool login = 5 [json_name = "login"];
        Specified by:
        hasLogin in interface Model.ClientAccOrBuilder
        Returns:
        Whether the login field is set.
      • getLogin

        public boolean getLogin()
         Authenticate session with the newly created account
         
        optional bool login = 5 [json_name = "login"];
        Specified by:
        getLogin in interface Model.ClientAccOrBuilder
        Returns:
        The login.
      • setLogin

        public Model.ClientAcc.Builder setLogin​(boolean value)
         Authenticate session with the newly created account
         
        optional bool login = 5 [json_name = "login"];
        Parameters:
        value - The login to set.
        Returns:
        This builder for chaining.
      • clearLogin

        public Model.ClientAcc.Builder clearLogin()
         Authenticate session with the newly created account
         
        optional bool login = 5 [json_name = "login"];
        Returns:
        This builder for chaining.
      • getTagsList

        public java.util.List<java.lang.String> getTagsList()
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Specified by:
        getTagsList in interface Model.ClientAccOrBuilder
        Returns:
        A list containing the tags.
      • getTagsCount

        public int getTagsCount()
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Specified by:
        getTagsCount in interface Model.ClientAccOrBuilder
        Returns:
        The count of tags.
      • getTags

        public java.lang.String getTags​(int index)
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Specified by:
        getTags in interface Model.ClientAccOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The tags at the given index.
      • getTagsBytes

        public com.google.protobuf.ByteString getTagsBytes​(int index)
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Specified by:
        getTagsBytes in interface Model.ClientAccOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tags at the given index.
      • setTags

        public Model.ClientAcc.Builder setTags​(int index,
                                               java.lang.String value)
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Parameters:
        index - The index to set the value at.
        value - The tags to set.
        Returns:
        This builder for chaining.
      • addTags

        public Model.ClientAcc.Builder addTags​(java.lang.String value)
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Parameters:
        value - The tags to add.
        Returns:
        This builder for chaining.
      • addAllTags

        public Model.ClientAcc.Builder addAllTags​(java.lang.Iterable<java.lang.String> values)
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Parameters:
        values - The tags to add.
        Returns:
        This builder for chaining.
      • clearTags

        public Model.ClientAcc.Builder clearTags()
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Returns:
        This builder for chaining.
      • addTagsBytes

        public Model.ClientAcc.Builder addTagsBytes​(com.google.protobuf.ByteString value)
         Indexable tags for user discovery
         
        repeated string tags = 6 [json_name = "tags"];
        Parameters:
        value - The bytes of the tags to add.
        Returns:
        This builder for chaining.
      • hasDesc

        public boolean hasDesc()
         User initialization data when creating a new user, otherwise ignored
         
        optional .pbx.SetDesc desc = 7 [json_name = "desc"];
        Specified by:
        hasDesc in interface Model.ClientAccOrBuilder
        Returns:
        Whether the desc field is set.
      • getDesc

        public Model.SetDesc getDesc()
         User initialization data when creating a new user, otherwise ignored
         
        optional .pbx.SetDesc desc = 7 [json_name = "desc"];
        Specified by:
        getDesc in interface Model.ClientAccOrBuilder
        Returns:
        The desc.
      • setDesc

        public Model.ClientAcc.Builder setDesc​(Model.SetDesc value)
         User initialization data when creating a new user, otherwise ignored
         
        optional .pbx.SetDesc desc = 7 [json_name = "desc"];
      • mergeDesc

        public Model.ClientAcc.Builder mergeDesc​(Model.SetDesc value)
         User initialization data when creating a new user, otherwise ignored
         
        optional .pbx.SetDesc desc = 7 [json_name = "desc"];
      • clearDesc

        public Model.ClientAcc.Builder clearDesc()
         User initialization data when creating a new user, otherwise ignored
         
        optional .pbx.SetDesc desc = 7 [json_name = "desc"];
      • getCredCount

        public int getCredCount()
         Credentials for verification.
         
        repeated .pbx.ClientCred cred = 8 [json_name = "cred"];
        Specified by:
        getCredCount in interface Model.ClientAccOrBuilder
      • addAllCred

        public Model.ClientAcc.Builder addAllCred​(java.lang.Iterable<? extends Model.ClientCred> values)
         Credentials for verification.
         
        repeated .pbx.ClientCred cred = 8 [json_name = "cred"];
      • clearCred

        public Model.ClientAcc.Builder clearCred()
         Credentials for verification.
         
        repeated .pbx.ClientCred cred = 8 [json_name = "cred"];
      • removeCred

        public Model.ClientAcc.Builder removeCred​(int index)
         Credentials for verification.
         
        repeated .pbx.ClientCred cred = 8 [json_name = "cred"];
      • hasToken

        public boolean hasToken()
         Authentication token used for resetting a password.
         
        optional bytes token = 9 [json_name = "token"];
        Specified by:
        hasToken in interface Model.ClientAccOrBuilder
        Returns:
        Whether the token field is set.
      • getToken

        public com.google.protobuf.ByteString getToken()
         Authentication token used for resetting a password.
         
        optional bytes token = 9 [json_name = "token"];
        Specified by:
        getToken in interface Model.ClientAccOrBuilder
        Returns:
        The token.
      • setToken

        public Model.ClientAcc.Builder setToken​(com.google.protobuf.ByteString value)
         Authentication token used for resetting a password.
         
        optional bytes token = 9 [json_name = "token"];
        Parameters:
        value - The token to set.
        Returns:
        This builder for chaining.
      • clearToken

        public Model.ClientAcc.Builder clearToken()
         Authentication token used for resetting a password.
         
        optional bytes token = 9 [json_name = "token"];
        Returns:
        This builder for chaining.
      • hasState

        public boolean hasState()
         Account state: normal ("ok"), suspended
         
        optional string state = 10 [json_name = "state"];
        Specified by:
        hasState in interface Model.ClientAccOrBuilder
        Returns:
        Whether the state field is set.
      • getState

        public java.lang.String getState()
         Account state: normal ("ok"), suspended
         
        optional string state = 10 [json_name = "state"];
        Specified by:
        getState in interface Model.ClientAccOrBuilder
        Returns:
        The state.
      • getStateBytes

        public com.google.protobuf.ByteString getStateBytes()
         Account state: normal ("ok"), suspended
         
        optional string state = 10 [json_name = "state"];
        Specified by:
        getStateBytes in interface Model.ClientAccOrBuilder
        Returns:
        The bytes for state.
      • setState

        public Model.ClientAcc.Builder setState​(java.lang.String value)
         Account state: normal ("ok"), suspended
         
        optional string state = 10 [json_name = "state"];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Model.ClientAcc.Builder clearState()
         Account state: normal ("ok"), suspended
         
        optional string state = 10 [json_name = "state"];
        Returns:
        This builder for chaining.
      • setStateBytes

        public Model.ClientAcc.Builder setStateBytes​(com.google.protobuf.ByteString value)
         Account state: normal ("ok"), suspended
         
        optional string state = 10 [json_name = "state"];
        Parameters:
        value - The bytes for state to set.
        Returns:
        This builder for chaining.