Class TAuthorizerReq
- java.lang.Object
-
- org.apache.iotdb.confignode.rpc.thrift.TAuthorizerReq
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TAuthorizerReq>,org.apache.thrift.TBase<TAuthorizerReq,TAuthorizerReq._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2024-04-19") public class TAuthorizerReq extends Object implements org.apache.thrift.TBase<TAuthorizerReq,TAuthorizerReq._Fields>, Serializable, Cloneable, Comparable<TAuthorizerReq>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTAuthorizerReq._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description intauthorTypebooleangrantOptstatic Map<TAuthorizerReq._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringnewPasswordByteBuffernodeNameListStringpasswordSet<Integer>permissionsStringroleNameStringuserName
-
Constructor Summary
Constructors Constructor Description TAuthorizerReq()TAuthorizerReq(int authorType, String userName, String roleName, String password, String newPassword, Set<Integer> permissions, boolean grantOpt, ByteBuffer nodeNameList)TAuthorizerReq(TAuthorizerReq other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToPermissions(int elem)ByteBufferbufferForNodeNameList()voidclear()intcompareTo(TAuthorizerReq other)TAuthorizerReqdeepCopy()booleanequals(Object that)booleanequals(TAuthorizerReq that)TAuthorizerReq._FieldsfieldForId(int fieldId)intgetAuthorType()ObjectgetFieldValue(TAuthorizerReq._Fields field)StringgetNewPassword()byte[]getNodeNameList()StringgetPassword()Set<Integer>getPermissions()Iterator<Integer>getPermissionsIterator()intgetPermissionsSize()StringgetRoleName()StringgetUserName()inthashCode()booleanisGrantOpt()booleanisSet(TAuthorizerReq._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAuthorType()Returns true if field authorType is set (has been assigned a value) and false otherwisebooleanisSetGrantOpt()Returns true if field grantOpt is set (has been assigned a value) and false otherwisebooleanisSetNewPassword()Returns true if field newPassword is set (has been assigned a value) and false otherwisebooleanisSetNodeNameList()Returns true if field nodeNameList is set (has been assigned a value) and false otherwisebooleanisSetPassword()Returns true if field password is set (has been assigned a value) and false otherwisebooleanisSetPermissions()Returns true if field permissions is set (has been assigned a value) and false otherwisebooleanisSetRoleName()Returns true if field roleName is set (has been assigned a value) and false otherwisebooleanisSetUserName()Returns true if field userName is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TAuthorizerReqsetAuthorType(int authorType)voidsetAuthorTypeIsSet(boolean value)voidsetFieldValue(TAuthorizerReq._Fields field, Object value)TAuthorizerReqsetGrantOpt(boolean grantOpt)voidsetGrantOptIsSet(boolean value)TAuthorizerReqsetNewPassword(String newPassword)voidsetNewPasswordIsSet(boolean value)TAuthorizerReqsetNodeNameList(byte[] nodeNameList)TAuthorizerReqsetNodeNameList(ByteBuffer nodeNameList)voidsetNodeNameListIsSet(boolean value)TAuthorizerReqsetPassword(String password)voidsetPasswordIsSet(boolean value)TAuthorizerReqsetPermissions(Set<Integer> permissions)voidsetPermissionsIsSet(boolean value)TAuthorizerReqsetRoleName(String roleName)voidsetRoleNameIsSet(boolean value)TAuthorizerReqsetUserName(String userName)voidsetUserNameIsSet(boolean value)StringtoString()voidunsetAuthorType()voidunsetGrantOpt()voidunsetNewPassword()voidunsetNodeNameList()voidunsetPassword()voidunsetPermissions()voidunsetRoleName()voidunsetUserName()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
authorType
public int authorType
-
userName
public String userName
-
roleName
public String roleName
-
password
public String password
-
newPassword
public String newPassword
-
grantOpt
public boolean grantOpt
-
nodeNameList
public ByteBuffer nodeNameList
-
metaDataMap
public static final Map<TAuthorizerReq._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TAuthorizerReq
public TAuthorizerReq()
-
TAuthorizerReq
public TAuthorizerReq(int authorType, String userName, String roleName, String password, String newPassword, Set<Integer> permissions, boolean grantOpt, ByteBuffer nodeNameList)
-
TAuthorizerReq
public TAuthorizerReq(TAuthorizerReq other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TAuthorizerReq deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TAuthorizerReq,TAuthorizerReq._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TAuthorizerReq,TAuthorizerReq._Fields>
-
getAuthorType
public int getAuthorType()
-
setAuthorType
public TAuthorizerReq setAuthorType(int authorType)
-
unsetAuthorType
public void unsetAuthorType()
-
isSetAuthorType
public boolean isSetAuthorType()
Returns true if field authorType is set (has been assigned a value) and false otherwise
-
setAuthorTypeIsSet
public void setAuthorTypeIsSet(boolean value)
-
getUserName
public String getUserName()
-
setUserName
public TAuthorizerReq setUserName(String userName)
-
unsetUserName
public void unsetUserName()
-
isSetUserName
public boolean isSetUserName()
Returns true if field userName is set (has been assigned a value) and false otherwise
-
setUserNameIsSet
public void setUserNameIsSet(boolean value)
-
getRoleName
public String getRoleName()
-
setRoleName
public TAuthorizerReq setRoleName(String roleName)
-
unsetRoleName
public void unsetRoleName()
-
isSetRoleName
public boolean isSetRoleName()
Returns true if field roleName is set (has been assigned a value) and false otherwise
-
setRoleNameIsSet
public void setRoleNameIsSet(boolean value)
-
getPassword
public String getPassword()
-
setPassword
public TAuthorizerReq setPassword(String password)
-
unsetPassword
public void unsetPassword()
-
isSetPassword
public boolean isSetPassword()
Returns true if field password is set (has been assigned a value) and false otherwise
-
setPasswordIsSet
public void setPasswordIsSet(boolean value)
-
getNewPassword
public String getNewPassword()
-
setNewPassword
public TAuthorizerReq setNewPassword(String newPassword)
-
unsetNewPassword
public void unsetNewPassword()
-
isSetNewPassword
public boolean isSetNewPassword()
Returns true if field newPassword is set (has been assigned a value) and false otherwise
-
setNewPasswordIsSet
public void setNewPasswordIsSet(boolean value)
-
getPermissionsSize
public int getPermissionsSize()
-
addToPermissions
public void addToPermissions(int elem)
-
setPermissions
public TAuthorizerReq setPermissions(Set<Integer> permissions)
-
unsetPermissions
public void unsetPermissions()
-
isSetPermissions
public boolean isSetPermissions()
Returns true if field permissions is set (has been assigned a value) and false otherwise
-
setPermissionsIsSet
public void setPermissionsIsSet(boolean value)
-
isGrantOpt
public boolean isGrantOpt()
-
setGrantOpt
public TAuthorizerReq setGrantOpt(boolean grantOpt)
-
unsetGrantOpt
public void unsetGrantOpt()
-
isSetGrantOpt
public boolean isSetGrantOpt()
Returns true if field grantOpt is set (has been assigned a value) and false otherwise
-
setGrantOptIsSet
public void setGrantOptIsSet(boolean value)
-
getNodeNameList
public byte[] getNodeNameList()
-
bufferForNodeNameList
public ByteBuffer bufferForNodeNameList()
-
setNodeNameList
public TAuthorizerReq setNodeNameList(byte[] nodeNameList)
-
setNodeNameList
public TAuthorizerReq setNodeNameList(ByteBuffer nodeNameList)
-
unsetNodeNameList
public void unsetNodeNameList()
-
isSetNodeNameList
public boolean isSetNodeNameList()
Returns true if field nodeNameList is set (has been assigned a value) and false otherwise
-
setNodeNameListIsSet
public void setNodeNameListIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TAuthorizerReq._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TAuthorizerReq,TAuthorizerReq._Fields>
-
getFieldValue
public Object getFieldValue(TAuthorizerReq._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TAuthorizerReq,TAuthorizerReq._Fields>
-
isSet
public boolean isSet(TAuthorizerReq._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TAuthorizerReq,TAuthorizerReq._Fields>
-
equals
public boolean equals(TAuthorizerReq that)
-
compareTo
public int compareTo(TAuthorizerReq other)
- Specified by:
compareToin interfaceComparable<TAuthorizerReq>
-
fieldForId
public TAuthorizerReq._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TAuthorizerReq,TAuthorizerReq._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-