diff --git a/common/pom.xml b/common/pom.xml index 27f723f..2f975a2 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -41,32 +41,52 @@ - - org.apache.avro - avro-maven-plugin - 1.7.4 - - - schemas - generate-sources - - schema - protocol - idl-protocol - - - - **/mapred/tether/** - - src/main/avro/ - src/main/java/ - src/test/avro/ - src/test/java/ - public - - - - + + org.apache.avro + avro-maven-plugin + 1.7.4 + + + schemas + generate-sources + + schema + protocol + idl-protocol + + + + **/mapred/tether/** + + src/main/avro/ + target/generated-sources/avro + src/test/avro/ + src/test/java/ + public + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.9 + + + add-sources + generate-sources + + add-source + + + + target/generated-sources/avro + + + + + + diff --git a/common/src/main/java/org/openrtb/common/api/Advertiser.java b/common/src/main/java/org/openrtb/common/api/Advertiser.java deleted file mode 100644 index ad7aab1..0000000 --- a/common/src/main/java/org/openrtb/common/api/Advertiser.java +++ /dev/null @@ -1,286 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Advertiser extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Advertiser\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"landingPageTLD\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"timestamp\",\"type\":[\"long\",\"null\"]},{\"name\":\"blocklist\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BlocklistObj\",\"fields\":[{\"name\":\"publisherID\",\"type\":[\"string\",\"null\"]},{\"name\":\"publisherName\",\"type\":[\"string\",\"null\"]},{\"name\":\"sideID\",\"type\":[\"string\",\"null\"]},{\"name\":\"siteName\",\"type\":[\"string\",\"null\"]}]}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence landingPageTLD; - public java.lang.CharSequence name; - public java.lang.Long timestamp; - public java.util.List blocklist; - - /** - * Default constructor. - */ - public Advertiser() {} - - /** - * All-args constructor. - */ - public Advertiser(java.lang.CharSequence landingPageTLD, java.lang.CharSequence name, java.lang.Long timestamp, java.util.List blocklist) { - this.landingPageTLD = landingPageTLD; - this.name = name; - this.timestamp = timestamp; - this.blocklist = blocklist; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return landingPageTLD; - case 1: return name; - case 2: return timestamp; - case 3: return blocklist; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: landingPageTLD = (java.lang.CharSequence)value$; break; - case 1: name = (java.lang.CharSequence)value$; break; - case 2: timestamp = (java.lang.Long)value$; break; - case 3: blocklist = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'landingPageTLD' field. - */ - public java.lang.CharSequence getLandingPageTLD() { - return landingPageTLD; - } - - /** - * Sets the value of the 'landingPageTLD' field. - * @param value the value to set. - */ - public void setLandingPageTLD(java.lang.CharSequence value) { - this.landingPageTLD = value; - } - - /** - * Gets the value of the 'name' field. - */ - public java.lang.CharSequence getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * @param value the value to set. - */ - public void setName(java.lang.CharSequence value) { - this.name = value; - } - - /** - * Gets the value of the 'timestamp' field. - */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** - * Sets the value of the 'timestamp' field. - * @param value the value to set. - */ - public void setTimestamp(java.lang.Long value) { - this.timestamp = value; - } - - /** - * Gets the value of the 'blocklist' field. - */ - public java.util.List getBlocklist() { - return blocklist; - } - - /** - * Sets the value of the 'blocklist' field. - * @param value the value to set. - */ - public void setBlocklist(java.util.List value) { - this.blocklist = value; - } - - /** Creates a new Advertiser RecordBuilder */ - public static org.openrtb.common.api.Advertiser.Builder newBuilder() { - return new org.openrtb.common.api.Advertiser.Builder(); - } - - /** Creates a new Advertiser RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Advertiser.Builder newBuilder(org.openrtb.common.api.Advertiser.Builder other) { - return new org.openrtb.common.api.Advertiser.Builder(other); - } - - /** Creates a new Advertiser RecordBuilder by copying an existing Advertiser instance */ - public static org.openrtb.common.api.Advertiser.Builder newBuilder(org.openrtb.common.api.Advertiser other) { - return new org.openrtb.common.api.Advertiser.Builder(other); - } - - /** - * RecordBuilder for Advertiser instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence landingPageTLD; - private java.lang.CharSequence name; - private java.lang.Long timestamp; - private java.util.List blocklist; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Advertiser.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Advertiser.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Advertiser instance */ - private Builder(org.openrtb.common.api.Advertiser other) { - super(org.openrtb.common.api.Advertiser.SCHEMA$); - if (isValidValue(fields()[0], other.landingPageTLD)) { - this.landingPageTLD = data().deepCopy(fields()[0].schema(), other.landingPageTLD); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.timestamp)) { - this.timestamp = data().deepCopy(fields()[2].schema(), other.timestamp); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.blocklist)) { - this.blocklist = data().deepCopy(fields()[3].schema(), other.blocklist); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'landingPageTLD' field */ - public java.lang.CharSequence getLandingPageTLD() { - return landingPageTLD; - } - - /** Sets the value of the 'landingPageTLD' field */ - public org.openrtb.common.api.Advertiser.Builder setLandingPageTLD(java.lang.CharSequence value) { - validate(fields()[0], value); - this.landingPageTLD = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'landingPageTLD' field has been set */ - public boolean hasLandingPageTLD() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'landingPageTLD' field */ - public org.openrtb.common.api.Advertiser.Builder clearLandingPageTLD() { - landingPageTLD = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'name' field */ - public java.lang.CharSequence getName() { - return name; - } - - /** Sets the value of the 'name' field */ - public org.openrtb.common.api.Advertiser.Builder setName(java.lang.CharSequence value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public org.openrtb.common.api.Advertiser.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'timestamp' field */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** Sets the value of the 'timestamp' field */ - public org.openrtb.common.api.Advertiser.Builder setTimestamp(java.lang.Long value) { - validate(fields()[2], value); - this.timestamp = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'timestamp' field has been set */ - public boolean hasTimestamp() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'timestamp' field */ - public org.openrtb.common.api.Advertiser.Builder clearTimestamp() { - timestamp = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'blocklist' field */ - public java.util.List getBlocklist() { - return blocklist; - } - - /** Sets the value of the 'blocklist' field */ - public org.openrtb.common.api.Advertiser.Builder setBlocklist(java.util.List value) { - validate(fields()[3], value); - this.blocklist = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'blocklist' field has been set */ - public boolean hasBlocklist() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'blocklist' field */ - public org.openrtb.common.api.Advertiser.Builder clearBlocklist() { - blocklist = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public Advertiser build() { - try { - Advertiser record = new Advertiser(); - record.landingPageTLD = fieldSetFlags()[0] ? this.landingPageTLD : (java.lang.CharSequence) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.CharSequence) defaultValue(fields()[1]); - record.timestamp = fieldSetFlags()[2] ? this.timestamp : (java.lang.Long) defaultValue(fields()[2]); - record.blocklist = fieldSetFlags()[3] ? this.blocklist : (java.util.List) defaultValue(fields()[3]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/App.java b/common/src/main/java/org/openrtb/common/api/App.java deleted file mode 100644 index aa4bf64..0000000 --- a/common/src/main/java/org/openrtb/common/api/App.java +++ /dev/null @@ -1,836 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class App extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"App\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"sectioncat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"pagecat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"ver\",\"type\":[\"string\",\"null\"]},{\"name\":\"bundle\",\"type\":[\"string\",\"null\"]},{\"name\":\"privacypolicy\",\"type\":[\"int\",\"null\"]},{\"name\":\"paid\",\"type\":[\"int\",\"null\"]},{\"name\":\"publisher\",\"type\":[{\"type\":\"record\",\"name\":\"Publisher\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"content\",\"type\":[{\"type\":\"record\",\"name\":\"Content\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"episode\",\"type\":[\"int\",\"null\"]},{\"name\":\"title\",\"type\":[\"string\",\"null\"]},{\"name\":\"series\",\"type\":[\"string\",\"null\"]},{\"name\":\"season\",\"type\":[\"string\",\"null\"]},{\"name\":\"url\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"videoquality\",\"type\":[\"int\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"contentrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"userrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"context\",\"type\":[\"string\",\"null\"]},{\"name\":\"livestream\",\"type\":[\"int\",\"null\"]},{\"name\":\"sourcerelationship\",\"type\":[\"int\",\"null\"]},{\"name\":\"producer\",\"type\":[{\"type\":\"record\",\"name\":\"Producer\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"len\",\"type\":[\"int\",\"null\"]},{\"name\":\"qagmediarating\",\"type\":[\"int\",\"null\"]},{\"name\":\"embeddable\",\"type\":[\"int\",\"null\"]},{\"name\":\"language\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"storeurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.lang.CharSequence name; - public java.lang.CharSequence domain; - public java.util.List cat; - public java.util.List sectioncat; - public java.util.List pagecat; - public java.lang.CharSequence ver; - public java.lang.CharSequence bundle; - public java.lang.Integer privacypolicy; - public java.lang.Integer paid; - public org.openrtb.common.api.Publisher publisher; - public org.openrtb.common.api.Content content; - public java.lang.CharSequence keywords; - public java.lang.CharSequence storeurl; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public App() {} - - /** - * All-args constructor. - */ - public App(java.lang.CharSequence id, java.lang.CharSequence name, java.lang.CharSequence domain, java.util.List cat, java.util.List sectioncat, java.util.List pagecat, java.lang.CharSequence ver, java.lang.CharSequence bundle, java.lang.Integer privacypolicy, java.lang.Integer paid, org.openrtb.common.api.Publisher publisher, org.openrtb.common.api.Content content, java.lang.CharSequence keywords, java.lang.CharSequence storeurl, java.lang.CharSequence ext) { - this.id = id; - this.name = name; - this.domain = domain; - this.cat = cat; - this.sectioncat = sectioncat; - this.pagecat = pagecat; - this.ver = ver; - this.bundle = bundle; - this.privacypolicy = privacypolicy; - this.paid = paid; - this.publisher = publisher; - this.content = content; - this.keywords = keywords; - this.storeurl = storeurl; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return name; - case 2: return domain; - case 3: return cat; - case 4: return sectioncat; - case 5: return pagecat; - case 6: return ver; - case 7: return bundle; - case 8: return privacypolicy; - case 9: return paid; - case 10: return publisher; - case 11: return content; - case 12: return keywords; - case 13: return storeurl; - case 14: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: name = (java.lang.CharSequence)value$; break; - case 2: domain = (java.lang.CharSequence)value$; break; - case 3: cat = (java.util.List)value$; break; - case 4: sectioncat = (java.util.List)value$; break; - case 5: pagecat = (java.util.List)value$; break; - case 6: ver = (java.lang.CharSequence)value$; break; - case 7: bundle = (java.lang.CharSequence)value$; break; - case 8: privacypolicy = (java.lang.Integer)value$; break; - case 9: paid = (java.lang.Integer)value$; break; - case 10: publisher = (org.openrtb.common.api.Publisher)value$; break; - case 11: content = (org.openrtb.common.api.Content)value$; break; - case 12: keywords = (java.lang.CharSequence)value$; break; - case 13: storeurl = (java.lang.CharSequence)value$; break; - case 14: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'name' field. - */ - public java.lang.CharSequence getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * @param value the value to set. - */ - public void setName(java.lang.CharSequence value) { - this.name = value; - } - - /** - * Gets the value of the 'domain' field. - */ - public java.lang.CharSequence getDomain() { - return domain; - } - - /** - * Sets the value of the 'domain' field. - * @param value the value to set. - */ - public void setDomain(java.lang.CharSequence value) { - this.domain = value; - } - - /** - * Gets the value of the 'cat' field. - */ - public java.util.List getCat() { - return cat; - } - - /** - * Sets the value of the 'cat' field. - * @param value the value to set. - */ - public void setCat(java.util.List value) { - this.cat = value; - } - - /** - * Gets the value of the 'sectioncat' field. - */ - public java.util.List getSectioncat() { - return sectioncat; - } - - /** - * Sets the value of the 'sectioncat' field. - * @param value the value to set. - */ - public void setSectioncat(java.util.List value) { - this.sectioncat = value; - } - - /** - * Gets the value of the 'pagecat' field. - */ - public java.util.List getPagecat() { - return pagecat; - } - - /** - * Sets the value of the 'pagecat' field. - * @param value the value to set. - */ - public void setPagecat(java.util.List value) { - this.pagecat = value; - } - - /** - * Gets the value of the 'ver' field. - */ - public java.lang.CharSequence getVer() { - return ver; - } - - /** - * Sets the value of the 'ver' field. - * @param value the value to set. - */ - public void setVer(java.lang.CharSequence value) { - this.ver = value; - } - - /** - * Gets the value of the 'bundle' field. - */ - public java.lang.CharSequence getBundle() { - return bundle; - } - - /** - * Sets the value of the 'bundle' field. - * @param value the value to set. - */ - public void setBundle(java.lang.CharSequence value) { - this.bundle = value; - } - - /** - * Gets the value of the 'privacypolicy' field. - */ - public java.lang.Integer getPrivacypolicy() { - return privacypolicy; - } - - /** - * Sets the value of the 'privacypolicy' field. - * @param value the value to set. - */ - public void setPrivacypolicy(java.lang.Integer value) { - this.privacypolicy = value; - } - - /** - * Gets the value of the 'paid' field. - */ - public java.lang.Integer getPaid() { - return paid; - } - - /** - * Sets the value of the 'paid' field. - * @param value the value to set. - */ - public void setPaid(java.lang.Integer value) { - this.paid = value; - } - - /** - * Gets the value of the 'publisher' field. - */ - public org.openrtb.common.api.Publisher getPublisher() { - return publisher; - } - - /** - * Sets the value of the 'publisher' field. - * @param value the value to set. - */ - public void setPublisher(org.openrtb.common.api.Publisher value) { - this.publisher = value; - } - - /** - * Gets the value of the 'content' field. - */ - public org.openrtb.common.api.Content getContent() { - return content; - } - - /** - * Sets the value of the 'content' field. - * @param value the value to set. - */ - public void setContent(org.openrtb.common.api.Content value) { - this.content = value; - } - - /** - * Gets the value of the 'keywords' field. - */ - public java.lang.CharSequence getKeywords() { - return keywords; - } - - /** - * Sets the value of the 'keywords' field. - * @param value the value to set. - */ - public void setKeywords(java.lang.CharSequence value) { - this.keywords = value; - } - - /** - * Gets the value of the 'storeurl' field. - */ - public java.lang.CharSequence getStoreurl() { - return storeurl; - } - - /** - * Sets the value of the 'storeurl' field. - * @param value the value to set. - */ - public void setStoreurl(java.lang.CharSequence value) { - this.storeurl = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new App RecordBuilder */ - public static org.openrtb.common.api.App.Builder newBuilder() { - return new org.openrtb.common.api.App.Builder(); - } - - /** Creates a new App RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.App.Builder newBuilder(org.openrtb.common.api.App.Builder other) { - return new org.openrtb.common.api.App.Builder(other); - } - - /** Creates a new App RecordBuilder by copying an existing App instance */ - public static org.openrtb.common.api.App.Builder newBuilder(org.openrtb.common.api.App other) { - return new org.openrtb.common.api.App.Builder(other); - } - - /** - * RecordBuilder for App instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.lang.CharSequence name; - private java.lang.CharSequence domain; - private java.util.List cat; - private java.util.List sectioncat; - private java.util.List pagecat; - private java.lang.CharSequence ver; - private java.lang.CharSequence bundle; - private java.lang.Integer privacypolicy; - private java.lang.Integer paid; - private org.openrtb.common.api.Publisher publisher; - private org.openrtb.common.api.Content content; - private java.lang.CharSequence keywords; - private java.lang.CharSequence storeurl; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.App.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.App.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing App instance */ - private Builder(org.openrtb.common.api.App other) { - super(org.openrtb.common.api.App.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.domain)) { - this.domain = data().deepCopy(fields()[2].schema(), other.domain); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.cat)) { - this.cat = data().deepCopy(fields()[3].schema(), other.cat); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.sectioncat)) { - this.sectioncat = data().deepCopy(fields()[4].schema(), other.sectioncat); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.pagecat)) { - this.pagecat = data().deepCopy(fields()[5].schema(), other.pagecat); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.ver)) { - this.ver = data().deepCopy(fields()[6].schema(), other.ver); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.bundle)) { - this.bundle = data().deepCopy(fields()[7].schema(), other.bundle); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.privacypolicy)) { - this.privacypolicy = data().deepCopy(fields()[8].schema(), other.privacypolicy); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.paid)) { - this.paid = data().deepCopy(fields()[9].schema(), other.paid); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.publisher)) { - this.publisher = data().deepCopy(fields()[10].schema(), other.publisher); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.content)) { - this.content = data().deepCopy(fields()[11].schema(), other.content); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.keywords)) { - this.keywords = data().deepCopy(fields()[12].schema(), other.keywords); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.storeurl)) { - this.storeurl = data().deepCopy(fields()[13].schema(), other.storeurl); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.ext)) { - this.ext = data().deepCopy(fields()[14].schema(), other.ext); - fieldSetFlags()[14] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.App.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.App.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'name' field */ - public java.lang.CharSequence getName() { - return name; - } - - /** Sets the value of the 'name' field */ - public org.openrtb.common.api.App.Builder setName(java.lang.CharSequence value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public org.openrtb.common.api.App.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'domain' field */ - public java.lang.CharSequence getDomain() { - return domain; - } - - /** Sets the value of the 'domain' field */ - public org.openrtb.common.api.App.Builder setDomain(java.lang.CharSequence value) { - validate(fields()[2], value); - this.domain = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'domain' field has been set */ - public boolean hasDomain() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'domain' field */ - public org.openrtb.common.api.App.Builder clearDomain() { - domain = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'cat' field */ - public java.util.List getCat() { - return cat; - } - - /** Sets the value of the 'cat' field */ - public org.openrtb.common.api.App.Builder setCat(java.util.List value) { - validate(fields()[3], value); - this.cat = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'cat' field has been set */ - public boolean hasCat() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'cat' field */ - public org.openrtb.common.api.App.Builder clearCat() { - cat = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'sectioncat' field */ - public java.util.List getSectioncat() { - return sectioncat; - } - - /** Sets the value of the 'sectioncat' field */ - public org.openrtb.common.api.App.Builder setSectioncat(java.util.List value) { - validate(fields()[4], value); - this.sectioncat = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'sectioncat' field has been set */ - public boolean hasSectioncat() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'sectioncat' field */ - public org.openrtb.common.api.App.Builder clearSectioncat() { - sectioncat = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'pagecat' field */ - public java.util.List getPagecat() { - return pagecat; - } - - /** Sets the value of the 'pagecat' field */ - public org.openrtb.common.api.App.Builder setPagecat(java.util.List value) { - validate(fields()[5], value); - this.pagecat = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'pagecat' field has been set */ - public boolean hasPagecat() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'pagecat' field */ - public org.openrtb.common.api.App.Builder clearPagecat() { - pagecat = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'ver' field */ - public java.lang.CharSequence getVer() { - return ver; - } - - /** Sets the value of the 'ver' field */ - public org.openrtb.common.api.App.Builder setVer(java.lang.CharSequence value) { - validate(fields()[6], value); - this.ver = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'ver' field has been set */ - public boolean hasVer() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'ver' field */ - public org.openrtb.common.api.App.Builder clearVer() { - ver = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'bundle' field */ - public java.lang.CharSequence getBundle() { - return bundle; - } - - /** Sets the value of the 'bundle' field */ - public org.openrtb.common.api.App.Builder setBundle(java.lang.CharSequence value) { - validate(fields()[7], value); - this.bundle = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'bundle' field has been set */ - public boolean hasBundle() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'bundle' field */ - public org.openrtb.common.api.App.Builder clearBundle() { - bundle = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'privacypolicy' field */ - public java.lang.Integer getPrivacypolicy() { - return privacypolicy; - } - - /** Sets the value of the 'privacypolicy' field */ - public org.openrtb.common.api.App.Builder setPrivacypolicy(java.lang.Integer value) { - validate(fields()[8], value); - this.privacypolicy = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'privacypolicy' field has been set */ - public boolean hasPrivacypolicy() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'privacypolicy' field */ - public org.openrtb.common.api.App.Builder clearPrivacypolicy() { - privacypolicy = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'paid' field */ - public java.lang.Integer getPaid() { - return paid; - } - - /** Sets the value of the 'paid' field */ - public org.openrtb.common.api.App.Builder setPaid(java.lang.Integer value) { - validate(fields()[9], value); - this.paid = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'paid' field has been set */ - public boolean hasPaid() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'paid' field */ - public org.openrtb.common.api.App.Builder clearPaid() { - paid = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'publisher' field */ - public org.openrtb.common.api.Publisher getPublisher() { - return publisher; - } - - /** Sets the value of the 'publisher' field */ - public org.openrtb.common.api.App.Builder setPublisher(org.openrtb.common.api.Publisher value) { - validate(fields()[10], value); - this.publisher = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'publisher' field has been set */ - public boolean hasPublisher() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'publisher' field */ - public org.openrtb.common.api.App.Builder clearPublisher() { - publisher = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'content' field */ - public org.openrtb.common.api.Content getContent() { - return content; - } - - /** Sets the value of the 'content' field */ - public org.openrtb.common.api.App.Builder setContent(org.openrtb.common.api.Content value) { - validate(fields()[11], value); - this.content = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'content' field has been set */ - public boolean hasContent() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'content' field */ - public org.openrtb.common.api.App.Builder clearContent() { - content = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'keywords' field */ - public java.lang.CharSequence getKeywords() { - return keywords; - } - - /** Sets the value of the 'keywords' field */ - public org.openrtb.common.api.App.Builder setKeywords(java.lang.CharSequence value) { - validate(fields()[12], value); - this.keywords = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'keywords' field has been set */ - public boolean hasKeywords() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'keywords' field */ - public org.openrtb.common.api.App.Builder clearKeywords() { - keywords = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'storeurl' field */ - public java.lang.CharSequence getStoreurl() { - return storeurl; - } - - /** Sets the value of the 'storeurl' field */ - public org.openrtb.common.api.App.Builder setStoreurl(java.lang.CharSequence value) { - validate(fields()[13], value); - this.storeurl = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'storeurl' field has been set */ - public boolean hasStoreurl() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'storeurl' field */ - public org.openrtb.common.api.App.Builder clearStoreurl() { - storeurl = null; - fieldSetFlags()[13] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.App.Builder setExt(java.lang.CharSequence value) { - validate(fields()[14], value); - this.ext = value; - fieldSetFlags()[14] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[14]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.App.Builder clearExt() { - ext = null; - fieldSetFlags()[14] = false; - return this; - } - - @Override - public App build() { - try { - App record = new App(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.CharSequence) defaultValue(fields()[1]); - record.domain = fieldSetFlags()[2] ? this.domain : (java.lang.CharSequence) defaultValue(fields()[2]); - record.cat = fieldSetFlags()[3] ? this.cat : (java.util.List) defaultValue(fields()[3]); - record.sectioncat = fieldSetFlags()[4] ? this.sectioncat : (java.util.List) defaultValue(fields()[4]); - record.pagecat = fieldSetFlags()[5] ? this.pagecat : (java.util.List) defaultValue(fields()[5]); - record.ver = fieldSetFlags()[6] ? this.ver : (java.lang.CharSequence) defaultValue(fields()[6]); - record.bundle = fieldSetFlags()[7] ? this.bundle : (java.lang.CharSequence) defaultValue(fields()[7]); - record.privacypolicy = fieldSetFlags()[8] ? this.privacypolicy : (java.lang.Integer) defaultValue(fields()[8]); - record.paid = fieldSetFlags()[9] ? this.paid : (java.lang.Integer) defaultValue(fields()[9]); - record.publisher = fieldSetFlags()[10] ? this.publisher : (org.openrtb.common.api.Publisher) defaultValue(fields()[10]); - record.content = fieldSetFlags()[11] ? this.content : (org.openrtb.common.api.Content) defaultValue(fields()[11]); - record.keywords = fieldSetFlags()[12] ? this.keywords : (java.lang.CharSequence) defaultValue(fields()[12]); - record.storeurl = fieldSetFlags()[13] ? this.storeurl : (java.lang.CharSequence) defaultValue(fields()[13]); - record.ext = fieldSetFlags()[14] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[14]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Banner.java b/common/src/main/java/org/openrtb/common/api/Banner.java deleted file mode 100644 index b95578a..0000000 --- a/common/src/main/java/org/openrtb/common/api/Banner.java +++ /dev/null @@ -1,636 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Banner extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Banner\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"btype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"mimes\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"topframe\",\"type\":[\"int\",\"null\"]},{\"name\":\"expdir\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.Integer w; - public java.lang.Integer h; - public java.lang.CharSequence id; - public java.lang.Integer pos; - public java.util.List btype; - public java.util.List battr; - public java.util.List mimes; - public java.lang.Integer topframe; - public java.util.List expdir; - public java.util.List api; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Banner() {} - - /** - * All-args constructor. - */ - public Banner(java.lang.Integer w, java.lang.Integer h, java.lang.CharSequence id, java.lang.Integer pos, java.util.List btype, java.util.List battr, java.util.List mimes, java.lang.Integer topframe, java.util.List expdir, java.util.List api, java.lang.CharSequence ext) { - this.w = w; - this.h = h; - this.id = id; - this.pos = pos; - this.btype = btype; - this.battr = battr; - this.mimes = mimes; - this.topframe = topframe; - this.expdir = expdir; - this.api = api; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return w; - case 1: return h; - case 2: return id; - case 3: return pos; - case 4: return btype; - case 5: return battr; - case 6: return mimes; - case 7: return topframe; - case 8: return expdir; - case 9: return api; - case 10: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: w = (java.lang.Integer)value$; break; - case 1: h = (java.lang.Integer)value$; break; - case 2: id = (java.lang.CharSequence)value$; break; - case 3: pos = (java.lang.Integer)value$; break; - case 4: btype = (java.util.List)value$; break; - case 5: battr = (java.util.List)value$; break; - case 6: mimes = (java.util.List)value$; break; - case 7: topframe = (java.lang.Integer)value$; break; - case 8: expdir = (java.util.List)value$; break; - case 9: api = (java.util.List)value$; break; - case 10: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'w' field. - */ - public java.lang.Integer getW() { - return w; - } - - /** - * Sets the value of the 'w' field. - * @param value the value to set. - */ - public void setW(java.lang.Integer value) { - this.w = value; - } - - /** - * Gets the value of the 'h' field. - */ - public java.lang.Integer getH() { - return h; - } - - /** - * Sets the value of the 'h' field. - * @param value the value to set. - */ - public void setH(java.lang.Integer value) { - this.h = value; - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'pos' field. - */ - public java.lang.Integer getPos() { - return pos; - } - - /** - * Sets the value of the 'pos' field. - * @param value the value to set. - */ - public void setPos(java.lang.Integer value) { - this.pos = value; - } - - /** - * Gets the value of the 'btype' field. - */ - public java.util.List getBtype() { - return btype; - } - - /** - * Sets the value of the 'btype' field. - * @param value the value to set. - */ - public void setBtype(java.util.List value) { - this.btype = value; - } - - /** - * Gets the value of the 'battr' field. - */ - public java.util.List getBattr() { - return battr; - } - - /** - * Sets the value of the 'battr' field. - * @param value the value to set. - */ - public void setBattr(java.util.List value) { - this.battr = value; - } - - /** - * Gets the value of the 'mimes' field. - */ - public java.util.List getMimes() { - return mimes; - } - - /** - * Sets the value of the 'mimes' field. - * @param value the value to set. - */ - public void setMimes(java.util.List value) { - this.mimes = value; - } - - /** - * Gets the value of the 'topframe' field. - */ - public java.lang.Integer getTopframe() { - return topframe; - } - - /** - * Sets the value of the 'topframe' field. - * @param value the value to set. - */ - public void setTopframe(java.lang.Integer value) { - this.topframe = value; - } - - /** - * Gets the value of the 'expdir' field. - */ - public java.util.List getExpdir() { - return expdir; - } - - /** - * Sets the value of the 'expdir' field. - * @param value the value to set. - */ - public void setExpdir(java.util.List value) { - this.expdir = value; - } - - /** - * Gets the value of the 'api' field. - */ - public java.util.List getApi() { - return api; - } - - /** - * Sets the value of the 'api' field. - * @param value the value to set. - */ - public void setApi(java.util.List value) { - this.api = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Banner RecordBuilder */ - public static org.openrtb.common.api.Banner.Builder newBuilder() { - return new org.openrtb.common.api.Banner.Builder(); - } - - /** Creates a new Banner RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Banner.Builder newBuilder(org.openrtb.common.api.Banner.Builder other) { - return new org.openrtb.common.api.Banner.Builder(other); - } - - /** Creates a new Banner RecordBuilder by copying an existing Banner instance */ - public static org.openrtb.common.api.Banner.Builder newBuilder(org.openrtb.common.api.Banner other) { - return new org.openrtb.common.api.Banner.Builder(other); - } - - /** - * RecordBuilder for Banner instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Integer w; - private java.lang.Integer h; - private java.lang.CharSequence id; - private java.lang.Integer pos; - private java.util.List btype; - private java.util.List battr; - private java.util.List mimes; - private java.lang.Integer topframe; - private java.util.List expdir; - private java.util.List api; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Banner.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Banner.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Banner instance */ - private Builder(org.openrtb.common.api.Banner other) { - super(org.openrtb.common.api.Banner.SCHEMA$); - if (isValidValue(fields()[0], other.w)) { - this.w = data().deepCopy(fields()[0].schema(), other.w); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.h)) { - this.h = data().deepCopy(fields()[1].schema(), other.h); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.id)) { - this.id = data().deepCopy(fields()[2].schema(), other.id); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.pos)) { - this.pos = data().deepCopy(fields()[3].schema(), other.pos); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.btype)) { - this.btype = data().deepCopy(fields()[4].schema(), other.btype); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.battr)) { - this.battr = data().deepCopy(fields()[5].schema(), other.battr); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.mimes)) { - this.mimes = data().deepCopy(fields()[6].schema(), other.mimes); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.topframe)) { - this.topframe = data().deepCopy(fields()[7].schema(), other.topframe); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.expdir)) { - this.expdir = data().deepCopy(fields()[8].schema(), other.expdir); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.api)) { - this.api = data().deepCopy(fields()[9].schema(), other.api); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.ext)) { - this.ext = data().deepCopy(fields()[10].schema(), other.ext); - fieldSetFlags()[10] = true; - } - } - - /** Gets the value of the 'w' field */ - public java.lang.Integer getW() { - return w; - } - - /** Sets the value of the 'w' field */ - public org.openrtb.common.api.Banner.Builder setW(java.lang.Integer value) { - validate(fields()[0], value); - this.w = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'w' field has been set */ - public boolean hasW() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'w' field */ - public org.openrtb.common.api.Banner.Builder clearW() { - w = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'h' field */ - public java.lang.Integer getH() { - return h; - } - - /** Sets the value of the 'h' field */ - public org.openrtb.common.api.Banner.Builder setH(java.lang.Integer value) { - validate(fields()[1], value); - this.h = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'h' field has been set */ - public boolean hasH() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'h' field */ - public org.openrtb.common.api.Banner.Builder clearH() { - h = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Banner.Builder setId(java.lang.CharSequence value) { - validate(fields()[2], value); - this.id = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Banner.Builder clearId() { - id = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'pos' field */ - public java.lang.Integer getPos() { - return pos; - } - - /** Sets the value of the 'pos' field */ - public org.openrtb.common.api.Banner.Builder setPos(java.lang.Integer value) { - validate(fields()[3], value); - this.pos = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'pos' field has been set */ - public boolean hasPos() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'pos' field */ - public org.openrtb.common.api.Banner.Builder clearPos() { - pos = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'btype' field */ - public java.util.List getBtype() { - return btype; - } - - /** Sets the value of the 'btype' field */ - public org.openrtb.common.api.Banner.Builder setBtype(java.util.List value) { - validate(fields()[4], value); - this.btype = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'btype' field has been set */ - public boolean hasBtype() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'btype' field */ - public org.openrtb.common.api.Banner.Builder clearBtype() { - btype = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'battr' field */ - public java.util.List getBattr() { - return battr; - } - - /** Sets the value of the 'battr' field */ - public org.openrtb.common.api.Banner.Builder setBattr(java.util.List value) { - validate(fields()[5], value); - this.battr = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'battr' field has been set */ - public boolean hasBattr() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'battr' field */ - public org.openrtb.common.api.Banner.Builder clearBattr() { - battr = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'mimes' field */ - public java.util.List getMimes() { - return mimes; - } - - /** Sets the value of the 'mimes' field */ - public org.openrtb.common.api.Banner.Builder setMimes(java.util.List value) { - validate(fields()[6], value); - this.mimes = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'mimes' field has been set */ - public boolean hasMimes() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'mimes' field */ - public org.openrtb.common.api.Banner.Builder clearMimes() { - mimes = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'topframe' field */ - public java.lang.Integer getTopframe() { - return topframe; - } - - /** Sets the value of the 'topframe' field */ - public org.openrtb.common.api.Banner.Builder setTopframe(java.lang.Integer value) { - validate(fields()[7], value); - this.topframe = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'topframe' field has been set */ - public boolean hasTopframe() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'topframe' field */ - public org.openrtb.common.api.Banner.Builder clearTopframe() { - topframe = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'expdir' field */ - public java.util.List getExpdir() { - return expdir; - } - - /** Sets the value of the 'expdir' field */ - public org.openrtb.common.api.Banner.Builder setExpdir(java.util.List value) { - validate(fields()[8], value); - this.expdir = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'expdir' field has been set */ - public boolean hasExpdir() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'expdir' field */ - public org.openrtb.common.api.Banner.Builder clearExpdir() { - expdir = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'api' field */ - public java.util.List getApi() { - return api; - } - - /** Sets the value of the 'api' field */ - public org.openrtb.common.api.Banner.Builder setApi(java.util.List value) { - validate(fields()[9], value); - this.api = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'api' field has been set */ - public boolean hasApi() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'api' field */ - public org.openrtb.common.api.Banner.Builder clearApi() { - api = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Banner.Builder setExt(java.lang.CharSequence value) { - validate(fields()[10], value); - this.ext = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Banner.Builder clearExt() { - ext = null; - fieldSetFlags()[10] = false; - return this; - } - - @Override - public Banner build() { - try { - Banner record = new Banner(); - record.w = fieldSetFlags()[0] ? this.w : (java.lang.Integer) defaultValue(fields()[0]); - record.h = fieldSetFlags()[1] ? this.h : (java.lang.Integer) defaultValue(fields()[1]); - record.id = fieldSetFlags()[2] ? this.id : (java.lang.CharSequence) defaultValue(fields()[2]); - record.pos = fieldSetFlags()[3] ? this.pos : (java.lang.Integer) defaultValue(fields()[3]); - record.btype = fieldSetFlags()[4] ? this.btype : (java.util.List) defaultValue(fields()[4]); - record.battr = fieldSetFlags()[5] ? this.battr : (java.util.List) defaultValue(fields()[5]); - record.mimes = fieldSetFlags()[6] ? this.mimes : (java.util.List) defaultValue(fields()[6]); - record.topframe = fieldSetFlags()[7] ? this.topframe : (java.lang.Integer) defaultValue(fields()[7]); - record.expdir = fieldSetFlags()[8] ? this.expdir : (java.util.List) defaultValue(fields()[8]); - record.api = fieldSetFlags()[9] ? this.api : (java.util.List) defaultValue(fields()[9]); - record.ext = fieldSetFlags()[10] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[10]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Bid.java b/common/src/main/java/org/openrtb/common/api/Bid.java deleted file mode 100644 index 4c0db85..0000000 --- a/common/src/main/java/org/openrtb/common/api/Bid.java +++ /dev/null @@ -1,686 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Bid extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Bid\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"impid\",\"type\":[\"string\",\"null\"]},{\"name\":\"price\",\"type\":[\"float\",\"null\"]},{\"name\":\"adid\",\"type\":[\"string\",\"null\"]},{\"name\":\"nurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"adm\",\"type\":[\"string\",\"null\"]},{\"name\":\"adomain\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"iurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"cid\",\"type\":[\"string\",\"null\"]},{\"name\":\"crid\",\"type\":[\"string\",\"null\"]},{\"name\":\"attr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.lang.CharSequence impid; - public java.lang.Float price; - public java.lang.CharSequence adid; - public java.lang.CharSequence nurl; - public java.lang.CharSequence adm; - public java.util.List adomain; - public java.lang.CharSequence iurl; - public java.lang.CharSequence cid; - public java.lang.CharSequence crid; - public java.util.List attr; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Bid() {} - - /** - * All-args constructor. - */ - public Bid(java.lang.CharSequence id, java.lang.CharSequence impid, java.lang.Float price, java.lang.CharSequence adid, java.lang.CharSequence nurl, java.lang.CharSequence adm, java.util.List adomain, java.lang.CharSequence iurl, java.lang.CharSequence cid, java.lang.CharSequence crid, java.util.List attr, java.lang.CharSequence ext) { - this.id = id; - this.impid = impid; - this.price = price; - this.adid = adid; - this.nurl = nurl; - this.adm = adm; - this.adomain = adomain; - this.iurl = iurl; - this.cid = cid; - this.crid = crid; - this.attr = attr; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return impid; - case 2: return price; - case 3: return adid; - case 4: return nurl; - case 5: return adm; - case 6: return adomain; - case 7: return iurl; - case 8: return cid; - case 9: return crid; - case 10: return attr; - case 11: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: impid = (java.lang.CharSequence)value$; break; - case 2: price = (java.lang.Float)value$; break; - case 3: adid = (java.lang.CharSequence)value$; break; - case 4: nurl = (java.lang.CharSequence)value$; break; - case 5: adm = (java.lang.CharSequence)value$; break; - case 6: adomain = (java.util.List)value$; break; - case 7: iurl = (java.lang.CharSequence)value$; break; - case 8: cid = (java.lang.CharSequence)value$; break; - case 9: crid = (java.lang.CharSequence)value$; break; - case 10: attr = (java.util.List)value$; break; - case 11: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'impid' field. - */ - public java.lang.CharSequence getImpid() { - return impid; - } - - /** - * Sets the value of the 'impid' field. - * @param value the value to set. - */ - public void setImpid(java.lang.CharSequence value) { - this.impid = value; - } - - /** - * Gets the value of the 'price' field. - */ - public java.lang.Float getPrice() { - return price; - } - - /** - * Sets the value of the 'price' field. - * @param value the value to set. - */ - public void setPrice(java.lang.Float value) { - this.price = value; - } - - /** - * Gets the value of the 'adid' field. - */ - public java.lang.CharSequence getAdid() { - return adid; - } - - /** - * Sets the value of the 'adid' field. - * @param value the value to set. - */ - public void setAdid(java.lang.CharSequence value) { - this.adid = value; - } - - /** - * Gets the value of the 'nurl' field. - */ - public java.lang.CharSequence getNurl() { - return nurl; - } - - /** - * Sets the value of the 'nurl' field. - * @param value the value to set. - */ - public void setNurl(java.lang.CharSequence value) { - this.nurl = value; - } - - /** - * Gets the value of the 'adm' field. - */ - public java.lang.CharSequence getAdm() { - return adm; - } - - /** - * Sets the value of the 'adm' field. - * @param value the value to set. - */ - public void setAdm(java.lang.CharSequence value) { - this.adm = value; - } - - /** - * Gets the value of the 'adomain' field. - */ - public java.util.List getAdomain() { - return adomain; - } - - /** - * Sets the value of the 'adomain' field. - * @param value the value to set. - */ - public void setAdomain(java.util.List value) { - this.adomain = value; - } - - /** - * Gets the value of the 'iurl' field. - */ - public java.lang.CharSequence getIurl() { - return iurl; - } - - /** - * Sets the value of the 'iurl' field. - * @param value the value to set. - */ - public void setIurl(java.lang.CharSequence value) { - this.iurl = value; - } - - /** - * Gets the value of the 'cid' field. - */ - public java.lang.CharSequence getCid() { - return cid; - } - - /** - * Sets the value of the 'cid' field. - * @param value the value to set. - */ - public void setCid(java.lang.CharSequence value) { - this.cid = value; - } - - /** - * Gets the value of the 'crid' field. - */ - public java.lang.CharSequence getCrid() { - return crid; - } - - /** - * Sets the value of the 'crid' field. - * @param value the value to set. - */ - public void setCrid(java.lang.CharSequence value) { - this.crid = value; - } - - /** - * Gets the value of the 'attr' field. - */ - public java.util.List getAttr() { - return attr; - } - - /** - * Sets the value of the 'attr' field. - * @param value the value to set. - */ - public void setAttr(java.util.List value) { - this.attr = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Bid RecordBuilder */ - public static org.openrtb.common.api.Bid.Builder newBuilder() { - return new org.openrtb.common.api.Bid.Builder(); - } - - /** Creates a new Bid RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Bid.Builder newBuilder(org.openrtb.common.api.Bid.Builder other) { - return new org.openrtb.common.api.Bid.Builder(other); - } - - /** Creates a new Bid RecordBuilder by copying an existing Bid instance */ - public static org.openrtb.common.api.Bid.Builder newBuilder(org.openrtb.common.api.Bid other) { - return new org.openrtb.common.api.Bid.Builder(other); - } - - /** - * RecordBuilder for Bid instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.lang.CharSequence impid; - private java.lang.Float price; - private java.lang.CharSequence adid; - private java.lang.CharSequence nurl; - private java.lang.CharSequence adm; - private java.util.List adomain; - private java.lang.CharSequence iurl; - private java.lang.CharSequence cid; - private java.lang.CharSequence crid; - private java.util.List attr; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Bid.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Bid.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Bid instance */ - private Builder(org.openrtb.common.api.Bid other) { - super(org.openrtb.common.api.Bid.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.impid)) { - this.impid = data().deepCopy(fields()[1].schema(), other.impid); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.price)) { - this.price = data().deepCopy(fields()[2].schema(), other.price); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.adid)) { - this.adid = data().deepCopy(fields()[3].schema(), other.adid); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.nurl)) { - this.nurl = data().deepCopy(fields()[4].schema(), other.nurl); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.adm)) { - this.adm = data().deepCopy(fields()[5].schema(), other.adm); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.adomain)) { - this.adomain = data().deepCopy(fields()[6].schema(), other.adomain); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.iurl)) { - this.iurl = data().deepCopy(fields()[7].schema(), other.iurl); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.cid)) { - this.cid = data().deepCopy(fields()[8].schema(), other.cid); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.crid)) { - this.crid = data().deepCopy(fields()[9].schema(), other.crid); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.attr)) { - this.attr = data().deepCopy(fields()[10].schema(), other.attr); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.ext)) { - this.ext = data().deepCopy(fields()[11].schema(), other.ext); - fieldSetFlags()[11] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Bid.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Bid.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'impid' field */ - public java.lang.CharSequence getImpid() { - return impid; - } - - /** Sets the value of the 'impid' field */ - public org.openrtb.common.api.Bid.Builder setImpid(java.lang.CharSequence value) { - validate(fields()[1], value); - this.impid = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'impid' field has been set */ - public boolean hasImpid() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'impid' field */ - public org.openrtb.common.api.Bid.Builder clearImpid() { - impid = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'price' field */ - public java.lang.Float getPrice() { - return price; - } - - /** Sets the value of the 'price' field */ - public org.openrtb.common.api.Bid.Builder setPrice(java.lang.Float value) { - validate(fields()[2], value); - this.price = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'price' field has been set */ - public boolean hasPrice() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'price' field */ - public org.openrtb.common.api.Bid.Builder clearPrice() { - price = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'adid' field */ - public java.lang.CharSequence getAdid() { - return adid; - } - - /** Sets the value of the 'adid' field */ - public org.openrtb.common.api.Bid.Builder setAdid(java.lang.CharSequence value) { - validate(fields()[3], value); - this.adid = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'adid' field has been set */ - public boolean hasAdid() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'adid' field */ - public org.openrtb.common.api.Bid.Builder clearAdid() { - adid = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'nurl' field */ - public java.lang.CharSequence getNurl() { - return nurl; - } - - /** Sets the value of the 'nurl' field */ - public org.openrtb.common.api.Bid.Builder setNurl(java.lang.CharSequence value) { - validate(fields()[4], value); - this.nurl = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'nurl' field has been set */ - public boolean hasNurl() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'nurl' field */ - public org.openrtb.common.api.Bid.Builder clearNurl() { - nurl = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'adm' field */ - public java.lang.CharSequence getAdm() { - return adm; - } - - /** Sets the value of the 'adm' field */ - public org.openrtb.common.api.Bid.Builder setAdm(java.lang.CharSequence value) { - validate(fields()[5], value); - this.adm = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'adm' field has been set */ - public boolean hasAdm() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'adm' field */ - public org.openrtb.common.api.Bid.Builder clearAdm() { - adm = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'adomain' field */ - public java.util.List getAdomain() { - return adomain; - } - - /** Sets the value of the 'adomain' field */ - public org.openrtb.common.api.Bid.Builder setAdomain(java.util.List value) { - validate(fields()[6], value); - this.adomain = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'adomain' field has been set */ - public boolean hasAdomain() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'adomain' field */ - public org.openrtb.common.api.Bid.Builder clearAdomain() { - adomain = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'iurl' field */ - public java.lang.CharSequence getIurl() { - return iurl; - } - - /** Sets the value of the 'iurl' field */ - public org.openrtb.common.api.Bid.Builder setIurl(java.lang.CharSequence value) { - validate(fields()[7], value); - this.iurl = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'iurl' field has been set */ - public boolean hasIurl() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'iurl' field */ - public org.openrtb.common.api.Bid.Builder clearIurl() { - iurl = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'cid' field */ - public java.lang.CharSequence getCid() { - return cid; - } - - /** Sets the value of the 'cid' field */ - public org.openrtb.common.api.Bid.Builder setCid(java.lang.CharSequence value) { - validate(fields()[8], value); - this.cid = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'cid' field has been set */ - public boolean hasCid() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'cid' field */ - public org.openrtb.common.api.Bid.Builder clearCid() { - cid = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'crid' field */ - public java.lang.CharSequence getCrid() { - return crid; - } - - /** Sets the value of the 'crid' field */ - public org.openrtb.common.api.Bid.Builder setCrid(java.lang.CharSequence value) { - validate(fields()[9], value); - this.crid = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'crid' field has been set */ - public boolean hasCrid() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'crid' field */ - public org.openrtb.common.api.Bid.Builder clearCrid() { - crid = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'attr' field */ - public java.util.List getAttr() { - return attr; - } - - /** Sets the value of the 'attr' field */ - public org.openrtb.common.api.Bid.Builder setAttr(java.util.List value) { - validate(fields()[10], value); - this.attr = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'attr' field has been set */ - public boolean hasAttr() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'attr' field */ - public org.openrtb.common.api.Bid.Builder clearAttr() { - attr = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Bid.Builder setExt(java.lang.CharSequence value) { - validate(fields()[11], value); - this.ext = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Bid.Builder clearExt() { - ext = null; - fieldSetFlags()[11] = false; - return this; - } - - @Override - public Bid build() { - try { - Bid record = new Bid(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.impid = fieldSetFlags()[1] ? this.impid : (java.lang.CharSequence) defaultValue(fields()[1]); - record.price = fieldSetFlags()[2] ? this.price : (java.lang.Float) defaultValue(fields()[2]); - record.adid = fieldSetFlags()[3] ? this.adid : (java.lang.CharSequence) defaultValue(fields()[3]); - record.nurl = fieldSetFlags()[4] ? this.nurl : (java.lang.CharSequence) defaultValue(fields()[4]); - record.adm = fieldSetFlags()[5] ? this.adm : (java.lang.CharSequence) defaultValue(fields()[5]); - record.adomain = fieldSetFlags()[6] ? this.adomain : (java.util.List) defaultValue(fields()[6]); - record.iurl = fieldSetFlags()[7] ? this.iurl : (java.lang.CharSequence) defaultValue(fields()[7]); - record.cid = fieldSetFlags()[8] ? this.cid : (java.lang.CharSequence) defaultValue(fields()[8]); - record.crid = fieldSetFlags()[9] ? this.crid : (java.lang.CharSequence) defaultValue(fields()[9]); - record.attr = fieldSetFlags()[10] ? this.attr : (java.util.List) defaultValue(fields()[10]); - record.ext = fieldSetFlags()[11] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[11]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/BidRequest.java b/common/src/main/java/org/openrtb/common/api/BidRequest.java deleted file mode 100644 index 3466d73..0000000 --- a/common/src/main/java/org/openrtb/common/api/BidRequest.java +++ /dev/null @@ -1,786 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class BidRequest extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BidRequest\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"imp\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Impression\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"banner\",\"type\":[{\"type\":\"record\",\"name\":\"Banner\",\"fields\":[{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"btype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"mimes\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"topframe\",\"type\":[\"int\",\"null\"]},{\"name\":\"expdir\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"video\",\"type\":[{\"type\":\"record\",\"name\":\"Video\",\"fields\":[{\"name\":\"mimes\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"linearity\",\"type\":[\"int\",\"null\"]},{\"name\":\"minduration\",\"type\":[\"int\",\"null\"]},{\"name\":\"maxduration\",\"type\":[\"int\",\"null\"]},{\"name\":\"protocol\",\"type\":[\"int\",\"null\"]},{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"startdelay\",\"type\":[\"int\",\"null\"]},{\"name\":\"sequence\",\"type\":[\"int\",\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"maxextended\",\"type\":[\"int\",\"null\"]},{\"name\":\"minbitrate\",\"type\":[\"int\",\"null\"]},{\"name\":\"maxbitrate\",\"type\":[\"int\",\"null\"]},{\"name\":\"boxingallowed\",\"type\":[\"int\",\"null\"]},{\"name\":\"playbackmethod\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"delivery\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"companionad\",\"type\":[{\"type\":\"array\",\"items\":\"Banner\"},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"companiontype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"displaymanager\",\"type\":[\"string\",\"null\"]},{\"name\":\"displaymanagerver\",\"type\":[\"string\",\"null\"]},{\"name\":\"instl\",\"type\":[\"int\",\"null\"]},{\"name\":\"tagid\",\"type\":[\"string\",\"null\"]},{\"name\":\"bidfloor\",\"type\":[\"float\",\"null\"]},{\"name\":\"bidfloorcur\",\"type\":[\"string\",\"null\"]},{\"name\":\"iframebuster\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}}},{\"name\":\"site\",\"type\":[{\"type\":\"record\",\"name\":\"Site\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"sectioncat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"pagecat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"page\",\"type\":[\"string\",\"null\"]},{\"name\":\"privacypolicy\",\"type\":[\"int\",\"null\"]},{\"name\":\"ref\",\"type\":[\"string\",\"null\"]},{\"name\":\"search\",\"type\":[\"int\",\"null\"]},{\"name\":\"publisher\",\"type\":[{\"type\":\"record\",\"name\":\"Publisher\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"content\",\"type\":[{\"type\":\"record\",\"name\":\"Content\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"episode\",\"type\":[\"int\",\"null\"]},{\"name\":\"title\",\"type\":[\"string\",\"null\"]},{\"name\":\"series\",\"type\":[\"string\",\"null\"]},{\"name\":\"season\",\"type\":[\"string\",\"null\"]},{\"name\":\"url\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"videoquality\",\"type\":[\"int\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"contentrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"userrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"context\",\"type\":[\"string\",\"null\"]},{\"name\":\"livestream\",\"type\":[\"int\",\"null\"]},{\"name\":\"sourcerelationship\",\"type\":[\"int\",\"null\"]},{\"name\":\"producer\",\"type\":[{\"type\":\"record\",\"name\":\"Producer\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"len\",\"type\":[\"int\",\"null\"]},{\"name\":\"qagmediarating\",\"type\":[\"int\",\"null\"]},{\"name\":\"embeddable\",\"type\":[\"int\",\"null\"]},{\"name\":\"language\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"app\",\"type\":[{\"type\":\"record\",\"name\":\"App\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"sectioncat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"pagecat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"ver\",\"type\":[\"string\",\"null\"]},{\"name\":\"bundle\",\"type\":[\"string\",\"null\"]},{\"name\":\"privacypolicy\",\"type\":[\"int\",\"null\"]},{\"name\":\"paid\",\"type\":[\"int\",\"null\"]},{\"name\":\"publisher\",\"type\":[\"Publisher\",\"null\"]},{\"name\":\"content\",\"type\":[\"Content\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"storeurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"device\",\"type\":[{\"type\":\"record\",\"name\":\"Device\",\"fields\":[{\"name\":\"dnt\",\"type\":[\"int\",\"null\"]},{\"name\":\"ua\",\"type\":[\"string\",\"null\"]},{\"name\":\"ip\",\"type\":[\"string\",\"null\"]},{\"name\":\"geo\",\"type\":[{\"type\":\"record\",\"name\":\"Geo\",\"fields\":[{\"name\":\"lat\",\"type\":[\"float\",\"null\"]},{\"name\":\"lon\",\"type\":[\"float\",\"null\"]},{\"name\":\"country\",\"type\":[\"string\",\"null\"]},{\"name\":\"region\",\"type\":[\"string\",\"null\"]},{\"name\":\"regionfips104\",\"type\":[\"string\",\"null\"]},{\"name\":\"metro\",\"type\":[\"string\",\"null\"]},{\"name\":\"city\",\"type\":[\"string\",\"null\"]},{\"name\":\"zip\",\"type\":[\"string\",\"null\"]},{\"name\":\"type\",\"type\":[\"int\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"didsha1\",\"type\":[\"string\",\"null\"]},{\"name\":\"didmd5\",\"type\":[\"string\",\"null\"]},{\"name\":\"dpidsha1\",\"type\":[\"string\",\"null\"]},{\"name\":\"dpidmd5\",\"type\":[\"string\",\"null\"]},{\"name\":\"ipv6\",\"type\":[\"string\",\"null\"]},{\"name\":\"carrier\",\"type\":[\"string\",\"null\"]},{\"name\":\"language\",\"type\":[\"string\",\"null\"]},{\"name\":\"make\",\"type\":[\"string\",\"null\"]},{\"name\":\"model\",\"type\":[\"string\",\"null\"]},{\"name\":\"os\",\"type\":[\"string\",\"null\"]},{\"name\":\"Osv\",\"type\":[\"string\",\"null\"]},{\"name\":\"Js\",\"type\":[\"int\",\"null\"]},{\"name\":\"connectiontype\",\"type\":[\"int\",\"null\"]},{\"name\":\"deviceType\",\"type\":[\"int\",\"null\"]},{\"name\":\"flashver\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"user\",\"type\":[{\"type\":\"record\",\"name\":\"User\",\"fields\":[{\"name\":\"Id\",\"type\":[\"string\",\"null\"]},{\"name\":\"buyeruid\",\"type\":[\"string\",\"null\"]},{\"name\":\"yob\",\"type\":[\"int\",\"null\"]},{\"name\":\"gender\",\"type\":[\"string\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"customdata\",\"type\":[\"string\",\"null\"]},{\"name\":\"geo\",\"type\":[\"Geo\",\"null\"]},{\"name\":\"data\",\"type\":[{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Data\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"segment\",\"type\":[{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Segment\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"value\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"at\",\"type\":[\"int\",\"null\"]},{\"name\":\"tmax\",\"type\":[\"int\",\"null\"]},{\"name\":\"wseat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"allimps\",\"type\":[\"int\",\"null\"]},{\"name\":\"cur\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"bcat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"badv\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.util.List imp; - public org.openrtb.common.api.Site site; - public org.openrtb.common.api.App app; - public org.openrtb.common.api.Device device; - public org.openrtb.common.api.User user; - public java.lang.Integer at; - public java.lang.Integer tmax; - public java.util.List wseat; - public java.lang.Integer allimps; - public java.util.List cur; - public java.util.List bcat; - public java.util.List badv; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public BidRequest() {} - - /** - * All-args constructor. - */ - public BidRequest(java.lang.CharSequence id, java.util.List imp, org.openrtb.common.api.Site site, org.openrtb.common.api.App app, org.openrtb.common.api.Device device, org.openrtb.common.api.User user, java.lang.Integer at, java.lang.Integer tmax, java.util.List wseat, java.lang.Integer allimps, java.util.List cur, java.util.List bcat, java.util.List badv, java.lang.CharSequence ext) { - this.id = id; - this.imp = imp; - this.site = site; - this.app = app; - this.device = device; - this.user = user; - this.at = at; - this.tmax = tmax; - this.wseat = wseat; - this.allimps = allimps; - this.cur = cur; - this.bcat = bcat; - this.badv = badv; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return imp; - case 2: return site; - case 3: return app; - case 4: return device; - case 5: return user; - case 6: return at; - case 7: return tmax; - case 8: return wseat; - case 9: return allimps; - case 10: return cur; - case 11: return bcat; - case 12: return badv; - case 13: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: imp = (java.util.List)value$; break; - case 2: site = (org.openrtb.common.api.Site)value$; break; - case 3: app = (org.openrtb.common.api.App)value$; break; - case 4: device = (org.openrtb.common.api.Device)value$; break; - case 5: user = (org.openrtb.common.api.User)value$; break; - case 6: at = (java.lang.Integer)value$; break; - case 7: tmax = (java.lang.Integer)value$; break; - case 8: wseat = (java.util.List)value$; break; - case 9: allimps = (java.lang.Integer)value$; break; - case 10: cur = (java.util.List)value$; break; - case 11: bcat = (java.util.List)value$; break; - case 12: badv = (java.util.List)value$; break; - case 13: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'imp' field. - */ - public java.util.List getImp() { - return imp; - } - - /** - * Sets the value of the 'imp' field. - * @param value the value to set. - */ - public void setImp(java.util.List value) { - this.imp = value; - } - - /** - * Gets the value of the 'site' field. - */ - public org.openrtb.common.api.Site getSite() { - return site; - } - - /** - * Sets the value of the 'site' field. - * @param value the value to set. - */ - public void setSite(org.openrtb.common.api.Site value) { - this.site = value; - } - - /** - * Gets the value of the 'app' field. - */ - public org.openrtb.common.api.App getApp() { - return app; - } - - /** - * Sets the value of the 'app' field. - * @param value the value to set. - */ - public void setApp(org.openrtb.common.api.App value) { - this.app = value; - } - - /** - * Gets the value of the 'device' field. - */ - public org.openrtb.common.api.Device getDevice() { - return device; - } - - /** - * Sets the value of the 'device' field. - * @param value the value to set. - */ - public void setDevice(org.openrtb.common.api.Device value) { - this.device = value; - } - - /** - * Gets the value of the 'user' field. - */ - public org.openrtb.common.api.User getUser() { - return user; - } - - /** - * Sets the value of the 'user' field. - * @param value the value to set. - */ - public void setUser(org.openrtb.common.api.User value) { - this.user = value; - } - - /** - * Gets the value of the 'at' field. - */ - public java.lang.Integer getAt() { - return at; - } - - /** - * Sets the value of the 'at' field. - * @param value the value to set. - */ - public void setAt(java.lang.Integer value) { - this.at = value; - } - - /** - * Gets the value of the 'tmax' field. - */ - public java.lang.Integer getTmax() { - return tmax; - } - - /** - * Sets the value of the 'tmax' field. - * @param value the value to set. - */ - public void setTmax(java.lang.Integer value) { - this.tmax = value; - } - - /** - * Gets the value of the 'wseat' field. - */ - public java.util.List getWseat() { - return wseat; - } - - /** - * Sets the value of the 'wseat' field. - * @param value the value to set. - */ - public void setWseat(java.util.List value) { - this.wseat = value; - } - - /** - * Gets the value of the 'allimps' field. - */ - public java.lang.Integer getAllimps() { - return allimps; - } - - /** - * Sets the value of the 'allimps' field. - * @param value the value to set. - */ - public void setAllimps(java.lang.Integer value) { - this.allimps = value; - } - - /** - * Gets the value of the 'cur' field. - */ - public java.util.List getCur() { - return cur; - } - - /** - * Sets the value of the 'cur' field. - * @param value the value to set. - */ - public void setCur(java.util.List value) { - this.cur = value; - } - - /** - * Gets the value of the 'bcat' field. - */ - public java.util.List getBcat() { - return bcat; - } - - /** - * Sets the value of the 'bcat' field. - * @param value the value to set. - */ - public void setBcat(java.util.List value) { - this.bcat = value; - } - - /** - * Gets the value of the 'badv' field. - */ - public java.util.List getBadv() { - return badv; - } - - /** - * Sets the value of the 'badv' field. - * @param value the value to set. - */ - public void setBadv(java.util.List value) { - this.badv = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new BidRequest RecordBuilder */ - public static org.openrtb.common.api.BidRequest.Builder newBuilder() { - return new org.openrtb.common.api.BidRequest.Builder(); - } - - /** Creates a new BidRequest RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.BidRequest.Builder newBuilder(org.openrtb.common.api.BidRequest.Builder other) { - return new org.openrtb.common.api.BidRequest.Builder(other); - } - - /** Creates a new BidRequest RecordBuilder by copying an existing BidRequest instance */ - public static org.openrtb.common.api.BidRequest.Builder newBuilder(org.openrtb.common.api.BidRequest other) { - return new org.openrtb.common.api.BidRequest.Builder(other); - } - - /** - * RecordBuilder for BidRequest instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.util.List imp; - private org.openrtb.common.api.Site site; - private org.openrtb.common.api.App app; - private org.openrtb.common.api.Device device; - private org.openrtb.common.api.User user; - private java.lang.Integer at; - private java.lang.Integer tmax; - private java.util.List wseat; - private java.lang.Integer allimps; - private java.util.List cur; - private java.util.List bcat; - private java.util.List badv; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.BidRequest.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.BidRequest.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing BidRequest instance */ - private Builder(org.openrtb.common.api.BidRequest other) { - super(org.openrtb.common.api.BidRequest.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.imp)) { - this.imp = data().deepCopy(fields()[1].schema(), other.imp); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.site)) { - this.site = data().deepCopy(fields()[2].schema(), other.site); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.app)) { - this.app = data().deepCopy(fields()[3].schema(), other.app); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.device)) { - this.device = data().deepCopy(fields()[4].schema(), other.device); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.user)) { - this.user = data().deepCopy(fields()[5].schema(), other.user); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.at)) { - this.at = data().deepCopy(fields()[6].schema(), other.at); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.tmax)) { - this.tmax = data().deepCopy(fields()[7].schema(), other.tmax); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.wseat)) { - this.wseat = data().deepCopy(fields()[8].schema(), other.wseat); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.allimps)) { - this.allimps = data().deepCopy(fields()[9].schema(), other.allimps); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.cur)) { - this.cur = data().deepCopy(fields()[10].schema(), other.cur); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.bcat)) { - this.bcat = data().deepCopy(fields()[11].schema(), other.bcat); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.badv)) { - this.badv = data().deepCopy(fields()[12].schema(), other.badv); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.ext)) { - this.ext = data().deepCopy(fields()[13].schema(), other.ext); - fieldSetFlags()[13] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.BidRequest.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.BidRequest.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'imp' field */ - public java.util.List getImp() { - return imp; - } - - /** Sets the value of the 'imp' field */ - public org.openrtb.common.api.BidRequest.Builder setImp(java.util.List value) { - validate(fields()[1], value); - this.imp = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'imp' field has been set */ - public boolean hasImp() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'imp' field */ - public org.openrtb.common.api.BidRequest.Builder clearImp() { - imp = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'site' field */ - public org.openrtb.common.api.Site getSite() { - return site; - } - - /** Sets the value of the 'site' field */ - public org.openrtb.common.api.BidRequest.Builder setSite(org.openrtb.common.api.Site value) { - validate(fields()[2], value); - this.site = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'site' field has been set */ - public boolean hasSite() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'site' field */ - public org.openrtb.common.api.BidRequest.Builder clearSite() { - site = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'app' field */ - public org.openrtb.common.api.App getApp() { - return app; - } - - /** Sets the value of the 'app' field */ - public org.openrtb.common.api.BidRequest.Builder setApp(org.openrtb.common.api.App value) { - validate(fields()[3], value); - this.app = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'app' field has been set */ - public boolean hasApp() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'app' field */ - public org.openrtb.common.api.BidRequest.Builder clearApp() { - app = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'device' field */ - public org.openrtb.common.api.Device getDevice() { - return device; - } - - /** Sets the value of the 'device' field */ - public org.openrtb.common.api.BidRequest.Builder setDevice(org.openrtb.common.api.Device value) { - validate(fields()[4], value); - this.device = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'device' field has been set */ - public boolean hasDevice() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'device' field */ - public org.openrtb.common.api.BidRequest.Builder clearDevice() { - device = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'user' field */ - public org.openrtb.common.api.User getUser() { - return user; - } - - /** Sets the value of the 'user' field */ - public org.openrtb.common.api.BidRequest.Builder setUser(org.openrtb.common.api.User value) { - validate(fields()[5], value); - this.user = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'user' field has been set */ - public boolean hasUser() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'user' field */ - public org.openrtb.common.api.BidRequest.Builder clearUser() { - user = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'at' field */ - public java.lang.Integer getAt() { - return at; - } - - /** Sets the value of the 'at' field */ - public org.openrtb.common.api.BidRequest.Builder setAt(java.lang.Integer value) { - validate(fields()[6], value); - this.at = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'at' field has been set */ - public boolean hasAt() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'at' field */ - public org.openrtb.common.api.BidRequest.Builder clearAt() { - at = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'tmax' field */ - public java.lang.Integer getTmax() { - return tmax; - } - - /** Sets the value of the 'tmax' field */ - public org.openrtb.common.api.BidRequest.Builder setTmax(java.lang.Integer value) { - validate(fields()[7], value); - this.tmax = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'tmax' field has been set */ - public boolean hasTmax() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'tmax' field */ - public org.openrtb.common.api.BidRequest.Builder clearTmax() { - tmax = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'wseat' field */ - public java.util.List getWseat() { - return wseat; - } - - /** Sets the value of the 'wseat' field */ - public org.openrtb.common.api.BidRequest.Builder setWseat(java.util.List value) { - validate(fields()[8], value); - this.wseat = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'wseat' field has been set */ - public boolean hasWseat() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'wseat' field */ - public org.openrtb.common.api.BidRequest.Builder clearWseat() { - wseat = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'allimps' field */ - public java.lang.Integer getAllimps() { - return allimps; - } - - /** Sets the value of the 'allimps' field */ - public org.openrtb.common.api.BidRequest.Builder setAllimps(java.lang.Integer value) { - validate(fields()[9], value); - this.allimps = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'allimps' field has been set */ - public boolean hasAllimps() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'allimps' field */ - public org.openrtb.common.api.BidRequest.Builder clearAllimps() { - allimps = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'cur' field */ - public java.util.List getCur() { - return cur; - } - - /** Sets the value of the 'cur' field */ - public org.openrtb.common.api.BidRequest.Builder setCur(java.util.List value) { - validate(fields()[10], value); - this.cur = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'cur' field has been set */ - public boolean hasCur() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'cur' field */ - public org.openrtb.common.api.BidRequest.Builder clearCur() { - cur = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'bcat' field */ - public java.util.List getBcat() { - return bcat; - } - - /** Sets the value of the 'bcat' field */ - public org.openrtb.common.api.BidRequest.Builder setBcat(java.util.List value) { - validate(fields()[11], value); - this.bcat = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'bcat' field has been set */ - public boolean hasBcat() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'bcat' field */ - public org.openrtb.common.api.BidRequest.Builder clearBcat() { - bcat = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'badv' field */ - public java.util.List getBadv() { - return badv; - } - - /** Sets the value of the 'badv' field */ - public org.openrtb.common.api.BidRequest.Builder setBadv(java.util.List value) { - validate(fields()[12], value); - this.badv = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'badv' field has been set */ - public boolean hasBadv() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'badv' field */ - public org.openrtb.common.api.BidRequest.Builder clearBadv() { - badv = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.BidRequest.Builder setExt(java.lang.CharSequence value) { - validate(fields()[13], value); - this.ext = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.BidRequest.Builder clearExt() { - ext = null; - fieldSetFlags()[13] = false; - return this; - } - - @Override - public BidRequest build() { - try { - BidRequest record = new BidRequest(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.imp = fieldSetFlags()[1] ? this.imp : (java.util.List) defaultValue(fields()[1]); - record.site = fieldSetFlags()[2] ? this.site : (org.openrtb.common.api.Site) defaultValue(fields()[2]); - record.app = fieldSetFlags()[3] ? this.app : (org.openrtb.common.api.App) defaultValue(fields()[3]); - record.device = fieldSetFlags()[4] ? this.device : (org.openrtb.common.api.Device) defaultValue(fields()[4]); - record.user = fieldSetFlags()[5] ? this.user : (org.openrtb.common.api.User) defaultValue(fields()[5]); - record.at = fieldSetFlags()[6] ? this.at : (java.lang.Integer) defaultValue(fields()[6]); - record.tmax = fieldSetFlags()[7] ? this.tmax : (java.lang.Integer) defaultValue(fields()[7]); - record.wseat = fieldSetFlags()[8] ? this.wseat : (java.util.List) defaultValue(fields()[8]); - record.allimps = fieldSetFlags()[9] ? this.allimps : (java.lang.Integer) defaultValue(fields()[9]); - record.cur = fieldSetFlags()[10] ? this.cur : (java.util.List) defaultValue(fields()[10]); - record.bcat = fieldSetFlags()[11] ? this.bcat : (java.util.List) defaultValue(fields()[11]); - record.badv = fieldSetFlags()[12] ? this.badv : (java.util.List) defaultValue(fields()[12]); - record.ext = fieldSetFlags()[13] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[13]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/BidResponse.java b/common/src/main/java/org/openrtb/common/api/BidResponse.java deleted file mode 100644 index c400225..0000000 --- a/common/src/main/java/org/openrtb/common/api/BidResponse.java +++ /dev/null @@ -1,386 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class BidResponse extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BidResponse\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"seatbid\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"SeatBid\",\"fields\":[{\"name\":\"bid\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Bid\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"impid\",\"type\":[\"string\",\"null\"]},{\"name\":\"price\",\"type\":[\"float\",\"null\"]},{\"name\":\"adid\",\"type\":[\"string\",\"null\"]},{\"name\":\"nurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"adm\",\"type\":[\"string\",\"null\"]},{\"name\":\"adomain\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"iurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"cid\",\"type\":[\"string\",\"null\"]},{\"name\":\"crid\",\"type\":[\"string\",\"null\"]},{\"name\":\"attr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}}},{\"name\":\"seat\",\"type\":[\"string\",\"null\"]},{\"name\":\"group\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}}},{\"name\":\"bidid\",\"type\":[\"string\",\"null\"]},{\"name\":\"cur\",\"type\":[\"string\",\"null\"]},{\"name\":\"customdata\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.util.List seatbid; - public java.lang.CharSequence bidid; - public java.lang.CharSequence cur; - public java.lang.CharSequence customdata; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public BidResponse() {} - - /** - * All-args constructor. - */ - public BidResponse(java.lang.CharSequence id, java.util.List seatbid, java.lang.CharSequence bidid, java.lang.CharSequence cur, java.lang.CharSequence customdata, java.lang.CharSequence ext) { - this.id = id; - this.seatbid = seatbid; - this.bidid = bidid; - this.cur = cur; - this.customdata = customdata; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return seatbid; - case 2: return bidid; - case 3: return cur; - case 4: return customdata; - case 5: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: seatbid = (java.util.List)value$; break; - case 2: bidid = (java.lang.CharSequence)value$; break; - case 3: cur = (java.lang.CharSequence)value$; break; - case 4: customdata = (java.lang.CharSequence)value$; break; - case 5: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'seatbid' field. - */ - public java.util.List getSeatbid() { - return seatbid; - } - - /** - * Sets the value of the 'seatbid' field. - * @param value the value to set. - */ - public void setSeatbid(java.util.List value) { - this.seatbid = value; - } - - /** - * Gets the value of the 'bidid' field. - */ - public java.lang.CharSequence getBidid() { - return bidid; - } - - /** - * Sets the value of the 'bidid' field. - * @param value the value to set. - */ - public void setBidid(java.lang.CharSequence value) { - this.bidid = value; - } - - /** - * Gets the value of the 'cur' field. - */ - public java.lang.CharSequence getCur() { - return cur; - } - - /** - * Sets the value of the 'cur' field. - * @param value the value to set. - */ - public void setCur(java.lang.CharSequence value) { - this.cur = value; - } - - /** - * Gets the value of the 'customdata' field. - */ - public java.lang.CharSequence getCustomdata() { - return customdata; - } - - /** - * Sets the value of the 'customdata' field. - * @param value the value to set. - */ - public void setCustomdata(java.lang.CharSequence value) { - this.customdata = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new BidResponse RecordBuilder */ - public static org.openrtb.common.api.BidResponse.Builder newBuilder() { - return new org.openrtb.common.api.BidResponse.Builder(); - } - - /** Creates a new BidResponse RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.BidResponse.Builder newBuilder(org.openrtb.common.api.BidResponse.Builder other) { - return new org.openrtb.common.api.BidResponse.Builder(other); - } - - /** Creates a new BidResponse RecordBuilder by copying an existing BidResponse instance */ - public static org.openrtb.common.api.BidResponse.Builder newBuilder(org.openrtb.common.api.BidResponse other) { - return new org.openrtb.common.api.BidResponse.Builder(other); - } - - /** - * RecordBuilder for BidResponse instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.util.List seatbid; - private java.lang.CharSequence bidid; - private java.lang.CharSequence cur; - private java.lang.CharSequence customdata; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.BidResponse.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.BidResponse.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing BidResponse instance */ - private Builder(org.openrtb.common.api.BidResponse other) { - super(org.openrtb.common.api.BidResponse.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.seatbid)) { - this.seatbid = data().deepCopy(fields()[1].schema(), other.seatbid); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.bidid)) { - this.bidid = data().deepCopy(fields()[2].schema(), other.bidid); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.cur)) { - this.cur = data().deepCopy(fields()[3].schema(), other.cur); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.customdata)) { - this.customdata = data().deepCopy(fields()[4].schema(), other.customdata); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.ext)) { - this.ext = data().deepCopy(fields()[5].schema(), other.ext); - fieldSetFlags()[5] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.BidResponse.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.BidResponse.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'seatbid' field */ - public java.util.List getSeatbid() { - return seatbid; - } - - /** Sets the value of the 'seatbid' field */ - public org.openrtb.common.api.BidResponse.Builder setSeatbid(java.util.List value) { - validate(fields()[1], value); - this.seatbid = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'seatbid' field has been set */ - public boolean hasSeatbid() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'seatbid' field */ - public org.openrtb.common.api.BidResponse.Builder clearSeatbid() { - seatbid = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'bidid' field */ - public java.lang.CharSequence getBidid() { - return bidid; - } - - /** Sets the value of the 'bidid' field */ - public org.openrtb.common.api.BidResponse.Builder setBidid(java.lang.CharSequence value) { - validate(fields()[2], value); - this.bidid = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'bidid' field has been set */ - public boolean hasBidid() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'bidid' field */ - public org.openrtb.common.api.BidResponse.Builder clearBidid() { - bidid = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'cur' field */ - public java.lang.CharSequence getCur() { - return cur; - } - - /** Sets the value of the 'cur' field */ - public org.openrtb.common.api.BidResponse.Builder setCur(java.lang.CharSequence value) { - validate(fields()[3], value); - this.cur = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'cur' field has been set */ - public boolean hasCur() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'cur' field */ - public org.openrtb.common.api.BidResponse.Builder clearCur() { - cur = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'customdata' field */ - public java.lang.CharSequence getCustomdata() { - return customdata; - } - - /** Sets the value of the 'customdata' field */ - public org.openrtb.common.api.BidResponse.Builder setCustomdata(java.lang.CharSequence value) { - validate(fields()[4], value); - this.customdata = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'customdata' field has been set */ - public boolean hasCustomdata() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'customdata' field */ - public org.openrtb.common.api.BidResponse.Builder clearCustomdata() { - customdata = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.BidResponse.Builder setExt(java.lang.CharSequence value) { - validate(fields()[5], value); - this.ext = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.BidResponse.Builder clearExt() { - ext = null; - fieldSetFlags()[5] = false; - return this; - } - - @Override - public BidResponse build() { - try { - BidResponse record = new BidResponse(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.seatbid = fieldSetFlags()[1] ? this.seatbid : (java.util.List) defaultValue(fields()[1]); - record.bidid = fieldSetFlags()[2] ? this.bidid : (java.lang.CharSequence) defaultValue(fields()[2]); - record.cur = fieldSetFlags()[3] ? this.cur : (java.lang.CharSequence) defaultValue(fields()[3]); - record.customdata = fieldSetFlags()[4] ? this.customdata : (java.lang.CharSequence) defaultValue(fields()[4]); - record.ext = fieldSetFlags()[5] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[5]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/BlocklistAPI.java b/common/src/main/java/org/openrtb/common/api/BlocklistAPI.java deleted file mode 100644 index 0f02a13..0000000 --- a/common/src/main/java/org/openrtb/common/api/BlocklistAPI.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; - -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public interface BlocklistAPI { - public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"BlocklistAPI\",\"namespace\":\"org.openrtb.common.api\",\"version\":\"1.1\",\"types\":[{\"type\":\"record\",\"name\":\"BlocklistObj\",\"fields\":[{\"name\":\"publisherID\",\"type\":[\"string\",\"null\"]},{\"name\":\"publisherName\",\"type\":[\"string\",\"null\"]},{\"name\":\"sideID\",\"type\":[\"string\",\"null\"]},{\"name\":\"siteName\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Identification\",\"fields\":[{\"name\":\"organization\",\"type\":[\"string\",\"null\"]},{\"name\":\"timestamp\",\"type\":[\"long\",\"null\"]},{\"name\":\"token\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Status\",\"fields\":[{\"name\":\"requestToken\",\"type\":[\"string\",\"null\"]},{\"name\":\"statusCode\",\"type\":[\"int\",\"null\"]},{\"name\":\"statusMessage\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Advertiser\",\"fields\":[{\"name\":\"landingPageTLD\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"timestamp\",\"type\":[\"long\",\"null\"]},{\"name\":\"blocklist\",\"type\":{\"type\":\"array\",\"items\":\"BlocklistObj\"}}]},{\"type\":\"record\",\"name\":\"BlocklistRequest\",\"fields\":[{\"name\":\"identification\",\"type\":[\"Identification\",\"null\"]},{\"name\":\"advertisers\",\"type\":{\"type\":\"array\",\"items\":\"Advertiser\"}}]},{\"type\":\"record\",\"name\":\"BlocklistResponse\",\"fields\":[{\"name\":\"identification\",\"type\":[\"Identification\",\"null\"]},{\"name\":\"status\",\"type\":[\"Status\",\"null\"]},{\"name\":\"advertisers\",\"type\":{\"type\":\"array\",\"items\":\"Advertiser\"}}]}],\"messages\":{\"send\":{\"request\":[{\"name\":\"blocklistReq\",\"type\":\"BlocklistRequest\"}],\"response\":\"BlocklistResponse\"}}}"); - org.openrtb.common.api.BlocklistResponse send(org.openrtb.common.api.BlocklistRequest blocklistReq) throws org.apache.avro.AvroRemoteException; - - @SuppressWarnings("all") - public interface Callback extends BlocklistAPI { - public static final org.apache.avro.Protocol PROTOCOL = org.openrtb.common.api.BlocklistAPI.PROTOCOL; - void send(org.openrtb.common.api.BlocklistRequest blocklistReq, org.apache.avro.ipc.Callback callback) throws java.io.IOException; - } -} \ No newline at end of file diff --git a/common/src/main/java/org/openrtb/common/api/BlocklistObj.java b/common/src/main/java/org/openrtb/common/api/BlocklistObj.java deleted file mode 100644 index 0f39a76..0000000 --- a/common/src/main/java/org/openrtb/common/api/BlocklistObj.java +++ /dev/null @@ -1,286 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class BlocklistObj extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BlocklistObj\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"publisherID\",\"type\":[\"string\",\"null\"]},{\"name\":\"publisherName\",\"type\":[\"string\",\"null\"]},{\"name\":\"sideID\",\"type\":[\"string\",\"null\"]},{\"name\":\"siteName\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence publisherID; - public java.lang.CharSequence publisherName; - public java.lang.CharSequence sideID; - public java.lang.CharSequence siteName; - - /** - * Default constructor. - */ - public BlocklistObj() {} - - /** - * All-args constructor. - */ - public BlocklistObj(java.lang.CharSequence publisherID, java.lang.CharSequence publisherName, java.lang.CharSequence sideID, java.lang.CharSequence siteName) { - this.publisherID = publisherID; - this.publisherName = publisherName; - this.sideID = sideID; - this.siteName = siteName; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return publisherID; - case 1: return publisherName; - case 2: return sideID; - case 3: return siteName; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: publisherID = (java.lang.CharSequence)value$; break; - case 1: publisherName = (java.lang.CharSequence)value$; break; - case 2: sideID = (java.lang.CharSequence)value$; break; - case 3: siteName = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'publisherID' field. - */ - public java.lang.CharSequence getPublisherID() { - return publisherID; - } - - /** - * Sets the value of the 'publisherID' field. - * @param value the value to set. - */ - public void setPublisherID(java.lang.CharSequence value) { - this.publisherID = value; - } - - /** - * Gets the value of the 'publisherName' field. - */ - public java.lang.CharSequence getPublisherName() { - return publisherName; - } - - /** - * Sets the value of the 'publisherName' field. - * @param value the value to set. - */ - public void setPublisherName(java.lang.CharSequence value) { - this.publisherName = value; - } - - /** - * Gets the value of the 'sideID' field. - */ - public java.lang.CharSequence getSideID() { - return sideID; - } - - /** - * Sets the value of the 'sideID' field. - * @param value the value to set. - */ - public void setSideID(java.lang.CharSequence value) { - this.sideID = value; - } - - /** - * Gets the value of the 'siteName' field. - */ - public java.lang.CharSequence getSiteName() { - return siteName; - } - - /** - * Sets the value of the 'siteName' field. - * @param value the value to set. - */ - public void setSiteName(java.lang.CharSequence value) { - this.siteName = value; - } - - /** Creates a new BlocklistObj RecordBuilder */ - public static org.openrtb.common.api.BlocklistObj.Builder newBuilder() { - return new org.openrtb.common.api.BlocklistObj.Builder(); - } - - /** Creates a new BlocklistObj RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.BlocklistObj.Builder newBuilder(org.openrtb.common.api.BlocklistObj.Builder other) { - return new org.openrtb.common.api.BlocklistObj.Builder(other); - } - - /** Creates a new BlocklistObj RecordBuilder by copying an existing BlocklistObj instance */ - public static org.openrtb.common.api.BlocklistObj.Builder newBuilder(org.openrtb.common.api.BlocklistObj other) { - return new org.openrtb.common.api.BlocklistObj.Builder(other); - } - - /** - * RecordBuilder for BlocklistObj instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence publisherID; - private java.lang.CharSequence publisherName; - private java.lang.CharSequence sideID; - private java.lang.CharSequence siteName; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.BlocklistObj.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.BlocklistObj.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing BlocklistObj instance */ - private Builder(org.openrtb.common.api.BlocklistObj other) { - super(org.openrtb.common.api.BlocklistObj.SCHEMA$); - if (isValidValue(fields()[0], other.publisherID)) { - this.publisherID = data().deepCopy(fields()[0].schema(), other.publisherID); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.publisherName)) { - this.publisherName = data().deepCopy(fields()[1].schema(), other.publisherName); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.sideID)) { - this.sideID = data().deepCopy(fields()[2].schema(), other.sideID); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.siteName)) { - this.siteName = data().deepCopy(fields()[3].schema(), other.siteName); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'publisherID' field */ - public java.lang.CharSequence getPublisherID() { - return publisherID; - } - - /** Sets the value of the 'publisherID' field */ - public org.openrtb.common.api.BlocklistObj.Builder setPublisherID(java.lang.CharSequence value) { - validate(fields()[0], value); - this.publisherID = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'publisherID' field has been set */ - public boolean hasPublisherID() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'publisherID' field */ - public org.openrtb.common.api.BlocklistObj.Builder clearPublisherID() { - publisherID = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'publisherName' field */ - public java.lang.CharSequence getPublisherName() { - return publisherName; - } - - /** Sets the value of the 'publisherName' field */ - public org.openrtb.common.api.BlocklistObj.Builder setPublisherName(java.lang.CharSequence value) { - validate(fields()[1], value); - this.publisherName = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'publisherName' field has been set */ - public boolean hasPublisherName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'publisherName' field */ - public org.openrtb.common.api.BlocklistObj.Builder clearPublisherName() { - publisherName = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'sideID' field */ - public java.lang.CharSequence getSideID() { - return sideID; - } - - /** Sets the value of the 'sideID' field */ - public org.openrtb.common.api.BlocklistObj.Builder setSideID(java.lang.CharSequence value) { - validate(fields()[2], value); - this.sideID = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'sideID' field has been set */ - public boolean hasSideID() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'sideID' field */ - public org.openrtb.common.api.BlocklistObj.Builder clearSideID() { - sideID = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'siteName' field */ - public java.lang.CharSequence getSiteName() { - return siteName; - } - - /** Sets the value of the 'siteName' field */ - public org.openrtb.common.api.BlocklistObj.Builder setSiteName(java.lang.CharSequence value) { - validate(fields()[3], value); - this.siteName = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'siteName' field has been set */ - public boolean hasSiteName() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'siteName' field */ - public org.openrtb.common.api.BlocklistObj.Builder clearSiteName() { - siteName = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public BlocklistObj build() { - try { - BlocklistObj record = new BlocklistObj(); - record.publisherID = fieldSetFlags()[0] ? this.publisherID : (java.lang.CharSequence) defaultValue(fields()[0]); - record.publisherName = fieldSetFlags()[1] ? this.publisherName : (java.lang.CharSequence) defaultValue(fields()[1]); - record.sideID = fieldSetFlags()[2] ? this.sideID : (java.lang.CharSequence) defaultValue(fields()[2]); - record.siteName = fieldSetFlags()[3] ? this.siteName : (java.lang.CharSequence) defaultValue(fields()[3]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/BlocklistRequest.java b/common/src/main/java/org/openrtb/common/api/BlocklistRequest.java deleted file mode 100644 index 31b154b..0000000 --- a/common/src/main/java/org/openrtb/common/api/BlocklistRequest.java +++ /dev/null @@ -1,186 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class BlocklistRequest extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BlocklistRequest\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"identification\",\"type\":[{\"type\":\"record\",\"name\":\"Identification\",\"fields\":[{\"name\":\"organization\",\"type\":[\"string\",\"null\"]},{\"name\":\"timestamp\",\"type\":[\"long\",\"null\"]},{\"name\":\"token\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"advertisers\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Advertiser\",\"fields\":[{\"name\":\"landingPageTLD\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"timestamp\",\"type\":[\"long\",\"null\"]},{\"name\":\"blocklist\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BlocklistObj\",\"fields\":[{\"name\":\"publisherID\",\"type\":[\"string\",\"null\"]},{\"name\":\"publisherName\",\"type\":[\"string\",\"null\"]},{\"name\":\"sideID\",\"type\":[\"string\",\"null\"]},{\"name\":\"siteName\",\"type\":[\"string\",\"null\"]}]}}}]}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public org.openrtb.common.api.Identification identification; - public java.util.List advertisers; - - /** - * Default constructor. - */ - public BlocklistRequest() {} - - /** - * All-args constructor. - */ - public BlocklistRequest(org.openrtb.common.api.Identification identification, java.util.List advertisers) { - this.identification = identification; - this.advertisers = advertisers; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return identification; - case 1: return advertisers; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: identification = (org.openrtb.common.api.Identification)value$; break; - case 1: advertisers = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'identification' field. - */ - public org.openrtb.common.api.Identification getIdentification() { - return identification; - } - - /** - * Sets the value of the 'identification' field. - * @param value the value to set. - */ - public void setIdentification(org.openrtb.common.api.Identification value) { - this.identification = value; - } - - /** - * Gets the value of the 'advertisers' field. - */ - public java.util.List getAdvertisers() { - return advertisers; - } - - /** - * Sets the value of the 'advertisers' field. - * @param value the value to set. - */ - public void setAdvertisers(java.util.List value) { - this.advertisers = value; - } - - /** Creates a new BlocklistRequest RecordBuilder */ - public static org.openrtb.common.api.BlocklistRequest.Builder newBuilder() { - return new org.openrtb.common.api.BlocklistRequest.Builder(); - } - - /** Creates a new BlocklistRequest RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.BlocklistRequest.Builder newBuilder(org.openrtb.common.api.BlocklistRequest.Builder other) { - return new org.openrtb.common.api.BlocklistRequest.Builder(other); - } - - /** Creates a new BlocklistRequest RecordBuilder by copying an existing BlocklistRequest instance */ - public static org.openrtb.common.api.BlocklistRequest.Builder newBuilder(org.openrtb.common.api.BlocklistRequest other) { - return new org.openrtb.common.api.BlocklistRequest.Builder(other); - } - - /** - * RecordBuilder for BlocklistRequest instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private org.openrtb.common.api.Identification identification; - private java.util.List advertisers; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.BlocklistRequest.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.BlocklistRequest.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing BlocklistRequest instance */ - private Builder(org.openrtb.common.api.BlocklistRequest other) { - super(org.openrtb.common.api.BlocklistRequest.SCHEMA$); - if (isValidValue(fields()[0], other.identification)) { - this.identification = data().deepCopy(fields()[0].schema(), other.identification); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.advertisers)) { - this.advertisers = data().deepCopy(fields()[1].schema(), other.advertisers); - fieldSetFlags()[1] = true; - } - } - - /** Gets the value of the 'identification' field */ - public org.openrtb.common.api.Identification getIdentification() { - return identification; - } - - /** Sets the value of the 'identification' field */ - public org.openrtb.common.api.BlocklistRequest.Builder setIdentification(org.openrtb.common.api.Identification value) { - validate(fields()[0], value); - this.identification = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'identification' field has been set */ - public boolean hasIdentification() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'identification' field */ - public org.openrtb.common.api.BlocklistRequest.Builder clearIdentification() { - identification = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'advertisers' field */ - public java.util.List getAdvertisers() { - return advertisers; - } - - /** Sets the value of the 'advertisers' field */ - public org.openrtb.common.api.BlocklistRequest.Builder setAdvertisers(java.util.List value) { - validate(fields()[1], value); - this.advertisers = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'advertisers' field has been set */ - public boolean hasAdvertisers() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'advertisers' field */ - public org.openrtb.common.api.BlocklistRequest.Builder clearAdvertisers() { - advertisers = null; - fieldSetFlags()[1] = false; - return this; - } - - @Override - public BlocklistRequest build() { - try { - BlocklistRequest record = new BlocklistRequest(); - record.identification = fieldSetFlags()[0] ? this.identification : (org.openrtb.common.api.Identification) defaultValue(fields()[0]); - record.advertisers = fieldSetFlags()[1] ? this.advertisers : (java.util.List) defaultValue(fields()[1]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/BlocklistResponse.java b/common/src/main/java/org/openrtb/common/api/BlocklistResponse.java deleted file mode 100644 index 16fbe10..0000000 --- a/common/src/main/java/org/openrtb/common/api/BlocklistResponse.java +++ /dev/null @@ -1,236 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class BlocklistResponse extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BlocklistResponse\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"identification\",\"type\":[{\"type\":\"record\",\"name\":\"Identification\",\"fields\":[{\"name\":\"organization\",\"type\":[\"string\",\"null\"]},{\"name\":\"timestamp\",\"type\":[\"long\",\"null\"]},{\"name\":\"token\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"status\",\"type\":[{\"type\":\"record\",\"name\":\"Status\",\"fields\":[{\"name\":\"requestToken\",\"type\":[\"string\",\"null\"]},{\"name\":\"statusCode\",\"type\":[\"int\",\"null\"]},{\"name\":\"statusMessage\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"advertisers\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Advertiser\",\"fields\":[{\"name\":\"landingPageTLD\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"timestamp\",\"type\":[\"long\",\"null\"]},{\"name\":\"blocklist\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"BlocklistObj\",\"fields\":[{\"name\":\"publisherID\",\"type\":[\"string\",\"null\"]},{\"name\":\"publisherName\",\"type\":[\"string\",\"null\"]},{\"name\":\"sideID\",\"type\":[\"string\",\"null\"]},{\"name\":\"siteName\",\"type\":[\"string\",\"null\"]}]}}}]}}}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public org.openrtb.common.api.Identification identification; - public org.openrtb.common.api.Status status; - public java.util.List advertisers; - - /** - * Default constructor. - */ - public BlocklistResponse() {} - - /** - * All-args constructor. - */ - public BlocklistResponse(org.openrtb.common.api.Identification identification, org.openrtb.common.api.Status status, java.util.List advertisers) { - this.identification = identification; - this.status = status; - this.advertisers = advertisers; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return identification; - case 1: return status; - case 2: return advertisers; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: identification = (org.openrtb.common.api.Identification)value$; break; - case 1: status = (org.openrtb.common.api.Status)value$; break; - case 2: advertisers = (java.util.List)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'identification' field. - */ - public org.openrtb.common.api.Identification getIdentification() { - return identification; - } - - /** - * Sets the value of the 'identification' field. - * @param value the value to set. - */ - public void setIdentification(org.openrtb.common.api.Identification value) { - this.identification = value; - } - - /** - * Gets the value of the 'status' field. - */ - public org.openrtb.common.api.Status getStatus() { - return status; - } - - /** - * Sets the value of the 'status' field. - * @param value the value to set. - */ - public void setStatus(org.openrtb.common.api.Status value) { - this.status = value; - } - - /** - * Gets the value of the 'advertisers' field. - */ - public java.util.List getAdvertisers() { - return advertisers; - } - - /** - * Sets the value of the 'advertisers' field. - * @param value the value to set. - */ - public void setAdvertisers(java.util.List value) { - this.advertisers = value; - } - - /** Creates a new BlocklistResponse RecordBuilder */ - public static org.openrtb.common.api.BlocklistResponse.Builder newBuilder() { - return new org.openrtb.common.api.BlocklistResponse.Builder(); - } - - /** Creates a new BlocklistResponse RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.BlocklistResponse.Builder newBuilder(org.openrtb.common.api.BlocklistResponse.Builder other) { - return new org.openrtb.common.api.BlocklistResponse.Builder(other); - } - - /** Creates a new BlocklistResponse RecordBuilder by copying an existing BlocklistResponse instance */ - public static org.openrtb.common.api.BlocklistResponse.Builder newBuilder(org.openrtb.common.api.BlocklistResponse other) { - return new org.openrtb.common.api.BlocklistResponse.Builder(other); - } - - /** - * RecordBuilder for BlocklistResponse instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private org.openrtb.common.api.Identification identification; - private org.openrtb.common.api.Status status; - private java.util.List advertisers; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.BlocklistResponse.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.BlocklistResponse.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing BlocklistResponse instance */ - private Builder(org.openrtb.common.api.BlocklistResponse other) { - super(org.openrtb.common.api.BlocklistResponse.SCHEMA$); - if (isValidValue(fields()[0], other.identification)) { - this.identification = data().deepCopy(fields()[0].schema(), other.identification); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.status)) { - this.status = data().deepCopy(fields()[1].schema(), other.status); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.advertisers)) { - this.advertisers = data().deepCopy(fields()[2].schema(), other.advertisers); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'identification' field */ - public org.openrtb.common.api.Identification getIdentification() { - return identification; - } - - /** Sets the value of the 'identification' field */ - public org.openrtb.common.api.BlocklistResponse.Builder setIdentification(org.openrtb.common.api.Identification value) { - validate(fields()[0], value); - this.identification = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'identification' field has been set */ - public boolean hasIdentification() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'identification' field */ - public org.openrtb.common.api.BlocklistResponse.Builder clearIdentification() { - identification = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'status' field */ - public org.openrtb.common.api.Status getStatus() { - return status; - } - - /** Sets the value of the 'status' field */ - public org.openrtb.common.api.BlocklistResponse.Builder setStatus(org.openrtb.common.api.Status value) { - validate(fields()[1], value); - this.status = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'status' field has been set */ - public boolean hasStatus() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'status' field */ - public org.openrtb.common.api.BlocklistResponse.Builder clearStatus() { - status = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'advertisers' field */ - public java.util.List getAdvertisers() { - return advertisers; - } - - /** Sets the value of the 'advertisers' field */ - public org.openrtb.common.api.BlocklistResponse.Builder setAdvertisers(java.util.List value) { - validate(fields()[2], value); - this.advertisers = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'advertisers' field has been set */ - public boolean hasAdvertisers() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'advertisers' field */ - public org.openrtb.common.api.BlocklistResponse.Builder clearAdvertisers() { - advertisers = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public BlocklistResponse build() { - try { - BlocklistResponse record = new BlocklistResponse(); - record.identification = fieldSetFlags()[0] ? this.identification : (org.openrtb.common.api.Identification) defaultValue(fields()[0]); - record.status = fieldSetFlags()[1] ? this.status : (org.openrtb.common.api.Status) defaultValue(fields()[1]); - record.advertisers = fieldSetFlags()[2] ? this.advertisers : (java.util.List) defaultValue(fields()[2]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Content.java b/common/src/main/java/org/openrtb/common/api/Content.java deleted file mode 100644 index a5932e2..0000000 --- a/common/src/main/java/org/openrtb/common/api/Content.java +++ /dev/null @@ -1,1086 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Content extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Content\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"episode\",\"type\":[\"int\",\"null\"]},{\"name\":\"title\",\"type\":[\"string\",\"null\"]},{\"name\":\"series\",\"type\":[\"string\",\"null\"]},{\"name\":\"season\",\"type\":[\"string\",\"null\"]},{\"name\":\"url\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"videoquality\",\"type\":[\"int\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"contentrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"userrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"context\",\"type\":[\"string\",\"null\"]},{\"name\":\"livestream\",\"type\":[\"int\",\"null\"]},{\"name\":\"sourcerelationship\",\"type\":[\"int\",\"null\"]},{\"name\":\"producer\",\"type\":[{\"type\":\"record\",\"name\":\"Producer\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"len\",\"type\":[\"int\",\"null\"]},{\"name\":\"qagmediarating\",\"type\":[\"int\",\"null\"]},{\"name\":\"embeddable\",\"type\":[\"int\",\"null\"]},{\"name\":\"language\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.lang.Integer episode; - public java.lang.CharSequence title; - public java.lang.CharSequence series; - public java.lang.CharSequence season; - public java.lang.CharSequence url; - public java.util.List cat; - public java.lang.Integer videoquality; - public java.lang.CharSequence keywords; - public java.lang.CharSequence contentrating; - public java.lang.CharSequence userrating; - public java.lang.CharSequence context; - public java.lang.Integer livestream; - public java.lang.Integer sourcerelationship; - public org.openrtb.common.api.Producer producer; - public java.lang.Integer len; - public java.lang.Integer qagmediarating; - public java.lang.Integer embeddable; - public java.lang.CharSequence language; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Content() {} - - /** - * All-args constructor. - */ - public Content(java.lang.CharSequence id, java.lang.Integer episode, java.lang.CharSequence title, java.lang.CharSequence series, java.lang.CharSequence season, java.lang.CharSequence url, java.util.List cat, java.lang.Integer videoquality, java.lang.CharSequence keywords, java.lang.CharSequence contentrating, java.lang.CharSequence userrating, java.lang.CharSequence context, java.lang.Integer livestream, java.lang.Integer sourcerelationship, org.openrtb.common.api.Producer producer, java.lang.Integer len, java.lang.Integer qagmediarating, java.lang.Integer embeddable, java.lang.CharSequence language, java.lang.CharSequence ext) { - this.id = id; - this.episode = episode; - this.title = title; - this.series = series; - this.season = season; - this.url = url; - this.cat = cat; - this.videoquality = videoquality; - this.keywords = keywords; - this.contentrating = contentrating; - this.userrating = userrating; - this.context = context; - this.livestream = livestream; - this.sourcerelationship = sourcerelationship; - this.producer = producer; - this.len = len; - this.qagmediarating = qagmediarating; - this.embeddable = embeddable; - this.language = language; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return episode; - case 2: return title; - case 3: return series; - case 4: return season; - case 5: return url; - case 6: return cat; - case 7: return videoquality; - case 8: return keywords; - case 9: return contentrating; - case 10: return userrating; - case 11: return context; - case 12: return livestream; - case 13: return sourcerelationship; - case 14: return producer; - case 15: return len; - case 16: return qagmediarating; - case 17: return embeddable; - case 18: return language; - case 19: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: episode = (java.lang.Integer)value$; break; - case 2: title = (java.lang.CharSequence)value$; break; - case 3: series = (java.lang.CharSequence)value$; break; - case 4: season = (java.lang.CharSequence)value$; break; - case 5: url = (java.lang.CharSequence)value$; break; - case 6: cat = (java.util.List)value$; break; - case 7: videoquality = (java.lang.Integer)value$; break; - case 8: keywords = (java.lang.CharSequence)value$; break; - case 9: contentrating = (java.lang.CharSequence)value$; break; - case 10: userrating = (java.lang.CharSequence)value$; break; - case 11: context = (java.lang.CharSequence)value$; break; - case 12: livestream = (java.lang.Integer)value$; break; - case 13: sourcerelationship = (java.lang.Integer)value$; break; - case 14: producer = (org.openrtb.common.api.Producer)value$; break; - case 15: len = (java.lang.Integer)value$; break; - case 16: qagmediarating = (java.lang.Integer)value$; break; - case 17: embeddable = (java.lang.Integer)value$; break; - case 18: language = (java.lang.CharSequence)value$; break; - case 19: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'episode' field. - */ - public java.lang.Integer getEpisode() { - return episode; - } - - /** - * Sets the value of the 'episode' field. - * @param value the value to set. - */ - public void setEpisode(java.lang.Integer value) { - this.episode = value; - } - - /** - * Gets the value of the 'title' field. - */ - public java.lang.CharSequence getTitle() { - return title; - } - - /** - * Sets the value of the 'title' field. - * @param value the value to set. - */ - public void setTitle(java.lang.CharSequence value) { - this.title = value; - } - - /** - * Gets the value of the 'series' field. - */ - public java.lang.CharSequence getSeries() { - return series; - } - - /** - * Sets the value of the 'series' field. - * @param value the value to set. - */ - public void setSeries(java.lang.CharSequence value) { - this.series = value; - } - - /** - * Gets the value of the 'season' field. - */ - public java.lang.CharSequence getSeason() { - return season; - } - - /** - * Sets the value of the 'season' field. - * @param value the value to set. - */ - public void setSeason(java.lang.CharSequence value) { - this.season = value; - } - - /** - * Gets the value of the 'url' field. - */ - public java.lang.CharSequence getUrl() { - return url; - } - - /** - * Sets the value of the 'url' field. - * @param value the value to set. - */ - public void setUrl(java.lang.CharSequence value) { - this.url = value; - } - - /** - * Gets the value of the 'cat' field. - */ - public java.util.List getCat() { - return cat; - } - - /** - * Sets the value of the 'cat' field. - * @param value the value to set. - */ - public void setCat(java.util.List value) { - this.cat = value; - } - - /** - * Gets the value of the 'videoquality' field. - */ - public java.lang.Integer getVideoquality() { - return videoquality; - } - - /** - * Sets the value of the 'videoquality' field. - * @param value the value to set. - */ - public void setVideoquality(java.lang.Integer value) { - this.videoquality = value; - } - - /** - * Gets the value of the 'keywords' field. - */ - public java.lang.CharSequence getKeywords() { - return keywords; - } - - /** - * Sets the value of the 'keywords' field. - * @param value the value to set. - */ - public void setKeywords(java.lang.CharSequence value) { - this.keywords = value; - } - - /** - * Gets the value of the 'contentrating' field. - */ - public java.lang.CharSequence getContentrating() { - return contentrating; - } - - /** - * Sets the value of the 'contentrating' field. - * @param value the value to set. - */ - public void setContentrating(java.lang.CharSequence value) { - this.contentrating = value; - } - - /** - * Gets the value of the 'userrating' field. - */ - public java.lang.CharSequence getUserrating() { - return userrating; - } - - /** - * Sets the value of the 'userrating' field. - * @param value the value to set. - */ - public void setUserrating(java.lang.CharSequence value) { - this.userrating = value; - } - - /** - * Gets the value of the 'context' field. - */ - public java.lang.CharSequence getContext() { - return context; - } - - /** - * Sets the value of the 'context' field. - * @param value the value to set. - */ - public void setContext(java.lang.CharSequence value) { - this.context = value; - } - - /** - * Gets the value of the 'livestream' field. - */ - public java.lang.Integer getLivestream() { - return livestream; - } - - /** - * Sets the value of the 'livestream' field. - * @param value the value to set. - */ - public void setLivestream(java.lang.Integer value) { - this.livestream = value; - } - - /** - * Gets the value of the 'sourcerelationship' field. - */ - public java.lang.Integer getSourcerelationship() { - return sourcerelationship; - } - - /** - * Sets the value of the 'sourcerelationship' field. - * @param value the value to set. - */ - public void setSourcerelationship(java.lang.Integer value) { - this.sourcerelationship = value; - } - - /** - * Gets the value of the 'producer' field. - */ - public org.openrtb.common.api.Producer getProducer() { - return producer; - } - - /** - * Sets the value of the 'producer' field. - * @param value the value to set. - */ - public void setProducer(org.openrtb.common.api.Producer value) { - this.producer = value; - } - - /** - * Gets the value of the 'len' field. - */ - public java.lang.Integer getLen() { - return len; - } - - /** - * Sets the value of the 'len' field. - * @param value the value to set. - */ - public void setLen(java.lang.Integer value) { - this.len = value; - } - - /** - * Gets the value of the 'qagmediarating' field. - */ - public java.lang.Integer getQagmediarating() { - return qagmediarating; - } - - /** - * Sets the value of the 'qagmediarating' field. - * @param value the value to set. - */ - public void setQagmediarating(java.lang.Integer value) { - this.qagmediarating = value; - } - - /** - * Gets the value of the 'embeddable' field. - */ - public java.lang.Integer getEmbeddable() { - return embeddable; - } - - /** - * Sets the value of the 'embeddable' field. - * @param value the value to set. - */ - public void setEmbeddable(java.lang.Integer value) { - this.embeddable = value; - } - - /** - * Gets the value of the 'language' field. - */ - public java.lang.CharSequence getLanguage() { - return language; - } - - /** - * Sets the value of the 'language' field. - * @param value the value to set. - */ - public void setLanguage(java.lang.CharSequence value) { - this.language = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Content RecordBuilder */ - public static org.openrtb.common.api.Content.Builder newBuilder() { - return new org.openrtb.common.api.Content.Builder(); - } - - /** Creates a new Content RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Content.Builder newBuilder(org.openrtb.common.api.Content.Builder other) { - return new org.openrtb.common.api.Content.Builder(other); - } - - /** Creates a new Content RecordBuilder by copying an existing Content instance */ - public static org.openrtb.common.api.Content.Builder newBuilder(org.openrtb.common.api.Content other) { - return new org.openrtb.common.api.Content.Builder(other); - } - - /** - * RecordBuilder for Content instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.lang.Integer episode; - private java.lang.CharSequence title; - private java.lang.CharSequence series; - private java.lang.CharSequence season; - private java.lang.CharSequence url; - private java.util.List cat; - private java.lang.Integer videoquality; - private java.lang.CharSequence keywords; - private java.lang.CharSequence contentrating; - private java.lang.CharSequence userrating; - private java.lang.CharSequence context; - private java.lang.Integer livestream; - private java.lang.Integer sourcerelationship; - private org.openrtb.common.api.Producer producer; - private java.lang.Integer len; - private java.lang.Integer qagmediarating; - private java.lang.Integer embeddable; - private java.lang.CharSequence language; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Content.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Content.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Content instance */ - private Builder(org.openrtb.common.api.Content other) { - super(org.openrtb.common.api.Content.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.episode)) { - this.episode = data().deepCopy(fields()[1].schema(), other.episode); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.title)) { - this.title = data().deepCopy(fields()[2].schema(), other.title); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.series)) { - this.series = data().deepCopy(fields()[3].schema(), other.series); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.season)) { - this.season = data().deepCopy(fields()[4].schema(), other.season); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.url)) { - this.url = data().deepCopy(fields()[5].schema(), other.url); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.cat)) { - this.cat = data().deepCopy(fields()[6].schema(), other.cat); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.videoquality)) { - this.videoquality = data().deepCopy(fields()[7].schema(), other.videoquality); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.keywords)) { - this.keywords = data().deepCopy(fields()[8].schema(), other.keywords); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.contentrating)) { - this.contentrating = data().deepCopy(fields()[9].schema(), other.contentrating); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.userrating)) { - this.userrating = data().deepCopy(fields()[10].schema(), other.userrating); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.context)) { - this.context = data().deepCopy(fields()[11].schema(), other.context); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.livestream)) { - this.livestream = data().deepCopy(fields()[12].schema(), other.livestream); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.sourcerelationship)) { - this.sourcerelationship = data().deepCopy(fields()[13].schema(), other.sourcerelationship); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.producer)) { - this.producer = data().deepCopy(fields()[14].schema(), other.producer); - fieldSetFlags()[14] = true; - } - if (isValidValue(fields()[15], other.len)) { - this.len = data().deepCopy(fields()[15].schema(), other.len); - fieldSetFlags()[15] = true; - } - if (isValidValue(fields()[16], other.qagmediarating)) { - this.qagmediarating = data().deepCopy(fields()[16].schema(), other.qagmediarating); - fieldSetFlags()[16] = true; - } - if (isValidValue(fields()[17], other.embeddable)) { - this.embeddable = data().deepCopy(fields()[17].schema(), other.embeddable); - fieldSetFlags()[17] = true; - } - if (isValidValue(fields()[18], other.language)) { - this.language = data().deepCopy(fields()[18].schema(), other.language); - fieldSetFlags()[18] = true; - } - if (isValidValue(fields()[19], other.ext)) { - this.ext = data().deepCopy(fields()[19].schema(), other.ext); - fieldSetFlags()[19] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Content.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Content.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'episode' field */ - public java.lang.Integer getEpisode() { - return episode; - } - - /** Sets the value of the 'episode' field */ - public org.openrtb.common.api.Content.Builder setEpisode(java.lang.Integer value) { - validate(fields()[1], value); - this.episode = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'episode' field has been set */ - public boolean hasEpisode() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'episode' field */ - public org.openrtb.common.api.Content.Builder clearEpisode() { - episode = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'title' field */ - public java.lang.CharSequence getTitle() { - return title; - } - - /** Sets the value of the 'title' field */ - public org.openrtb.common.api.Content.Builder setTitle(java.lang.CharSequence value) { - validate(fields()[2], value); - this.title = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'title' field has been set */ - public boolean hasTitle() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'title' field */ - public org.openrtb.common.api.Content.Builder clearTitle() { - title = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'series' field */ - public java.lang.CharSequence getSeries() { - return series; - } - - /** Sets the value of the 'series' field */ - public org.openrtb.common.api.Content.Builder setSeries(java.lang.CharSequence value) { - validate(fields()[3], value); - this.series = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'series' field has been set */ - public boolean hasSeries() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'series' field */ - public org.openrtb.common.api.Content.Builder clearSeries() { - series = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'season' field */ - public java.lang.CharSequence getSeason() { - return season; - } - - /** Sets the value of the 'season' field */ - public org.openrtb.common.api.Content.Builder setSeason(java.lang.CharSequence value) { - validate(fields()[4], value); - this.season = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'season' field has been set */ - public boolean hasSeason() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'season' field */ - public org.openrtb.common.api.Content.Builder clearSeason() { - season = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'url' field */ - public java.lang.CharSequence getUrl() { - return url; - } - - /** Sets the value of the 'url' field */ - public org.openrtb.common.api.Content.Builder setUrl(java.lang.CharSequence value) { - validate(fields()[5], value); - this.url = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'url' field has been set */ - public boolean hasUrl() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'url' field */ - public org.openrtb.common.api.Content.Builder clearUrl() { - url = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'cat' field */ - public java.util.List getCat() { - return cat; - } - - /** Sets the value of the 'cat' field */ - public org.openrtb.common.api.Content.Builder setCat(java.util.List value) { - validate(fields()[6], value); - this.cat = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'cat' field has been set */ - public boolean hasCat() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'cat' field */ - public org.openrtb.common.api.Content.Builder clearCat() { - cat = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'videoquality' field */ - public java.lang.Integer getVideoquality() { - return videoquality; - } - - /** Sets the value of the 'videoquality' field */ - public org.openrtb.common.api.Content.Builder setVideoquality(java.lang.Integer value) { - validate(fields()[7], value); - this.videoquality = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'videoquality' field has been set */ - public boolean hasVideoquality() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'videoquality' field */ - public org.openrtb.common.api.Content.Builder clearVideoquality() { - videoquality = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'keywords' field */ - public java.lang.CharSequence getKeywords() { - return keywords; - } - - /** Sets the value of the 'keywords' field */ - public org.openrtb.common.api.Content.Builder setKeywords(java.lang.CharSequence value) { - validate(fields()[8], value); - this.keywords = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'keywords' field has been set */ - public boolean hasKeywords() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'keywords' field */ - public org.openrtb.common.api.Content.Builder clearKeywords() { - keywords = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'contentrating' field */ - public java.lang.CharSequence getContentrating() { - return contentrating; - } - - /** Sets the value of the 'contentrating' field */ - public org.openrtb.common.api.Content.Builder setContentrating(java.lang.CharSequence value) { - validate(fields()[9], value); - this.contentrating = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'contentrating' field has been set */ - public boolean hasContentrating() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'contentrating' field */ - public org.openrtb.common.api.Content.Builder clearContentrating() { - contentrating = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'userrating' field */ - public java.lang.CharSequence getUserrating() { - return userrating; - } - - /** Sets the value of the 'userrating' field */ - public org.openrtb.common.api.Content.Builder setUserrating(java.lang.CharSequence value) { - validate(fields()[10], value); - this.userrating = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'userrating' field has been set */ - public boolean hasUserrating() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'userrating' field */ - public org.openrtb.common.api.Content.Builder clearUserrating() { - userrating = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'context' field */ - public java.lang.CharSequence getContext() { - return context; - } - - /** Sets the value of the 'context' field */ - public org.openrtb.common.api.Content.Builder setContext(java.lang.CharSequence value) { - validate(fields()[11], value); - this.context = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'context' field has been set */ - public boolean hasContext() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'context' field */ - public org.openrtb.common.api.Content.Builder clearContext() { - context = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'livestream' field */ - public java.lang.Integer getLivestream() { - return livestream; - } - - /** Sets the value of the 'livestream' field */ - public org.openrtb.common.api.Content.Builder setLivestream(java.lang.Integer value) { - validate(fields()[12], value); - this.livestream = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'livestream' field has been set */ - public boolean hasLivestream() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'livestream' field */ - public org.openrtb.common.api.Content.Builder clearLivestream() { - livestream = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'sourcerelationship' field */ - public java.lang.Integer getSourcerelationship() { - return sourcerelationship; - } - - /** Sets the value of the 'sourcerelationship' field */ - public org.openrtb.common.api.Content.Builder setSourcerelationship(java.lang.Integer value) { - validate(fields()[13], value); - this.sourcerelationship = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'sourcerelationship' field has been set */ - public boolean hasSourcerelationship() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'sourcerelationship' field */ - public org.openrtb.common.api.Content.Builder clearSourcerelationship() { - sourcerelationship = null; - fieldSetFlags()[13] = false; - return this; - } - - /** Gets the value of the 'producer' field */ - public org.openrtb.common.api.Producer getProducer() { - return producer; - } - - /** Sets the value of the 'producer' field */ - public org.openrtb.common.api.Content.Builder setProducer(org.openrtb.common.api.Producer value) { - validate(fields()[14], value); - this.producer = value; - fieldSetFlags()[14] = true; - return this; - } - - /** Checks whether the 'producer' field has been set */ - public boolean hasProducer() { - return fieldSetFlags()[14]; - } - - /** Clears the value of the 'producer' field */ - public org.openrtb.common.api.Content.Builder clearProducer() { - producer = null; - fieldSetFlags()[14] = false; - return this; - } - - /** Gets the value of the 'len' field */ - public java.lang.Integer getLen() { - return len; - } - - /** Sets the value of the 'len' field */ - public org.openrtb.common.api.Content.Builder setLen(java.lang.Integer value) { - validate(fields()[15], value); - this.len = value; - fieldSetFlags()[15] = true; - return this; - } - - /** Checks whether the 'len' field has been set */ - public boolean hasLen() { - return fieldSetFlags()[15]; - } - - /** Clears the value of the 'len' field */ - public org.openrtb.common.api.Content.Builder clearLen() { - len = null; - fieldSetFlags()[15] = false; - return this; - } - - /** Gets the value of the 'qagmediarating' field */ - public java.lang.Integer getQagmediarating() { - return qagmediarating; - } - - /** Sets the value of the 'qagmediarating' field */ - public org.openrtb.common.api.Content.Builder setQagmediarating(java.lang.Integer value) { - validate(fields()[16], value); - this.qagmediarating = value; - fieldSetFlags()[16] = true; - return this; - } - - /** Checks whether the 'qagmediarating' field has been set */ - public boolean hasQagmediarating() { - return fieldSetFlags()[16]; - } - - /** Clears the value of the 'qagmediarating' field */ - public org.openrtb.common.api.Content.Builder clearQagmediarating() { - qagmediarating = null; - fieldSetFlags()[16] = false; - return this; - } - - /** Gets the value of the 'embeddable' field */ - public java.lang.Integer getEmbeddable() { - return embeddable; - } - - /** Sets the value of the 'embeddable' field */ - public org.openrtb.common.api.Content.Builder setEmbeddable(java.lang.Integer value) { - validate(fields()[17], value); - this.embeddable = value; - fieldSetFlags()[17] = true; - return this; - } - - /** Checks whether the 'embeddable' field has been set */ - public boolean hasEmbeddable() { - return fieldSetFlags()[17]; - } - - /** Clears the value of the 'embeddable' field */ - public org.openrtb.common.api.Content.Builder clearEmbeddable() { - embeddable = null; - fieldSetFlags()[17] = false; - return this; - } - - /** Gets the value of the 'language' field */ - public java.lang.CharSequence getLanguage() { - return language; - } - - /** Sets the value of the 'language' field */ - public org.openrtb.common.api.Content.Builder setLanguage(java.lang.CharSequence value) { - validate(fields()[18], value); - this.language = value; - fieldSetFlags()[18] = true; - return this; - } - - /** Checks whether the 'language' field has been set */ - public boolean hasLanguage() { - return fieldSetFlags()[18]; - } - - /** Clears the value of the 'language' field */ - public org.openrtb.common.api.Content.Builder clearLanguage() { - language = null; - fieldSetFlags()[18] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Content.Builder setExt(java.lang.CharSequence value) { - validate(fields()[19], value); - this.ext = value; - fieldSetFlags()[19] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[19]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Content.Builder clearExt() { - ext = null; - fieldSetFlags()[19] = false; - return this; - } - - @Override - public Content build() { - try { - Content record = new Content(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.episode = fieldSetFlags()[1] ? this.episode : (java.lang.Integer) defaultValue(fields()[1]); - record.title = fieldSetFlags()[2] ? this.title : (java.lang.CharSequence) defaultValue(fields()[2]); - record.series = fieldSetFlags()[3] ? this.series : (java.lang.CharSequence) defaultValue(fields()[3]); - record.season = fieldSetFlags()[4] ? this.season : (java.lang.CharSequence) defaultValue(fields()[4]); - record.url = fieldSetFlags()[5] ? this.url : (java.lang.CharSequence) defaultValue(fields()[5]); - record.cat = fieldSetFlags()[6] ? this.cat : (java.util.List) defaultValue(fields()[6]); - record.videoquality = fieldSetFlags()[7] ? this.videoquality : (java.lang.Integer) defaultValue(fields()[7]); - record.keywords = fieldSetFlags()[8] ? this.keywords : (java.lang.CharSequence) defaultValue(fields()[8]); - record.contentrating = fieldSetFlags()[9] ? this.contentrating : (java.lang.CharSequence) defaultValue(fields()[9]); - record.userrating = fieldSetFlags()[10] ? this.userrating : (java.lang.CharSequence) defaultValue(fields()[10]); - record.context = fieldSetFlags()[11] ? this.context : (java.lang.CharSequence) defaultValue(fields()[11]); - record.livestream = fieldSetFlags()[12] ? this.livestream : (java.lang.Integer) defaultValue(fields()[12]); - record.sourcerelationship = fieldSetFlags()[13] ? this.sourcerelationship : (java.lang.Integer) defaultValue(fields()[13]); - record.producer = fieldSetFlags()[14] ? this.producer : (org.openrtb.common.api.Producer) defaultValue(fields()[14]); - record.len = fieldSetFlags()[15] ? this.len : (java.lang.Integer) defaultValue(fields()[15]); - record.qagmediarating = fieldSetFlags()[16] ? this.qagmediarating : (java.lang.Integer) defaultValue(fields()[16]); - record.embeddable = fieldSetFlags()[17] ? this.embeddable : (java.lang.Integer) defaultValue(fields()[17]); - record.language = fieldSetFlags()[18] ? this.language : (java.lang.CharSequence) defaultValue(fields()[18]); - record.ext = fieldSetFlags()[19] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[19]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Data.java b/common/src/main/java/org/openrtb/common/api/Data.java deleted file mode 100644 index 86cb7ff..0000000 --- a/common/src/main/java/org/openrtb/common/api/Data.java +++ /dev/null @@ -1,286 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Data extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Data\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"segment\",\"type\":[{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Segment\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"value\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.lang.CharSequence name; - public java.util.List segment; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Data() {} - - /** - * All-args constructor. - */ - public Data(java.lang.CharSequence id, java.lang.CharSequence name, java.util.List segment, java.lang.CharSequence ext) { - this.id = id; - this.name = name; - this.segment = segment; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return name; - case 2: return segment; - case 3: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: name = (java.lang.CharSequence)value$; break; - case 2: segment = (java.util.List)value$; break; - case 3: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'name' field. - */ - public java.lang.CharSequence getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * @param value the value to set. - */ - public void setName(java.lang.CharSequence value) { - this.name = value; - } - - /** - * Gets the value of the 'segment' field. - */ - public java.util.List getSegment() { - return segment; - } - - /** - * Sets the value of the 'segment' field. - * @param value the value to set. - */ - public void setSegment(java.util.List value) { - this.segment = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Data RecordBuilder */ - public static org.openrtb.common.api.Data.Builder newBuilder() { - return new org.openrtb.common.api.Data.Builder(); - } - - /** Creates a new Data RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Data.Builder newBuilder(org.openrtb.common.api.Data.Builder other) { - return new org.openrtb.common.api.Data.Builder(other); - } - - /** Creates a new Data RecordBuilder by copying an existing Data instance */ - public static org.openrtb.common.api.Data.Builder newBuilder(org.openrtb.common.api.Data other) { - return new org.openrtb.common.api.Data.Builder(other); - } - - /** - * RecordBuilder for Data instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.lang.CharSequence name; - private java.util.List segment; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Data.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Data.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Data instance */ - private Builder(org.openrtb.common.api.Data other) { - super(org.openrtb.common.api.Data.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.segment)) { - this.segment = data().deepCopy(fields()[2].schema(), other.segment); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.ext)) { - this.ext = data().deepCopy(fields()[3].schema(), other.ext); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Data.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Data.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'name' field */ - public java.lang.CharSequence getName() { - return name; - } - - /** Sets the value of the 'name' field */ - public org.openrtb.common.api.Data.Builder setName(java.lang.CharSequence value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public org.openrtb.common.api.Data.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'segment' field */ - public java.util.List getSegment() { - return segment; - } - - /** Sets the value of the 'segment' field */ - public org.openrtb.common.api.Data.Builder setSegment(java.util.List value) { - validate(fields()[2], value); - this.segment = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'segment' field has been set */ - public boolean hasSegment() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'segment' field */ - public org.openrtb.common.api.Data.Builder clearSegment() { - segment = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Data.Builder setExt(java.lang.CharSequence value) { - validate(fields()[3], value); - this.ext = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Data.Builder clearExt() { - ext = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public Data build() { - try { - Data record = new Data(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.CharSequence) defaultValue(fields()[1]); - record.segment = fieldSetFlags()[2] ? this.segment : (java.util.List) defaultValue(fields()[2]); - record.ext = fieldSetFlags()[3] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[3]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Device.java b/common/src/main/java/org/openrtb/common/api/Device.java deleted file mode 100644 index 886b117..0000000 --- a/common/src/main/java/org/openrtb/common/api/Device.java +++ /dev/null @@ -1,1086 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Device extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Device\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"dnt\",\"type\":[\"int\",\"null\"]},{\"name\":\"ua\",\"type\":[\"string\",\"null\"]},{\"name\":\"ip\",\"type\":[\"string\",\"null\"]},{\"name\":\"geo\",\"type\":[{\"type\":\"record\",\"name\":\"Geo\",\"fields\":[{\"name\":\"lat\",\"type\":[\"float\",\"null\"]},{\"name\":\"lon\",\"type\":[\"float\",\"null\"]},{\"name\":\"country\",\"type\":[\"string\",\"null\"]},{\"name\":\"region\",\"type\":[\"string\",\"null\"]},{\"name\":\"regionfips104\",\"type\":[\"string\",\"null\"]},{\"name\":\"metro\",\"type\":[\"string\",\"null\"]},{\"name\":\"city\",\"type\":[\"string\",\"null\"]},{\"name\":\"zip\",\"type\":[\"string\",\"null\"]},{\"name\":\"type\",\"type\":[\"int\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"didsha1\",\"type\":[\"string\",\"null\"]},{\"name\":\"didmd5\",\"type\":[\"string\",\"null\"]},{\"name\":\"dpidsha1\",\"type\":[\"string\",\"null\"]},{\"name\":\"dpidmd5\",\"type\":[\"string\",\"null\"]},{\"name\":\"ipv6\",\"type\":[\"string\",\"null\"]},{\"name\":\"carrier\",\"type\":[\"string\",\"null\"]},{\"name\":\"language\",\"type\":[\"string\",\"null\"]},{\"name\":\"make\",\"type\":[\"string\",\"null\"]},{\"name\":\"model\",\"type\":[\"string\",\"null\"]},{\"name\":\"os\",\"type\":[\"string\",\"null\"]},{\"name\":\"Osv\",\"type\":[\"string\",\"null\"]},{\"name\":\"Js\",\"type\":[\"int\",\"null\"]},{\"name\":\"connectiontype\",\"type\":[\"int\",\"null\"]},{\"name\":\"deviceType\",\"type\":[\"int\",\"null\"]},{\"name\":\"flashver\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.Integer dnt; - public java.lang.CharSequence ua; - public java.lang.CharSequence ip; - public org.openrtb.common.api.Geo geo; - public java.lang.CharSequence didsha1; - public java.lang.CharSequence didmd5; - public java.lang.CharSequence dpidsha1; - public java.lang.CharSequence dpidmd5; - public java.lang.CharSequence ipv6; - public java.lang.CharSequence carrier; - public java.lang.CharSequence language; - public java.lang.CharSequence make; - public java.lang.CharSequence model; - public java.lang.CharSequence os; - public java.lang.CharSequence Osv; - public java.lang.Integer Js; - public java.lang.Integer connectiontype; - public java.lang.Integer deviceType; - public java.lang.CharSequence flashver; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Device() {} - - /** - * All-args constructor. - */ - public Device(java.lang.Integer dnt, java.lang.CharSequence ua, java.lang.CharSequence ip, org.openrtb.common.api.Geo geo, java.lang.CharSequence didsha1, java.lang.CharSequence didmd5, java.lang.CharSequence dpidsha1, java.lang.CharSequence dpidmd5, java.lang.CharSequence ipv6, java.lang.CharSequence carrier, java.lang.CharSequence language, java.lang.CharSequence make, java.lang.CharSequence model, java.lang.CharSequence os, java.lang.CharSequence Osv, java.lang.Integer Js, java.lang.Integer connectiontype, java.lang.Integer deviceType, java.lang.CharSequence flashver, java.lang.CharSequence ext) { - this.dnt = dnt; - this.ua = ua; - this.ip = ip; - this.geo = geo; - this.didsha1 = didsha1; - this.didmd5 = didmd5; - this.dpidsha1 = dpidsha1; - this.dpidmd5 = dpidmd5; - this.ipv6 = ipv6; - this.carrier = carrier; - this.language = language; - this.make = make; - this.model = model; - this.os = os; - this.Osv = Osv; - this.Js = Js; - this.connectiontype = connectiontype; - this.deviceType = deviceType; - this.flashver = flashver; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return dnt; - case 1: return ua; - case 2: return ip; - case 3: return geo; - case 4: return didsha1; - case 5: return didmd5; - case 6: return dpidsha1; - case 7: return dpidmd5; - case 8: return ipv6; - case 9: return carrier; - case 10: return language; - case 11: return make; - case 12: return model; - case 13: return os; - case 14: return Osv; - case 15: return Js; - case 16: return connectiontype; - case 17: return deviceType; - case 18: return flashver; - case 19: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: dnt = (java.lang.Integer)value$; break; - case 1: ua = (java.lang.CharSequence)value$; break; - case 2: ip = (java.lang.CharSequence)value$; break; - case 3: geo = (org.openrtb.common.api.Geo)value$; break; - case 4: didsha1 = (java.lang.CharSequence)value$; break; - case 5: didmd5 = (java.lang.CharSequence)value$; break; - case 6: dpidsha1 = (java.lang.CharSequence)value$; break; - case 7: dpidmd5 = (java.lang.CharSequence)value$; break; - case 8: ipv6 = (java.lang.CharSequence)value$; break; - case 9: carrier = (java.lang.CharSequence)value$; break; - case 10: language = (java.lang.CharSequence)value$; break; - case 11: make = (java.lang.CharSequence)value$; break; - case 12: model = (java.lang.CharSequence)value$; break; - case 13: os = (java.lang.CharSequence)value$; break; - case 14: Osv = (java.lang.CharSequence)value$; break; - case 15: Js = (java.lang.Integer)value$; break; - case 16: connectiontype = (java.lang.Integer)value$; break; - case 17: deviceType = (java.lang.Integer)value$; break; - case 18: flashver = (java.lang.CharSequence)value$; break; - case 19: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'dnt' field. - */ - public java.lang.Integer getDnt() { - return dnt; - } - - /** - * Sets the value of the 'dnt' field. - * @param value the value to set. - */ - public void setDnt(java.lang.Integer value) { - this.dnt = value; - } - - /** - * Gets the value of the 'ua' field. - */ - public java.lang.CharSequence getUa() { - return ua; - } - - /** - * Sets the value of the 'ua' field. - * @param value the value to set. - */ - public void setUa(java.lang.CharSequence value) { - this.ua = value; - } - - /** - * Gets the value of the 'ip' field. - */ - public java.lang.CharSequence getIp() { - return ip; - } - - /** - * Sets the value of the 'ip' field. - * @param value the value to set. - */ - public void setIp(java.lang.CharSequence value) { - this.ip = value; - } - - /** - * Gets the value of the 'geo' field. - */ - public org.openrtb.common.api.Geo getGeo() { - return geo; - } - - /** - * Sets the value of the 'geo' field. - * @param value the value to set. - */ - public void setGeo(org.openrtb.common.api.Geo value) { - this.geo = value; - } - - /** - * Gets the value of the 'didsha1' field. - */ - public java.lang.CharSequence getDidsha1() { - return didsha1; - } - - /** - * Sets the value of the 'didsha1' field. - * @param value the value to set. - */ - public void setDidsha1(java.lang.CharSequence value) { - this.didsha1 = value; - } - - /** - * Gets the value of the 'didmd5' field. - */ - public java.lang.CharSequence getDidmd5() { - return didmd5; - } - - /** - * Sets the value of the 'didmd5' field. - * @param value the value to set. - */ - public void setDidmd5(java.lang.CharSequence value) { - this.didmd5 = value; - } - - /** - * Gets the value of the 'dpidsha1' field. - */ - public java.lang.CharSequence getDpidsha1() { - return dpidsha1; - } - - /** - * Sets the value of the 'dpidsha1' field. - * @param value the value to set. - */ - public void setDpidsha1(java.lang.CharSequence value) { - this.dpidsha1 = value; - } - - /** - * Gets the value of the 'dpidmd5' field. - */ - public java.lang.CharSequence getDpidmd5() { - return dpidmd5; - } - - /** - * Sets the value of the 'dpidmd5' field. - * @param value the value to set. - */ - public void setDpidmd5(java.lang.CharSequence value) { - this.dpidmd5 = value; - } - - /** - * Gets the value of the 'ipv6' field. - */ - public java.lang.CharSequence getIpv6() { - return ipv6; - } - - /** - * Sets the value of the 'ipv6' field. - * @param value the value to set. - */ - public void setIpv6(java.lang.CharSequence value) { - this.ipv6 = value; - } - - /** - * Gets the value of the 'carrier' field. - */ - public java.lang.CharSequence getCarrier() { - return carrier; - } - - /** - * Sets the value of the 'carrier' field. - * @param value the value to set. - */ - public void setCarrier(java.lang.CharSequence value) { - this.carrier = value; - } - - /** - * Gets the value of the 'language' field. - */ - public java.lang.CharSequence getLanguage() { - return language; - } - - /** - * Sets the value of the 'language' field. - * @param value the value to set. - */ - public void setLanguage(java.lang.CharSequence value) { - this.language = value; - } - - /** - * Gets the value of the 'make' field. - */ - public java.lang.CharSequence getMake() { - return make; - } - - /** - * Sets the value of the 'make' field. - * @param value the value to set. - */ - public void setMake(java.lang.CharSequence value) { - this.make = value; - } - - /** - * Gets the value of the 'model' field. - */ - public java.lang.CharSequence getModel() { - return model; - } - - /** - * Sets the value of the 'model' field. - * @param value the value to set. - */ - public void setModel(java.lang.CharSequence value) { - this.model = value; - } - - /** - * Gets the value of the 'os' field. - */ - public java.lang.CharSequence getOs() { - return os; - } - - /** - * Sets the value of the 'os' field. - * @param value the value to set. - */ - public void setOs(java.lang.CharSequence value) { - this.os = value; - } - - /** - * Gets the value of the 'Osv' field. - */ - public java.lang.CharSequence getOsv() { - return Osv; - } - - /** - * Sets the value of the 'Osv' field. - * @param value the value to set. - */ - public void setOsv(java.lang.CharSequence value) { - this.Osv = value; - } - - /** - * Gets the value of the 'Js' field. - */ - public java.lang.Integer getJs() { - return Js; - } - - /** - * Sets the value of the 'Js' field. - * @param value the value to set. - */ - public void setJs(java.lang.Integer value) { - this.Js = value; - } - - /** - * Gets the value of the 'connectiontype' field. - */ - public java.lang.Integer getConnectiontype() { - return connectiontype; - } - - /** - * Sets the value of the 'connectiontype' field. - * @param value the value to set. - */ - public void setConnectiontype(java.lang.Integer value) { - this.connectiontype = value; - } - - /** - * Gets the value of the 'deviceType' field. - */ - public java.lang.Integer getDeviceType() { - return deviceType; - } - - /** - * Sets the value of the 'deviceType' field. - * @param value the value to set. - */ - public void setDeviceType(java.lang.Integer value) { - this.deviceType = value; - } - - /** - * Gets the value of the 'flashver' field. - */ - public java.lang.CharSequence getFlashver() { - return flashver; - } - - /** - * Sets the value of the 'flashver' field. - * @param value the value to set. - */ - public void setFlashver(java.lang.CharSequence value) { - this.flashver = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Device RecordBuilder */ - public static org.openrtb.common.api.Device.Builder newBuilder() { - return new org.openrtb.common.api.Device.Builder(); - } - - /** Creates a new Device RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Device.Builder newBuilder(org.openrtb.common.api.Device.Builder other) { - return new org.openrtb.common.api.Device.Builder(other); - } - - /** Creates a new Device RecordBuilder by copying an existing Device instance */ - public static org.openrtb.common.api.Device.Builder newBuilder(org.openrtb.common.api.Device other) { - return new org.openrtb.common.api.Device.Builder(other); - } - - /** - * RecordBuilder for Device instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Integer dnt; - private java.lang.CharSequence ua; - private java.lang.CharSequence ip; - private org.openrtb.common.api.Geo geo; - private java.lang.CharSequence didsha1; - private java.lang.CharSequence didmd5; - private java.lang.CharSequence dpidsha1; - private java.lang.CharSequence dpidmd5; - private java.lang.CharSequence ipv6; - private java.lang.CharSequence carrier; - private java.lang.CharSequence language; - private java.lang.CharSequence make; - private java.lang.CharSequence model; - private java.lang.CharSequence os; - private java.lang.CharSequence Osv; - private java.lang.Integer Js; - private java.lang.Integer connectiontype; - private java.lang.Integer deviceType; - private java.lang.CharSequence flashver; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Device.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Device.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Device instance */ - private Builder(org.openrtb.common.api.Device other) { - super(org.openrtb.common.api.Device.SCHEMA$); - if (isValidValue(fields()[0], other.dnt)) { - this.dnt = data().deepCopy(fields()[0].schema(), other.dnt); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.ua)) { - this.ua = data().deepCopy(fields()[1].schema(), other.ua); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.ip)) { - this.ip = data().deepCopy(fields()[2].schema(), other.ip); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.geo)) { - this.geo = data().deepCopy(fields()[3].schema(), other.geo); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.didsha1)) { - this.didsha1 = data().deepCopy(fields()[4].schema(), other.didsha1); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.didmd5)) { - this.didmd5 = data().deepCopy(fields()[5].schema(), other.didmd5); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.dpidsha1)) { - this.dpidsha1 = data().deepCopy(fields()[6].schema(), other.dpidsha1); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.dpidmd5)) { - this.dpidmd5 = data().deepCopy(fields()[7].schema(), other.dpidmd5); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.ipv6)) { - this.ipv6 = data().deepCopy(fields()[8].schema(), other.ipv6); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.carrier)) { - this.carrier = data().deepCopy(fields()[9].schema(), other.carrier); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.language)) { - this.language = data().deepCopy(fields()[10].schema(), other.language); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.make)) { - this.make = data().deepCopy(fields()[11].schema(), other.make); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.model)) { - this.model = data().deepCopy(fields()[12].schema(), other.model); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.os)) { - this.os = data().deepCopy(fields()[13].schema(), other.os); - fieldSetFlags()[13] = true; - } - if (isValidValue(fields()[14], other.Osv)) { - this.Osv = data().deepCopy(fields()[14].schema(), other.Osv); - fieldSetFlags()[14] = true; - } - if (isValidValue(fields()[15], other.Js)) { - this.Js = data().deepCopy(fields()[15].schema(), other.Js); - fieldSetFlags()[15] = true; - } - if (isValidValue(fields()[16], other.connectiontype)) { - this.connectiontype = data().deepCopy(fields()[16].schema(), other.connectiontype); - fieldSetFlags()[16] = true; - } - if (isValidValue(fields()[17], other.deviceType)) { - this.deviceType = data().deepCopy(fields()[17].schema(), other.deviceType); - fieldSetFlags()[17] = true; - } - if (isValidValue(fields()[18], other.flashver)) { - this.flashver = data().deepCopy(fields()[18].schema(), other.flashver); - fieldSetFlags()[18] = true; - } - if (isValidValue(fields()[19], other.ext)) { - this.ext = data().deepCopy(fields()[19].schema(), other.ext); - fieldSetFlags()[19] = true; - } - } - - /** Gets the value of the 'dnt' field */ - public java.lang.Integer getDnt() { - return dnt; - } - - /** Sets the value of the 'dnt' field */ - public org.openrtb.common.api.Device.Builder setDnt(java.lang.Integer value) { - validate(fields()[0], value); - this.dnt = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'dnt' field has been set */ - public boolean hasDnt() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'dnt' field */ - public org.openrtb.common.api.Device.Builder clearDnt() { - dnt = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'ua' field */ - public java.lang.CharSequence getUa() { - return ua; - } - - /** Sets the value of the 'ua' field */ - public org.openrtb.common.api.Device.Builder setUa(java.lang.CharSequence value) { - validate(fields()[1], value); - this.ua = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'ua' field has been set */ - public boolean hasUa() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'ua' field */ - public org.openrtb.common.api.Device.Builder clearUa() { - ua = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'ip' field */ - public java.lang.CharSequence getIp() { - return ip; - } - - /** Sets the value of the 'ip' field */ - public org.openrtb.common.api.Device.Builder setIp(java.lang.CharSequence value) { - validate(fields()[2], value); - this.ip = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'ip' field has been set */ - public boolean hasIp() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'ip' field */ - public org.openrtb.common.api.Device.Builder clearIp() { - ip = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'geo' field */ - public org.openrtb.common.api.Geo getGeo() { - return geo; - } - - /** Sets the value of the 'geo' field */ - public org.openrtb.common.api.Device.Builder setGeo(org.openrtb.common.api.Geo value) { - validate(fields()[3], value); - this.geo = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'geo' field has been set */ - public boolean hasGeo() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'geo' field */ - public org.openrtb.common.api.Device.Builder clearGeo() { - geo = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'didsha1' field */ - public java.lang.CharSequence getDidsha1() { - return didsha1; - } - - /** Sets the value of the 'didsha1' field */ - public org.openrtb.common.api.Device.Builder setDidsha1(java.lang.CharSequence value) { - validate(fields()[4], value); - this.didsha1 = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'didsha1' field has been set */ - public boolean hasDidsha1() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'didsha1' field */ - public org.openrtb.common.api.Device.Builder clearDidsha1() { - didsha1 = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'didmd5' field */ - public java.lang.CharSequence getDidmd5() { - return didmd5; - } - - /** Sets the value of the 'didmd5' field */ - public org.openrtb.common.api.Device.Builder setDidmd5(java.lang.CharSequence value) { - validate(fields()[5], value); - this.didmd5 = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'didmd5' field has been set */ - public boolean hasDidmd5() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'didmd5' field */ - public org.openrtb.common.api.Device.Builder clearDidmd5() { - didmd5 = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'dpidsha1' field */ - public java.lang.CharSequence getDpidsha1() { - return dpidsha1; - } - - /** Sets the value of the 'dpidsha1' field */ - public org.openrtb.common.api.Device.Builder setDpidsha1(java.lang.CharSequence value) { - validate(fields()[6], value); - this.dpidsha1 = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'dpidsha1' field has been set */ - public boolean hasDpidsha1() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'dpidsha1' field */ - public org.openrtb.common.api.Device.Builder clearDpidsha1() { - dpidsha1 = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'dpidmd5' field */ - public java.lang.CharSequence getDpidmd5() { - return dpidmd5; - } - - /** Sets the value of the 'dpidmd5' field */ - public org.openrtb.common.api.Device.Builder setDpidmd5(java.lang.CharSequence value) { - validate(fields()[7], value); - this.dpidmd5 = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'dpidmd5' field has been set */ - public boolean hasDpidmd5() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'dpidmd5' field */ - public org.openrtb.common.api.Device.Builder clearDpidmd5() { - dpidmd5 = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'ipv6' field */ - public java.lang.CharSequence getIpv6() { - return ipv6; - } - - /** Sets the value of the 'ipv6' field */ - public org.openrtb.common.api.Device.Builder setIpv6(java.lang.CharSequence value) { - validate(fields()[8], value); - this.ipv6 = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'ipv6' field has been set */ - public boolean hasIpv6() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'ipv6' field */ - public org.openrtb.common.api.Device.Builder clearIpv6() { - ipv6 = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'carrier' field */ - public java.lang.CharSequence getCarrier() { - return carrier; - } - - /** Sets the value of the 'carrier' field */ - public org.openrtb.common.api.Device.Builder setCarrier(java.lang.CharSequence value) { - validate(fields()[9], value); - this.carrier = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'carrier' field has been set */ - public boolean hasCarrier() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'carrier' field */ - public org.openrtb.common.api.Device.Builder clearCarrier() { - carrier = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'language' field */ - public java.lang.CharSequence getLanguage() { - return language; - } - - /** Sets the value of the 'language' field */ - public org.openrtb.common.api.Device.Builder setLanguage(java.lang.CharSequence value) { - validate(fields()[10], value); - this.language = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'language' field has been set */ - public boolean hasLanguage() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'language' field */ - public org.openrtb.common.api.Device.Builder clearLanguage() { - language = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'make' field */ - public java.lang.CharSequence getMake() { - return make; - } - - /** Sets the value of the 'make' field */ - public org.openrtb.common.api.Device.Builder setMake(java.lang.CharSequence value) { - validate(fields()[11], value); - this.make = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'make' field has been set */ - public boolean hasMake() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'make' field */ - public org.openrtb.common.api.Device.Builder clearMake() { - make = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'model' field */ - public java.lang.CharSequence getModel() { - return model; - } - - /** Sets the value of the 'model' field */ - public org.openrtb.common.api.Device.Builder setModel(java.lang.CharSequence value) { - validate(fields()[12], value); - this.model = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'model' field has been set */ - public boolean hasModel() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'model' field */ - public org.openrtb.common.api.Device.Builder clearModel() { - model = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'os' field */ - public java.lang.CharSequence getOs() { - return os; - } - - /** Sets the value of the 'os' field */ - public org.openrtb.common.api.Device.Builder setOs(java.lang.CharSequence value) { - validate(fields()[13], value); - this.os = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'os' field has been set */ - public boolean hasOs() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'os' field */ - public org.openrtb.common.api.Device.Builder clearOs() { - os = null; - fieldSetFlags()[13] = false; - return this; - } - - /** Gets the value of the 'Osv' field */ - public java.lang.CharSequence getOsv() { - return Osv; - } - - /** Sets the value of the 'Osv' field */ - public org.openrtb.common.api.Device.Builder setOsv(java.lang.CharSequence value) { - validate(fields()[14], value); - this.Osv = value; - fieldSetFlags()[14] = true; - return this; - } - - /** Checks whether the 'Osv' field has been set */ - public boolean hasOsv() { - return fieldSetFlags()[14]; - } - - /** Clears the value of the 'Osv' field */ - public org.openrtb.common.api.Device.Builder clearOsv() { - Osv = null; - fieldSetFlags()[14] = false; - return this; - } - - /** Gets the value of the 'Js' field */ - public java.lang.Integer getJs() { - return Js; - } - - /** Sets the value of the 'Js' field */ - public org.openrtb.common.api.Device.Builder setJs(java.lang.Integer value) { - validate(fields()[15], value); - this.Js = value; - fieldSetFlags()[15] = true; - return this; - } - - /** Checks whether the 'Js' field has been set */ - public boolean hasJs() { - return fieldSetFlags()[15]; - } - - /** Clears the value of the 'Js' field */ - public org.openrtb.common.api.Device.Builder clearJs() { - Js = null; - fieldSetFlags()[15] = false; - return this; - } - - /** Gets the value of the 'connectiontype' field */ - public java.lang.Integer getConnectiontype() { - return connectiontype; - } - - /** Sets the value of the 'connectiontype' field */ - public org.openrtb.common.api.Device.Builder setConnectiontype(java.lang.Integer value) { - validate(fields()[16], value); - this.connectiontype = value; - fieldSetFlags()[16] = true; - return this; - } - - /** Checks whether the 'connectiontype' field has been set */ - public boolean hasConnectiontype() { - return fieldSetFlags()[16]; - } - - /** Clears the value of the 'connectiontype' field */ - public org.openrtb.common.api.Device.Builder clearConnectiontype() { - connectiontype = null; - fieldSetFlags()[16] = false; - return this; - } - - /** Gets the value of the 'deviceType' field */ - public java.lang.Integer getDeviceType() { - return deviceType; - } - - /** Sets the value of the 'deviceType' field */ - public org.openrtb.common.api.Device.Builder setDeviceType(java.lang.Integer value) { - validate(fields()[17], value); - this.deviceType = value; - fieldSetFlags()[17] = true; - return this; - } - - /** Checks whether the 'deviceType' field has been set */ - public boolean hasDeviceType() { - return fieldSetFlags()[17]; - } - - /** Clears the value of the 'deviceType' field */ - public org.openrtb.common.api.Device.Builder clearDeviceType() { - deviceType = null; - fieldSetFlags()[17] = false; - return this; - } - - /** Gets the value of the 'flashver' field */ - public java.lang.CharSequence getFlashver() { - return flashver; - } - - /** Sets the value of the 'flashver' field */ - public org.openrtb.common.api.Device.Builder setFlashver(java.lang.CharSequence value) { - validate(fields()[18], value); - this.flashver = value; - fieldSetFlags()[18] = true; - return this; - } - - /** Checks whether the 'flashver' field has been set */ - public boolean hasFlashver() { - return fieldSetFlags()[18]; - } - - /** Clears the value of the 'flashver' field */ - public org.openrtb.common.api.Device.Builder clearFlashver() { - flashver = null; - fieldSetFlags()[18] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Device.Builder setExt(java.lang.CharSequence value) { - validate(fields()[19], value); - this.ext = value; - fieldSetFlags()[19] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[19]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Device.Builder clearExt() { - ext = null; - fieldSetFlags()[19] = false; - return this; - } - - @Override - public Device build() { - try { - Device record = new Device(); - record.dnt = fieldSetFlags()[0] ? this.dnt : (java.lang.Integer) defaultValue(fields()[0]); - record.ua = fieldSetFlags()[1] ? this.ua : (java.lang.CharSequence) defaultValue(fields()[1]); - record.ip = fieldSetFlags()[2] ? this.ip : (java.lang.CharSequence) defaultValue(fields()[2]); - record.geo = fieldSetFlags()[3] ? this.geo : (org.openrtb.common.api.Geo) defaultValue(fields()[3]); - record.didsha1 = fieldSetFlags()[4] ? this.didsha1 : (java.lang.CharSequence) defaultValue(fields()[4]); - record.didmd5 = fieldSetFlags()[5] ? this.didmd5 : (java.lang.CharSequence) defaultValue(fields()[5]); - record.dpidsha1 = fieldSetFlags()[6] ? this.dpidsha1 : (java.lang.CharSequence) defaultValue(fields()[6]); - record.dpidmd5 = fieldSetFlags()[7] ? this.dpidmd5 : (java.lang.CharSequence) defaultValue(fields()[7]); - record.ipv6 = fieldSetFlags()[8] ? this.ipv6 : (java.lang.CharSequence) defaultValue(fields()[8]); - record.carrier = fieldSetFlags()[9] ? this.carrier : (java.lang.CharSequence) defaultValue(fields()[9]); - record.language = fieldSetFlags()[10] ? this.language : (java.lang.CharSequence) defaultValue(fields()[10]); - record.make = fieldSetFlags()[11] ? this.make : (java.lang.CharSequence) defaultValue(fields()[11]); - record.model = fieldSetFlags()[12] ? this.model : (java.lang.CharSequence) defaultValue(fields()[12]); - record.os = fieldSetFlags()[13] ? this.os : (java.lang.CharSequence) defaultValue(fields()[13]); - record.Osv = fieldSetFlags()[14] ? this.Osv : (java.lang.CharSequence) defaultValue(fields()[14]); - record.Js = fieldSetFlags()[15] ? this.Js : (java.lang.Integer) defaultValue(fields()[15]); - record.connectiontype = fieldSetFlags()[16] ? this.connectiontype : (java.lang.Integer) defaultValue(fields()[16]); - record.deviceType = fieldSetFlags()[17] ? this.deviceType : (java.lang.Integer) defaultValue(fields()[17]); - record.flashver = fieldSetFlags()[18] ? this.flashver : (java.lang.CharSequence) defaultValue(fields()[18]); - record.ext = fieldSetFlags()[19] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[19]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Geo.java b/common/src/main/java/org/openrtb/common/api/Geo.java deleted file mode 100644 index 540e918..0000000 --- a/common/src/main/java/org/openrtb/common/api/Geo.java +++ /dev/null @@ -1,586 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Geo extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Geo\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"lat\",\"type\":[\"float\",\"null\"]},{\"name\":\"lon\",\"type\":[\"float\",\"null\"]},{\"name\":\"country\",\"type\":[\"string\",\"null\"]},{\"name\":\"region\",\"type\":[\"string\",\"null\"]},{\"name\":\"regionfips104\",\"type\":[\"string\",\"null\"]},{\"name\":\"metro\",\"type\":[\"string\",\"null\"]},{\"name\":\"city\",\"type\":[\"string\",\"null\"]},{\"name\":\"zip\",\"type\":[\"string\",\"null\"]},{\"name\":\"type\",\"type\":[\"int\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.Float lat; - public java.lang.Float lon; - public java.lang.CharSequence country; - public java.lang.CharSequence region; - public java.lang.CharSequence regionfips104; - public java.lang.CharSequence metro; - public java.lang.CharSequence city; - public java.lang.CharSequence zip; - public java.lang.Integer type; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Geo() {} - - /** - * All-args constructor. - */ - public Geo(java.lang.Float lat, java.lang.Float lon, java.lang.CharSequence country, java.lang.CharSequence region, java.lang.CharSequence regionfips104, java.lang.CharSequence metro, java.lang.CharSequence city, java.lang.CharSequence zip, java.lang.Integer type, java.lang.CharSequence ext) { - this.lat = lat; - this.lon = lon; - this.country = country; - this.region = region; - this.regionfips104 = regionfips104; - this.metro = metro; - this.city = city; - this.zip = zip; - this.type = type; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return lat; - case 1: return lon; - case 2: return country; - case 3: return region; - case 4: return regionfips104; - case 5: return metro; - case 6: return city; - case 7: return zip; - case 8: return type; - case 9: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: lat = (java.lang.Float)value$; break; - case 1: lon = (java.lang.Float)value$; break; - case 2: country = (java.lang.CharSequence)value$; break; - case 3: region = (java.lang.CharSequence)value$; break; - case 4: regionfips104 = (java.lang.CharSequence)value$; break; - case 5: metro = (java.lang.CharSequence)value$; break; - case 6: city = (java.lang.CharSequence)value$; break; - case 7: zip = (java.lang.CharSequence)value$; break; - case 8: type = (java.lang.Integer)value$; break; - case 9: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'lat' field. - */ - public java.lang.Float getLat() { - return lat; - } - - /** - * Sets the value of the 'lat' field. - * @param value the value to set. - */ - public void setLat(java.lang.Float value) { - this.lat = value; - } - - /** - * Gets the value of the 'lon' field. - */ - public java.lang.Float getLon() { - return lon; - } - - /** - * Sets the value of the 'lon' field. - * @param value the value to set. - */ - public void setLon(java.lang.Float value) { - this.lon = value; - } - - /** - * Gets the value of the 'country' field. - */ - public java.lang.CharSequence getCountry() { - return country; - } - - /** - * Sets the value of the 'country' field. - * @param value the value to set. - */ - public void setCountry(java.lang.CharSequence value) { - this.country = value; - } - - /** - * Gets the value of the 'region' field. - */ - public java.lang.CharSequence getRegion() { - return region; - } - - /** - * Sets the value of the 'region' field. - * @param value the value to set. - */ - public void setRegion(java.lang.CharSequence value) { - this.region = value; - } - - /** - * Gets the value of the 'regionfips104' field. - */ - public java.lang.CharSequence getRegionfips104() { - return regionfips104; - } - - /** - * Sets the value of the 'regionfips104' field. - * @param value the value to set. - */ - public void setRegionfips104(java.lang.CharSequence value) { - this.regionfips104 = value; - } - - /** - * Gets the value of the 'metro' field. - */ - public java.lang.CharSequence getMetro() { - return metro; - } - - /** - * Sets the value of the 'metro' field. - * @param value the value to set. - */ - public void setMetro(java.lang.CharSequence value) { - this.metro = value; - } - - /** - * Gets the value of the 'city' field. - */ - public java.lang.CharSequence getCity() { - return city; - } - - /** - * Sets the value of the 'city' field. - * @param value the value to set. - */ - public void setCity(java.lang.CharSequence value) { - this.city = value; - } - - /** - * Gets the value of the 'zip' field. - */ - public java.lang.CharSequence getZip() { - return zip; - } - - /** - * Sets the value of the 'zip' field. - * @param value the value to set. - */ - public void setZip(java.lang.CharSequence value) { - this.zip = value; - } - - /** - * Gets the value of the 'type' field. - */ - public java.lang.Integer getType() { - return type; - } - - /** - * Sets the value of the 'type' field. - * @param value the value to set. - */ - public void setType(java.lang.Integer value) { - this.type = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Geo RecordBuilder */ - public static org.openrtb.common.api.Geo.Builder newBuilder() { - return new org.openrtb.common.api.Geo.Builder(); - } - - /** Creates a new Geo RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Geo.Builder newBuilder(org.openrtb.common.api.Geo.Builder other) { - return new org.openrtb.common.api.Geo.Builder(other); - } - - /** Creates a new Geo RecordBuilder by copying an existing Geo instance */ - public static org.openrtb.common.api.Geo.Builder newBuilder(org.openrtb.common.api.Geo other) { - return new org.openrtb.common.api.Geo.Builder(other); - } - - /** - * RecordBuilder for Geo instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.Float lat; - private java.lang.Float lon; - private java.lang.CharSequence country; - private java.lang.CharSequence region; - private java.lang.CharSequence regionfips104; - private java.lang.CharSequence metro; - private java.lang.CharSequence city; - private java.lang.CharSequence zip; - private java.lang.Integer type; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Geo.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Geo.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Geo instance */ - private Builder(org.openrtb.common.api.Geo other) { - super(org.openrtb.common.api.Geo.SCHEMA$); - if (isValidValue(fields()[0], other.lat)) { - this.lat = data().deepCopy(fields()[0].schema(), other.lat); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.lon)) { - this.lon = data().deepCopy(fields()[1].schema(), other.lon); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.country)) { - this.country = data().deepCopy(fields()[2].schema(), other.country); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.region)) { - this.region = data().deepCopy(fields()[3].schema(), other.region); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.regionfips104)) { - this.regionfips104 = data().deepCopy(fields()[4].schema(), other.regionfips104); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.metro)) { - this.metro = data().deepCopy(fields()[5].schema(), other.metro); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.city)) { - this.city = data().deepCopy(fields()[6].schema(), other.city); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.zip)) { - this.zip = data().deepCopy(fields()[7].schema(), other.zip); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.type)) { - this.type = data().deepCopy(fields()[8].schema(), other.type); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.ext)) { - this.ext = data().deepCopy(fields()[9].schema(), other.ext); - fieldSetFlags()[9] = true; - } - } - - /** Gets the value of the 'lat' field */ - public java.lang.Float getLat() { - return lat; - } - - /** Sets the value of the 'lat' field */ - public org.openrtb.common.api.Geo.Builder setLat(java.lang.Float value) { - validate(fields()[0], value); - this.lat = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'lat' field has been set */ - public boolean hasLat() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'lat' field */ - public org.openrtb.common.api.Geo.Builder clearLat() { - lat = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'lon' field */ - public java.lang.Float getLon() { - return lon; - } - - /** Sets the value of the 'lon' field */ - public org.openrtb.common.api.Geo.Builder setLon(java.lang.Float value) { - validate(fields()[1], value); - this.lon = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'lon' field has been set */ - public boolean hasLon() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'lon' field */ - public org.openrtb.common.api.Geo.Builder clearLon() { - lon = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'country' field */ - public java.lang.CharSequence getCountry() { - return country; - } - - /** Sets the value of the 'country' field */ - public org.openrtb.common.api.Geo.Builder setCountry(java.lang.CharSequence value) { - validate(fields()[2], value); - this.country = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'country' field has been set */ - public boolean hasCountry() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'country' field */ - public org.openrtb.common.api.Geo.Builder clearCountry() { - country = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'region' field */ - public java.lang.CharSequence getRegion() { - return region; - } - - /** Sets the value of the 'region' field */ - public org.openrtb.common.api.Geo.Builder setRegion(java.lang.CharSequence value) { - validate(fields()[3], value); - this.region = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'region' field has been set */ - public boolean hasRegion() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'region' field */ - public org.openrtb.common.api.Geo.Builder clearRegion() { - region = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'regionfips104' field */ - public java.lang.CharSequence getRegionfips104() { - return regionfips104; - } - - /** Sets the value of the 'regionfips104' field */ - public org.openrtb.common.api.Geo.Builder setRegionfips104(java.lang.CharSequence value) { - validate(fields()[4], value); - this.regionfips104 = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'regionfips104' field has been set */ - public boolean hasRegionfips104() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'regionfips104' field */ - public org.openrtb.common.api.Geo.Builder clearRegionfips104() { - regionfips104 = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'metro' field */ - public java.lang.CharSequence getMetro() { - return metro; - } - - /** Sets the value of the 'metro' field */ - public org.openrtb.common.api.Geo.Builder setMetro(java.lang.CharSequence value) { - validate(fields()[5], value); - this.metro = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'metro' field has been set */ - public boolean hasMetro() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'metro' field */ - public org.openrtb.common.api.Geo.Builder clearMetro() { - metro = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'city' field */ - public java.lang.CharSequence getCity() { - return city; - } - - /** Sets the value of the 'city' field */ - public org.openrtb.common.api.Geo.Builder setCity(java.lang.CharSequence value) { - validate(fields()[6], value); - this.city = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'city' field has been set */ - public boolean hasCity() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'city' field */ - public org.openrtb.common.api.Geo.Builder clearCity() { - city = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'zip' field */ - public java.lang.CharSequence getZip() { - return zip; - } - - /** Sets the value of the 'zip' field */ - public org.openrtb.common.api.Geo.Builder setZip(java.lang.CharSequence value) { - validate(fields()[7], value); - this.zip = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'zip' field has been set */ - public boolean hasZip() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'zip' field */ - public org.openrtb.common.api.Geo.Builder clearZip() { - zip = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'type' field */ - public java.lang.Integer getType() { - return type; - } - - /** Sets the value of the 'type' field */ - public org.openrtb.common.api.Geo.Builder setType(java.lang.Integer value) { - validate(fields()[8], value); - this.type = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'type' field has been set */ - public boolean hasType() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'type' field */ - public org.openrtb.common.api.Geo.Builder clearType() { - type = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Geo.Builder setExt(java.lang.CharSequence value) { - validate(fields()[9], value); - this.ext = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Geo.Builder clearExt() { - ext = null; - fieldSetFlags()[9] = false; - return this; - } - - @Override - public Geo build() { - try { - Geo record = new Geo(); - record.lat = fieldSetFlags()[0] ? this.lat : (java.lang.Float) defaultValue(fields()[0]); - record.lon = fieldSetFlags()[1] ? this.lon : (java.lang.Float) defaultValue(fields()[1]); - record.country = fieldSetFlags()[2] ? this.country : (java.lang.CharSequence) defaultValue(fields()[2]); - record.region = fieldSetFlags()[3] ? this.region : (java.lang.CharSequence) defaultValue(fields()[3]); - record.regionfips104 = fieldSetFlags()[4] ? this.regionfips104 : (java.lang.CharSequence) defaultValue(fields()[4]); - record.metro = fieldSetFlags()[5] ? this.metro : (java.lang.CharSequence) defaultValue(fields()[5]); - record.city = fieldSetFlags()[6] ? this.city : (java.lang.CharSequence) defaultValue(fields()[6]); - record.zip = fieldSetFlags()[7] ? this.zip : (java.lang.CharSequence) defaultValue(fields()[7]); - record.type = fieldSetFlags()[8] ? this.type : (java.lang.Integer) defaultValue(fields()[8]); - record.ext = fieldSetFlags()[9] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[9]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Identification.java b/common/src/main/java/org/openrtb/common/api/Identification.java deleted file mode 100644 index 09f6670..0000000 --- a/common/src/main/java/org/openrtb/common/api/Identification.java +++ /dev/null @@ -1,236 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Identification extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Identification\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"organization\",\"type\":[\"string\",\"null\"]},{\"name\":\"timestamp\",\"type\":[\"long\",\"null\"]},{\"name\":\"token\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence organization; - public java.lang.Long timestamp; - public java.lang.CharSequence token; - - /** - * Default constructor. - */ - public Identification() {} - - /** - * All-args constructor. - */ - public Identification(java.lang.CharSequence organization, java.lang.Long timestamp, java.lang.CharSequence token) { - this.organization = organization; - this.timestamp = timestamp; - this.token = token; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return organization; - case 1: return timestamp; - case 2: return token; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: organization = (java.lang.CharSequence)value$; break; - case 1: timestamp = (java.lang.Long)value$; break; - case 2: token = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'organization' field. - */ - public java.lang.CharSequence getOrganization() { - return organization; - } - - /** - * Sets the value of the 'organization' field. - * @param value the value to set. - */ - public void setOrganization(java.lang.CharSequence value) { - this.organization = value; - } - - /** - * Gets the value of the 'timestamp' field. - */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** - * Sets the value of the 'timestamp' field. - * @param value the value to set. - */ - public void setTimestamp(java.lang.Long value) { - this.timestamp = value; - } - - /** - * Gets the value of the 'token' field. - */ - public java.lang.CharSequence getToken() { - return token; - } - - /** - * Sets the value of the 'token' field. - * @param value the value to set. - */ - public void setToken(java.lang.CharSequence value) { - this.token = value; - } - - /** Creates a new Identification RecordBuilder */ - public static org.openrtb.common.api.Identification.Builder newBuilder() { - return new org.openrtb.common.api.Identification.Builder(); - } - - /** Creates a new Identification RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Identification.Builder newBuilder(org.openrtb.common.api.Identification.Builder other) { - return new org.openrtb.common.api.Identification.Builder(other); - } - - /** Creates a new Identification RecordBuilder by copying an existing Identification instance */ - public static org.openrtb.common.api.Identification.Builder newBuilder(org.openrtb.common.api.Identification other) { - return new org.openrtb.common.api.Identification.Builder(other); - } - - /** - * RecordBuilder for Identification instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence organization; - private java.lang.Long timestamp; - private java.lang.CharSequence token; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Identification.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Identification.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Identification instance */ - private Builder(org.openrtb.common.api.Identification other) { - super(org.openrtb.common.api.Identification.SCHEMA$); - if (isValidValue(fields()[0], other.organization)) { - this.organization = data().deepCopy(fields()[0].schema(), other.organization); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.timestamp)) { - this.timestamp = data().deepCopy(fields()[1].schema(), other.timestamp); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.token)) { - this.token = data().deepCopy(fields()[2].schema(), other.token); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'organization' field */ - public java.lang.CharSequence getOrganization() { - return organization; - } - - /** Sets the value of the 'organization' field */ - public org.openrtb.common.api.Identification.Builder setOrganization(java.lang.CharSequence value) { - validate(fields()[0], value); - this.organization = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'organization' field has been set */ - public boolean hasOrganization() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'organization' field */ - public org.openrtb.common.api.Identification.Builder clearOrganization() { - organization = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'timestamp' field */ - public java.lang.Long getTimestamp() { - return timestamp; - } - - /** Sets the value of the 'timestamp' field */ - public org.openrtb.common.api.Identification.Builder setTimestamp(java.lang.Long value) { - validate(fields()[1], value); - this.timestamp = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'timestamp' field has been set */ - public boolean hasTimestamp() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'timestamp' field */ - public org.openrtb.common.api.Identification.Builder clearTimestamp() { - timestamp = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'token' field */ - public java.lang.CharSequence getToken() { - return token; - } - - /** Sets the value of the 'token' field */ - public org.openrtb.common.api.Identification.Builder setToken(java.lang.CharSequence value) { - validate(fields()[2], value); - this.token = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'token' field has been set */ - public boolean hasToken() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'token' field */ - public org.openrtb.common.api.Identification.Builder clearToken() { - token = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public Identification build() { - try { - Identification record = new Identification(); - record.organization = fieldSetFlags()[0] ? this.organization : (java.lang.CharSequence) defaultValue(fields()[0]); - record.timestamp = fieldSetFlags()[1] ? this.timestamp : (java.lang.Long) defaultValue(fields()[1]); - record.token = fieldSetFlags()[2] ? this.token : (java.lang.CharSequence) defaultValue(fields()[2]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Impression.java b/common/src/main/java/org/openrtb/common/api/Impression.java deleted file mode 100644 index dd527fb..0000000 --- a/common/src/main/java/org/openrtb/common/api/Impression.java +++ /dev/null @@ -1,636 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Impression extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Impression\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"banner\",\"type\":[{\"type\":\"record\",\"name\":\"Banner\",\"fields\":[{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"btype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"mimes\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"topframe\",\"type\":[\"int\",\"null\"]},{\"name\":\"expdir\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"video\",\"type\":[{\"type\":\"record\",\"name\":\"Video\",\"fields\":[{\"name\":\"mimes\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"linearity\",\"type\":[\"int\",\"null\"]},{\"name\":\"minduration\",\"type\":[\"int\",\"null\"]},{\"name\":\"maxduration\",\"type\":[\"int\",\"null\"]},{\"name\":\"protocol\",\"type\":[\"int\",\"null\"]},{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"startdelay\",\"type\":[\"int\",\"null\"]},{\"name\":\"sequence\",\"type\":[\"int\",\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"maxextended\",\"type\":[\"int\",\"null\"]},{\"name\":\"minbitrate\",\"type\":[\"int\",\"null\"]},{\"name\":\"maxbitrate\",\"type\":[\"int\",\"null\"]},{\"name\":\"boxingallowed\",\"type\":[\"int\",\"null\"]},{\"name\":\"playbackmethod\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"delivery\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"companionad\",\"type\":[{\"type\":\"array\",\"items\":\"Banner\"},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"companiontype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"displaymanager\",\"type\":[\"string\",\"null\"]},{\"name\":\"displaymanagerver\",\"type\":[\"string\",\"null\"]},{\"name\":\"instl\",\"type\":[\"int\",\"null\"]},{\"name\":\"tagid\",\"type\":[\"string\",\"null\"]},{\"name\":\"bidfloor\",\"type\":[\"float\",\"null\"]},{\"name\":\"bidfloorcur\",\"type\":[\"string\",\"null\"]},{\"name\":\"iframebuster\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public org.openrtb.common.api.Banner banner; - public org.openrtb.common.api.Video video; - public java.lang.CharSequence displaymanager; - public java.lang.CharSequence displaymanagerver; - public java.lang.Integer instl; - public java.lang.CharSequence tagid; - public java.lang.Float bidfloor; - public java.lang.CharSequence bidfloorcur; - public java.util.List iframebuster; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Impression() {} - - /** - * All-args constructor. - */ - public Impression(java.lang.CharSequence id, org.openrtb.common.api.Banner banner, org.openrtb.common.api.Video video, java.lang.CharSequence displaymanager, java.lang.CharSequence displaymanagerver, java.lang.Integer instl, java.lang.CharSequence tagid, java.lang.Float bidfloor, java.lang.CharSequence bidfloorcur, java.util.List iframebuster, java.lang.CharSequence ext) { - this.id = id; - this.banner = banner; - this.video = video; - this.displaymanager = displaymanager; - this.displaymanagerver = displaymanagerver; - this.instl = instl; - this.tagid = tagid; - this.bidfloor = bidfloor; - this.bidfloorcur = bidfloorcur; - this.iframebuster = iframebuster; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return banner; - case 2: return video; - case 3: return displaymanager; - case 4: return displaymanagerver; - case 5: return instl; - case 6: return tagid; - case 7: return bidfloor; - case 8: return bidfloorcur; - case 9: return iframebuster; - case 10: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: banner = (org.openrtb.common.api.Banner)value$; break; - case 2: video = (org.openrtb.common.api.Video)value$; break; - case 3: displaymanager = (java.lang.CharSequence)value$; break; - case 4: displaymanagerver = (java.lang.CharSequence)value$; break; - case 5: instl = (java.lang.Integer)value$; break; - case 6: tagid = (java.lang.CharSequence)value$; break; - case 7: bidfloor = (java.lang.Float)value$; break; - case 8: bidfloorcur = (java.lang.CharSequence)value$; break; - case 9: iframebuster = (java.util.List)value$; break; - case 10: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'banner' field. - */ - public org.openrtb.common.api.Banner getBanner() { - return banner; - } - - /** - * Sets the value of the 'banner' field. - * @param value the value to set. - */ - public void setBanner(org.openrtb.common.api.Banner value) { - this.banner = value; - } - - /** - * Gets the value of the 'video' field. - */ - public org.openrtb.common.api.Video getVideo() { - return video; - } - - /** - * Sets the value of the 'video' field. - * @param value the value to set. - */ - public void setVideo(org.openrtb.common.api.Video value) { - this.video = value; - } - - /** - * Gets the value of the 'displaymanager' field. - */ - public java.lang.CharSequence getDisplaymanager() { - return displaymanager; - } - - /** - * Sets the value of the 'displaymanager' field. - * @param value the value to set. - */ - public void setDisplaymanager(java.lang.CharSequence value) { - this.displaymanager = value; - } - - /** - * Gets the value of the 'displaymanagerver' field. - */ - public java.lang.CharSequence getDisplaymanagerver() { - return displaymanagerver; - } - - /** - * Sets the value of the 'displaymanagerver' field. - * @param value the value to set. - */ - public void setDisplaymanagerver(java.lang.CharSequence value) { - this.displaymanagerver = value; - } - - /** - * Gets the value of the 'instl' field. - */ - public java.lang.Integer getInstl() { - return instl; - } - - /** - * Sets the value of the 'instl' field. - * @param value the value to set. - */ - public void setInstl(java.lang.Integer value) { - this.instl = value; - } - - /** - * Gets the value of the 'tagid' field. - */ - public java.lang.CharSequence getTagid() { - return tagid; - } - - /** - * Sets the value of the 'tagid' field. - * @param value the value to set. - */ - public void setTagid(java.lang.CharSequence value) { - this.tagid = value; - } - - /** - * Gets the value of the 'bidfloor' field. - */ - public java.lang.Float getBidfloor() { - return bidfloor; - } - - /** - * Sets the value of the 'bidfloor' field. - * @param value the value to set. - */ - public void setBidfloor(java.lang.Float value) { - this.bidfloor = value; - } - - /** - * Gets the value of the 'bidfloorcur' field. - */ - public java.lang.CharSequence getBidfloorcur() { - return bidfloorcur; - } - - /** - * Sets the value of the 'bidfloorcur' field. - * @param value the value to set. - */ - public void setBidfloorcur(java.lang.CharSequence value) { - this.bidfloorcur = value; - } - - /** - * Gets the value of the 'iframebuster' field. - */ - public java.util.List getIframebuster() { - return iframebuster; - } - - /** - * Sets the value of the 'iframebuster' field. - * @param value the value to set. - */ - public void setIframebuster(java.util.List value) { - this.iframebuster = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Impression RecordBuilder */ - public static org.openrtb.common.api.Impression.Builder newBuilder() { - return new org.openrtb.common.api.Impression.Builder(); - } - - /** Creates a new Impression RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Impression.Builder newBuilder(org.openrtb.common.api.Impression.Builder other) { - return new org.openrtb.common.api.Impression.Builder(other); - } - - /** Creates a new Impression RecordBuilder by copying an existing Impression instance */ - public static org.openrtb.common.api.Impression.Builder newBuilder(org.openrtb.common.api.Impression other) { - return new org.openrtb.common.api.Impression.Builder(other); - } - - /** - * RecordBuilder for Impression instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private org.openrtb.common.api.Banner banner; - private org.openrtb.common.api.Video video; - private java.lang.CharSequence displaymanager; - private java.lang.CharSequence displaymanagerver; - private java.lang.Integer instl; - private java.lang.CharSequence tagid; - private java.lang.Float bidfloor; - private java.lang.CharSequence bidfloorcur; - private java.util.List iframebuster; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Impression.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Impression.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Impression instance */ - private Builder(org.openrtb.common.api.Impression other) { - super(org.openrtb.common.api.Impression.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.banner)) { - this.banner = data().deepCopy(fields()[1].schema(), other.banner); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.video)) { - this.video = data().deepCopy(fields()[2].schema(), other.video); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.displaymanager)) { - this.displaymanager = data().deepCopy(fields()[3].schema(), other.displaymanager); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.displaymanagerver)) { - this.displaymanagerver = data().deepCopy(fields()[4].schema(), other.displaymanagerver); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.instl)) { - this.instl = data().deepCopy(fields()[5].schema(), other.instl); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.tagid)) { - this.tagid = data().deepCopy(fields()[6].schema(), other.tagid); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.bidfloor)) { - this.bidfloor = data().deepCopy(fields()[7].schema(), other.bidfloor); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.bidfloorcur)) { - this.bidfloorcur = data().deepCopy(fields()[8].schema(), other.bidfloorcur); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.iframebuster)) { - this.iframebuster = data().deepCopy(fields()[9].schema(), other.iframebuster); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.ext)) { - this.ext = data().deepCopy(fields()[10].schema(), other.ext); - fieldSetFlags()[10] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Impression.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Impression.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'banner' field */ - public org.openrtb.common.api.Banner getBanner() { - return banner; - } - - /** Sets the value of the 'banner' field */ - public org.openrtb.common.api.Impression.Builder setBanner(org.openrtb.common.api.Banner value) { - validate(fields()[1], value); - this.banner = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'banner' field has been set */ - public boolean hasBanner() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'banner' field */ - public org.openrtb.common.api.Impression.Builder clearBanner() { - banner = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'video' field */ - public org.openrtb.common.api.Video getVideo() { - return video; - } - - /** Sets the value of the 'video' field */ - public org.openrtb.common.api.Impression.Builder setVideo(org.openrtb.common.api.Video value) { - validate(fields()[2], value); - this.video = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'video' field has been set */ - public boolean hasVideo() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'video' field */ - public org.openrtb.common.api.Impression.Builder clearVideo() { - video = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'displaymanager' field */ - public java.lang.CharSequence getDisplaymanager() { - return displaymanager; - } - - /** Sets the value of the 'displaymanager' field */ - public org.openrtb.common.api.Impression.Builder setDisplaymanager(java.lang.CharSequence value) { - validate(fields()[3], value); - this.displaymanager = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'displaymanager' field has been set */ - public boolean hasDisplaymanager() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'displaymanager' field */ - public org.openrtb.common.api.Impression.Builder clearDisplaymanager() { - displaymanager = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'displaymanagerver' field */ - public java.lang.CharSequence getDisplaymanagerver() { - return displaymanagerver; - } - - /** Sets the value of the 'displaymanagerver' field */ - public org.openrtb.common.api.Impression.Builder setDisplaymanagerver(java.lang.CharSequence value) { - validate(fields()[4], value); - this.displaymanagerver = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'displaymanagerver' field has been set */ - public boolean hasDisplaymanagerver() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'displaymanagerver' field */ - public org.openrtb.common.api.Impression.Builder clearDisplaymanagerver() { - displaymanagerver = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'instl' field */ - public java.lang.Integer getInstl() { - return instl; - } - - /** Sets the value of the 'instl' field */ - public org.openrtb.common.api.Impression.Builder setInstl(java.lang.Integer value) { - validate(fields()[5], value); - this.instl = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'instl' field has been set */ - public boolean hasInstl() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'instl' field */ - public org.openrtb.common.api.Impression.Builder clearInstl() { - instl = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'tagid' field */ - public java.lang.CharSequence getTagid() { - return tagid; - } - - /** Sets the value of the 'tagid' field */ - public org.openrtb.common.api.Impression.Builder setTagid(java.lang.CharSequence value) { - validate(fields()[6], value); - this.tagid = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'tagid' field has been set */ - public boolean hasTagid() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'tagid' field */ - public org.openrtb.common.api.Impression.Builder clearTagid() { - tagid = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'bidfloor' field */ - public java.lang.Float getBidfloor() { - return bidfloor; - } - - /** Sets the value of the 'bidfloor' field */ - public org.openrtb.common.api.Impression.Builder setBidfloor(java.lang.Float value) { - validate(fields()[7], value); - this.bidfloor = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'bidfloor' field has been set */ - public boolean hasBidfloor() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'bidfloor' field */ - public org.openrtb.common.api.Impression.Builder clearBidfloor() { - bidfloor = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'bidfloorcur' field */ - public java.lang.CharSequence getBidfloorcur() { - return bidfloorcur; - } - - /** Sets the value of the 'bidfloorcur' field */ - public org.openrtb.common.api.Impression.Builder setBidfloorcur(java.lang.CharSequence value) { - validate(fields()[8], value); - this.bidfloorcur = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'bidfloorcur' field has been set */ - public boolean hasBidfloorcur() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'bidfloorcur' field */ - public org.openrtb.common.api.Impression.Builder clearBidfloorcur() { - bidfloorcur = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'iframebuster' field */ - public java.util.List getIframebuster() { - return iframebuster; - } - - /** Sets the value of the 'iframebuster' field */ - public org.openrtb.common.api.Impression.Builder setIframebuster(java.util.List value) { - validate(fields()[9], value); - this.iframebuster = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'iframebuster' field has been set */ - public boolean hasIframebuster() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'iframebuster' field */ - public org.openrtb.common.api.Impression.Builder clearIframebuster() { - iframebuster = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Impression.Builder setExt(java.lang.CharSequence value) { - validate(fields()[10], value); - this.ext = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Impression.Builder clearExt() { - ext = null; - fieldSetFlags()[10] = false; - return this; - } - - @Override - public Impression build() { - try { - Impression record = new Impression(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.banner = fieldSetFlags()[1] ? this.banner : (org.openrtb.common.api.Banner) defaultValue(fields()[1]); - record.video = fieldSetFlags()[2] ? this.video : (org.openrtb.common.api.Video) defaultValue(fields()[2]); - record.displaymanager = fieldSetFlags()[3] ? this.displaymanager : (java.lang.CharSequence) defaultValue(fields()[3]); - record.displaymanagerver = fieldSetFlags()[4] ? this.displaymanagerver : (java.lang.CharSequence) defaultValue(fields()[4]); - record.instl = fieldSetFlags()[5] ? this.instl : (java.lang.Integer) defaultValue(fields()[5]); - record.tagid = fieldSetFlags()[6] ? this.tagid : (java.lang.CharSequence) defaultValue(fields()[6]); - record.bidfloor = fieldSetFlags()[7] ? this.bidfloor : (java.lang.Float) defaultValue(fields()[7]); - record.bidfloorcur = fieldSetFlags()[8] ? this.bidfloorcur : (java.lang.CharSequence) defaultValue(fields()[8]); - record.iframebuster = fieldSetFlags()[9] ? this.iframebuster : (java.util.List) defaultValue(fields()[9]); - record.ext = fieldSetFlags()[10] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[10]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/OpenRTBAPI.java b/common/src/main/java/org/openrtb/common/api/OpenRTBAPI.java deleted file mode 100644 index 6ec3fc0..0000000 --- a/common/src/main/java/org/openrtb/common/api/OpenRTBAPI.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; - -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public interface OpenRTBAPI { - public static final org.apache.avro.Protocol PROTOCOL = org.apache.avro.Protocol.parse("{\"protocol\":\"OpenRTBAPI\",\"namespace\":\"org.openrtb.common.api\",\"version\":\"2.1\",\"types\":[{\"type\":\"record\",\"name\":\"Segment\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"value\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Data\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"segment\",\"type\":[{\"type\":\"array\",\"items\":\"Segment\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Geo\",\"fields\":[{\"name\":\"lat\",\"type\":[\"float\",\"null\"]},{\"name\":\"lon\",\"type\":[\"float\",\"null\"]},{\"name\":\"country\",\"type\":[\"string\",\"null\"]},{\"name\":\"region\",\"type\":[\"string\",\"null\"]},{\"name\":\"regionfips104\",\"type\":[\"string\",\"null\"]},{\"name\":\"metro\",\"type\":[\"string\",\"null\"]},{\"name\":\"city\",\"type\":[\"string\",\"null\"]},{\"name\":\"zip\",\"type\":[\"string\",\"null\"]},{\"name\":\"type\",\"type\":[\"int\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"User\",\"fields\":[{\"name\":\"Id\",\"type\":[\"string\",\"null\"]},{\"name\":\"buyeruid\",\"type\":[\"string\",\"null\"]},{\"name\":\"yob\",\"type\":[\"int\",\"null\"]},{\"name\":\"gender\",\"type\":[\"string\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"customdata\",\"type\":[\"string\",\"null\"]},{\"name\":\"geo\",\"type\":[\"Geo\",\"null\"]},{\"name\":\"data\",\"type\":[{\"type\":\"array\",\"items\":\"Data\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Device\",\"fields\":[{\"name\":\"dnt\",\"type\":[\"int\",\"null\"]},{\"name\":\"ua\",\"type\":[\"string\",\"null\"]},{\"name\":\"ip\",\"type\":[\"string\",\"null\"]},{\"name\":\"geo\",\"type\":[\"Geo\",\"null\"]},{\"name\":\"didsha1\",\"type\":[\"string\",\"null\"]},{\"name\":\"didmd5\",\"type\":[\"string\",\"null\"]},{\"name\":\"dpidsha1\",\"type\":[\"string\",\"null\"]},{\"name\":\"dpidmd5\",\"type\":[\"string\",\"null\"]},{\"name\":\"ipv6\",\"type\":[\"string\",\"null\"]},{\"name\":\"carrier\",\"type\":[\"string\",\"null\"]},{\"name\":\"language\",\"type\":[\"string\",\"null\"]},{\"name\":\"make\",\"type\":[\"string\",\"null\"]},{\"name\":\"model\",\"type\":[\"string\",\"null\"]},{\"name\":\"os\",\"type\":[\"string\",\"null\"]},{\"name\":\"Osv\",\"type\":[\"string\",\"null\"]},{\"name\":\"Js\",\"type\":[\"int\",\"null\"]},{\"name\":\"connectiontype\",\"type\":[\"int\",\"null\"]},{\"name\":\"deviceType\",\"type\":[\"int\",\"null\"]},{\"name\":\"flashver\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Producer\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Publisher\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Content\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"episode\",\"type\":[\"int\",\"null\"]},{\"name\":\"title\",\"type\":[\"string\",\"null\"]},{\"name\":\"series\",\"type\":[\"string\",\"null\"]},{\"name\":\"season\",\"type\":[\"string\",\"null\"]},{\"name\":\"url\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"videoquality\",\"type\":[\"int\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"contentrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"userrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"context\",\"type\":[\"string\",\"null\"]},{\"name\":\"livestream\",\"type\":[\"int\",\"null\"]},{\"name\":\"sourcerelationship\",\"type\":[\"int\",\"null\"]},{\"name\":\"producer\",\"type\":[\"Producer\",\"null\"]},{\"name\":\"len\",\"type\":[\"int\",\"null\"]},{\"name\":\"qagmediarating\",\"type\":[\"int\",\"null\"]},{\"name\":\"embeddable\",\"type\":[\"int\",\"null\"]},{\"name\":\"language\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"App\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"sectioncat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"pagecat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"ver\",\"type\":[\"string\",\"null\"]},{\"name\":\"bundle\",\"type\":[\"string\",\"null\"]},{\"name\":\"privacypolicy\",\"type\":[\"int\",\"null\"]},{\"name\":\"paid\",\"type\":[\"int\",\"null\"]},{\"name\":\"publisher\",\"type\":[\"Publisher\",\"null\"]},{\"name\":\"content\",\"type\":[\"Content\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"storeurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Site\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"sectioncat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"pagecat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"page\",\"type\":[\"string\",\"null\"]},{\"name\":\"privacypolicy\",\"type\":[\"int\",\"null\"]},{\"name\":\"ref\",\"type\":[\"string\",\"null\"]},{\"name\":\"search\",\"type\":[\"int\",\"null\"]},{\"name\":\"publisher\",\"type\":[\"Publisher\",\"null\"]},{\"name\":\"content\",\"type\":[\"Content\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Banner\",\"fields\":[{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"btype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"mimes\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"topframe\",\"type\":[\"int\",\"null\"]},{\"name\":\"expdir\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Video\",\"fields\":[{\"name\":\"mimes\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"linearity\",\"type\":[\"int\",\"null\"]},{\"name\":\"minduration\",\"type\":[\"int\",\"null\"]},{\"name\":\"maxduration\",\"type\":[\"int\",\"null\"]},{\"name\":\"protocol\",\"type\":[\"int\",\"null\"]},{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"startdelay\",\"type\":[\"int\",\"null\"]},{\"name\":\"sequence\",\"type\":[\"int\",\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"maxextended\",\"type\":[\"int\",\"null\"]},{\"name\":\"minbitrate\",\"type\":[\"int\",\"null\"]},{\"name\":\"maxbitrate\",\"type\":[\"int\",\"null\"]},{\"name\":\"boxingallowed\",\"type\":[\"int\",\"null\"]},{\"name\":\"playbackmethod\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"delivery\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"companionad\",\"type\":[{\"type\":\"array\",\"items\":\"Banner\"},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"companiontype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Impression\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"banner\",\"type\":[\"Banner\",\"null\"]},{\"name\":\"video\",\"type\":[\"Video\",\"null\"]},{\"name\":\"displaymanager\",\"type\":[\"string\",\"null\"]},{\"name\":\"displaymanagerver\",\"type\":[\"string\",\"null\"]},{\"name\":\"instl\",\"type\":[\"int\",\"null\"]},{\"name\":\"tagid\",\"type\":[\"string\",\"null\"]},{\"name\":\"bidfloor\",\"type\":[\"float\",\"null\"]},{\"name\":\"bidfloorcur\",\"type\":[\"string\",\"null\"]},{\"name\":\"iframebuster\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"BidRequest\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"imp\",\"type\":{\"type\":\"array\",\"items\":\"Impression\"}},{\"name\":\"site\",\"type\":[\"Site\",\"null\"]},{\"name\":\"app\",\"type\":[\"App\",\"null\"]},{\"name\":\"device\",\"type\":[\"Device\",\"null\"]},{\"name\":\"user\",\"type\":[\"User\",\"null\"]},{\"name\":\"at\",\"type\":[\"int\",\"null\"]},{\"name\":\"tmax\",\"type\":[\"int\",\"null\"]},{\"name\":\"wseat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"allimps\",\"type\":[\"int\",\"null\"]},{\"name\":\"cur\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"bcat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"badv\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"Bid\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"impid\",\"type\":[\"string\",\"null\"]},{\"name\":\"price\",\"type\":[\"float\",\"null\"]},{\"name\":\"adid\",\"type\":[\"string\",\"null\"]},{\"name\":\"nurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"adm\",\"type\":[\"string\",\"null\"]},{\"name\":\"adomain\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"iurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"cid\",\"type\":[\"string\",\"null\"]},{\"name\":\"crid\",\"type\":[\"string\",\"null\"]},{\"name\":\"attr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"SeatBid\",\"fields\":[{\"name\":\"bid\",\"type\":{\"type\":\"array\",\"items\":\"Bid\"}},{\"name\":\"seat\",\"type\":[\"string\",\"null\"]},{\"name\":\"group\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},{\"type\":\"record\",\"name\":\"BidResponse\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"seatbid\",\"type\":{\"type\":\"array\",\"items\":\"SeatBid\"}},{\"name\":\"bidid\",\"type\":[\"string\",\"null\"]},{\"name\":\"cur\",\"type\":[\"string\",\"null\"]},{\"name\":\"customdata\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}],\"messages\":{\"process\":{\"request\":[{\"name\":\"request\",\"type\":\"BidRequest\"}],\"response\":\"BidResponse\"}}}"); - org.openrtb.common.api.BidResponse process(org.openrtb.common.api.BidRequest request) throws org.apache.avro.AvroRemoteException; - - @SuppressWarnings("all") - public interface Callback extends OpenRTBAPI { - public static final org.apache.avro.Protocol PROTOCOL = org.openrtb.common.api.OpenRTBAPI.PROTOCOL; - void process(org.openrtb.common.api.BidRequest request, org.apache.avro.ipc.Callback callback) throws java.io.IOException; - } -} \ No newline at end of file diff --git a/common/src/main/java/org/openrtb/common/api/Producer.java b/common/src/main/java/org/openrtb/common/api/Producer.java deleted file mode 100644 index f05b8a1..0000000 --- a/common/src/main/java/org/openrtb/common/api/Producer.java +++ /dev/null @@ -1,336 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Producer extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Producer\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.lang.CharSequence name; - public java.util.List cat; - public java.lang.CharSequence domain; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Producer() {} - - /** - * All-args constructor. - */ - public Producer(java.lang.CharSequence id, java.lang.CharSequence name, java.util.List cat, java.lang.CharSequence domain, java.lang.CharSequence ext) { - this.id = id; - this.name = name; - this.cat = cat; - this.domain = domain; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return name; - case 2: return cat; - case 3: return domain; - case 4: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: name = (java.lang.CharSequence)value$; break; - case 2: cat = (java.util.List)value$; break; - case 3: domain = (java.lang.CharSequence)value$; break; - case 4: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'name' field. - */ - public java.lang.CharSequence getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * @param value the value to set. - */ - public void setName(java.lang.CharSequence value) { - this.name = value; - } - - /** - * Gets the value of the 'cat' field. - */ - public java.util.List getCat() { - return cat; - } - - /** - * Sets the value of the 'cat' field. - * @param value the value to set. - */ - public void setCat(java.util.List value) { - this.cat = value; - } - - /** - * Gets the value of the 'domain' field. - */ - public java.lang.CharSequence getDomain() { - return domain; - } - - /** - * Sets the value of the 'domain' field. - * @param value the value to set. - */ - public void setDomain(java.lang.CharSequence value) { - this.domain = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Producer RecordBuilder */ - public static org.openrtb.common.api.Producer.Builder newBuilder() { - return new org.openrtb.common.api.Producer.Builder(); - } - - /** Creates a new Producer RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Producer.Builder newBuilder(org.openrtb.common.api.Producer.Builder other) { - return new org.openrtb.common.api.Producer.Builder(other); - } - - /** Creates a new Producer RecordBuilder by copying an existing Producer instance */ - public static org.openrtb.common.api.Producer.Builder newBuilder(org.openrtb.common.api.Producer other) { - return new org.openrtb.common.api.Producer.Builder(other); - } - - /** - * RecordBuilder for Producer instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.lang.CharSequence name; - private java.util.List cat; - private java.lang.CharSequence domain; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Producer.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Producer.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Producer instance */ - private Builder(org.openrtb.common.api.Producer other) { - super(org.openrtb.common.api.Producer.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.cat)) { - this.cat = data().deepCopy(fields()[2].schema(), other.cat); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.domain)) { - this.domain = data().deepCopy(fields()[3].schema(), other.domain); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.ext)) { - this.ext = data().deepCopy(fields()[4].schema(), other.ext); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Producer.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Producer.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'name' field */ - public java.lang.CharSequence getName() { - return name; - } - - /** Sets the value of the 'name' field */ - public org.openrtb.common.api.Producer.Builder setName(java.lang.CharSequence value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public org.openrtb.common.api.Producer.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'cat' field */ - public java.util.List getCat() { - return cat; - } - - /** Sets the value of the 'cat' field */ - public org.openrtb.common.api.Producer.Builder setCat(java.util.List value) { - validate(fields()[2], value); - this.cat = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'cat' field has been set */ - public boolean hasCat() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'cat' field */ - public org.openrtb.common.api.Producer.Builder clearCat() { - cat = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'domain' field */ - public java.lang.CharSequence getDomain() { - return domain; - } - - /** Sets the value of the 'domain' field */ - public org.openrtb.common.api.Producer.Builder setDomain(java.lang.CharSequence value) { - validate(fields()[3], value); - this.domain = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'domain' field has been set */ - public boolean hasDomain() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'domain' field */ - public org.openrtb.common.api.Producer.Builder clearDomain() { - domain = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Producer.Builder setExt(java.lang.CharSequence value) { - validate(fields()[4], value); - this.ext = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Producer.Builder clearExt() { - ext = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public Producer build() { - try { - Producer record = new Producer(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.CharSequence) defaultValue(fields()[1]); - record.cat = fieldSetFlags()[2] ? this.cat : (java.util.List) defaultValue(fields()[2]); - record.domain = fieldSetFlags()[3] ? this.domain : (java.lang.CharSequence) defaultValue(fields()[3]); - record.ext = fieldSetFlags()[4] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[4]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Publisher.java b/common/src/main/java/org/openrtb/common/api/Publisher.java deleted file mode 100644 index 604b789..0000000 --- a/common/src/main/java/org/openrtb/common/api/Publisher.java +++ /dev/null @@ -1,336 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Publisher extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Publisher\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.lang.CharSequence name; - public java.util.List cat; - public java.lang.CharSequence domain; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Publisher() {} - - /** - * All-args constructor. - */ - public Publisher(java.lang.CharSequence id, java.lang.CharSequence name, java.util.List cat, java.lang.CharSequence domain, java.lang.CharSequence ext) { - this.id = id; - this.name = name; - this.cat = cat; - this.domain = domain; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return name; - case 2: return cat; - case 3: return domain; - case 4: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: name = (java.lang.CharSequence)value$; break; - case 2: cat = (java.util.List)value$; break; - case 3: domain = (java.lang.CharSequence)value$; break; - case 4: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'name' field. - */ - public java.lang.CharSequence getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * @param value the value to set. - */ - public void setName(java.lang.CharSequence value) { - this.name = value; - } - - /** - * Gets the value of the 'cat' field. - */ - public java.util.List getCat() { - return cat; - } - - /** - * Sets the value of the 'cat' field. - * @param value the value to set. - */ - public void setCat(java.util.List value) { - this.cat = value; - } - - /** - * Gets the value of the 'domain' field. - */ - public java.lang.CharSequence getDomain() { - return domain; - } - - /** - * Sets the value of the 'domain' field. - * @param value the value to set. - */ - public void setDomain(java.lang.CharSequence value) { - this.domain = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Publisher RecordBuilder */ - public static org.openrtb.common.api.Publisher.Builder newBuilder() { - return new org.openrtb.common.api.Publisher.Builder(); - } - - /** Creates a new Publisher RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Publisher.Builder newBuilder(org.openrtb.common.api.Publisher.Builder other) { - return new org.openrtb.common.api.Publisher.Builder(other); - } - - /** Creates a new Publisher RecordBuilder by copying an existing Publisher instance */ - public static org.openrtb.common.api.Publisher.Builder newBuilder(org.openrtb.common.api.Publisher other) { - return new org.openrtb.common.api.Publisher.Builder(other); - } - - /** - * RecordBuilder for Publisher instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.lang.CharSequence name; - private java.util.List cat; - private java.lang.CharSequence domain; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Publisher.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Publisher.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Publisher instance */ - private Builder(org.openrtb.common.api.Publisher other) { - super(org.openrtb.common.api.Publisher.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.cat)) { - this.cat = data().deepCopy(fields()[2].schema(), other.cat); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.domain)) { - this.domain = data().deepCopy(fields()[3].schema(), other.domain); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.ext)) { - this.ext = data().deepCopy(fields()[4].schema(), other.ext); - fieldSetFlags()[4] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Publisher.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Publisher.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'name' field */ - public java.lang.CharSequence getName() { - return name; - } - - /** Sets the value of the 'name' field */ - public org.openrtb.common.api.Publisher.Builder setName(java.lang.CharSequence value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public org.openrtb.common.api.Publisher.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'cat' field */ - public java.util.List getCat() { - return cat; - } - - /** Sets the value of the 'cat' field */ - public org.openrtb.common.api.Publisher.Builder setCat(java.util.List value) { - validate(fields()[2], value); - this.cat = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'cat' field has been set */ - public boolean hasCat() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'cat' field */ - public org.openrtb.common.api.Publisher.Builder clearCat() { - cat = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'domain' field */ - public java.lang.CharSequence getDomain() { - return domain; - } - - /** Sets the value of the 'domain' field */ - public org.openrtb.common.api.Publisher.Builder setDomain(java.lang.CharSequence value) { - validate(fields()[3], value); - this.domain = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'domain' field has been set */ - public boolean hasDomain() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'domain' field */ - public org.openrtb.common.api.Publisher.Builder clearDomain() { - domain = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Publisher.Builder setExt(java.lang.CharSequence value) { - validate(fields()[4], value); - this.ext = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Publisher.Builder clearExt() { - ext = null; - fieldSetFlags()[4] = false; - return this; - } - - @Override - public Publisher build() { - try { - Publisher record = new Publisher(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.CharSequence) defaultValue(fields()[1]); - record.cat = fieldSetFlags()[2] ? this.cat : (java.util.List) defaultValue(fields()[2]); - record.domain = fieldSetFlags()[3] ? this.domain : (java.lang.CharSequence) defaultValue(fields()[3]); - record.ext = fieldSetFlags()[4] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[4]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/SeatBid.java b/common/src/main/java/org/openrtb/common/api/SeatBid.java deleted file mode 100644 index cdacff4..0000000 --- a/common/src/main/java/org/openrtb/common/api/SeatBid.java +++ /dev/null @@ -1,286 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class SeatBid extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"SeatBid\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"bid\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Bid\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"impid\",\"type\":[\"string\",\"null\"]},{\"name\":\"price\",\"type\":[\"float\",\"null\"]},{\"name\":\"adid\",\"type\":[\"string\",\"null\"]},{\"name\":\"nurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"adm\",\"type\":[\"string\",\"null\"]},{\"name\":\"adomain\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"iurl\",\"type\":[\"string\",\"null\"]},{\"name\":\"cid\",\"type\":[\"string\",\"null\"]},{\"name\":\"crid\",\"type\":[\"string\",\"null\"]},{\"name\":\"attr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}}},{\"name\":\"seat\",\"type\":[\"string\",\"null\"]},{\"name\":\"group\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.util.List bid; - public java.lang.CharSequence seat; - public java.lang.CharSequence group; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public SeatBid() {} - - /** - * All-args constructor. - */ - public SeatBid(java.util.List bid, java.lang.CharSequence seat, java.lang.CharSequence group, java.lang.CharSequence ext) { - this.bid = bid; - this.seat = seat; - this.group = group; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return bid; - case 1: return seat; - case 2: return group; - case 3: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: bid = (java.util.List)value$; break; - case 1: seat = (java.lang.CharSequence)value$; break; - case 2: group = (java.lang.CharSequence)value$; break; - case 3: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'bid' field. - */ - public java.util.List getBid() { - return bid; - } - - /** - * Sets the value of the 'bid' field. - * @param value the value to set. - */ - public void setBid(java.util.List value) { - this.bid = value; - } - - /** - * Gets the value of the 'seat' field. - */ - public java.lang.CharSequence getSeat() { - return seat; - } - - /** - * Sets the value of the 'seat' field. - * @param value the value to set. - */ - public void setSeat(java.lang.CharSequence value) { - this.seat = value; - } - - /** - * Gets the value of the 'group' field. - */ - public java.lang.CharSequence getGroup() { - return group; - } - - /** - * Sets the value of the 'group' field. - * @param value the value to set. - */ - public void setGroup(java.lang.CharSequence value) { - this.group = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new SeatBid RecordBuilder */ - public static org.openrtb.common.api.SeatBid.Builder newBuilder() { - return new org.openrtb.common.api.SeatBid.Builder(); - } - - /** Creates a new SeatBid RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.SeatBid.Builder newBuilder(org.openrtb.common.api.SeatBid.Builder other) { - return new org.openrtb.common.api.SeatBid.Builder(other); - } - - /** Creates a new SeatBid RecordBuilder by copying an existing SeatBid instance */ - public static org.openrtb.common.api.SeatBid.Builder newBuilder(org.openrtb.common.api.SeatBid other) { - return new org.openrtb.common.api.SeatBid.Builder(other); - } - - /** - * RecordBuilder for SeatBid instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.util.List bid; - private java.lang.CharSequence seat; - private java.lang.CharSequence group; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.SeatBid.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.SeatBid.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing SeatBid instance */ - private Builder(org.openrtb.common.api.SeatBid other) { - super(org.openrtb.common.api.SeatBid.SCHEMA$); - if (isValidValue(fields()[0], other.bid)) { - this.bid = data().deepCopy(fields()[0].schema(), other.bid); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.seat)) { - this.seat = data().deepCopy(fields()[1].schema(), other.seat); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.group)) { - this.group = data().deepCopy(fields()[2].schema(), other.group); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.ext)) { - this.ext = data().deepCopy(fields()[3].schema(), other.ext); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'bid' field */ - public java.util.List getBid() { - return bid; - } - - /** Sets the value of the 'bid' field */ - public org.openrtb.common.api.SeatBid.Builder setBid(java.util.List value) { - validate(fields()[0], value); - this.bid = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'bid' field has been set */ - public boolean hasBid() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'bid' field */ - public org.openrtb.common.api.SeatBid.Builder clearBid() { - bid = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'seat' field */ - public java.lang.CharSequence getSeat() { - return seat; - } - - /** Sets the value of the 'seat' field */ - public org.openrtb.common.api.SeatBid.Builder setSeat(java.lang.CharSequence value) { - validate(fields()[1], value); - this.seat = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'seat' field has been set */ - public boolean hasSeat() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'seat' field */ - public org.openrtb.common.api.SeatBid.Builder clearSeat() { - seat = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'group' field */ - public java.lang.CharSequence getGroup() { - return group; - } - - /** Sets the value of the 'group' field */ - public org.openrtb.common.api.SeatBid.Builder setGroup(java.lang.CharSequence value) { - validate(fields()[2], value); - this.group = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'group' field has been set */ - public boolean hasGroup() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'group' field */ - public org.openrtb.common.api.SeatBid.Builder clearGroup() { - group = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.SeatBid.Builder setExt(java.lang.CharSequence value) { - validate(fields()[3], value); - this.ext = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.SeatBid.Builder clearExt() { - ext = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public SeatBid build() { - try { - SeatBid record = new SeatBid(); - record.bid = fieldSetFlags()[0] ? this.bid : (java.util.List) defaultValue(fields()[0]); - record.seat = fieldSetFlags()[1] ? this.seat : (java.lang.CharSequence) defaultValue(fields()[1]); - record.group = fieldSetFlags()[2] ? this.group : (java.lang.CharSequence) defaultValue(fields()[2]); - record.ext = fieldSetFlags()[3] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[3]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Segment.java b/common/src/main/java/org/openrtb/common/api/Segment.java deleted file mode 100644 index aca4fc5..0000000 --- a/common/src/main/java/org/openrtb/common/api/Segment.java +++ /dev/null @@ -1,286 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Segment extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Segment\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"value\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.lang.CharSequence name; - public java.lang.CharSequence value; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Segment() {} - - /** - * All-args constructor. - */ - public Segment(java.lang.CharSequence id, java.lang.CharSequence name, java.lang.CharSequence value, java.lang.CharSequence ext) { - this.id = id; - this.name = name; - this.value = value; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return name; - case 2: return value; - case 3: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: name = (java.lang.CharSequence)value$; break; - case 2: value = (java.lang.CharSequence)value$; break; - case 3: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'name' field. - */ - public java.lang.CharSequence getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * @param value the value to set. - */ - public void setName(java.lang.CharSequence value) { - this.name = value; - } - - /** - * Gets the value of the 'value' field. - */ - public java.lang.CharSequence getValue() { - return value; - } - - /** - * Sets the value of the 'value' field. - * @param value the value to set. - */ - public void setValue(java.lang.CharSequence value) { - this.value = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Segment RecordBuilder */ - public static org.openrtb.common.api.Segment.Builder newBuilder() { - return new org.openrtb.common.api.Segment.Builder(); - } - - /** Creates a new Segment RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Segment.Builder newBuilder(org.openrtb.common.api.Segment.Builder other) { - return new org.openrtb.common.api.Segment.Builder(other); - } - - /** Creates a new Segment RecordBuilder by copying an existing Segment instance */ - public static org.openrtb.common.api.Segment.Builder newBuilder(org.openrtb.common.api.Segment other) { - return new org.openrtb.common.api.Segment.Builder(other); - } - - /** - * RecordBuilder for Segment instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.lang.CharSequence name; - private java.lang.CharSequence value; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Segment.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Segment.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Segment instance */ - private Builder(org.openrtb.common.api.Segment other) { - super(org.openrtb.common.api.Segment.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.value)) { - this.value = data().deepCopy(fields()[2].schema(), other.value); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.ext)) { - this.ext = data().deepCopy(fields()[3].schema(), other.ext); - fieldSetFlags()[3] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Segment.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Segment.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'name' field */ - public java.lang.CharSequence getName() { - return name; - } - - /** Sets the value of the 'name' field */ - public org.openrtb.common.api.Segment.Builder setName(java.lang.CharSequence value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public org.openrtb.common.api.Segment.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'value' field */ - public java.lang.CharSequence getValue() { - return value; - } - - /** Sets the value of the 'value' field */ - public org.openrtb.common.api.Segment.Builder setValue(java.lang.CharSequence value) { - validate(fields()[2], value); - this.value = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'value' field has been set */ - public boolean hasValue() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'value' field */ - public org.openrtb.common.api.Segment.Builder clearValue() { - value = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Segment.Builder setExt(java.lang.CharSequence value) { - validate(fields()[3], value); - this.ext = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Segment.Builder clearExt() { - ext = null; - fieldSetFlags()[3] = false; - return this; - } - - @Override - public Segment build() { - try { - Segment record = new Segment(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.CharSequence) defaultValue(fields()[1]); - record.value = fieldSetFlags()[2] ? this.value : (java.lang.CharSequence) defaultValue(fields()[2]); - record.ext = fieldSetFlags()[3] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[3]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Site.java b/common/src/main/java/org/openrtb/common/api/Site.java deleted file mode 100644 index f27a53a..0000000 --- a/common/src/main/java/org/openrtb/common/api/Site.java +++ /dev/null @@ -1,786 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Site extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Site\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"sectioncat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"pagecat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"page\",\"type\":[\"string\",\"null\"]},{\"name\":\"privacypolicy\",\"type\":[\"int\",\"null\"]},{\"name\":\"ref\",\"type\":[\"string\",\"null\"]},{\"name\":\"search\",\"type\":[\"int\",\"null\"]},{\"name\":\"publisher\",\"type\":[{\"type\":\"record\",\"name\":\"Publisher\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"content\",\"type\":[{\"type\":\"record\",\"name\":\"Content\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"episode\",\"type\":[\"int\",\"null\"]},{\"name\":\"title\",\"type\":[\"string\",\"null\"]},{\"name\":\"series\",\"type\":[\"string\",\"null\"]},{\"name\":\"season\",\"type\":[\"string\",\"null\"]},{\"name\":\"url\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"videoquality\",\"type\":[\"int\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"contentrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"userrating\",\"type\":[\"string\",\"null\"]},{\"name\":\"context\",\"type\":[\"string\",\"null\"]},{\"name\":\"livestream\",\"type\":[\"int\",\"null\"]},{\"name\":\"sourcerelationship\",\"type\":[\"int\",\"null\"]},{\"name\":\"producer\",\"type\":[{\"type\":\"record\",\"name\":\"Producer\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"cat\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"domain\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"len\",\"type\":[\"int\",\"null\"]},{\"name\":\"qagmediarating\",\"type\":[\"int\",\"null\"]},{\"name\":\"embeddable\",\"type\":[\"int\",\"null\"]},{\"name\":\"language\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence id; - public java.lang.CharSequence name; - public java.lang.CharSequence domain; - public java.util.List cat; - public java.util.List sectioncat; - public java.util.List pagecat; - public java.lang.CharSequence page; - public java.lang.Integer privacypolicy; - public java.lang.CharSequence ref; - public java.lang.Integer search; - public org.openrtb.common.api.Publisher publisher; - public org.openrtb.common.api.Content content; - public java.lang.CharSequence keywords; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Site() {} - - /** - * All-args constructor. - */ - public Site(java.lang.CharSequence id, java.lang.CharSequence name, java.lang.CharSequence domain, java.util.List cat, java.util.List sectioncat, java.util.List pagecat, java.lang.CharSequence page, java.lang.Integer privacypolicy, java.lang.CharSequence ref, java.lang.Integer search, org.openrtb.common.api.Publisher publisher, org.openrtb.common.api.Content content, java.lang.CharSequence keywords, java.lang.CharSequence ext) { - this.id = id; - this.name = name; - this.domain = domain; - this.cat = cat; - this.sectioncat = sectioncat; - this.pagecat = pagecat; - this.page = page; - this.privacypolicy = privacypolicy; - this.ref = ref; - this.search = search; - this.publisher = publisher; - this.content = content; - this.keywords = keywords; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return id; - case 1: return name; - case 2: return domain; - case 3: return cat; - case 4: return sectioncat; - case 5: return pagecat; - case 6: return page; - case 7: return privacypolicy; - case 8: return ref; - case 9: return search; - case 10: return publisher; - case 11: return content; - case 12: return keywords; - case 13: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: id = (java.lang.CharSequence)value$; break; - case 1: name = (java.lang.CharSequence)value$; break; - case 2: domain = (java.lang.CharSequence)value$; break; - case 3: cat = (java.util.List)value$; break; - case 4: sectioncat = (java.util.List)value$; break; - case 5: pagecat = (java.util.List)value$; break; - case 6: page = (java.lang.CharSequence)value$; break; - case 7: privacypolicy = (java.lang.Integer)value$; break; - case 8: ref = (java.lang.CharSequence)value$; break; - case 9: search = (java.lang.Integer)value$; break; - case 10: publisher = (org.openrtb.common.api.Publisher)value$; break; - case 11: content = (org.openrtb.common.api.Content)value$; break; - case 12: keywords = (java.lang.CharSequence)value$; break; - case 13: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'id' field. - */ - public java.lang.CharSequence getId() { - return id; - } - - /** - * Sets the value of the 'id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.id = value; - } - - /** - * Gets the value of the 'name' field. - */ - public java.lang.CharSequence getName() { - return name; - } - - /** - * Sets the value of the 'name' field. - * @param value the value to set. - */ - public void setName(java.lang.CharSequence value) { - this.name = value; - } - - /** - * Gets the value of the 'domain' field. - */ - public java.lang.CharSequence getDomain() { - return domain; - } - - /** - * Sets the value of the 'domain' field. - * @param value the value to set. - */ - public void setDomain(java.lang.CharSequence value) { - this.domain = value; - } - - /** - * Gets the value of the 'cat' field. - */ - public java.util.List getCat() { - return cat; - } - - /** - * Sets the value of the 'cat' field. - * @param value the value to set. - */ - public void setCat(java.util.List value) { - this.cat = value; - } - - /** - * Gets the value of the 'sectioncat' field. - */ - public java.util.List getSectioncat() { - return sectioncat; - } - - /** - * Sets the value of the 'sectioncat' field. - * @param value the value to set. - */ - public void setSectioncat(java.util.List value) { - this.sectioncat = value; - } - - /** - * Gets the value of the 'pagecat' field. - */ - public java.util.List getPagecat() { - return pagecat; - } - - /** - * Sets the value of the 'pagecat' field. - * @param value the value to set. - */ - public void setPagecat(java.util.List value) { - this.pagecat = value; - } - - /** - * Gets the value of the 'page' field. - */ - public java.lang.CharSequence getPage() { - return page; - } - - /** - * Sets the value of the 'page' field. - * @param value the value to set. - */ - public void setPage(java.lang.CharSequence value) { - this.page = value; - } - - /** - * Gets the value of the 'privacypolicy' field. - */ - public java.lang.Integer getPrivacypolicy() { - return privacypolicy; - } - - /** - * Sets the value of the 'privacypolicy' field. - * @param value the value to set. - */ - public void setPrivacypolicy(java.lang.Integer value) { - this.privacypolicy = value; - } - - /** - * Gets the value of the 'ref' field. - */ - public java.lang.CharSequence getRef() { - return ref; - } - - /** - * Sets the value of the 'ref' field. - * @param value the value to set. - */ - public void setRef(java.lang.CharSequence value) { - this.ref = value; - } - - /** - * Gets the value of the 'search' field. - */ - public java.lang.Integer getSearch() { - return search; - } - - /** - * Sets the value of the 'search' field. - * @param value the value to set. - */ - public void setSearch(java.lang.Integer value) { - this.search = value; - } - - /** - * Gets the value of the 'publisher' field. - */ - public org.openrtb.common.api.Publisher getPublisher() { - return publisher; - } - - /** - * Sets the value of the 'publisher' field. - * @param value the value to set. - */ - public void setPublisher(org.openrtb.common.api.Publisher value) { - this.publisher = value; - } - - /** - * Gets the value of the 'content' field. - */ - public org.openrtb.common.api.Content getContent() { - return content; - } - - /** - * Sets the value of the 'content' field. - * @param value the value to set. - */ - public void setContent(org.openrtb.common.api.Content value) { - this.content = value; - } - - /** - * Gets the value of the 'keywords' field. - */ - public java.lang.CharSequence getKeywords() { - return keywords; - } - - /** - * Sets the value of the 'keywords' field. - * @param value the value to set. - */ - public void setKeywords(java.lang.CharSequence value) { - this.keywords = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Site RecordBuilder */ - public static org.openrtb.common.api.Site.Builder newBuilder() { - return new org.openrtb.common.api.Site.Builder(); - } - - /** Creates a new Site RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Site.Builder newBuilder(org.openrtb.common.api.Site.Builder other) { - return new org.openrtb.common.api.Site.Builder(other); - } - - /** Creates a new Site RecordBuilder by copying an existing Site instance */ - public static org.openrtb.common.api.Site.Builder newBuilder(org.openrtb.common.api.Site other) { - return new org.openrtb.common.api.Site.Builder(other); - } - - /** - * RecordBuilder for Site instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence id; - private java.lang.CharSequence name; - private java.lang.CharSequence domain; - private java.util.List cat; - private java.util.List sectioncat; - private java.util.List pagecat; - private java.lang.CharSequence page; - private java.lang.Integer privacypolicy; - private java.lang.CharSequence ref; - private java.lang.Integer search; - private org.openrtb.common.api.Publisher publisher; - private org.openrtb.common.api.Content content; - private java.lang.CharSequence keywords; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Site.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Site.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Site instance */ - private Builder(org.openrtb.common.api.Site other) { - super(org.openrtb.common.api.Site.SCHEMA$); - if (isValidValue(fields()[0], other.id)) { - this.id = data().deepCopy(fields()[0].schema(), other.id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.name)) { - this.name = data().deepCopy(fields()[1].schema(), other.name); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.domain)) { - this.domain = data().deepCopy(fields()[2].schema(), other.domain); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.cat)) { - this.cat = data().deepCopy(fields()[3].schema(), other.cat); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.sectioncat)) { - this.sectioncat = data().deepCopy(fields()[4].schema(), other.sectioncat); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.pagecat)) { - this.pagecat = data().deepCopy(fields()[5].schema(), other.pagecat); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.page)) { - this.page = data().deepCopy(fields()[6].schema(), other.page); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.privacypolicy)) { - this.privacypolicy = data().deepCopy(fields()[7].schema(), other.privacypolicy); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.ref)) { - this.ref = data().deepCopy(fields()[8].schema(), other.ref); - fieldSetFlags()[8] = true; - } - if (isValidValue(fields()[9], other.search)) { - this.search = data().deepCopy(fields()[9].schema(), other.search); - fieldSetFlags()[9] = true; - } - if (isValidValue(fields()[10], other.publisher)) { - this.publisher = data().deepCopy(fields()[10].schema(), other.publisher); - fieldSetFlags()[10] = true; - } - if (isValidValue(fields()[11], other.content)) { - this.content = data().deepCopy(fields()[11].schema(), other.content); - fieldSetFlags()[11] = true; - } - if (isValidValue(fields()[12], other.keywords)) { - this.keywords = data().deepCopy(fields()[12].schema(), other.keywords); - fieldSetFlags()[12] = true; - } - if (isValidValue(fields()[13], other.ext)) { - this.ext = data().deepCopy(fields()[13].schema(), other.ext); - fieldSetFlags()[13] = true; - } - } - - /** Gets the value of the 'id' field */ - public java.lang.CharSequence getId() { - return id; - } - - /** Sets the value of the 'id' field */ - public org.openrtb.common.api.Site.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'id' field */ - public org.openrtb.common.api.Site.Builder clearId() { - id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'name' field */ - public java.lang.CharSequence getName() { - return name; - } - - /** Sets the value of the 'name' field */ - public org.openrtb.common.api.Site.Builder setName(java.lang.CharSequence value) { - validate(fields()[1], value); - this.name = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'name' field has been set */ - public boolean hasName() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'name' field */ - public org.openrtb.common.api.Site.Builder clearName() { - name = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'domain' field */ - public java.lang.CharSequence getDomain() { - return domain; - } - - /** Sets the value of the 'domain' field */ - public org.openrtb.common.api.Site.Builder setDomain(java.lang.CharSequence value) { - validate(fields()[2], value); - this.domain = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'domain' field has been set */ - public boolean hasDomain() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'domain' field */ - public org.openrtb.common.api.Site.Builder clearDomain() { - domain = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'cat' field */ - public java.util.List getCat() { - return cat; - } - - /** Sets the value of the 'cat' field */ - public org.openrtb.common.api.Site.Builder setCat(java.util.List value) { - validate(fields()[3], value); - this.cat = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'cat' field has been set */ - public boolean hasCat() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'cat' field */ - public org.openrtb.common.api.Site.Builder clearCat() { - cat = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'sectioncat' field */ - public java.util.List getSectioncat() { - return sectioncat; - } - - /** Sets the value of the 'sectioncat' field */ - public org.openrtb.common.api.Site.Builder setSectioncat(java.util.List value) { - validate(fields()[4], value); - this.sectioncat = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'sectioncat' field has been set */ - public boolean hasSectioncat() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'sectioncat' field */ - public org.openrtb.common.api.Site.Builder clearSectioncat() { - sectioncat = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'pagecat' field */ - public java.util.List getPagecat() { - return pagecat; - } - - /** Sets the value of the 'pagecat' field */ - public org.openrtb.common.api.Site.Builder setPagecat(java.util.List value) { - validate(fields()[5], value); - this.pagecat = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'pagecat' field has been set */ - public boolean hasPagecat() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'pagecat' field */ - public org.openrtb.common.api.Site.Builder clearPagecat() { - pagecat = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'page' field */ - public java.lang.CharSequence getPage() { - return page; - } - - /** Sets the value of the 'page' field */ - public org.openrtb.common.api.Site.Builder setPage(java.lang.CharSequence value) { - validate(fields()[6], value); - this.page = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'page' field has been set */ - public boolean hasPage() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'page' field */ - public org.openrtb.common.api.Site.Builder clearPage() { - page = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'privacypolicy' field */ - public java.lang.Integer getPrivacypolicy() { - return privacypolicy; - } - - /** Sets the value of the 'privacypolicy' field */ - public org.openrtb.common.api.Site.Builder setPrivacypolicy(java.lang.Integer value) { - validate(fields()[7], value); - this.privacypolicy = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'privacypolicy' field has been set */ - public boolean hasPrivacypolicy() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'privacypolicy' field */ - public org.openrtb.common.api.Site.Builder clearPrivacypolicy() { - privacypolicy = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'ref' field */ - public java.lang.CharSequence getRef() { - return ref; - } - - /** Sets the value of the 'ref' field */ - public org.openrtb.common.api.Site.Builder setRef(java.lang.CharSequence value) { - validate(fields()[8], value); - this.ref = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'ref' field has been set */ - public boolean hasRef() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'ref' field */ - public org.openrtb.common.api.Site.Builder clearRef() { - ref = null; - fieldSetFlags()[8] = false; - return this; - } - - /** Gets the value of the 'search' field */ - public java.lang.Integer getSearch() { - return search; - } - - /** Sets the value of the 'search' field */ - public org.openrtb.common.api.Site.Builder setSearch(java.lang.Integer value) { - validate(fields()[9], value); - this.search = value; - fieldSetFlags()[9] = true; - return this; - } - - /** Checks whether the 'search' field has been set */ - public boolean hasSearch() { - return fieldSetFlags()[9]; - } - - /** Clears the value of the 'search' field */ - public org.openrtb.common.api.Site.Builder clearSearch() { - search = null; - fieldSetFlags()[9] = false; - return this; - } - - /** Gets the value of the 'publisher' field */ - public org.openrtb.common.api.Publisher getPublisher() { - return publisher; - } - - /** Sets the value of the 'publisher' field */ - public org.openrtb.common.api.Site.Builder setPublisher(org.openrtb.common.api.Publisher value) { - validate(fields()[10], value); - this.publisher = value; - fieldSetFlags()[10] = true; - return this; - } - - /** Checks whether the 'publisher' field has been set */ - public boolean hasPublisher() { - return fieldSetFlags()[10]; - } - - /** Clears the value of the 'publisher' field */ - public org.openrtb.common.api.Site.Builder clearPublisher() { - publisher = null; - fieldSetFlags()[10] = false; - return this; - } - - /** Gets the value of the 'content' field */ - public org.openrtb.common.api.Content getContent() { - return content; - } - - /** Sets the value of the 'content' field */ - public org.openrtb.common.api.Site.Builder setContent(org.openrtb.common.api.Content value) { - validate(fields()[11], value); - this.content = value; - fieldSetFlags()[11] = true; - return this; - } - - /** Checks whether the 'content' field has been set */ - public boolean hasContent() { - return fieldSetFlags()[11]; - } - - /** Clears the value of the 'content' field */ - public org.openrtb.common.api.Site.Builder clearContent() { - content = null; - fieldSetFlags()[11] = false; - return this; - } - - /** Gets the value of the 'keywords' field */ - public java.lang.CharSequence getKeywords() { - return keywords; - } - - /** Sets the value of the 'keywords' field */ - public org.openrtb.common.api.Site.Builder setKeywords(java.lang.CharSequence value) { - validate(fields()[12], value); - this.keywords = value; - fieldSetFlags()[12] = true; - return this; - } - - /** Checks whether the 'keywords' field has been set */ - public boolean hasKeywords() { - return fieldSetFlags()[12]; - } - - /** Clears the value of the 'keywords' field */ - public org.openrtb.common.api.Site.Builder clearKeywords() { - keywords = null; - fieldSetFlags()[12] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.Site.Builder setExt(java.lang.CharSequence value) { - validate(fields()[13], value); - this.ext = value; - fieldSetFlags()[13] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[13]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.Site.Builder clearExt() { - ext = null; - fieldSetFlags()[13] = false; - return this; - } - - @Override - public Site build() { - try { - Site record = new Site(); - record.id = fieldSetFlags()[0] ? this.id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.name = fieldSetFlags()[1] ? this.name : (java.lang.CharSequence) defaultValue(fields()[1]); - record.domain = fieldSetFlags()[2] ? this.domain : (java.lang.CharSequence) defaultValue(fields()[2]); - record.cat = fieldSetFlags()[3] ? this.cat : (java.util.List) defaultValue(fields()[3]); - record.sectioncat = fieldSetFlags()[4] ? this.sectioncat : (java.util.List) defaultValue(fields()[4]); - record.pagecat = fieldSetFlags()[5] ? this.pagecat : (java.util.List) defaultValue(fields()[5]); - record.page = fieldSetFlags()[6] ? this.page : (java.lang.CharSequence) defaultValue(fields()[6]); - record.privacypolicy = fieldSetFlags()[7] ? this.privacypolicy : (java.lang.Integer) defaultValue(fields()[7]); - record.ref = fieldSetFlags()[8] ? this.ref : (java.lang.CharSequence) defaultValue(fields()[8]); - record.search = fieldSetFlags()[9] ? this.search : (java.lang.Integer) defaultValue(fields()[9]); - record.publisher = fieldSetFlags()[10] ? this.publisher : (org.openrtb.common.api.Publisher) defaultValue(fields()[10]); - record.content = fieldSetFlags()[11] ? this.content : (org.openrtb.common.api.Content) defaultValue(fields()[11]); - record.keywords = fieldSetFlags()[12] ? this.keywords : (java.lang.CharSequence) defaultValue(fields()[12]); - record.ext = fieldSetFlags()[13] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[13]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Status.java b/common/src/main/java/org/openrtb/common/api/Status.java deleted file mode 100644 index 26e89e6..0000000 --- a/common/src/main/java/org/openrtb/common/api/Status.java +++ /dev/null @@ -1,236 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Status extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Status\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"requestToken\",\"type\":[\"string\",\"null\"]},{\"name\":\"statusCode\",\"type\":[\"int\",\"null\"]},{\"name\":\"statusMessage\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence requestToken; - public java.lang.Integer statusCode; - public java.lang.CharSequence statusMessage; - - /** - * Default constructor. - */ - public Status() {} - - /** - * All-args constructor. - */ - public Status(java.lang.CharSequence requestToken, java.lang.Integer statusCode, java.lang.CharSequence statusMessage) { - this.requestToken = requestToken; - this.statusCode = statusCode; - this.statusMessage = statusMessage; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return requestToken; - case 1: return statusCode; - case 2: return statusMessage; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: requestToken = (java.lang.CharSequence)value$; break; - case 1: statusCode = (java.lang.Integer)value$; break; - case 2: statusMessage = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'requestToken' field. - */ - public java.lang.CharSequence getRequestToken() { - return requestToken; - } - - /** - * Sets the value of the 'requestToken' field. - * @param value the value to set. - */ - public void setRequestToken(java.lang.CharSequence value) { - this.requestToken = value; - } - - /** - * Gets the value of the 'statusCode' field. - */ - public java.lang.Integer getStatusCode() { - return statusCode; - } - - /** - * Sets the value of the 'statusCode' field. - * @param value the value to set. - */ - public void setStatusCode(java.lang.Integer value) { - this.statusCode = value; - } - - /** - * Gets the value of the 'statusMessage' field. - */ - public java.lang.CharSequence getStatusMessage() { - return statusMessage; - } - - /** - * Sets the value of the 'statusMessage' field. - * @param value the value to set. - */ - public void setStatusMessage(java.lang.CharSequence value) { - this.statusMessage = value; - } - - /** Creates a new Status RecordBuilder */ - public static org.openrtb.common.api.Status.Builder newBuilder() { - return new org.openrtb.common.api.Status.Builder(); - } - - /** Creates a new Status RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Status.Builder newBuilder(org.openrtb.common.api.Status.Builder other) { - return new org.openrtb.common.api.Status.Builder(other); - } - - /** Creates a new Status RecordBuilder by copying an existing Status instance */ - public static org.openrtb.common.api.Status.Builder newBuilder(org.openrtb.common.api.Status other) { - return new org.openrtb.common.api.Status.Builder(other); - } - - /** - * RecordBuilder for Status instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence requestToken; - private java.lang.Integer statusCode; - private java.lang.CharSequence statusMessage; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.Status.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.Status.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing Status instance */ - private Builder(org.openrtb.common.api.Status other) { - super(org.openrtb.common.api.Status.SCHEMA$); - if (isValidValue(fields()[0], other.requestToken)) { - this.requestToken = data().deepCopy(fields()[0].schema(), other.requestToken); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.statusCode)) { - this.statusCode = data().deepCopy(fields()[1].schema(), other.statusCode); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.statusMessage)) { - this.statusMessage = data().deepCopy(fields()[2].schema(), other.statusMessage); - fieldSetFlags()[2] = true; - } - } - - /** Gets the value of the 'requestToken' field */ - public java.lang.CharSequence getRequestToken() { - return requestToken; - } - - /** Sets the value of the 'requestToken' field */ - public org.openrtb.common.api.Status.Builder setRequestToken(java.lang.CharSequence value) { - validate(fields()[0], value); - this.requestToken = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'requestToken' field has been set */ - public boolean hasRequestToken() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'requestToken' field */ - public org.openrtb.common.api.Status.Builder clearRequestToken() { - requestToken = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'statusCode' field */ - public java.lang.Integer getStatusCode() { - return statusCode; - } - - /** Sets the value of the 'statusCode' field */ - public org.openrtb.common.api.Status.Builder setStatusCode(java.lang.Integer value) { - validate(fields()[1], value); - this.statusCode = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'statusCode' field has been set */ - public boolean hasStatusCode() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'statusCode' field */ - public org.openrtb.common.api.Status.Builder clearStatusCode() { - statusCode = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'statusMessage' field */ - public java.lang.CharSequence getStatusMessage() { - return statusMessage; - } - - /** Sets the value of the 'statusMessage' field */ - public org.openrtb.common.api.Status.Builder setStatusMessage(java.lang.CharSequence value) { - validate(fields()[2], value); - this.statusMessage = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'statusMessage' field has been set */ - public boolean hasStatusMessage() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'statusMessage' field */ - public org.openrtb.common.api.Status.Builder clearStatusMessage() { - statusMessage = null; - fieldSetFlags()[2] = false; - return this; - } - - @Override - public Status build() { - try { - Status record = new Status(); - record.requestToken = fieldSetFlags()[0] ? this.requestToken : (java.lang.CharSequence) defaultValue(fields()[0]); - record.statusCode = fieldSetFlags()[1] ? this.statusCode : (java.lang.Integer) defaultValue(fields()[1]); - record.statusMessage = fieldSetFlags()[2] ? this.statusMessage : (java.lang.CharSequence) defaultValue(fields()[2]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/User.java b/common/src/main/java/org/openrtb/common/api/User.java deleted file mode 100644 index 17059d5..0000000 --- a/common/src/main/java/org/openrtb/common/api/User.java +++ /dev/null @@ -1,536 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class User extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"Id\",\"type\":[\"string\",\"null\"]},{\"name\":\"buyeruid\",\"type\":[\"string\",\"null\"]},{\"name\":\"yob\",\"type\":[\"int\",\"null\"]},{\"name\":\"gender\",\"type\":[\"string\",\"null\"]},{\"name\":\"keywords\",\"type\":[\"string\",\"null\"]},{\"name\":\"customdata\",\"type\":[\"string\",\"null\"]},{\"name\":\"geo\",\"type\":[{\"type\":\"record\",\"name\":\"Geo\",\"fields\":[{\"name\":\"lat\",\"type\":[\"float\",\"null\"]},{\"name\":\"lon\",\"type\":[\"float\",\"null\"]},{\"name\":\"country\",\"type\":[\"string\",\"null\"]},{\"name\":\"region\",\"type\":[\"string\",\"null\"]},{\"name\":\"regionfips104\",\"type\":[\"string\",\"null\"]},{\"name\":\"metro\",\"type\":[\"string\",\"null\"]},{\"name\":\"city\",\"type\":[\"string\",\"null\"]},{\"name\":\"zip\",\"type\":[\"string\",\"null\"]},{\"name\":\"type\",\"type\":[\"int\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]},\"null\"]},{\"name\":\"data\",\"type\":[{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Data\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"segment\",\"type\":[{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Segment\",\"fields\":[{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"name\",\"type\":[\"string\",\"null\"]},{\"name\":\"value\",\"type\":[\"string\",\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.lang.CharSequence Id; - public java.lang.CharSequence buyeruid; - public java.lang.Integer yob; - public java.lang.CharSequence gender; - public java.lang.CharSequence keywords; - public java.lang.CharSequence customdata; - public org.openrtb.common.api.Geo geo; - public java.util.List data; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public User() {} - - /** - * All-args constructor. - */ - public User(java.lang.CharSequence Id, java.lang.CharSequence buyeruid, java.lang.Integer yob, java.lang.CharSequence gender, java.lang.CharSequence keywords, java.lang.CharSequence customdata, org.openrtb.common.api.Geo geo, java.util.List data, java.lang.CharSequence ext) { - this.Id = Id; - this.buyeruid = buyeruid; - this.yob = yob; - this.gender = gender; - this.keywords = keywords; - this.customdata = customdata; - this.geo = geo; - this.data = data; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return Id; - case 1: return buyeruid; - case 2: return yob; - case 3: return gender; - case 4: return keywords; - case 5: return customdata; - case 6: return geo; - case 7: return data; - case 8: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: Id = (java.lang.CharSequence)value$; break; - case 1: buyeruid = (java.lang.CharSequence)value$; break; - case 2: yob = (java.lang.Integer)value$; break; - case 3: gender = (java.lang.CharSequence)value$; break; - case 4: keywords = (java.lang.CharSequence)value$; break; - case 5: customdata = (java.lang.CharSequence)value$; break; - case 6: geo = (org.openrtb.common.api.Geo)value$; break; - case 7: data = (java.util.List)value$; break; - case 8: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'Id' field. - */ - public java.lang.CharSequence getId() { - return Id; - } - - /** - * Sets the value of the 'Id' field. - * @param value the value to set. - */ - public void setId(java.lang.CharSequence value) { - this.Id = value; - } - - /** - * Gets the value of the 'buyeruid' field. - */ - public java.lang.CharSequence getBuyeruid() { - return buyeruid; - } - - /** - * Sets the value of the 'buyeruid' field. - * @param value the value to set. - */ - public void setBuyeruid(java.lang.CharSequence value) { - this.buyeruid = value; - } - - /** - * Gets the value of the 'yob' field. - */ - public java.lang.Integer getYob() { - return yob; - } - - /** - * Sets the value of the 'yob' field. - * @param value the value to set. - */ - public void setYob(java.lang.Integer value) { - this.yob = value; - } - - /** - * Gets the value of the 'gender' field. - */ - public java.lang.CharSequence getGender() { - return gender; - } - - /** - * Sets the value of the 'gender' field. - * @param value the value to set. - */ - public void setGender(java.lang.CharSequence value) { - this.gender = value; - } - - /** - * Gets the value of the 'keywords' field. - */ - public java.lang.CharSequence getKeywords() { - return keywords; - } - - /** - * Sets the value of the 'keywords' field. - * @param value the value to set. - */ - public void setKeywords(java.lang.CharSequence value) { - this.keywords = value; - } - - /** - * Gets the value of the 'customdata' field. - */ - public java.lang.CharSequence getCustomdata() { - return customdata; - } - - /** - * Sets the value of the 'customdata' field. - * @param value the value to set. - */ - public void setCustomdata(java.lang.CharSequence value) { - this.customdata = value; - } - - /** - * Gets the value of the 'geo' field. - */ - public org.openrtb.common.api.Geo getGeo() { - return geo; - } - - /** - * Sets the value of the 'geo' field. - * @param value the value to set. - */ - public void setGeo(org.openrtb.common.api.Geo value) { - this.geo = value; - } - - /** - * Gets the value of the 'data' field. - */ - public java.util.List getData() { - return data; - } - - /** - * Sets the value of the 'data' field. - * @param value the value to set. - */ - public void setData(java.util.List value) { - this.data = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new User RecordBuilder */ - public static org.openrtb.common.api.User.Builder newBuilder() { - return new org.openrtb.common.api.User.Builder(); - } - - /** Creates a new User RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.User.Builder newBuilder(org.openrtb.common.api.User.Builder other) { - return new org.openrtb.common.api.User.Builder(other); - } - - /** Creates a new User RecordBuilder by copying an existing User instance */ - public static org.openrtb.common.api.User.Builder newBuilder(org.openrtb.common.api.User other) { - return new org.openrtb.common.api.User.Builder(other); - } - - /** - * RecordBuilder for User instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase - implements org.apache.avro.data.RecordBuilder { - - private java.lang.CharSequence Id; - private java.lang.CharSequence buyeruid; - private java.lang.Integer yob; - private java.lang.CharSequence gender; - private java.lang.CharSequence keywords; - private java.lang.CharSequence customdata; - private org.openrtb.common.api.Geo geo; - private java.util.List data; - private java.lang.CharSequence ext; - - /** Creates a new Builder */ - private Builder() { - super(org.openrtb.common.api.User.SCHEMA$); - } - - /** Creates a Builder by copying an existing Builder */ - private Builder(org.openrtb.common.api.User.Builder other) { - super(other); - } - - /** Creates a Builder by copying an existing User instance */ - private Builder(org.openrtb.common.api.User other) { - super(org.openrtb.common.api.User.SCHEMA$); - if (isValidValue(fields()[0], other.Id)) { - this.Id = data().deepCopy(fields()[0].schema(), other.Id); - fieldSetFlags()[0] = true; - } - if (isValidValue(fields()[1], other.buyeruid)) { - this.buyeruid = data().deepCopy(fields()[1].schema(), other.buyeruid); - fieldSetFlags()[1] = true; - } - if (isValidValue(fields()[2], other.yob)) { - this.yob = data().deepCopy(fields()[2].schema(), other.yob); - fieldSetFlags()[2] = true; - } - if (isValidValue(fields()[3], other.gender)) { - this.gender = data().deepCopy(fields()[3].schema(), other.gender); - fieldSetFlags()[3] = true; - } - if (isValidValue(fields()[4], other.keywords)) { - this.keywords = data().deepCopy(fields()[4].schema(), other.keywords); - fieldSetFlags()[4] = true; - } - if (isValidValue(fields()[5], other.customdata)) { - this.customdata = data().deepCopy(fields()[5].schema(), other.customdata); - fieldSetFlags()[5] = true; - } - if (isValidValue(fields()[6], other.geo)) { - this.geo = data().deepCopy(fields()[6].schema(), other.geo); - fieldSetFlags()[6] = true; - } - if (isValidValue(fields()[7], other.data)) { - this.data = data().deepCopy(fields()[7].schema(), other.data); - fieldSetFlags()[7] = true; - } - if (isValidValue(fields()[8], other.ext)) { - this.ext = data().deepCopy(fields()[8].schema(), other.ext); - fieldSetFlags()[8] = true; - } - } - - /** Gets the value of the 'Id' field */ - public java.lang.CharSequence getId() { - return Id; - } - - /** Sets the value of the 'Id' field */ - public org.openrtb.common.api.User.Builder setId(java.lang.CharSequence value) { - validate(fields()[0], value); - this.Id = value; - fieldSetFlags()[0] = true; - return this; - } - - /** Checks whether the 'Id' field has been set */ - public boolean hasId() { - return fieldSetFlags()[0]; - } - - /** Clears the value of the 'Id' field */ - public org.openrtb.common.api.User.Builder clearId() { - Id = null; - fieldSetFlags()[0] = false; - return this; - } - - /** Gets the value of the 'buyeruid' field */ - public java.lang.CharSequence getBuyeruid() { - return buyeruid; - } - - /** Sets the value of the 'buyeruid' field */ - public org.openrtb.common.api.User.Builder setBuyeruid(java.lang.CharSequence value) { - validate(fields()[1], value); - this.buyeruid = value; - fieldSetFlags()[1] = true; - return this; - } - - /** Checks whether the 'buyeruid' field has been set */ - public boolean hasBuyeruid() { - return fieldSetFlags()[1]; - } - - /** Clears the value of the 'buyeruid' field */ - public org.openrtb.common.api.User.Builder clearBuyeruid() { - buyeruid = null; - fieldSetFlags()[1] = false; - return this; - } - - /** Gets the value of the 'yob' field */ - public java.lang.Integer getYob() { - return yob; - } - - /** Sets the value of the 'yob' field */ - public org.openrtb.common.api.User.Builder setYob(java.lang.Integer value) { - validate(fields()[2], value); - this.yob = value; - fieldSetFlags()[2] = true; - return this; - } - - /** Checks whether the 'yob' field has been set */ - public boolean hasYob() { - return fieldSetFlags()[2]; - } - - /** Clears the value of the 'yob' field */ - public org.openrtb.common.api.User.Builder clearYob() { - yob = null; - fieldSetFlags()[2] = false; - return this; - } - - /** Gets the value of the 'gender' field */ - public java.lang.CharSequence getGender() { - return gender; - } - - /** Sets the value of the 'gender' field */ - public org.openrtb.common.api.User.Builder setGender(java.lang.CharSequence value) { - validate(fields()[3], value); - this.gender = value; - fieldSetFlags()[3] = true; - return this; - } - - /** Checks whether the 'gender' field has been set */ - public boolean hasGender() { - return fieldSetFlags()[3]; - } - - /** Clears the value of the 'gender' field */ - public org.openrtb.common.api.User.Builder clearGender() { - gender = null; - fieldSetFlags()[3] = false; - return this; - } - - /** Gets the value of the 'keywords' field */ - public java.lang.CharSequence getKeywords() { - return keywords; - } - - /** Sets the value of the 'keywords' field */ - public org.openrtb.common.api.User.Builder setKeywords(java.lang.CharSequence value) { - validate(fields()[4], value); - this.keywords = value; - fieldSetFlags()[4] = true; - return this; - } - - /** Checks whether the 'keywords' field has been set */ - public boolean hasKeywords() { - return fieldSetFlags()[4]; - } - - /** Clears the value of the 'keywords' field */ - public org.openrtb.common.api.User.Builder clearKeywords() { - keywords = null; - fieldSetFlags()[4] = false; - return this; - } - - /** Gets the value of the 'customdata' field */ - public java.lang.CharSequence getCustomdata() { - return customdata; - } - - /** Sets the value of the 'customdata' field */ - public org.openrtb.common.api.User.Builder setCustomdata(java.lang.CharSequence value) { - validate(fields()[5], value); - this.customdata = value; - fieldSetFlags()[5] = true; - return this; - } - - /** Checks whether the 'customdata' field has been set */ - public boolean hasCustomdata() { - return fieldSetFlags()[5]; - } - - /** Clears the value of the 'customdata' field */ - public org.openrtb.common.api.User.Builder clearCustomdata() { - customdata = null; - fieldSetFlags()[5] = false; - return this; - } - - /** Gets the value of the 'geo' field */ - public org.openrtb.common.api.Geo getGeo() { - return geo; - } - - /** Sets the value of the 'geo' field */ - public org.openrtb.common.api.User.Builder setGeo(org.openrtb.common.api.Geo value) { - validate(fields()[6], value); - this.geo = value; - fieldSetFlags()[6] = true; - return this; - } - - /** Checks whether the 'geo' field has been set */ - public boolean hasGeo() { - return fieldSetFlags()[6]; - } - - /** Clears the value of the 'geo' field */ - public org.openrtb.common.api.User.Builder clearGeo() { - geo = null; - fieldSetFlags()[6] = false; - return this; - } - - /** Gets the value of the 'data' field */ - public java.util.List getData() { - return data; - } - - /** Sets the value of the 'data' field */ - public org.openrtb.common.api.User.Builder setData(java.util.List value) { - validate(fields()[7], value); - this.data = value; - fieldSetFlags()[7] = true; - return this; - } - - /** Checks whether the 'data' field has been set */ - public boolean hasData() { - return fieldSetFlags()[7]; - } - - /** Clears the value of the 'data' field */ - public org.openrtb.common.api.User.Builder clearData() { - data = null; - fieldSetFlags()[7] = false; - return this; - } - - /** Gets the value of the 'ext' field */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** Sets the value of the 'ext' field */ - public org.openrtb.common.api.User.Builder setExt(java.lang.CharSequence value) { - validate(fields()[8], value); - this.ext = value; - fieldSetFlags()[8] = true; - return this; - } - - /** Checks whether the 'ext' field has been set */ - public boolean hasExt() { - return fieldSetFlags()[8]; - } - - /** Clears the value of the 'ext' field */ - public org.openrtb.common.api.User.Builder clearExt() { - ext = null; - fieldSetFlags()[8] = false; - return this; - } - - @Override - public User build() { - try { - User record = new User(); - record.Id = fieldSetFlags()[0] ? this.Id : (java.lang.CharSequence) defaultValue(fields()[0]); - record.buyeruid = fieldSetFlags()[1] ? this.buyeruid : (java.lang.CharSequence) defaultValue(fields()[1]); - record.yob = fieldSetFlags()[2] ? this.yob : (java.lang.Integer) defaultValue(fields()[2]); - record.gender = fieldSetFlags()[3] ? this.gender : (java.lang.CharSequence) defaultValue(fields()[3]); - record.keywords = fieldSetFlags()[4] ? this.keywords : (java.lang.CharSequence) defaultValue(fields()[4]); - record.customdata = fieldSetFlags()[5] ? this.customdata : (java.lang.CharSequence) defaultValue(fields()[5]); - record.geo = fieldSetFlags()[6] ? this.geo : (org.openrtb.common.api.Geo) defaultValue(fields()[6]); - record.data = fieldSetFlags()[7] ? this.data : (java.util.List) defaultValue(fields()[7]); - record.ext = fieldSetFlags()[8] ? this.ext : (java.lang.CharSequence) defaultValue(fields()[8]); - return record; - } catch (Exception e) { - throw new org.apache.avro.AvroRuntimeException(e); - } - } - } -} diff --git a/common/src/main/java/org/openrtb/common/api/Video.java b/common/src/main/java/org/openrtb/common/api/Video.java deleted file mode 100644 index f6fdb8e..0000000 --- a/common/src/main/java/org/openrtb/common/api/Video.java +++ /dev/null @@ -1,1136 +0,0 @@ -/** - * Autogenerated by Avro - * - * DO NOT EDIT DIRECTLY - */ -package org.openrtb.common.api; -@SuppressWarnings("all") -@org.apache.avro.specific.AvroGenerated -public class Video extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { - public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Video\",\"namespace\":\"org.openrtb.common.api\",\"fields\":[{\"name\":\"mimes\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"linearity\",\"type\":[\"int\",\"null\"]},{\"name\":\"minduration\",\"type\":[\"int\",\"null\"]},{\"name\":\"maxduration\",\"type\":[\"int\",\"null\"]},{\"name\":\"protocol\",\"type\":[\"int\",\"null\"]},{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"startdelay\",\"type\":[\"int\",\"null\"]},{\"name\":\"sequence\",\"type\":[\"int\",\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"maxextended\",\"type\":[\"int\",\"null\"]},{\"name\":\"minbitrate\",\"type\":[\"int\",\"null\"]},{\"name\":\"maxbitrate\",\"type\":[\"int\",\"null\"]},{\"name\":\"boxingallowed\",\"type\":[\"int\",\"null\"]},{\"name\":\"playbackmethod\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"delivery\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"companionad\",\"type\":[{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"Banner\",\"fields\":[{\"name\":\"w\",\"type\":[\"int\",\"null\"]},{\"name\":\"h\",\"type\":[\"int\",\"null\"]},{\"name\":\"id\",\"type\":[\"string\",\"null\"]},{\"name\":\"pos\",\"type\":[\"int\",\"null\"]},{\"name\":\"btype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"battr\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"mimes\",\"type\":[{\"type\":\"array\",\"items\":\"string\"},\"null\"]},{\"name\":\"topframe\",\"type\":[\"int\",\"null\"]},{\"name\":\"expdir\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}},\"null\"]},{\"name\":\"api\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"companiontype\",\"type\":[{\"type\":\"array\",\"items\":\"int\"},\"null\"]},{\"name\":\"ext\",\"type\":[\"string\",\"null\"]}]}"); - public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; } - public java.util.List mimes; - public java.lang.Integer linearity; - public java.lang.Integer minduration; - public java.lang.Integer maxduration; - public java.lang.Integer protocol; - public java.lang.Integer w; - public java.lang.Integer h; - public java.lang.Integer startdelay; - public java.lang.Integer sequence; - public java.util.List battr; - public java.lang.Integer maxextended; - public java.lang.Integer minbitrate; - public java.lang.Integer maxbitrate; - public java.lang.Integer boxingallowed; - public java.util.List playbackmethod; - public java.util.List delivery; - public java.lang.Integer pos; - public java.util.List companionad; - public java.util.List api; - public java.util.List companiontype; - public java.lang.CharSequence ext; - - /** - * Default constructor. - */ - public Video() {} - - /** - * All-args constructor. - */ - public Video(java.util.List mimes, java.lang.Integer linearity, java.lang.Integer minduration, java.lang.Integer maxduration, java.lang.Integer protocol, java.lang.Integer w, java.lang.Integer h, java.lang.Integer startdelay, java.lang.Integer sequence, java.util.List battr, java.lang.Integer maxextended, java.lang.Integer minbitrate, java.lang.Integer maxbitrate, java.lang.Integer boxingallowed, java.util.List playbackmethod, java.util.List delivery, java.lang.Integer pos, java.util.List companionad, java.util.List api, java.util.List companiontype, java.lang.CharSequence ext) { - this.mimes = mimes; - this.linearity = linearity; - this.minduration = minduration; - this.maxduration = maxduration; - this.protocol = protocol; - this.w = w; - this.h = h; - this.startdelay = startdelay; - this.sequence = sequence; - this.battr = battr; - this.maxextended = maxextended; - this.minbitrate = minbitrate; - this.maxbitrate = maxbitrate; - this.boxingallowed = boxingallowed; - this.playbackmethod = playbackmethod; - this.delivery = delivery; - this.pos = pos; - this.companionad = companionad; - this.api = api; - this.companiontype = companiontype; - this.ext = ext; - } - - public org.apache.avro.Schema getSchema() { return SCHEMA$; } - // Used by DatumWriter. Applications should not call. - public java.lang.Object get(int field$) { - switch (field$) { - case 0: return mimes; - case 1: return linearity; - case 2: return minduration; - case 3: return maxduration; - case 4: return protocol; - case 5: return w; - case 6: return h; - case 7: return startdelay; - case 8: return sequence; - case 9: return battr; - case 10: return maxextended; - case 11: return minbitrate; - case 12: return maxbitrate; - case 13: return boxingallowed; - case 14: return playbackmethod; - case 15: return delivery; - case 16: return pos; - case 17: return companionad; - case 18: return api; - case 19: return companiontype; - case 20: return ext; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - // Used by DatumReader. Applications should not call. - @SuppressWarnings(value="unchecked") - public void put(int field$, java.lang.Object value$) { - switch (field$) { - case 0: mimes = (java.util.List)value$; break; - case 1: linearity = (java.lang.Integer)value$; break; - case 2: minduration = (java.lang.Integer)value$; break; - case 3: maxduration = (java.lang.Integer)value$; break; - case 4: protocol = (java.lang.Integer)value$; break; - case 5: w = (java.lang.Integer)value$; break; - case 6: h = (java.lang.Integer)value$; break; - case 7: startdelay = (java.lang.Integer)value$; break; - case 8: sequence = (java.lang.Integer)value$; break; - case 9: battr = (java.util.List)value$; break; - case 10: maxextended = (java.lang.Integer)value$; break; - case 11: minbitrate = (java.lang.Integer)value$; break; - case 12: maxbitrate = (java.lang.Integer)value$; break; - case 13: boxingallowed = (java.lang.Integer)value$; break; - case 14: playbackmethod = (java.util.List)value$; break; - case 15: delivery = (java.util.List)value$; break; - case 16: pos = (java.lang.Integer)value$; break; - case 17: companionad = (java.util.List)value$; break; - case 18: api = (java.util.List)value$; break; - case 19: companiontype = (java.util.List)value$; break; - case 20: ext = (java.lang.CharSequence)value$; break; - default: throw new org.apache.avro.AvroRuntimeException("Bad index"); - } - } - - /** - * Gets the value of the 'mimes' field. - */ - public java.util.List getMimes() { - return mimes; - } - - /** - * Sets the value of the 'mimes' field. - * @param value the value to set. - */ - public void setMimes(java.util.List value) { - this.mimes = value; - } - - /** - * Gets the value of the 'linearity' field. - */ - public java.lang.Integer getLinearity() { - return linearity; - } - - /** - * Sets the value of the 'linearity' field. - * @param value the value to set. - */ - public void setLinearity(java.lang.Integer value) { - this.linearity = value; - } - - /** - * Gets the value of the 'minduration' field. - */ - public java.lang.Integer getMinduration() { - return minduration; - } - - /** - * Sets the value of the 'minduration' field. - * @param value the value to set. - */ - public void setMinduration(java.lang.Integer value) { - this.minduration = value; - } - - /** - * Gets the value of the 'maxduration' field. - */ - public java.lang.Integer getMaxduration() { - return maxduration; - } - - /** - * Sets the value of the 'maxduration' field. - * @param value the value to set. - */ - public void setMaxduration(java.lang.Integer value) { - this.maxduration = value; - } - - /** - * Gets the value of the 'protocol' field. - */ - public java.lang.Integer getProtocol() { - return protocol; - } - - /** - * Sets the value of the 'protocol' field. - * @param value the value to set. - */ - public void setProtocol(java.lang.Integer value) { - this.protocol = value; - } - - /** - * Gets the value of the 'w' field. - */ - public java.lang.Integer getW() { - return w; - } - - /** - * Sets the value of the 'w' field. - * @param value the value to set. - */ - public void setW(java.lang.Integer value) { - this.w = value; - } - - /** - * Gets the value of the 'h' field. - */ - public java.lang.Integer getH() { - return h; - } - - /** - * Sets the value of the 'h' field. - * @param value the value to set. - */ - public void setH(java.lang.Integer value) { - this.h = value; - } - - /** - * Gets the value of the 'startdelay' field. - */ - public java.lang.Integer getStartdelay() { - return startdelay; - } - - /** - * Sets the value of the 'startdelay' field. - * @param value the value to set. - */ - public void setStartdelay(java.lang.Integer value) { - this.startdelay = value; - } - - /** - * Gets the value of the 'sequence' field. - */ - public java.lang.Integer getSequence() { - return sequence; - } - - /** - * Sets the value of the 'sequence' field. - * @param value the value to set. - */ - public void setSequence(java.lang.Integer value) { - this.sequence = value; - } - - /** - * Gets the value of the 'battr' field. - */ - public java.util.List getBattr() { - return battr; - } - - /** - * Sets the value of the 'battr' field. - * @param value the value to set. - */ - public void setBattr(java.util.List value) { - this.battr = value; - } - - /** - * Gets the value of the 'maxextended' field. - */ - public java.lang.Integer getMaxextended() { - return maxextended; - } - - /** - * Sets the value of the 'maxextended' field. - * @param value the value to set. - */ - public void setMaxextended(java.lang.Integer value) { - this.maxextended = value; - } - - /** - * Gets the value of the 'minbitrate' field. - */ - public java.lang.Integer getMinbitrate() { - return minbitrate; - } - - /** - * Sets the value of the 'minbitrate' field. - * @param value the value to set. - */ - public void setMinbitrate(java.lang.Integer value) { - this.minbitrate = value; - } - - /** - * Gets the value of the 'maxbitrate' field. - */ - public java.lang.Integer getMaxbitrate() { - return maxbitrate; - } - - /** - * Sets the value of the 'maxbitrate' field. - * @param value the value to set. - */ - public void setMaxbitrate(java.lang.Integer value) { - this.maxbitrate = value; - } - - /** - * Gets the value of the 'boxingallowed' field. - */ - public java.lang.Integer getBoxingallowed() { - return boxingallowed; - } - - /** - * Sets the value of the 'boxingallowed' field. - * @param value the value to set. - */ - public void setBoxingallowed(java.lang.Integer value) { - this.boxingallowed = value; - } - - /** - * Gets the value of the 'playbackmethod' field. - */ - public java.util.List getPlaybackmethod() { - return playbackmethod; - } - - /** - * Sets the value of the 'playbackmethod' field. - * @param value the value to set. - */ - public void setPlaybackmethod(java.util.List value) { - this.playbackmethod = value; - } - - /** - * Gets the value of the 'delivery' field. - */ - public java.util.List getDelivery() { - return delivery; - } - - /** - * Sets the value of the 'delivery' field. - * @param value the value to set. - */ - public void setDelivery(java.util.List value) { - this.delivery = value; - } - - /** - * Gets the value of the 'pos' field. - */ - public java.lang.Integer getPos() { - return pos; - } - - /** - * Sets the value of the 'pos' field. - * @param value the value to set. - */ - public void setPos(java.lang.Integer value) { - this.pos = value; - } - - /** - * Gets the value of the 'companionad' field. - */ - public java.util.List getCompanionad() { - return companionad; - } - - /** - * Sets the value of the 'companionad' field. - * @param value the value to set. - */ - public void setCompanionad(java.util.List value) { - this.companionad = value; - } - - /** - * Gets the value of the 'api' field. - */ - public java.util.List getApi() { - return api; - } - - /** - * Sets the value of the 'api' field. - * @param value the value to set. - */ - public void setApi(java.util.List value) { - this.api = value; - } - - /** - * Gets the value of the 'companiontype' field. - */ - public java.util.List getCompaniontype() { - return companiontype; - } - - /** - * Sets the value of the 'companiontype' field. - * @param value the value to set. - */ - public void setCompaniontype(java.util.List value) { - this.companiontype = value; - } - - /** - * Gets the value of the 'ext' field. - */ - public java.lang.CharSequence getExt() { - return ext; - } - - /** - * Sets the value of the 'ext' field. - * @param value the value to set. - */ - public void setExt(java.lang.CharSequence value) { - this.ext = value; - } - - /** Creates a new Video RecordBuilder */ - public static org.openrtb.common.api.Video.Builder newBuilder() { - return new org.openrtb.common.api.Video.Builder(); - } - - /** Creates a new Video RecordBuilder by copying an existing Builder */ - public static org.openrtb.common.api.Video.Builder newBuilder(org.openrtb.common.api.Video.Builder other) { - return new org.openrtb.common.api.Video.Builder(other); - } - - /** Creates a new Video RecordBuilder by copying an existing Video instance */ - public static org.openrtb.common.api.Video.Builder newBuilder(org.openrtb.common.api.Video other) { - return new org.openrtb.common.api.Video.Builder(other); - } - - /** - * RecordBuilder for Video instances. - */ - public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase