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:
  • Field Details

  • Constructor Details

    • RolePrincipalGrant

      public RolePrincipalGrant()
    • RolePrincipalGrant

      public RolePrincipalGrant(String roleName, String principalName, PrincipalType principalType, boolean grantOption, int grantTime, String grantorName, PrincipalType grantorPrincipalType)
    • RolePrincipalGrant

      public RolePrincipalGrant(RolePrincipalGrant other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public RolePrincipalGrant deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
    • getRoleName

      public String getRoleName()
    • setRoleName

      public RolePrincipalGrant 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)
    • getPrincipalName

      public String getPrincipalName()
    • setPrincipalName

      public RolePrincipalGrant setPrincipalName(String principalName)
    • 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

      public PrincipalType getPrincipalType()
      See Also:
    • setPrincipalType

      public RolePrincipalGrant setPrincipalType(PrincipalType principalType)
      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

      public RolePrincipalGrant setGrantOption(boolean grantOption)
    • 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

      public RolePrincipalGrant setGrantTime(int grantTime)
    • 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

      public String getGrantorName()
    • setGrantorName

      public RolePrincipalGrant setGrantorName(String grantorName)
    • 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

      public PrincipalType getGrantorPrincipalType()
      See Also:
    • setGrantorPrincipalType

      public RolePrincipalGrant setGrantorPrincipalType(PrincipalType grantorPrincipalType)
      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

      public void setFieldValue(RolePrincipalGrant._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
    • getFieldValue

      public Object getFieldValue(RolePrincipalGrant._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
    • isSet

      public boolean isSet(RolePrincipalGrant._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(RolePrincipalGrant that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(RolePrincipalGrant other)
      Specified by:
      compareTo in interface Comparable<RolePrincipalGrant>
    • fieldForId

      public RolePrincipalGrant._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.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:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validate

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException