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

  • Constructor Details

    • GrantRevokeRoleRequest

      public GrantRevokeRoleRequest()
    • GrantRevokeRoleRequest

      public GrantRevokeRoleRequest(GrantRevokeType requestType, String roleName, String principalName, PrincipalType principalType)
    • GrantRevokeRoleRequest

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

    • deepCopy

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

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

      public GrantRevokeType getRequestType()
      See Also:
    • setRequestType

      public GrantRevokeRoleRequest setRequestType(GrantRevokeType requestType)
      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

      public String getRoleName()
    • setRoleName

      public GrantRevokeRoleRequest 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 GrantRevokeRoleRequest 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 GrantRevokeRoleRequest 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)
    • getGrantor

      public String getGrantor()
    • setGrantor

      public GrantRevokeRoleRequest setGrantor(String grantor)
    • 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

      public PrincipalType getGrantorType()
      See Also:
    • setGrantorType

      public GrantRevokeRoleRequest setGrantorType(PrincipalType grantorType)
      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

      public GrantRevokeRoleRequest 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)
    • setFieldValue

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

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

      public boolean isSet(GrantRevokeRoleRequest._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<GrantRevokeRoleRequest,GrantRevokeRoleRequest._Fields>
    • equals

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

      public boolean equals(GrantRevokeRoleRequest that)
    • hashCode

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

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

      public GrantRevokeRoleRequest._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<GrantRevokeRoleRequest,GrantRevokeRoleRequest._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