Package dev.vality.damsel.merch_stat
Class StatResponse
java.lang.Object
dev.vality.damsel.merch_stat.StatResponse
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<StatResponse>,org.apache.thrift.TBase<StatResponse,,StatResponse._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.19.0)",
date="2024-08-02")
public class StatResponse
extends Object
implements org.apache.thrift.TBase<StatResponse,StatResponse._Fields>, Serializable, Cloneable, Comparable<StatResponse>
Данные ответа сервиса.
data - данные, тип зависит от целевой функции.
total_count - ожидаемое общее количество данных (т.е. размер всех данных результата, без ограничений по количеству)
continuation_token - токен, сигнализирующий о том, что в ответе передана только часть данных, для получения следующей части
нужно повторно обратиться к сервису, указав тот-же набор условий и continuation_token. Если токена нет, получена последняя часть данных.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<StatResponse._Fields,org.apache.thrift.meta_data.FieldMetaData> int -
Constructor Summary
ConstructorsConstructorDescriptionStatResponse(StatResponse other) Performs a deep copy on other.StatResponse(StatResponseData data) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intcompareTo(StatResponse other) deepCopy()booleanequals(StatResponse that) booleanfieldForId(int fieldId) getData()Map<StatResponse._Fields,org.apache.thrift.meta_data.FieldMetaData> intinthashCode()booleanisSet(StatResponse._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field continuation_token is set (has been assigned a value) and false otherwisebooleanReturns true if field data is set (has been assigned a value) and false otherwisebooleanReturns true if field total_count is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setContinuationToken(String continuation_token) voidsetContinuationTokenIsSet(boolean value) setData(StatResponseData data) voidsetDataIsSet(boolean value) voidsetFieldValue(StatResponse._Fields field, Object value) setTotalCount(int total_count) voidsetTotalCountIsSet(boolean value) toString()voidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
data
-
total_count
public int total_count -
continuation_token
-
metaDataMap
-
-
Constructor Details
-
StatResponse
public StatResponse() -
StatResponse
-
StatResponse
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<StatResponse,StatResponse._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<StatResponse,StatResponse._Fields>
-
getData
-
setData
-
unsetData
public void unsetData() -
isSetData
public boolean isSetData()Returns true if field data is set (has been assigned a value) and false otherwise -
setDataIsSet
public void setDataIsSet(boolean value) -
getTotalCount
public int getTotalCount() -
setTotalCount
-
unsetTotalCount
public void unsetTotalCount() -
isSetTotalCount
public boolean isSetTotalCount()Returns true if field total_count is set (has been assigned a value) and false otherwise -
setTotalCountIsSet
public void setTotalCountIsSet(boolean value) -
getContinuationToken
-
setContinuationToken
-
unsetContinuationToken
public void unsetContinuationToken() -
isSetContinuationToken
public boolean isSetContinuationToken()Returns true if field continuation_token is set (has been assigned a value) and false otherwise -
setContinuationTokenIsSet
public void setContinuationTokenIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<StatResponse,StatResponse._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<StatResponse,StatResponse._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<StatResponse,StatResponse._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<StatResponse>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<StatResponse,StatResponse._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<StatResponse,StatResponse._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<StatResponse,StatResponse._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-