Skip to content

Instantly share code, notes, and snippets.

@fsarradin
Last active December 20, 2020 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fsarradin/da8049e388e39de8e34ba17d24b54457 to your computer and use it in GitHub Desktop.
Save fsarradin/da8049e388e39de8e34ba17d24b54457 to your computer and use it in GitHub Desktop.
Deep nested Avro schema
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package test.entity;
@org.apache.avro.specific.AvroGenerated
public enum Currency implements org.apache.avro.generic.GenericEnumSymbol<Currency> {
EUR, USD ;
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"enum\",\"name\":\"Currency\",\"namespace\":\"test.entity\",\"symbols\":[\"EUR\",\"USD\"]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
}
@namespace("test.entity")
protocol TestEntity {
record AttributeValuePair {
union { null, string } typeCode = null;
union { null, string } value = null;
}
record Coordinates {
union { null, double } lon = null;
union { null, double } lat = null;
}
enum Currency {
EUR, USD
}
record Money {
long field1;
int field2;
Currency field3 = "EUR";
union { null, string } field4 = null;
}
record Amount {
union { null, Money } field1 = null;
union { null, string } field2 = null;
}
record Channel {
union { null, string } field1 = null;
union { null, string } field2 = null;
union { null, string } field3 = null;
union { null, string } field4 = null;
}
record Organisation {
union { null, string } field1 = null;
}
record Address {
union { null, string } field1 = null;
union { null, string } field2 = null;
union { null, string } field3 = null;
union { null, string } field4 = null;
union { null, string } field5 = null;
union { null, string } field6 = null;
union { null, string } field7 = null;
union { null, string } field8 = null;
union { null, string } field9 = null;
union { null, string } field10 = null;
union { null, string } field11 = null;
union { null, string } field12 = null;
union { null, string } field13 = null;
union { null, string } field14 = null;
union { null, Coordinates } field15 = null;
}
record Contact {
union { null, string } field1 = null;
union { null, string } field2 = null;
union { null, string } field3 = null;
union { null, string } field4 = null;
union { null, array<string> } field5 = null;
union { null, array<Channel> } field6 = null;
union { null, string } field7 = null;
union { null, string } field8 = null;
union { null, string } field9 = null;
}
record Part1 {
union { null, string } field1 = null;
union { null, array<AttributeValuePair> } field2 = null;
}
record Part2 {
union { null, string } field1 = null;
union { null, array<AttributeValuePair> } field2 = null;
union { null, Address } field3 = null;
union { null, string } field4 = null;
union { null, string } field5 = null;
union { null, string } field6 = null;
union { null, Organisation } field7 = null;
}
record Identification {
union { null, string } field1 = null;
union { null, Part1 } field2 = null;
union { null, array<AttributeValuePair> } field3 = null;
}
record Link {
union { null, Identification } field1 = null;
union { null, string } field2 = null;
}
record Status {
union { null, string } field1 = null;
union { null, string } field2 = null;
union { null, string } field3 = null;
union { null, string } field4 = null;
union { null, string } field5 = null;
union { null, string } field6 = null;
}
record Reference {
union { null, string } field1 = null;
union { null, string } field2 = null;
union { null, string } field3 = null;
union { null, int } field4 = null;
union { null, Identification } field5 = null;
union { null, array<AttributeValuePair> } field6 = null;
}
record Quantity {
union { null, double } field1 = null;
union { null, string } field2 = null;
union { null, string } field3 = null;
}
record Data {
union { null, Part2 } field1 = null;
}
record Trade {
union { null, string } field1 = null;
union { null, array<AttributeValuePair> } field2 = null;
union { null, string } field3 = null;
union { null, string } field4 = null;
union { null, Quantity } field5 = null;
union { null, array<Data> } field6 = null;
}
record Tax {
union { null, string } field1 = null;
union { null, string } field2 = null;
union { null, Money } field3 = null;
union { null, Money } field4 = null;
union { null, Money } field5 = null;
union { null, Money } field6 = null;
union { null, string } field7 = null;
union { null, string } field8 = null;
union { null, string } field9 = null;
union { null, double } field10 = null;
union { null, string } field11 = null;
union { null, string } field12 = null;
}
record Measurement {
union { null, double } field1 = null;
union { null, string } field2 = null;
}
record Charge {
union { null, Money } field1 = null;
union { null, double } field2 = null;
union { null, string } field3 = null;
union { null, string } field4 = null;
union { null, string } field5 = null;
union { null, Money } field6 = null;
union { null, Money } field7 = null;
union { null, Measurement } field8 = null;
union { null, string } field9 = null;
union { null, string } field10 = null;
union { null, int } field11 = null;
union { null, string } field12 = null;
union { null, string } field13 = null;
union { null, array<AttributeValuePair> } field14 = null;
}
record Information1 {
union { null, array<string> } field1 = null;
union { null, string } field2 = null;
union { null, string } field3 = null;
union { null, string } field4 = null;
union { null, Part2 } field5 = null;
union { null, Part2 } field6 = null;
union { null, string } field7 = null;
union { null, string } field8 = null;
}
record DateTime {
union { null, string } field1 = null;
union { null, string } field2 = null;
}
record DateTimeRange {
union { null, string } field1 = null;
union { null, string } field2 = null;
union { null, string } field3 = null;
union { null, string } field4 = null;
}
record Information2 {
union { null, DateTime } field1 = null;
union { null, DateTime } field2 = null;
union { null, DateTime } field3 = null;
union { null, DateTime } field4 = null;
union { null, DateTimeRange } field5 = null;
union { null, DateTimeRange } field6 = null;
union { null, DateTimeRange } field7 = null;
union { null, DateTime } field8 = null;
union { null, DateTimeRange } field9 = null;
union { null, DateTime } field10 = null;
}
record Information {
union { null, Part2 } field1 = null;
union { null, Part2 } field2 = null;
union { null, Part2 } field3 = null;
union { null, Part2 } field4 = null;
union { null, Information1 } field5 = null;
union { null, Information2 } field6 = null;
union { null, array<AttributeValuePair> } field7 = null;
}
record Detail {
union { null, string } field1 = null;
union { null, Quantity } field2 = null;
union { null, array<Quantity> } field3 = null;
union { null, Information } field4 = null;
union { null, Reference } field5 = null;
union { null, array<AttributeValuePair> } field6 = null;
union { null, array<Part2> } field7 = null;
union { null, array<AttributeValuePair> } field8 = null;
}
record Item {
union { null, string } field1 = null;
union { null, array<AttributeValuePair> } field2 = null;
union { null, Trade } field3 = null;
union { null, Quantity } field4 = null;
union { null, array<Quantity> } field5 = null;
union { null, Money } field6 = null;
union { null, array<Amount> } field7 = null;
union { null, Money } field8 = null;
union { null, Money } field9 = null;
union { null, array<Status> } field10 = null;
union { null, array<AttributeValuePair> } field11 = null;
union { null, array<Tax> } field12 = null;
union { null, array<Charge> } field13 = null;
union { null, array<Detail> } field14 = null;
union { null, array<Part2> } field15 = null;
}
record Entity {
union { null, Identification } field1 = null;
union { null, array<AttributeValuePair> } field2 = null;
union { null, string } field3 = null;
union { null, array<Link> } field4 = null;
union { null, array<Status> } field5 = null;
union { null, array<AttributeValuePair> } field6 = null;
union { null, Channel } field7 = null;
union { null, string } field8 = null;
union { null, string } field9 = null;
union { null, Identification } field10 = null;
union { null, Identification } field11 = null;
union { null, string } field12 = null;
union { null, string } field13 = null;
union { null, Part2 } field14 = null;
union { null, Part2 } field15 = null;
union { null, Part2 } field16 = null;
union { null, array<Part2> } field17 = null;
union { null, array<Reference> } field18 = null;
union { null, array<string> } field19 = null;
union { null, Money } field20 = null;
union { null, Money } field21 = null;
union { null, Money } field22 = null;
union { null, array<Amount> } field23 = null;
union { null, array<Item> } field24 = null;
union { null, string } field25 = null;
union { null, string } field26 = null;
union { null, string } field27 = null;
union { null, string } field28 = null;
union { null, string } field29 = null;
}
}
/** MACHINE-GENERATED FROM AVRO SCHEMA. DO NOT EDIT DIRECTLY */
package test.entity
import scala.annotation.switch
final case class AttributeValuePair(var typeCode: Option[String] = None, var value: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
typeCode match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
value match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.typeCode = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.value = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = AttributeValuePair.SCHEMA$
}
object AttributeValuePair {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Coordinates(var lon: Option[Double] = None, var lat: Option[Double] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
lon match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
lat match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.lon = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Double]]
case 1 => this.lat = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Double]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Coordinates.SCHEMA$
}
object Coordinates {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Coordinates\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}")
}
final case class Money(var field1: Long, var field2: Int, var field3: Currency = Currency.EUR, var field4: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(0L, 0, Currency.EUR, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1
}.asInstanceOf[AnyRef]
case 1 => {
field2
}.asInstanceOf[AnyRef]
case 2 => {
field3
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value
}.asInstanceOf[Long]
case 1 => this.field2 = {
value
}.asInstanceOf[Int]
case 2 => this.field3 = {
value
}.asInstanceOf[Currency]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Money.SCHEMA$
}
object Money {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Money\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":\"long\"},{\"name\":\"field2\",\"type\":\"int\"},{\"name\":\"field3\",\"type\":{\"type\":\"enum\",\"name\":\"Currency\",\"symbols\":[\"EUR\",\"USD\"]},\"default\":\"EUR\"},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Amount(var field1: Option[Money] = None, var field2: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Amount.SCHEMA$
}
object Amount {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Amount\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Money\",\"fields\":[{\"name\":\"field1\",\"type\":\"long\"},{\"name\":\"field2\",\"type\":\"int\"},{\"name\":\"field3\",\"type\":{\"type\":\"enum\",\"name\":\"Currency\",\"symbols\":[\"EUR\",\"USD\"]},\"default\":\"EUR\"},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Channel(var field1: Option[String] = None, var field2: Option[String] = None, var field3: Option[String] = None, var field4: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Channel.SCHEMA$
}
object Channel {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Channel\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Organisation(var field1: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Organisation.SCHEMA$
}
object Organisation {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Organisation\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Address(var field1: Option[String] = None, var field2: Option[String] = None, var field3: Option[String] = None, var field4: Option[String] = None, var field5: Option[String] = None, var field6: Option[String] = None, var field7: Option[String] = None, var field8: Option[String] = None, var field9: Option[String] = None, var field10: Option[String] = None, var field11: Option[String] = None, var field12: Option[String] = None, var field13: Option[String] = None, var field14: Option[String] = None, var field15: Option[Coordinates] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 8 => {
field9 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 9 => {
field10 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 10 => {
field11 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 11 => {
field12 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 12 => {
field13 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 13 => {
field14 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 14 => {
field15 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 8 => this.field9 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 9 => this.field10 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 10 => this.field11 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 11 => this.field12 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 12 => this.field13 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 13 => this.field14 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 14 => this.field15 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Coordinates]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Address.SCHEMA$
}
object Address {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Address\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}")
}
final case class Contact(var field1: Option[String] = None, var field2: Option[String] = None, var field3: Option[String] = None, var field4: Option[String] = None, var field5: Option[Seq[String]] = None, var field6: Option[Seq[Channel]] = None, var field7: Option[String] = None, var field8: Option[String] = None, var field9: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 8 => {
field9 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x.toString
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[String]]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Channel]]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 8 => this.field9 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Contact.SCHEMA$
}
object Contact {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Contact\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"string\"}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Channel\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Part1(var field1: Option[String] = None, var field2: Option[Seq[AttributeValuePair]] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Part1.SCHEMA$
}
object Part1 {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Part1\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null}]}")
}
final case class Part2(var field1: Option[String] = None, var field2: Option[Seq[AttributeValuePair]] = None, var field3: Option[Address] = None, var field4: Option[String] = None, var field5: Option[String] = None, var field6: Option[String] = None, var field7: Option[Organisation] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Address]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Organisation]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Part2.SCHEMA$
}
object Part2 {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Part2\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Address\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Organisation\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null}]}")
}
final case class Identification(var field1: Option[String] = None, var field2: Option[Part1] = None, var field3: Option[Seq[AttributeValuePair]] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part1]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Identification.SCHEMA$
}
object Identification {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Identification\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null}]}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}")
}
final case class Link(var field1: Option[Identification] = None, var field2: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Identification]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Link.SCHEMA$
}
object Link {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Link\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Identification\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null}]}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Status(var field1: Option[String] = None, var field2: Option[String] = None, var field3: Option[String] = None, var field4: Option[String] = None, var field5: Option[String] = None, var field6: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Status.SCHEMA$
}
object Status {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Reference(var field1: Option[String] = None, var field2: Option[String] = None, var field3: Option[String] = None, var field4: Option[Int] = None, var field5: Option[Identification] = None, var field6: Option[Seq[AttributeValuePair]] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Int]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Identification]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Reference.SCHEMA$
}
object Reference {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Reference\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Identification\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null}]}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}")
}
final case class Quantity(var field1: Option[Double] = None, var field2: Option[String] = None, var field3: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Double]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Quantity.SCHEMA$
}
object Quantity {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Quantity\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Data(var field1: Option[Part2] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Data.SCHEMA$
}
object Data {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Data\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Address\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Organisation\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null}]}],\"default\":null}]}")
}
final case class Trade(var field1: Option[String] = None, var field2: Option[Seq[AttributeValuePair]] = None, var field3: Option[String] = None, var field4: Option[String] = None, var field5: Option[Quantity] = None, var field6: Option[Seq[Data]] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Quantity]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Data]]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Trade.SCHEMA$
}
object Trade {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Trade\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Quantity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Data\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Address\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Organisation\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null}]}],\"default\":null}]}}],\"default\":null}]}")
}
final case class Tax(var field1: Option[String] = None, var field2: Option[String] = None, var field3: Option[Money] = None, var field4: Option[Money] = None, var field5: Option[Money] = None, var field6: Option[Money] = None, var field7: Option[String] = None, var field8: Option[String] = None, var field9: Option[String] = None, var field10: Option[Double] = None, var field11: Option[String] = None, var field12: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 8 => {
field9 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 9 => {
field10 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 10 => {
field11 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 11 => {
field12 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 8 => this.field9 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 9 => this.field10 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Double]]
case 10 => this.field11 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 11 => this.field12 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Tax.SCHEMA$
}
object Tax {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Tax\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Money\",\"fields\":[{\"name\":\"field1\",\"type\":\"long\"},{\"name\":\"field2\",\"type\":\"int\"},{\"name\":\"field3\",\"type\":{\"type\":\"enum\",\"name\":\"Currency\",\"symbols\":[\"EUR\",\"USD\"]},\"default\":\"EUR\"},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Measurement(var field1: Option[Double] = None, var field2: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Double]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Measurement.SCHEMA$
}
object Measurement {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Measurement\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Charge(var field1: Option[Money] = None, var field2: Option[Double] = None, var field3: Option[String] = None, var field4: Option[String] = None, var field5: Option[String] = None, var field6: Option[Money] = None, var field7: Option[Money] = None, var field8: Option[Measurement] = None, var field9: Option[String] = None, var field10: Option[String] = None, var field11: Option[Int] = None, var field12: Option[String] = None, var field13: Option[String] = None, var field14: Option[Seq[AttributeValuePair]] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 8 => {
field9 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 9 => {
field10 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 10 => {
field11 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 11 => {
field12 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 12 => {
field13 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 13 => {
field14 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Double]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Measurement]]
case 8 => this.field9 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 9 => this.field10 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 10 => this.field11 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Int]]
case 11 => this.field12 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 12 => this.field13 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 13 => this.field14 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Charge.SCHEMA$
}
object Charge {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Charge\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Money\",\"fields\":[{\"name\":\"field1\",\"type\":\"long\"},{\"name\":\"field2\",\"type\":\"int\"},{\"name\":\"field3\",\"type\":{\"type\":\"enum\",\"name\":\"Currency\",\"symbols\":[\"EUR\",\"USD\"]},\"default\":\"EUR\"},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Measurement\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null}]}")
}
final case class Information1(var field1: Option[Seq[String]] = None, var field2: Option[String] = None, var field3: Option[String] = None, var field4: Option[String] = None, var field5: Option[Part2] = None, var field6: Option[Part2] = None, var field7: Option[String] = None, var field8: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x.toString
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[String]]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Information1.SCHEMA$
}
object Information1 {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Information1\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"string\"}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Address\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Organisation\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class DateTime(var field1: Option[String] = None, var field2: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = DateTime.SCHEMA$
}
object DateTime {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"DateTime\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class DateTimeRange(var field1: Option[String] = None, var field2: Option[String] = None, var field3: Option[String] = None, var field4: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = DateTimeRange.SCHEMA$
}
object DateTimeRange {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"DateTimeRange\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
final case class Information2(var field1: Option[DateTime] = None, var field2: Option[DateTime] = None, var field3: Option[DateTime] = None, var field4: Option[DateTime] = None, var field5: Option[DateTimeRange] = None, var field6: Option[DateTimeRange] = None, var field7: Option[DateTimeRange] = None, var field8: Option[DateTime] = None, var field9: Option[DateTimeRange] = None, var field10: Option[DateTime] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 8 => {
field9 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 9 => {
field10 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTime]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTime]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTime]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTime]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTimeRange]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTimeRange]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTimeRange]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTime]]
case 8 => this.field9 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTimeRange]]
case 9 => this.field10 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[DateTime]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Information2.SCHEMA$
}
object Information2 {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Information2\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTime\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTimeRange\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"DateTime\"],\"default\":null}]}")
}
final case class Information(var field1: Option[Part2] = None, var field2: Option[Part2] = None, var field3: Option[Part2] = None, var field4: Option[Part2] = None, var field5: Option[Information1] = None, var field6: Option[Information2] = None, var field7: Option[Seq[AttributeValuePair]] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Information1]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Information2]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Information.SCHEMA$
}
object Information {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Information\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Address\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Organisation\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"string\"}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTime\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTimeRange\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"DateTime\"],\"default\":null}]}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}")
}
final case class Detail(var field1: Option[String] = None, var field2: Option[Quantity] = None, var field3: Option[Seq[Quantity]] = None, var field4: Option[Information] = None, var field5: Option[Reference] = None, var field6: Option[Seq[AttributeValuePair]] = None, var field7: Option[Seq[Part2]] = None, var field8: Option[Seq[AttributeValuePair]] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Quantity]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Quantity]]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Information]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Reference]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Part2]]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Detail.SCHEMA$
}
object Detail {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Detail\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Quantity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Quantity\"}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Address\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Organisation\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"string\"}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTime\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTimeRange\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"DateTime\"],\"default\":null}]}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Reference\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Identification\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Part2\"}],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}")
}
final case class Item(var field1: Option[String] = None, var field2: Option[Seq[AttributeValuePair]] = None, var field3: Option[Trade] = None, var field4: Option[Quantity] = None, var field5: Option[Seq[Quantity]] = None, var field6: Option[Money] = None, var field7: Option[Seq[Amount]] = None, var field8: Option[Money] = None, var field9: Option[Money] = None, var field10: Option[Seq[Status]] = None, var field11: Option[Seq[AttributeValuePair]] = None, var field12: Option[Seq[Tax]] = None, var field13: Option[Seq[Charge]] = None, var field14: Option[Seq[Detail]] = None, var field15: Option[Seq[Part2]] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 8 => {
field9 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 9 => {
field10 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 10 => {
field11 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 11 => {
field12 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 12 => {
field13 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 13 => {
field14 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 14 => {
field15 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Trade]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Quantity]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Quantity]]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Amount]]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 8 => this.field9 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 9 => this.field10 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Status]]]
case 10 => this.field11 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case 11 => this.field12 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Tax]]]
case 12 => this.field13 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Charge]]]
case 13 => this.field14 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Detail]]]
case 14 => this.field15 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Part2]]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Item.SCHEMA$
}
object Item {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Item\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Trade\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Quantity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Data\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Address\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Organisation\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null}]}],\"default\":null}]}}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Quantity\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Quantity\"}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Money\",\"fields\":[{\"name\":\"field1\",\"type\":\"long\"},{\"name\":\"field2\",\"type\":\"int\"},{\"name\":\"field3\",\"type\":{\"type\":\"enum\",\"name\":\"Currency\",\"symbols\":[\"EUR\",\"USD\"]},\"default\":\"EUR\"},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Amount\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Status\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Tax\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Charge\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Measurement\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}}],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Detail\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"Quantity\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Quantity\"}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"string\"}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTime\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTimeRange\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"DateTime\"],\"default\":null}]}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Reference\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Identification\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Part2\"}],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}}],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Part2\"}],\"default\":null}]}")
}
final case class Entity(var field1: Option[Identification] = None, var field2: Option[Seq[AttributeValuePair]] = None, var field3: Option[String] = None, var field4: Option[Seq[Link]] = None, var field5: Option[Seq[Status]] = None, var field6: Option[Seq[AttributeValuePair]] = None, var field7: Option[Channel] = None, var field8: Option[String] = None, var field9: Option[String] = None, var field10: Option[Identification] = None, var field11: Option[Identification] = None, var field12: Option[String] = None, var field13: Option[String] = None, var field14: Option[Part2] = None, var field15: Option[Part2] = None, var field16: Option[Part2] = None, var field17: Option[Seq[Part2]] = None, var field18: Option[Seq[Reference]] = None, var field19: Option[Seq[String]] = None, var field20: Option[Money] = None, var field21: Option[Money] = None, var field22: Option[Money] = None, var field23: Option[Seq[Amount]] = None, var field24: Option[Seq[Item]] = None, var field25: Option[String] = None, var field26: Option[String] = None, var field27: Option[String] = None, var field28: Option[String] = None, var field29: Option[String] = None) extends org.apache.avro.specific.SpecificRecordBase {
def this() = this(None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None)
def get(field$: Int): AnyRef = {
(field$: @switch) match {
case 0 => {
field1 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 1 => {
field2 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 2 => {
field3 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 3 => {
field4 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 4 => {
field5 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 5 => {
field6 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 6 => {
field7 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 7 => {
field8 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 8 => {
field9 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 9 => {
field10 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 10 => {
field11 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 11 => {
field12 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 12 => {
field13 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 13 => {
field14 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 14 => {
field15 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 15 => {
field16 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 16 => {
field17 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 17 => {
field18 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 18 => {
field19 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 19 => {
field20 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 20 => {
field21 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 21 => {
field22 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 22 => {
field23 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 23 => {
field24 match {
case Some(x) => scala.collection.JavaConverters.bufferAsJavaListConverter({
x map { x =>
x
}
}.toBuffer).asJava
case None => null
}
}.asInstanceOf[AnyRef]
case 24 => {
field25 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 25 => {
field26 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 26 => {
field27 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 27 => {
field28 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case 28 => {
field29 match {
case Some(x) => x
case None => null
}
}.asInstanceOf[AnyRef]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
}
def put(field$: Int, value: Any): Unit = {
(field$: @switch) match {
case 0 => this.field1 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Identification]]
case 1 => this.field2 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case 2 => this.field3 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 3 => this.field4 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Link]]]
case 4 => this.field5 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Status]]]
case 5 => this.field6 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[AttributeValuePair]]]
case 6 => this.field7 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Channel]]
case 7 => this.field8 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 8 => this.field9 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 9 => this.field10 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Identification]]
case 10 => this.field11 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Identification]]
case 11 => this.field12 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 12 => this.field13 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 13 => this.field14 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 14 => this.field15 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 15 => this.field16 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Part2]]
case 16 => this.field17 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Part2]]]
case 17 => this.field18 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Reference]]]
case 18 => this.field19 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x.toString
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[String]]]
case 19 => this.field20 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 20 => this.field21 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 21 => this.field22 = {
value match {
case null => None
case _ => Some(value)
}
}.asInstanceOf[Option[Money]]
case 22 => this.field23 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Amount]]]
case 23 => this.field24 = {
value match {
case null => None
case _ => Some(value match {
case (array: java.util.List[_]) => {
Seq((scala.collection.JavaConverters.asScalaIteratorConverter(array.iterator).asScala.toSeq map { x =>
x
}: _*))
}
})
}
}.asInstanceOf[Option[Seq[Item]]]
case 24 => this.field25 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 25 => this.field26 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 26 => this.field27 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 27 => this.field28 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case 28 => this.field29 = {
value match {
case null => None
case _ => Some(value.toString)
}
}.asInstanceOf[Option[String]]
case _ => new org.apache.avro.AvroRuntimeException("Bad index")
}
()
}
def getSchema: org.apache.avro.Schema = Entity.SCHEMA$
}
object Entity {
val SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Entity\",\"namespace\":\"test.entity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Identification\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AttributeValuePair\",\"fields\":[{\"name\":\"typeCode\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"value\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null}]}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Link\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"Identification\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Status\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Channel\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"Identification\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"Identification\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Part2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Address\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Coordinates\",\"fields\":[{\"name\":\"lon\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"lat\",\"type\":[\"null\",\"double\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Organisation\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null}]}],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field16\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field17\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Part2\"}],\"default\":null},{\"name\":\"field18\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Reference\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Identification\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}}],\"default\":null},{\"name\":\"field19\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"string\"}],\"default\":null},{\"name\":\"field20\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Money\",\"fields\":[{\"name\":\"field1\",\"type\":\"long\"},{\"name\":\"field2\",\"type\":\"int\"},{\"name\":\"field3\",\"type\":{\"type\":\"enum\",\"name\":\"Currency\",\"symbols\":[\"EUR\",\"USD\"]},\"default\":\"EUR\"},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field21\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field22\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field23\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Amount\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field24\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Item\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Trade\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Quantity\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Data\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"Part2\"],\"default\":null}]}}],\"default\":null}]}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Quantity\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Quantity\"}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Amount\"}],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Status\"}],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Tax\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null}]}}],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Charge\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"Money\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Measurement\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"double\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field11\",\"type\":[\"null\",\"int\"],\"default\":null},{\"name\":\"field12\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field13\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}}],\"default\":null},{\"name\":\"field14\",\"type\":[\"null\",{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Detail\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"Quantity\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Quantity\"}],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information1\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"string\"}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"Part2\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"Information2\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTime\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",{\"type\":\"record\",\"name\":\"DateTimeRange\",\"fields\":[{\"name\":\"field1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field2\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field3\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field4\",\"type\":[\"null\",\"string\"],\"default\":null}]}],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",\"DateTime\"],\"default\":null},{\"name\":\"field9\",\"type\":[\"null\",\"DateTimeRange\"],\"default\":null},{\"name\":\"field10\",\"type\":[\"null\",\"DateTime\"],\"default\":null}]}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}],\"default\":null},{\"name\":\"field5\",\"type\":[\"null\",\"Reference\"],\"default\":null},{\"name\":\"field6\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null},{\"name\":\"field7\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Part2\"}],\"default\":null},{\"name\":\"field8\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"AttributeValuePair\"}],\"default\":null}]}}],\"default\":null},{\"name\":\"field15\",\"type\":[\"null\",{\"type\":\"array\",\"items\":\"Part2\"}],\"default\":null}]}}],\"default\":null},{\"name\":\"field25\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field26\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field27\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field28\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"field29\",\"type\":[\"null\",\"string\"],\"default\":null}]}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment