Class TCheckUserPrivilegesReq
- java.lang.Object
-
- org.apache.iotdb.confignode.rpc.thrift.TCheckUserPrivilegesReq
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TCheckUserPrivilegesReq>,org.apache.thrift.TBase<TCheckUserPrivilegesReq,TCheckUserPrivilegesReq._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.1)", date="2024-04-19") public class TCheckUserPrivilegesReq extends Object implements org.apache.thrift.TBase<TCheckUserPrivilegesReq,TCheckUserPrivilegesReq._Fields>, Serializable, Cloneable, Comparable<TCheckUserPrivilegesReq>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTCheckUserPrivilegesReq._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description booleangrantOptstatic Map<TCheckUserPrivilegesReq._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapByteBufferpathsintpermissionStringusername
-
Constructor Summary
Constructors Constructor Description TCheckUserPrivilegesReq()TCheckUserPrivilegesReq(String username, ByteBuffer paths, int permission)TCheckUserPrivilegesReq(TCheckUserPrivilegesReq other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufferbufferForPaths()voidclear()intcompareTo(TCheckUserPrivilegesReq other)TCheckUserPrivilegesReqdeepCopy()booleanequals(Object that)booleanequals(TCheckUserPrivilegesReq that)TCheckUserPrivilegesReq._FieldsfieldForId(int fieldId)ObjectgetFieldValue(TCheckUserPrivilegesReq._Fields field)byte[]getPaths()intgetPermission()StringgetUsername()inthashCode()booleanisGrantOpt()booleanisSet(TCheckUserPrivilegesReq._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetGrantOpt()Returns true if field grantOpt is set (has been assigned a value) and false otherwisebooleanisSetPaths()Returns true if field paths is set (has been assigned a value) and false otherwisebooleanisSetPermission()Returns true if field permission 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)voidsetFieldValue(TCheckUserPrivilegesReq._Fields field, Object value)TCheckUserPrivilegesReqsetGrantOpt(boolean grantOpt)voidsetGrantOptIsSet(boolean value)TCheckUserPrivilegesReqsetPaths(byte[] paths)TCheckUserPrivilegesReqsetPaths(ByteBuffer paths)voidsetPathsIsSet(boolean value)TCheckUserPrivilegesReqsetPermission(int permission)voidsetPermissionIsSet(boolean value)TCheckUserPrivilegesReqsetUsername(String username)voidsetUsernameIsSet(boolean value)StringtoString()voidunsetGrantOpt()voidunsetPaths()voidunsetPermission()voidunsetUsername()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
username
public String username
-
paths
public ByteBuffer paths
-
permission
public int permission
-
grantOpt
public boolean grantOpt
-
metaDataMap
public static final Map<TCheckUserPrivilegesReq._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TCheckUserPrivilegesReq
public TCheckUserPrivilegesReq()
-
TCheckUserPrivilegesReq
public TCheckUserPrivilegesReq(String username, ByteBuffer paths, int permission)
-
TCheckUserPrivilegesReq
public TCheckUserPrivilegesReq(TCheckUserPrivilegesReq other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TCheckUserPrivilegesReq deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TCheckUserPrivilegesReq,TCheckUserPrivilegesReq._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TCheckUserPrivilegesReq,TCheckUserPrivilegesReq._Fields>
-
getUsername
public String getUsername()
-
setUsername
public TCheckUserPrivilegesReq 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)
-
getPaths
public byte[] getPaths()
-
bufferForPaths
public ByteBuffer bufferForPaths()
-
setPaths
public TCheckUserPrivilegesReq setPaths(byte[] paths)
-
setPaths
public TCheckUserPrivilegesReq setPaths(ByteBuffer paths)
-
unsetPaths
public void unsetPaths()
-
isSetPaths
public boolean isSetPaths()
Returns true if field paths is set (has been assigned a value) and false otherwise
-
setPathsIsSet
public void setPathsIsSet(boolean value)
-
getPermission
public int getPermission()
-
setPermission
public TCheckUserPrivilegesReq setPermission(int permission)
-
unsetPermission
public void unsetPermission()
-
isSetPermission
public boolean isSetPermission()
Returns true if field permission is set (has been assigned a value) and false otherwise
-
setPermissionIsSet
public void setPermissionIsSet(boolean value)
-
isGrantOpt
public boolean isGrantOpt()
-
setGrantOpt
public TCheckUserPrivilegesReq 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)
-
setFieldValue
public void setFieldValue(TCheckUserPrivilegesReq._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TCheckUserPrivilegesReq,TCheckUserPrivilegesReq._Fields>
-
getFieldValue
public Object getFieldValue(TCheckUserPrivilegesReq._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TCheckUserPrivilegesReq,TCheckUserPrivilegesReq._Fields>
-
isSet
public boolean isSet(TCheckUserPrivilegesReq._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<TCheckUserPrivilegesReq,TCheckUserPrivilegesReq._Fields>
-
equals
public boolean equals(TCheckUserPrivilegesReq that)
-
compareTo
public int compareTo(TCheckUserPrivilegesReq other)
- Specified by:
compareToin interfaceComparable<TCheckUserPrivilegesReq>
-
fieldForId
public TCheckUserPrivilegesReq._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TCheckUserPrivilegesReq,TCheckUserPrivilegesReq._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
-
-