Package io.trino.hive.thrift.metastore
Class RolePrincipalGrant
java.lang.Object
io.trino.hive.thrift.metastore.RolePrincipalGrant
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<RolePrincipalGrant>,org.apache.thrift.TBase<RolePrincipalGrant,,RolePrincipalGrant._Fields> org.apache.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.17.0)")
public class RolePrincipalGrant
extends Object
implements org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>, Serializable, Cloneable, Comparable<RolePrincipalGrant>
- 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<RolePrincipalGrant._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionPerforms a deep copy on other.RolePrincipalGrant(String roleName, String principalName, PrincipalType principalType, boolean grantOption, int grantTime, String grantorName, PrincipalType grantorPrincipalType) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(RolePrincipalGrant other) deepCopy()booleanequals(RolePrincipalGrant that) booleanfieldForId(int fieldId) intinthashCode()booleanbooleanisSet(RolePrincipalGrant._Fields field) Returns 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 grantorName is set (has been assigned a value) and false otherwisebooleanReturns true if field grantorPrincipalType is set (has been assigned a value) and false otherwisebooleanReturns true if field grantTime 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 roleName is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) voidsetFieldValue(RolePrincipalGrant._Fields field, Object value) setGrantOption(boolean grantOption) voidsetGrantOptionIsSet(boolean value) setGrantorName(String grantorName) voidsetGrantorNameIsSet(boolean value) setGrantorPrincipalType(PrincipalType grantorPrincipalType) voidsetGrantorPrincipalTypeIsSet(boolean value) setGrantTime(int grantTime) voidsetGrantTimeIsSet(boolean value) setPrincipalName(String principalName) voidsetPrincipalNameIsSet(boolean value) setPrincipalType(PrincipalType principalType) voidsetPrincipalTypeIsSet(boolean value) setRoleName(String roleName) voidsetRoleNameIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<RolePrincipalGrant._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
RolePrincipalGrant
public RolePrincipalGrant() -
RolePrincipalGrant
public RolePrincipalGrant(String roleName, String principalName, PrincipalType principalType, boolean grantOption, int grantTime, String grantorName, PrincipalType grantorPrincipalType) -
RolePrincipalGrant
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
-
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) -
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) -
getGrantTime
public int getGrantTime() -
setGrantTime
-
unsetGrantTime
public void unsetGrantTime() -
isSetGrantTime
public boolean isSetGrantTime()Returns true if field grantTime is set (has been assigned a value) and false otherwise -
setGrantTimeIsSet
public void setGrantTimeIsSet(boolean value) -
getGrantorName
-
setGrantorName
-
unsetGrantorName
public void unsetGrantorName() -
isSetGrantorName
public boolean isSetGrantorName()Returns true if field grantorName is set (has been assigned a value) and false otherwise -
setGrantorNameIsSet
public void setGrantorNameIsSet(boolean value) -
getGrantorPrincipalType
- See Also:
-
setGrantorPrincipalType
- See Also:
-
unsetGrantorPrincipalType
public void unsetGrantorPrincipalType() -
isSetGrantorPrincipalType
public boolean isSetGrantorPrincipalType()Returns true if field grantorPrincipalType is set (has been assigned a value) and false otherwise -
setGrantorPrincipalTypeIsSet
public void setGrantorPrincipalTypeIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._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<RolePrincipalGrant,RolePrincipalGrant._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<RolePrincipalGrant>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._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
-