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.14.2)",
date="2022-10-25")
public class Report
extends Object
implements org.apache.thrift.TBase<Report,Report._Fields>, Serializable, Cloneable, Comparable<Report>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReport._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description Stringcreated_atList<FileMeta>filesstatic Map<Report._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongreport_idReportTypereport_typeReportStatusstatusReportTimeRangetime_range -
Constructor Summary
Constructors Constructor Description Report()Report(long report_id, ReportTimeRange time_range, String created_at, ReportType report_type, ReportStatus status)Report(Report other)Performs a deep copy on other. -
Method Summary
Modifier and Type Method Description voidaddToFiles(FileMeta elem)voidclear()intcompareTo(Report other)ReportdeepCopy()booleanequals(Report that)booleanequals(Object that)Report._FieldsfieldForId(int fieldId)StringgetCreatedAt()Map<Report._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()Report._Fields[]getFields()ObjectgetFieldValue(Report._Fields field)List<FileMeta>getFiles()Iterator<FileMeta>getFilesIterator()intgetFilesSize()longgetReportId()ReportTypegetReportType()ReportStatusgetStatus()ReportTimeRangegetTimeRange()inthashCode()booleanisSet(Report._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCreatedAt()Returns true if field created_at is set (has been assigned a value) and false otherwisebooleanisSetFiles()Returns true if field files is set (has been assigned a value) and false otherwisebooleanisSetReportId()Returns true if field report_id is set (has been assigned a value) and false otherwisebooleanisSetReportType()Returns true if field report_type is set (has been assigned a value) and false otherwisebooleanisSetStatus()Returns true if field status is set (has been assigned a value) and false otherwisebooleanisSetTimeRange()Returns true if field time_range is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)ReportsetCreatedAt(String created_at)voidsetCreatedAtIsSet(boolean value)voidsetFieldValue(Report._Fields field, Object value)ReportsetFiles(List<FileMeta> files)voidsetFilesIsSet(boolean value)ReportsetReportId(long report_id)voidsetReportIdIsSet(boolean value)ReportsetReportType(ReportType report_type)voidsetReportTypeIsSet(boolean value)ReportsetStatus(ReportStatus status)voidsetStatusIsSet(boolean value)ReportsetTimeRange(ReportTimeRange time_range)voidsetTimeRangeIsSet(boolean value)StringtoString()voidunsetCreatedAt()voidunsetFiles()voidunsetReportId()voidunsetReportType()voidunsetStatus()voidunsetTimeRange()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
report_id
public long report_id -
time_range
-
created_at
-
report_type
-
status
- See Also:
ReportStatus
-
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
-
setReportType
-
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:
ReportStatus
-
setStatus
- See Also:
ReportStatus
-
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
-