Package io.trino.hive.thrift.metastore
Class ThriftHiveMetastore.grant_role_args
java.lang.Object
io.trino.hive.thrift.metastore.ThriftHiveMetastore.grant_role_args
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<ThriftHiveMetastore.grant_role_args>,org.apache.thrift.TBase<ThriftHiveMetastore.grant_role_args,,ThriftHiveMetastore.grant_role_args._Fields> org.apache.thrift.TSerializable
- Enclosing class:
- ThriftHiveMetastore
public static class ThriftHiveMetastore.grant_role_args
extends Object
implements org.apache.thrift.TBase<ThriftHiveMetastore.grant_role_args,ThriftHiveMetastore.grant_role_args._Fields>, Serializable, Cloneable, Comparable<ThriftHiveMetastore.grant_role_args>
- 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<ThriftHiveMetastore.grant_role_args._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionPerforms a deep copy on other.grant_role_args(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intdeepCopy()booleanbooleanfieldForId(int fieldId) inthashCode()booleanbooleanReturns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field grant_option 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 principal_name is set (has been assigned a value) and false otherwisebooleanReturns true if field principal_type is set (has been assigned a value) and false otherwisebooleanReturns true if field role_name is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) voidsetFieldValue(ThriftHiveMetastore.grant_role_args._Fields field, Object value) setGrantOption(boolean grant_option) voidsetGrantOptionIsSet(boolean value) setGrantor(String grantor) voidsetGrantorIsSet(boolean value) setGrantorType(PrincipalType grantorType) voidsetGrantorTypeIsSet(boolean value) setPrincipalName(String principal_name) voidsetPrincipalNameIsSet(boolean value) setPrincipalType(PrincipalType principal_type) voidsetPrincipalTypeIsSet(boolean value) setRoleName(String role_name) voidsetRoleNameIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<ThriftHiveMetastore.grant_role_args._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
grant_role_args
public grant_role_args() -
grant_role_args
public grant_role_args(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option) -
grant_role_args
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.grant_role_args,ThriftHiveMetastore.grant_role_args._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.grant_role_args,ThriftHiveMetastore.grant_role_args._Fields>
-
getRoleName
-
setRoleName
-
unsetRoleName
public void unsetRoleName() -
isSetRoleName
public boolean isSetRoleName()Returns true if field role_name 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 principal_name 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 principal_type 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 grant_option is set (has been assigned a value) and false otherwise -
setGrantOptionIsSet
public void setGrantOptionIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.grant_role_args,ThriftHiveMetastore.grant_role_args._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.grant_role_args,ThriftHiveMetastore.grant_role_args._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<ThriftHiveMetastore.grant_role_args,ThriftHiveMetastore.grant_role_args._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ThriftHiveMetastore.grant_role_args>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<ThriftHiveMetastore.grant_role_args,ThriftHiveMetastore.grant_role_args._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
-