Package io.trino.hive.thrift.metastore
Class GrantRevokeRoleRequest
java.lang.Object
io.trino.hive.thrift.metastore.GrantRevokeRoleRequest
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<GrantRevokeRoleRequest>,org.apache.thrift.TBase<GrantRevokeRoleRequest,,GrantRevokeRoleRequest._Fields> org.apache.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.17.0)")
public class GrantRevokeRoleRequest
extends Object
implements org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>, Serializable, Cloneable, Comparable<GrantRevokeRoleRequest>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<GrantRevokeRoleRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionPerforms a deep copy on other.GrantRevokeRoleRequest(GrantRevokeType requestType, String roleName, String principalName, PrincipalType principalType) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(GrantRevokeRoleRequest other) deepCopy()booleanequals(GrantRevokeRoleRequest that) booleanfieldForId(int fieldId) inthashCode()booleanbooleanReturns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field grantOption is set (has been assigned a value) and false otherwisebooleanReturns true if field grantor is set (has been assigned a value) and false otherwisebooleanReturns true if field grantorType is set (has been assigned a value) and false otherwisebooleanReturns true if field principalName is set (has been assigned a value) and false otherwisebooleanReturns true if field principalType is set (has been assigned a value) and false otherwisebooleanReturns true if field requestType is set (has been assigned a value) and false otherwisebooleanReturns true if field roleName is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) voidsetFieldValue(GrantRevokeRoleRequest._Fields field, Object value) setGrantOption(boolean grantOption) voidsetGrantOptionIsSet(boolean value) setGrantor(String grantor) voidsetGrantorIsSet(boolean value) setGrantorType(PrincipalType grantorType) voidsetGrantorTypeIsSet(boolean value) setPrincipalName(String principalName) voidsetPrincipalNameIsSet(boolean value) setPrincipalType(PrincipalType principalType) voidsetPrincipalTypeIsSet(boolean value) setRequestType(GrantRevokeType requestType) voidsetRequestTypeIsSet(boolean value) setRoleName(String roleName) voidsetRoleNameIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<GrantRevokeRoleRequest._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
GrantRevokeRoleRequest
public GrantRevokeRoleRequest() -
GrantRevokeRoleRequest
public GrantRevokeRoleRequest(GrantRevokeType requestType, String roleName, String principalName, PrincipalType principalType) -
GrantRevokeRoleRequest
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>
-
getRequestType
- See Also:
-
setRequestType
- See Also:
-
unsetRequestType
public void unsetRequestType() -
isSetRequestType
public boolean isSetRequestType()Returns true if field requestType is set (has been assigned a value) and false otherwise -
setRequestTypeIsSet
public void setRequestTypeIsSet(boolean value) -
getRoleName
-
setRoleName
-
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) -
getPrincipalName
-
setPrincipalName
-
unsetPrincipalName
public void unsetPrincipalName() -
isSetPrincipalName
public boolean isSetPrincipalName()Returns true if field principalName is set (has been assigned a value) and false otherwise -
setPrincipalNameIsSet
public void setPrincipalNameIsSet(boolean value) -
getPrincipalType
- See Also:
-
setPrincipalType
- See Also:
-
unsetPrincipalType
public void unsetPrincipalType() -
isSetPrincipalType
public boolean isSetPrincipalType()Returns true if field principalType is set (has been assigned a value) and false otherwise -
setPrincipalTypeIsSet
public void setPrincipalTypeIsSet(boolean value) -
getGrantor
-
setGrantor
-
unsetGrantor
public void unsetGrantor() -
isSetGrantor
public boolean isSetGrantor()Returns true if field grantor is set (has been assigned a value) and false otherwise -
setGrantorIsSet
public void setGrantorIsSet(boolean value) -
getGrantorType
- See Also:
-
setGrantorType
- See Also:
-
unsetGrantorType
public void unsetGrantorType() -
isSetGrantorType
public boolean isSetGrantorType()Returns true if field grantorType is set (has been assigned a value) and false otherwise -
setGrantorTypeIsSet
public void setGrantorTypeIsSet(boolean value) -
isGrantOption
public boolean isGrantOption() -
setGrantOption
-
unsetGrantOption
public void unsetGrantOption() -
isSetGrantOption
public boolean isSetGrantOption()Returns true if field grantOption is set (has been assigned a value) and false otherwise -
setGrantOptionIsSet
public void setGrantOptionIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<GrantRevokeRoleRequest>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._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
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-