@Generated(value="Autogenerated by Thrift Compiler (0.11.0)",
date="2021-05-05")
public class SecureScript
extends java.lang.Object
implements org.apache.thrift.TBase<SecureScript,SecureScript._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SecureScript>
| Modifier and Type | Class and Description |
|---|---|
static class |
SecureScript._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<SecureScript._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
SecureScript() |
SecureScript(long timestamp,
java.lang.String key,
java.nio.ByteBuffer script,
boolean compressed) |
SecureScript(SecureScript other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bufferForScript() |
void |
clear() |
int |
compareTo(SecureScript other) |
SecureScript |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(SecureScript that) |
SecureScript._Fields |
fieldForId(int fieldId) |
java.lang.Object |
getFieldValue(SecureScript._Fields field) |
java.lang.String |
getKey()
Key to unsecure the script
|
byte[] |
getScript()
Actual script content, either a UTF8 encoded string or a compressed content
|
long |
getTimestamp()
Timestamp at which the script was secured
|
int |
hashCode() |
boolean |
isCompressed()
Flag indicating that the script content is compressed.
|
boolean |
isSet(SecureScript._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCompressed()
Returns true if field compressed is set (has been assigned a value) and false otherwise
|
boolean |
isSetKey()
Returns true if field key is set (has been assigned a value) and false otherwise
|
boolean |
isSetScript()
Returns true if field script is set (has been assigned a value) and false otherwise
|
boolean |
isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
SecureScript |
setCompressed(boolean compressed)
Flag indicating that the script content is compressed.
|
void |
setCompressedIsSet(boolean value) |
void |
setFieldValue(SecureScript._Fields field,
java.lang.Object value) |
SecureScript |
setKey(java.lang.String key)
Key to unsecure the script
|
void |
setKeyIsSet(boolean value) |
SecureScript |
setScript(byte[] script)
Actual script content, either a UTF8 encoded string or a compressed content
|
SecureScript |
setScript(java.nio.ByteBuffer script) |
void |
setScriptIsSet(boolean value) |
SecureScript |
setTimestamp(long timestamp)
Timestamp at which the script was secured
|
void |
setTimestampIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetCompressed() |
void |
unsetKey() |
void |
unsetScript() |
void |
unsetTimestamp() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<SecureScript._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public SecureScript()
public SecureScript(long timestamp,
java.lang.String key,
java.nio.ByteBuffer script,
boolean compressed)
public SecureScript(SecureScript other)
public SecureScript deepCopy()
deepCopy in interface org.apache.thrift.TBase<SecureScript,SecureScript._Fields>public void clear()
clear in interface org.apache.thrift.TBase<SecureScript,SecureScript._Fields>public long getTimestamp()
public SecureScript setTimestamp(long timestamp)
public void unsetTimestamp()
public boolean isSetTimestamp()
public void setTimestampIsSet(boolean value)
public java.lang.String getKey()
public SecureScript setKey(java.lang.String key)
public void unsetKey()
public boolean isSetKey()
public void setKeyIsSet(boolean value)
public byte[] getScript()
public java.nio.ByteBuffer bufferForScript()
public SecureScript setScript(byte[] script)
public SecureScript setScript(java.nio.ByteBuffer script)
public void unsetScript()
public boolean isSetScript()
public void setScriptIsSet(boolean value)
public boolean isCompressed()
public SecureScript setCompressed(boolean compressed)
public void unsetCompressed()
public boolean isSetCompressed()
public void setCompressedIsSet(boolean value)
public void setFieldValue(SecureScript._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<SecureScript,SecureScript._Fields>public java.lang.Object getFieldValue(SecureScript._Fields field)
getFieldValue in interface org.apache.thrift.TBase<SecureScript,SecureScript._Fields>public boolean isSet(SecureScript._Fields field)
isSet in interface org.apache.thrift.TBase<SecureScript,SecureScript._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(SecureScript that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(SecureScript other)
compareTo in interface java.lang.Comparable<SecureScript>public SecureScript._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<SecureScript,SecureScript._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TException