public class AlterUserPrivilegeReq extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<AlterUserPrivilegeReq>
| Modifier and Type | Class and Description |
|---|---|
static class |
AlterUserPrivilegeReq.Builder |
| Modifier and Type | Field and Description |
|---|---|
AlterSchemaOp |
action |
static int |
ACTION |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
Privilege |
privilege |
static int |
PRIVILEGE |
byte[] |
user_name |
static int |
USER_NAME |
| Constructor and Description |
|---|
AlterUserPrivilegeReq() |
AlterUserPrivilegeReq(AlterUserPrivilegeReq other)
Performs a deep copy on other.
|
AlterUserPrivilegeReq(byte[] user_name,
AlterSchemaOp action,
Privilege privilege) |
| Modifier and Type | Method and Description |
|---|---|
static AlterUserPrivilegeReq.Builder |
builder() |
int |
compareTo(AlterUserPrivilegeReq other) |
AlterUserPrivilegeReq |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
AlterSchemaOp |
getAction() |
Object |
getFieldValue(int fieldID) |
Privilege |
getPrivilege() |
byte[] |
getUser_name() |
int |
hashCode() |
boolean |
isSetAction() |
boolean |
isSetPrivilege() |
boolean |
isSetUser_name() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
AlterUserPrivilegeReq |
setAction(AlterSchemaOp action) |
void |
setActionIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
AlterUserPrivilegeReq |
setPrivilege(Privilege privilege) |
void |
setPrivilegeIsSet(boolean __value) |
AlterUserPrivilegeReq |
setUser_name(byte[] user_name) |
void |
setUser_nameIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetAction() |
void |
unsetPrivilege() |
void |
unsetUser_name() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public byte[] user_name
public AlterSchemaOp action
AlterSchemaOppublic Privilege privilege
public static final int USER_NAME
public static final int ACTION
public static final int PRIVILEGE
public AlterUserPrivilegeReq()
public AlterUserPrivilegeReq(byte[] user_name,
AlterSchemaOp action,
Privilege privilege)
public AlterUserPrivilegeReq(AlterUserPrivilegeReq other)
public static AlterUserPrivilegeReq.Builder builder()
public AlterUserPrivilegeReq deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic byte[] getUser_name()
public AlterUserPrivilegeReq setUser_name(byte[] user_name)
public void unsetUser_name()
public boolean isSetUser_name()
public void setUser_nameIsSet(boolean __value)
public AlterSchemaOp getAction()
AlterSchemaOppublic AlterUserPrivilegeReq setAction(AlterSchemaOp action)
AlterSchemaOppublic void unsetAction()
public boolean isSetAction()
public void setActionIsSet(boolean __value)
public Privilege getPrivilege()
public AlterUserPrivilegeReq setPrivilege(Privilege privilege)
public void unsetPrivilege()
public boolean isSetPrivilege()
public void setPrivilegeIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(AlterUserPrivilegeReq other)
compareTo in interface Comparable<AlterUserPrivilegeReq>public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2024. All rights reserved.