public class MetaSet extends java.lang.Object implements org.apache.thrift.TBase<MetaSet,MetaSet._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<MetaSet>
| Modifier and Type | Class and Description |
|---|---|
static class |
MetaSet._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<MetaSet._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
MetaSet() |
MetaSet(long expiry,
java.lang.String token,
java.util.List<Metadata> metadatas) |
MetaSet(MetaSet other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToMetadatas(Metadata elem) |
void |
clear() |
int |
compareTo(MetaSet other) |
MetaSet |
deepCopy() |
boolean |
equals(MetaSet that) |
boolean |
equals(java.lang.Object that) |
MetaSet._Fields |
fieldForId(int fieldId) |
long |
getExpiry()
Timestamp (in ms since epoch) at which the MetaSet expires.
|
java.lang.Object |
getFieldValue(MetaSet._Fields field) |
long |
getMaxduration()
Maximum duration this MetaSet can be used with.
|
java.util.List<Metadata> |
getMetadatas()
List of Metadata in this MetaSet.
|
java.util.Iterator<Metadata> |
getMetadatasIterator() |
int |
getMetadatasSize() |
long |
getNotafter()
If this field is set, maxduration will still be considered, unless
notbefore is also set, but the end timestamp will be constraint to
be <= notafter.
|
long |
getNotbefore()
If this field is set, maxduration will be ignored and count based
requests will be forbidden.
|
java.lang.String |
getToken()
The original token used to construct the MetaSet.
|
int |
hashCode() |
boolean |
isSet(MetaSet._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetExpiry()
Returns true if field expiry is set (has been assigned a value) and false otherwise
|
boolean |
isSetMaxduration()
Returns true if field maxduration is set (has been assigned a value) and false otherwise
|
boolean |
isSetMetadatas()
Returns true if field metadatas is set (has been assigned a value) and false otherwise
|
boolean |
isSetNotafter()
Returns true if field notafter is set (has been assigned a value) and false otherwise
|
boolean |
isSetNotbefore()
Returns true if field notbefore is set (has been assigned a value) and false otherwise
|
boolean |
isSetToken()
Returns true if field token is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
MetaSet |
setExpiry(long expiry)
Timestamp (in ms since epoch) at which the MetaSet expires.
|
void |
setExpiryIsSet(boolean value) |
void |
setFieldValue(MetaSet._Fields field,
java.lang.Object value) |
MetaSet |
setMaxduration(long maxduration)
Maximum duration this MetaSet can be used with.
|
void |
setMaxdurationIsSet(boolean value) |
MetaSet |
setMetadatas(java.util.List<Metadata> metadatas)
List of Metadata in this MetaSet.
|
void |
setMetadatasIsSet(boolean value) |
MetaSet |
setNotafter(long notafter)
If this field is set, maxduration will still be considered, unless
notbefore is also set, but the end timestamp will be constraint to
be <= notafter.
|
void |
setNotafterIsSet(boolean value) |
MetaSet |
setNotbefore(long notbefore)
If this field is set, maxduration will be ignored and count based
requests will be forbidden.
|
void |
setNotbeforeIsSet(boolean value) |
MetaSet |
setToken(java.lang.String token)
The original token used to construct the MetaSet.
|
void |
setTokenIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetExpiry() |
void |
unsetMaxduration() |
void |
unsetMetadatas() |
void |
unsetNotafter() |
void |
unsetNotbefore() |
void |
unsetToken() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<MetaSet._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public MetaSet()
public MetaSet(long expiry,
java.lang.String token,
java.util.List<Metadata> metadatas)
public MetaSet(MetaSet other)
public MetaSet deepCopy()
deepCopy in interface org.apache.thrift.TBase<MetaSet,MetaSet._Fields>public void clear()
clear in interface org.apache.thrift.TBase<MetaSet,MetaSet._Fields>public long getExpiry()
public MetaSet setExpiry(long expiry)
public void unsetExpiry()
public boolean isSetExpiry()
public void setExpiryIsSet(boolean value)
public java.lang.String getToken()
public MetaSet setToken(java.lang.String token)
public void unsetToken()
public boolean isSetToken()
public void setTokenIsSet(boolean value)
public int getMetadatasSize()
public java.util.Iterator<Metadata> getMetadatasIterator()
public void addToMetadatas(Metadata elem)
public java.util.List<Metadata> getMetadatas()
public MetaSet setMetadatas(java.util.List<Metadata> metadatas)
public void unsetMetadatas()
public boolean isSetMetadatas()
public void setMetadatasIsSet(boolean value)
public long getMaxduration()
public MetaSet setMaxduration(long maxduration)
public void unsetMaxduration()
public boolean isSetMaxduration()
public void setMaxdurationIsSet(boolean value)
public long getNotbefore()
public MetaSet setNotbefore(long notbefore)
public void unsetNotbefore()
public boolean isSetNotbefore()
public void setNotbeforeIsSet(boolean value)
public long getNotafter()
public MetaSet setNotafter(long notafter)
public void unsetNotafter()
public boolean isSetNotafter()
public void setNotafterIsSet(boolean value)
public void setFieldValue(MetaSet._Fields field, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<MetaSet,MetaSet._Fields>public java.lang.Object getFieldValue(MetaSet._Fields field)
getFieldValue in interface org.apache.thrift.TBase<MetaSet,MetaSet._Fields>public boolean isSet(MetaSet._Fields field)
isSet in interface org.apache.thrift.TBase<MetaSet,MetaSet._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(MetaSet that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(MetaSet other)
compareTo in interface java.lang.Comparable<MetaSet>public MetaSet._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<MetaSet,MetaSet._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