Class GroupGeneralDataV1

java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.group.v1.GroupGeneralDataV1
All Implemented Interfaces:
Externalizable, Serializable, Comparable<org.apache.avro.specific.SpecificRecord>, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.GenericRecord, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificRecord, ByteBufferSerializable

public class GroupGeneralDataV1 extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
See Also:
  • Field Details

    • SCHEMA$

      public static final org.apache.avro.Schema SCHEMA$
  • Constructor Details

    • GroupGeneralDataV1

      public GroupGeneralDataV1()
      Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should use newBuilder().
    • GroupGeneralDataV1

      public GroupGeneralDataV1(Long id, String accountNo, String name, String externalId, EnumOptionDataV1 status, Boolean active, String activationDate, Long officeId, String officeName, Long centerId, String centerName, Long staffId, String staffName, String hierarchy, String groupLevel, List<GroupRoleDataV1> groupRoles, List<CalendarDataV1> calendarsData, CalendarDataV1 collectionMeetingCalendar)
      All-args constructor.
      Parameters:
      id - The new value for id
      accountNo - The new value for accountNo
      name - The new value for name
      externalId - The new value for externalId
      status - The new value for status
      active - The new value for active
      activationDate - The new value for activationDate
      officeId - The new value for officeId
      officeName - The new value for officeName
      centerId - The new value for centerId
      centerName - The new value for centerName
      staffId - The new value for staffId
      staffName - The new value for staffName
      hierarchy - The new value for hierarchy
      groupLevel - The new value for groupLevel
      groupRoles - The new value for groupRoles
      calendarsData - The new value for calendarsData
      collectionMeetingCalendar - The new value for collectionMeetingCalendar
  • Method Details

    • getClassSchema

      public static org.apache.avro.Schema getClassSchema()
    • getEncoder

      public static org.apache.avro.message.BinaryMessageEncoder<GroupGeneralDataV1> getEncoder()
      Return the BinaryMessageEncoder instance used by this class.
      Returns:
      the message encoder used by this class
    • getDecoder

      public static org.apache.avro.message.BinaryMessageDecoder<GroupGeneralDataV1> getDecoder()
      Return the BinaryMessageDecoder instance used by this class.
      Returns:
      the message decoder used by this class
    • createDecoder

      public static org.apache.avro.message.BinaryMessageDecoder<GroupGeneralDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver)
      Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
      Parameters:
      resolver - a SchemaStore used to find schemas by fingerprint
      Returns:
      a BinaryMessageDecoder instance for this class backed by the given SchemaStore
    • toByteBuffer

      public ByteBuffer toByteBuffer() throws IOException
      Serializes this GroupGeneralDataV1 to a ByteBuffer.
      Specified by:
      toByteBuffer in interface ByteBufferSerializable
      Returns:
      a buffer holding the serialized data for this instance
      Throws:
      IOException - if this instance could not be serialized
    • fromByteBuffer

      public static GroupGeneralDataV1 fromByteBuffer(ByteBuffer b) throws IOException
      Deserializes a GroupGeneralDataV1 from a ByteBuffer.
      Parameters:
      b - a byte buffer holding serialized data for an instance of this class
      Returns:
      a GroupGeneralDataV1 instance decoded from the given buffer
      Throws:
      IOException - if the given bytes could not be deserialized into an instance of this class
    • getSpecificData

      public org.apache.avro.specific.SpecificData getSpecificData()
      Overrides:
      getSpecificData in class org.apache.avro.specific.SpecificRecordBase
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • get

      public Object get(int field$)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
    • put

      public void put(int field$, Object value$)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • getId

      public Long getId()
      Gets the value of the 'id' field.
      Returns:
      The value of the 'id' field.
    • setId

      public void setId(Long value)
      Sets the value of the 'id' field.
      Parameters:
      value - the value to set.
    • getAccountNo

      public String getAccountNo()
      Gets the value of the 'accountNo' field.
      Returns:
      The value of the 'accountNo' field.
    • setAccountNo

      public void setAccountNo(String value)
      Sets the value of the 'accountNo' field.
      Parameters:
      value - the value to set.
    • getName

      public String getName()
      Gets the value of the 'name' field.
      Returns:
      The value of the 'name' field.
    • setName

      public void setName(String value)
      Sets the value of the 'name' field.
      Parameters:
      value - the value to set.
    • getExternalId

      public String getExternalId()
      Gets the value of the 'externalId' field.
      Returns:
      The value of the 'externalId' field.
    • setExternalId

      public void setExternalId(String value)
      Sets the value of the 'externalId' field.
      Parameters:
      value - the value to set.
    • getStatus

      public EnumOptionDataV1 getStatus()
      Gets the value of the 'status' field.
      Returns:
      The value of the 'status' field.
    • setStatus

      public void setStatus(EnumOptionDataV1 value)
      Sets the value of the 'status' field.
      Parameters:
      value - the value to set.
    • getActive

      public Boolean getActive()
      Gets the value of the 'active' field.
      Returns:
      The value of the 'active' field.
    • setActive

      public void setActive(Boolean value)
      Sets the value of the 'active' field.
      Parameters:
      value - the value to set.
    • getActivationDate

      public String getActivationDate()
      Gets the value of the 'activationDate' field.
      Returns:
      The value of the 'activationDate' field.
    • setActivationDate

      public void setActivationDate(String value)
      Sets the value of the 'activationDate' field.
      Parameters:
      value - the value to set.
    • getOfficeId

      public Long getOfficeId()
      Gets the value of the 'officeId' field.
      Returns:
      The value of the 'officeId' field.
    • setOfficeId

      public void setOfficeId(Long value)
      Sets the value of the 'officeId' field.
      Parameters:
      value - the value to set.
    • getOfficeName

      public String getOfficeName()
      Gets the value of the 'officeName' field.
      Returns:
      The value of the 'officeName' field.
    • setOfficeName

      public void setOfficeName(String value)
      Sets the value of the 'officeName' field.
      Parameters:
      value - the value to set.
    • getCenterId

      public Long getCenterId()
      Gets the value of the 'centerId' field.
      Returns:
      The value of the 'centerId' field.
    • setCenterId

      public void setCenterId(Long value)
      Sets the value of the 'centerId' field.
      Parameters:
      value - the value to set.
    • getCenterName

      public String getCenterName()
      Gets the value of the 'centerName' field.
      Returns:
      The value of the 'centerName' field.
    • setCenterName

      public void setCenterName(String value)
      Sets the value of the 'centerName' field.
      Parameters:
      value - the value to set.
    • getStaffId

      public Long getStaffId()
      Gets the value of the 'staffId' field.
      Returns:
      The value of the 'staffId' field.
    • setStaffId

      public void setStaffId(Long value)
      Sets the value of the 'staffId' field.
      Parameters:
      value - the value to set.
    • getStaffName

      public String getStaffName()
      Gets the value of the 'staffName' field.
      Returns:
      The value of the 'staffName' field.
    • setStaffName

      public void setStaffName(String value)
      Sets the value of the 'staffName' field.
      Parameters:
      value - the value to set.
    • getHierarchy

      public String getHierarchy()
      Gets the value of the 'hierarchy' field.
      Returns:
      The value of the 'hierarchy' field.
    • setHierarchy

      public void setHierarchy(String value)
      Sets the value of the 'hierarchy' field.
      Parameters:
      value - the value to set.
    • getGroupLevel

      public String getGroupLevel()
      Gets the value of the 'groupLevel' field.
      Returns:
      The value of the 'groupLevel' field.
    • setGroupLevel

      public void setGroupLevel(String value)
      Sets the value of the 'groupLevel' field.
      Parameters:
      value - the value to set.
    • getGroupRoles

      public List<GroupRoleDataV1> getGroupRoles()
      Gets the value of the 'groupRoles' field.
      Returns:
      The value of the 'groupRoles' field.
    • setGroupRoles

      public void setGroupRoles(List<GroupRoleDataV1> value)
      Sets the value of the 'groupRoles' field.
      Parameters:
      value - the value to set.
    • getCalendarsData

      public List<CalendarDataV1> getCalendarsData()
      Gets the value of the 'calendarsData' field.
      Returns:
      The value of the 'calendarsData' field.
    • setCalendarsData

      public void setCalendarsData(List<CalendarDataV1> value)
      Sets the value of the 'calendarsData' field.
      Parameters:
      value - the value to set.
    • getCollectionMeetingCalendar

      public CalendarDataV1 getCollectionMeetingCalendar()
      Gets the value of the 'collectionMeetingCalendar' field.
      Returns:
      The value of the 'collectionMeetingCalendar' field.
    • setCollectionMeetingCalendar

      public void setCollectionMeetingCalendar(CalendarDataV1 value)
      Sets the value of the 'collectionMeetingCalendar' field.
      Parameters:
      value - the value to set.
    • newBuilder

      public static GroupGeneralDataV1.Builder newBuilder()
      Creates a new GroupGeneralDataV1 RecordBuilder.
      Returns:
      A new GroupGeneralDataV1 RecordBuilder
    • newBuilder

      public static GroupGeneralDataV1.Builder newBuilder(GroupGeneralDataV1.Builder other)
      Creates a new GroupGeneralDataV1 RecordBuilder by copying an existing Builder.
      Parameters:
      other - The existing builder to copy.
      Returns:
      A new GroupGeneralDataV1 RecordBuilder
    • newBuilder

      public static GroupGeneralDataV1.Builder newBuilder(GroupGeneralDataV1 other)
      Creates a new GroupGeneralDataV1 RecordBuilder by copying an existing GroupGeneralDataV1 instance.
      Parameters:
      other - The existing instance to copy.
      Returns:
      A new GroupGeneralDataV1 RecordBuilder
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Overrides:
      writeExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException
      Specified by:
      readExternal in interface Externalizable
      Overrides:
      readExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • hasCustomCoders

      protected boolean hasCustomCoders()
      Overrides:
      hasCustomCoders in class org.apache.avro.specific.SpecificRecordBase
    • customEncode

      public void customEncode(org.apache.avro.io.Encoder out) throws IOException
      Overrides:
      customEncode in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • customDecode

      public void customDecode(org.apache.avro.io.ResolvingDecoder in) throws IOException
      Overrides:
      customDecode in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException