Package dev.vality.damsel.reports
Class Report
java.lang.Object
dev.vality.damsel.reports.Report
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Report>,org.apache.thrift.TBase<Report,,Report._Fields> org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.19.0)",
date="2024-08-02")
public class Report
extends Object
implements org.apache.thrift.TBase<Report,Report._Fields>, Serializable, Cloneable, Comparable<Report>
Данные по отчету
report_id - уникальный идентификатор отчета
time_range - за какой период данный отчет
report_type - тип отчета
files - файлы данного отчета (к примеру сам отчет и его подпись)
- 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<Report._Fields,org.apache.thrift.meta_data.FieldMetaData> long -
Constructor Summary
ConstructorsConstructorDescriptionReport()Report(long report_id, ReportTimeRange time_range, String created_at, ReportType report_type, ReportStatus status) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToFiles(FileMeta elem) voidclear()intdeepCopy()booleanbooleanfieldForId(int fieldId) Map<Report._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldValue(Report._Fields field) getFiles()intlonginthashCode()booleanisSet(Report._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field created_at is set (has been assigned a value) and false otherwisebooleanReturns true if field files is set (has been assigned a value) and false otherwisebooleanReturns true if field report_id is set (has been assigned a value) and false otherwisebooleanReturns true if field report_type is set (has been assigned a value) and false otherwisebooleanReturns true if field status is set (has been assigned a value) and false otherwisebooleanReturns true if field time_range is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setCreatedAt(String created_at) voidsetCreatedAtIsSet(boolean value) voidsetFieldValue(Report._Fields field, Object value) voidsetFilesIsSet(boolean value) setReportId(long report_id) voidsetReportIdIsSet(boolean value) setReportType(ReportType report_type) voidsetReportTypeIsSet(boolean value) setStatus(ReportStatus status) voidsetStatusIsSet(boolean value) setTimeRange(ReportTimeRange time_range) voidsetTimeRangeIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
report_id
public long report_id -
time_range
-
created_at
-
report_type
- See Also:
-
status
- See Also:
-
files
-
metaDataMap
-
-
Constructor Details
-
Report
public Report() -
Report
public Report(long report_id, ReportTimeRange time_range, String created_at, ReportType report_type, ReportStatus status) -
Report
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<Report,Report._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<Report,Report._Fields>
-
getReportId
public long getReportId() -
setReportId
-
unsetReportId
public void unsetReportId() -
isSetReportId
public boolean isSetReportId()Returns true if field report_id is set (has been assigned a value) and false otherwise -
setReportIdIsSet
public void setReportIdIsSet(boolean value) -
getTimeRange
-
setTimeRange
-
unsetTimeRange
public void unsetTimeRange() -
isSetTimeRange
public boolean isSetTimeRange()Returns true if field time_range is set (has been assigned a value) and false otherwise -
setTimeRangeIsSet
public void setTimeRangeIsSet(boolean value) -
getCreatedAt
-
setCreatedAt
-
unsetCreatedAt
public void unsetCreatedAt() -
isSetCreatedAt
public boolean isSetCreatedAt()Returns true if field created_at is set (has been assigned a value) and false otherwise -
setCreatedAtIsSet
public void setCreatedAtIsSet(boolean value) -
getReportType
- See Also:
-
setReportType
- See Also:
-
unsetReportType
public void unsetReportType() -
isSetReportType
public boolean isSetReportType()Returns true if field report_type is set (has been assigned a value) and false otherwise -
setReportTypeIsSet
public void setReportTypeIsSet(boolean value) -
getStatus
- See Also:
-
setStatus
- See Also:
-
unsetStatus
public void unsetStatus() -
isSetStatus
public boolean isSetStatus()Returns true if field status is set (has been assigned a value) and false otherwise -
setStatusIsSet
public void setStatusIsSet(boolean value) -
getFilesSize
public int getFilesSize() -
getFilesIterator
-
addToFiles
-
getFiles
-
setFiles
-
unsetFiles
public void unsetFiles() -
isSetFiles
public boolean isSetFiles()Returns true if field files is set (has been assigned a value) and false otherwise -
setFilesIsSet
public void setFilesIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<Report,Report._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<Report,Report._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<Report,Report._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Report>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<Report,Report._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<Report,Report._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<Report,Report._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
-