
open_rtb.BannerAvro Maven / Gradle / Ivy
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package open_rtb;
/** 3.3.3 Banner Object
The “banner” object _must_ be included directly in the impression object if the impression offered for auction is display or rich media, or it may be _optionally_ embedded in the video object to describe the companion banners available for the linear or non-linear video ad. The banner object may include a unique identifier; this can be useful if these IDs can be leveraged in the VAST response to dictate placement of the companion creatives when multiple companion ad opportunities of the same size are available on a page. */
@org.apache.avro.specific.AvroGenerated
final public class BannerAvro extends org.apache.avro.specific.SpecificRecordBase {
/** Width of the impression in pixels. Since some ad types are not restricted by size this field is not required, but it’s highly recommended that this information be included when possible. */
int w;
/** Height of the impression in pixels. Since some ad types are not restricted by size this field is not required, but it’s highly recommended that this information be included when possible. */
int h;
/** Maximum width of the impression in pixels. If included, it indicates that a range of sizes is allowed with this maximum width and "w" is taken as recommended. If not included, then "w" should be considered an exact requirement. */
int wmax;
/** Maximum height of the impression in pixels. If included, it indicates that a range of sizes is allowed with this maximum height and "h" is taken as recommended. If not included, then "h" should be considered an exact requirement. */
int hmax;
/** Minimum width of the impression in pixels. If included, it indicates that a range of sizes is allowed with this minimum width and "w" is taken as recommended. If not included, then "w" should be considered an exact requirement. */
int wmin;
/** Minimum height of the impression in pixels. If included, it indicates that a range of sizes is allowed with this minimum height and "h" is taken as recommended. If not included, then "h" should be considered an exact requirement. */
int hmin;
/** Unique identifier for this banner object. Useful for tracking multiple banner objects (e.g., in companion banner array). Usually starts with 1, increasing with each object. Combination of impression id banner object should be unique. */
org.apache.avro.util.Utf8 id;
/** Ad Position. Use Table 6.5 */
int pos;
/** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed. */
org.apache.avro.generic.GenericData.Array btype;
/** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed. */
org.apache.avro.generic.GenericData.Array battr;
/** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”. */
org.apache.avro.generic.GenericData.Array mimes;
/** Specify if the banner is delivered in the top frame or in an iframe. “0” means it is not in the top frame, and “1” means that it is. */
int topframe;
/** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values. */
org.apache.avro.generic.GenericData.Array expdir;
/** List of supported API frameworks for this banner. (See Table 6.4 API Frameworks). If an API is not explicitly listed it is assumed not to be supported. */
org.apache.avro.generic.GenericData.Array api;
private boolean _frozen = false;
/** Default constructor, does not initialize fields to their default values from the schema. Only use this if you know what you are doing. */
public BannerAvro() {}
public BannerAvro freeze() {
_frozen = true;
return this;
}
@Override
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
@Override
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return w;
case 1: return h;
case 2: return wmax;
case 3: return hmax;
case 4: return wmin;
case 5: return hmin;
case 6: return id;
case 7: return pos;
case 8: return btype;
case 9: return battr;
case 10: return mimes;
case 11: return topframe;
case 12: return expdir;
case 13: return api;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/** Writes record to Avro Encoder. */
public void encode(org.apache.avro.io.Encoder _encoder) throws java.io.IOException {
_encoder.writeInt(w);
_encoder.writeInt(h);
_encoder.writeInt(wmax);
_encoder.writeInt(hmax);
_encoder.writeInt(wmin);
_encoder.writeInt(hmin);
_encoder.writeString(id);
_encoder.writeInt(pos);
_encoder.writeArrayStart(); _encoder.setItemCount(btype.size()); for (java.lang.Integer e : btype) { _encoder.writeInt(e); } _encoder.writeArrayEnd();
_encoder.writeArrayStart(); _encoder.setItemCount(battr.size()); for (java.lang.Integer e : battr) { _encoder.writeInt(e); } _encoder.writeArrayEnd();
_encoder.writeArrayStart(); _encoder.setItemCount(mimes.size()); for (org.apache.avro.util.Utf8 e : mimes) { _encoder.writeString(e); } _encoder.writeArrayEnd();
_encoder.writeInt(topframe);
_encoder.writeArrayStart(); _encoder.setItemCount(expdir.size()); for (java.lang.Integer e : expdir) { _encoder.writeInt(e); } _encoder.writeArrayEnd();
_encoder.writeArrayStart(); _encoder.setItemCount(api.size()); for (java.lang.Integer e : api) { _encoder.writeInt(e); } _encoder.writeArrayEnd();
}
// Used by DatumReader. Applications should not call.
@Override
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
if (_frozen) {
throw new org.apache.avro.AvroRuntimeException("this Anoa SpecificRecord instance has already been frozen.");
}
switch (field$) {
case 0: w = (int) value$; break;
case 1: h = (int) value$; break;
case 2: wmax = (int) value$; break;
case 3: hmax = (int) value$; break;
case 4: wmin = (int) value$; break;
case 5: hmin = (int) value$; break;
case 6: id = (org.apache.avro.util.Utf8) value$; break;
case 7: pos = (int) value$; break;
case 8: btype = (org.apache.avro.generic.GenericData.Array) value$; break;
case 9: battr = (org.apache.avro.generic.GenericData.Array) value$; break;
case 10: mimes = (org.apache.avro.generic.GenericData.Array) value$; break;
case 11: topframe = (int) value$; break;
case 12: expdir = (org.apache.avro.generic.GenericData.Array) value$; break;
case 13: api = (org.apache.avro.generic.GenericData.Array) value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/** Reads record from Avro Decoder. */
public BannerAvro decode(org.apache.avro.io.Decoder _decoder) throws java.io.IOException {
if (_frozen) {
throw new org.apache.avro.AvroRuntimeException("this Anoa SpecificRecord instance has already been frozen.");
}
w = _decoder.readInt();
h = _decoder.readInt();
wmax = _decoder.readInt();
hmax = _decoder.readInt();
wmin = _decoder.readInt();
hmin = _decoder.readInt();
id = _decoder.readString(id);
pos = _decoder.readInt();
long _i8 = _decoder.readArrayStart(); btype = new org.apache.avro.generic.GenericData.Array((int) _i8, SCHEMA$.getFields().get(8).schema()); for(; _i8 != 0; _i8 = _decoder.arrayNext()) { for (long _j8= 0; _j8 < _i8; _j8++) { btype.add(_decoder.readInt()); } }
long _i9 = _decoder.readArrayStart(); battr = new org.apache.avro.generic.GenericData.Array((int) _i9, SCHEMA$.getFields().get(9).schema()); for(; _i9 != 0; _i9 = _decoder.arrayNext()) { for (long _j9= 0; _j9 < _i9; _j9++) { battr.add(_decoder.readInt()); } }
long _i10 = _decoder.readArrayStart(); mimes = new org.apache.avro.generic.GenericData.Array((int) _i10, SCHEMA$.getFields().get(10).schema()); for(; _i10 != 0; _i10 = _decoder.arrayNext()) { for (long _j10= 0; _j10 < _i10; _j10++) { mimes.add(_decoder.readString(null)); } }
topframe = _decoder.readInt();
long _i12 = _decoder.readArrayStart(); expdir = new org.apache.avro.generic.GenericData.Array((int) _i12, SCHEMA$.getFields().get(12).schema()); for(; _i12 != 0; _i12 = _decoder.arrayNext()) { for (long _j12= 0; _j12 < _i12; _j12++) { expdir.add(_decoder.readInt()); } }
long _i13 = _decoder.readArrayStart(); api = new org.apache.avro.generic.GenericData.Array((int) _i13, SCHEMA$.getFields().get(13).schema()); for(; _i13 != 0; _i13 = _decoder.arrayNext()) { for (long _j13= 0; _j13 < _i13; _j13++) { api.add(_decoder.readInt()); } }
return freeze();
}
/**
* RecordBuilder for Avro instances.
*/
static public class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase implements org.apache.avro.data.RecordBuilder {
private int w;
private int h;
private int wmax;
private int hmax;
private int wmin;
private int hmin;
private org.apache.avro.util.Utf8 id;
private int pos;
private org.apache.avro.generic.GenericData.Array btype;
private org.apache.avro.generic.GenericData.Array battr;
private org.apache.avro.generic.GenericData.Array mimes;
private int topframe;
private org.apache.avro.generic.GenericData.Array expdir;
private org.apache.avro.generic.GenericData.Array api;
public Builder() {
super(BannerAvro.SCHEMA$);
}
public Builder(BannerAvro.Builder other) {
super(other);
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.wmax)) {
this.wmax = data().deepCopy(fields()[2].schema(), other.wmax);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.hmax)) {
this.hmax = data().deepCopy(fields()[3].schema(), other.hmax);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.wmin)) {
this.wmin = data().deepCopy(fields()[4].schema(), other.wmin);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.hmin)) {
this.hmin = data().deepCopy(fields()[5].schema(), other.hmin);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.id)) {
this.id = data().deepCopy(fields()[6].schema(), other.id);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.pos)) {
this.pos = data().deepCopy(fields()[7].schema(), other.pos);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.btype)) {
this.btype = data().deepCopy(fields()[8].schema(), other.btype);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.battr)) {
this.battr = data().deepCopy(fields()[9].schema(), other.battr);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.mimes)) {
this.mimes = data().deepCopy(fields()[10].schema(), other.mimes);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.topframe)) {
this.topframe = data().deepCopy(fields()[11].schema(), other.topframe);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.expdir)) {
this.expdir = data().deepCopy(fields()[12].schema(), other.expdir);
fieldSetFlags()[12] = true;
}
if (isValidValue(fields()[13], other.api)) {
this.api = data().deepCopy(fields()[13].schema(), other.api);
fieldSetFlags()[13] = true;
}
}
public Builder(BannerAvro other) {
super(BannerAvro.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.wmax)) {
this.wmax = data().deepCopy(fields()[2].schema(), other.wmax);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.hmax)) {
this.hmax = data().deepCopy(fields()[3].schema(), other.hmax);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.wmin)) {
this.wmin = data().deepCopy(fields()[4].schema(), other.wmin);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.hmin)) {
this.hmin = data().deepCopy(fields()[5].schema(), other.hmin);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.id)) {
this.id = data().deepCopy(fields()[6].schema(), other.id);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.pos)) {
this.pos = data().deepCopy(fields()[7].schema(), other.pos);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.btype)) {
this.btype = data().deepCopy(fields()[8].schema(), other.btype);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.battr)) {
this.battr = data().deepCopy(fields()[9].schema(), other.battr);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.mimes)) {
this.mimes = data().deepCopy(fields()[10].schema(), other.mimes);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.topframe)) {
this.topframe = data().deepCopy(fields()[11].schema(), other.topframe);
fieldSetFlags()[11] = true;
}
if (isValidValue(fields()[12], other.expdir)) {
this.expdir = data().deepCopy(fields()[12].schema(), other.expdir);
fieldSetFlags()[12] = true;
}
if (isValidValue(fields()[13], other.api)) {
this.api = data().deepCopy(fields()[13].schema(), other.api);
fieldSetFlags()[13] = true;
}
}
/** Gets the value of the 'w' field. */
public int getW() {
return w;
}
/** Sets the value of the 'w' field. */
public BannerAvro.Builder setW(int 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 BannerAvro.Builder clearW() {
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'h' field. */
public int getH() {
return h;
}
/** Sets the value of the 'h' field. */
public BannerAvro.Builder setH(int 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 BannerAvro.Builder clearH() {
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'wmax' field. */
public int getWmax() {
return wmax;
}
/** Sets the value of the 'wmax' field. */
public BannerAvro.Builder setWmax(int value) {
validate(fields()[2], value);
this.wmax = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'wmax' field has been set. */
public boolean hasWmax() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'wmax' field. */
public BannerAvro.Builder clearWmax() {
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'hmax' field. */
public int getHmax() {
return hmax;
}
/** Sets the value of the 'hmax' field. */
public BannerAvro.Builder setHmax(int value) {
validate(fields()[3], value);
this.hmax = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'hmax' field has been set. */
public boolean hasHmax() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'hmax' field. */
public BannerAvro.Builder clearHmax() {
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'wmin' field. */
public int getWmin() {
return wmin;
}
/** Sets the value of the 'wmin' field. */
public BannerAvro.Builder setWmin(int value) {
validate(fields()[4], value);
this.wmin = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'wmin' field has been set. */
public boolean hasWmin() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'wmin' field. */
public BannerAvro.Builder clearWmin() {
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'hmin' field. */
public int getHmin() {
return hmin;
}
/** Sets the value of the 'hmin' field. */
public BannerAvro.Builder setHmin(int value) {
validate(fields()[5], value);
this.hmin = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'hmin' field has been set. */
public boolean hasHmin() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'hmin' field. */
public BannerAvro.Builder clearHmin() {
fieldSetFlags()[5] = false;
return this;
}
/** Gets the value of the 'id' field. */
public org.apache.avro.util.Utf8 getId() {
return id;
}
/** Sets the value of the 'id' field. */
public BannerAvro.Builder setId(org.apache.avro.util.Utf8 value) {
validate(fields()[6], value);
this.id = value;
fieldSetFlags()[6] = true;
return this;
}
/** Checks whether the 'id' field has been set. */
public boolean hasId() {
return fieldSetFlags()[6];
}
/** Clears the value of the 'id' field. */
public BannerAvro.Builder clearId() {
id = null;
fieldSetFlags()[6] = false;
return this;
}
/** Gets the value of the 'pos' field. */
public int getPos() {
return pos;
}
/** Sets the value of the 'pos' field. */
public BannerAvro.Builder setPos(int value) {
validate(fields()[7], value);
this.pos = value;
fieldSetFlags()[7] = true;
return this;
}
/** Checks whether the 'pos' field has been set. */
public boolean hasPos() {
return fieldSetFlags()[7];
}
/** Clears the value of the 'pos' field. */
public BannerAvro.Builder clearPos() {
fieldSetFlags()[7] = false;
return this;
}
/** Gets the value of the 'btype' field. */
public org.apache.avro.generic.GenericData.Array getBtype() {
return btype;
}
/** Sets the value of the 'btype' field. */
public BannerAvro.Builder setBtype(org.apache.avro.generic.GenericData.Array value) {
validate(fields()[8], value);
this.btype = value;
fieldSetFlags()[8] = true;
return this;
}
/** Checks whether the 'btype' field has been set. */
public boolean hasBtype() {
return fieldSetFlags()[8];
}
/** Clears the value of the 'btype' field. */
public BannerAvro.Builder clearBtype() {
btype = null;
fieldSetFlags()[8] = false;
return this;
}
/** Gets the value of the 'battr' field. */
public org.apache.avro.generic.GenericData.Array getBattr() {
return battr;
}
/** Sets the value of the 'battr' field. */
public BannerAvro.Builder setBattr(org.apache.avro.generic.GenericData.Array value) {
validate(fields()[9], value);
this.battr = value;
fieldSetFlags()[9] = true;
return this;
}
/** Checks whether the 'battr' field has been set. */
public boolean hasBattr() {
return fieldSetFlags()[9];
}
/** Clears the value of the 'battr' field. */
public BannerAvro.Builder clearBattr() {
battr = null;
fieldSetFlags()[9] = false;
return this;
}
/** Gets the value of the 'mimes' field. */
public org.apache.avro.generic.GenericData.Array getMimes() {
return mimes;
}
/** Sets the value of the 'mimes' field. */
public BannerAvro.Builder setMimes(org.apache.avro.generic.GenericData.Array value) {
validate(fields()[10], value);
this.mimes = value;
fieldSetFlags()[10] = true;
return this;
}
/** Checks whether the 'mimes' field has been set. */
public boolean hasMimes() {
return fieldSetFlags()[10];
}
/** Clears the value of the 'mimes' field. */
public BannerAvro.Builder clearMimes() {
mimes = null;
fieldSetFlags()[10] = false;
return this;
}
/** Gets the value of the 'topframe' field. */
public int getTopframe() {
return topframe;
}
/** Sets the value of the 'topframe' field. */
public BannerAvro.Builder setTopframe(int value) {
validate(fields()[11], value);
this.topframe = value;
fieldSetFlags()[11] = true;
return this;
}
/** Checks whether the 'topframe' field has been set. */
public boolean hasTopframe() {
return fieldSetFlags()[11];
}
/** Clears the value of the 'topframe' field. */
public BannerAvro.Builder clearTopframe() {
fieldSetFlags()[11] = false;
return this;
}
/** Gets the value of the 'expdir' field. */
public org.apache.avro.generic.GenericData.Array getExpdir() {
return expdir;
}
/** Sets the value of the 'expdir' field. */
public BannerAvro.Builder setExpdir(org.apache.avro.generic.GenericData.Array value) {
validate(fields()[12], value);
this.expdir = value;
fieldSetFlags()[12] = true;
return this;
}
/** Checks whether the 'expdir' field has been set. */
public boolean hasExpdir() {
return fieldSetFlags()[12];
}
/** Clears the value of the 'expdir' field. */
public BannerAvro.Builder clearExpdir() {
expdir = null;
fieldSetFlags()[12] = false;
return this;
}
/** Gets the value of the 'api' field. */
public org.apache.avro.generic.GenericData.Array getApi() {
return api;
}
/** Sets the value of the 'api' field. */
public BannerAvro.Builder setApi(org.apache.avro.generic.GenericData.Array value) {
validate(fields()[13], value);
this.api = value;
fieldSetFlags()[13] = true;
return this;
}
/** Checks whether the 'api' field has been set. */
public boolean hasApi() {
return fieldSetFlags()[13];
}
/** Clears the value of the 'api' field. */
public BannerAvro.Builder clearApi() {
api = null;
fieldSetFlags()[13] = false;
return this;
}
@Override
public BannerAvro build() {
final BannerAvro record;
try {
record = new BannerAvro();
record.w = fieldSetFlags()[0] ? this.w : (int) defaultValue(fields()[0]);
record.h = fieldSetFlags()[1] ? this.h : (int) defaultValue(fields()[1]);
record.wmax = fieldSetFlags()[2] ? this.wmax : (int) defaultValue(fields()[2]);
record.hmax = fieldSetFlags()[3] ? this.hmax : (int) defaultValue(fields()[3]);
record.wmin = fieldSetFlags()[4] ? this.wmin : (int) defaultValue(fields()[4]);
record.hmin = fieldSetFlags()[5] ? this.hmin : (int) defaultValue(fields()[5]);
record.id = fieldSetFlags()[6] ? this.id : (org.apache.avro.util.Utf8) defaultValue(fields()[6]);
record.pos = fieldSetFlags()[7] ? this.pos : (int) defaultValue(fields()[7]);
record.btype = fieldSetFlags()[8] ? this.btype : (org.apache.avro.generic.GenericData.Array) defaultValue(fields()[8]);
record.battr = fieldSetFlags()[9] ? this.battr : (org.apache.avro.generic.GenericData.Array) defaultValue(fields()[9]);
record.mimes = fieldSetFlags()[10] ? this.mimes : (org.apache.avro.generic.GenericData.Array) defaultValue(fields()[10]);
record.topframe = fieldSetFlags()[11] ? this.topframe : (int) defaultValue(fields()[11]);
record.expdir = fieldSetFlags()[12] ? this.expdir : (org.apache.avro.generic.GenericData.Array) defaultValue(fields()[12]);
record.api = fieldSetFlags()[13] ? this.api : (org.apache.avro.generic.GenericData.Array) defaultValue(fields()[13]);
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
return record.freeze();
}
}
/** Creates a new BannerAvro RecordBuilder. */
static public BannerAvro.Builder newBuilder() {
return new BannerAvro.Builder();
}
/** Creates a new BannerAvro RecordBuilder by copying an existing BannerAvro.Builder instance. */
static public BannerAvro.Builder newBuilder(BannerAvro.Builder other) {
return new BannerAvro.Builder(other);
}
/** Creates a new BannerAvro RecordBuilder by copying an existing BannerAvro instance. */
static public BannerAvro.Builder newBuilder(BannerAvro other) {
return new BannerAvro.Builder(other);
}
/** Returns Avro record schema. */
static public org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
static public final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"BannerAvro\",\"namespace\":\"open_rtb\",\"doc\":\"3.3.3 Banner Object\\nThe “banner” object _must_ be included directly in the impression object if the impression offered for auction is display or rich media, or it may be _optionally_ embedded in the video object to describe the companion banners available for the linear or non-linear video ad. The banner object may include a unique identifier; this can be useful if these IDs can be leveraged in the VAST response to dictate placement of the companion creatives when multiple companion ad opportunities of the same size are available on a page.\",\"fields\":[{\"name\":\"w\",\"type\":{\"type\":\"int\",\"max\":4294967295,\"min\":0},\"doc\":\"Width of the impression in pixels. Since some ad types are not restricted by size this field is not required, but it’s highly recommended that this information be included when possible.\",\"default\":0,\"ordinal_\":1},{\"name\":\"h\",\"type\":{\"type\":\"int\",\"max\":4294967295,\"min\":0},\"doc\":\"Height of the impression in pixels. Since some ad types are not restricted by size this field is not required, but it’s highly recommended that this information be included when possible.\",\"default\":0,\"ordinal_\":2},{\"name\":\"wmax\",\"type\":{\"type\":\"int\",\"max\":4294967295,\"min\":0},\"doc\":\"Maximum width of the impression in pixels. If included, it indicates that a range of sizes is allowed with this maximum width and \\\"w\\\" is taken as recommended. If not included, then \\\"w\\\" should be considered an exact requirement.\",\"default\":0,\"ordinal_\":3},{\"name\":\"hmax\",\"type\":{\"type\":\"int\",\"max\":4294967295,\"min\":0},\"doc\":\"Maximum height of the impression in pixels. If included, it indicates that a range of sizes is allowed with this maximum height and \\\"h\\\" is taken as recommended. If not included, then \\\"h\\\" should be considered an exact requirement.\",\"default\":0,\"ordinal_\":4},{\"name\":\"wmin\",\"type\":{\"type\":\"int\",\"max\":4294967295,\"min\":0},\"doc\":\"Minimum width of the impression in pixels. If included, it indicates that a range of sizes is allowed with this minimum width and \\\"w\\\" is taken as recommended. If not included, then \\\"w\\\" should be considered an exact requirement.\",\"default\":0,\"ordinal_\":5},{\"name\":\"hmin\",\"type\":{\"type\":\"int\",\"max\":4294967295,\"min\":0},\"doc\":\"Minimum height of the impression in pixels. If included, it indicates that a range of sizes is allowed with this minimum height and \\\"h\\\" is taken as recommended. If not included, then \\\"h\\\" should be considered an exact requirement.\",\"default\":0,\"ordinal_\":6},{\"name\":\"id\",\"type\":\"string\",\"doc\":\"Unique identifier for this banner object. Useful for tracking multiple banner objects (e.g., in companion banner array). Usually starts with 1, increasing with each object. Combination of impression id banner object should be unique.\",\"default\":\"\",\"ordinal_\":7},{\"name\":\"pos\",\"type\":{\"type\":\"int\",\"max\":255,\"min\":0},\"doc\":\"Ad Position. Use Table 6.5\",\"default\":0,\"ordinal_\":8},{\"name\":\"btype\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"int\",\"max\":255,\"min\":0}},\"doc\":\"Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.\",\"default\":[],\"ordinal_\":9},{\"name\":\"battr\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"int\",\"max\":65535,\"min\":0}},\"doc\":\"Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.\",\"default\":[],\"ordinal_\":10},{\"name\":\"mimes\",\"type\":{\"type\":\"array\",\"items\":\"string\"},\"doc\":\"Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.\",\"default\":[],\"ordinal_\":11},{\"name\":\"topframe\",\"type\":{\"type\":\"int\",\"max\":1,\"min\":0},\"doc\":\"Specify if the banner is delivered in the top frame or in an iframe. “0” means it is not in the top frame, and “1” means that it is.\",\"default\":0,\"ordinal_\":12},{\"name\":\"expdir\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"int\",\"max\":255,\"min\":0}},\"doc\":\"Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.\",\"default\":[],\"ordinal_\":13},{\"name\":\"api\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"int\",\"max\":255,\"min\":0}},\"doc\":\"List of supported API frameworks for this banner. (See Table 6.4 API Frameworks). If an API is not explicitly listed it is assumed not to be supported.\",\"default\":[],\"ordinal_\":14}]}");
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy