Package com.gpudb.protocol
Class HasRoleResponse
java.lang.Object
com.gpudb.protocol.HasRoleResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of results returned by
GPUdb.hasRole.Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of string constants for theHasRoleResponseparameterhasRole.static final classA set of string constants for theHasRoleResponseparameterinfo.Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.booleanIndicates whether the specified user has membership in the specified targetrole.getInfo()Additional information.Value ofprincipal.getRole()rolefor which membership is being checked.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setHasRole(boolean hasRole) Indicates whether the specified user has membership in the specified targetrole.Additional information.setPrincipal(String principal) Value ofprincipal.rolefor which membership is being checked.toString()
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setPrincipal
Value ofprincipal.Parameters:principal- The new value forprincipal.Returns:thisto mimic the builder pattern.setRole
rolefor which membership is being checked.Parameters:role- The new value forrole.Returns:thisto mimic the builder pattern.setHasRole
Indicates whether the specified user has membership in the specified targetrole. Supported values:true: User has membership in the role.false: User does not have membership in the role.
Parameters:hasRole- The new value forhasRole.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: