
open_rtb.VideoThrift Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package open_rtb;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
/**
* 3.3.4 Video Object
* The “video” object _must_ be included directly in the impression object if the impression offered for auction is an in-stream video ad opportunity.
* Note that for the video object, many of the fields are non-essential for a minimally viable exchange interfaces. These parameters do not necessarily need to be specified to the bidder, if they are always the same for all impression, of if the exchange chooses not to supply the additional information to the bidder.
*/
@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2016-6-3")
public class VideoThrift implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("VideoThrift");
private static final org.apache.thrift.protocol.TField MIMES_FIELD_DESC = new org.apache.thrift.protocol.TField("mimes", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.protocol.TField MINDURATION_FIELD_DESC = new org.apache.thrift.protocol.TField("minduration", org.apache.thrift.protocol.TType.I32, (short)2);
private static final org.apache.thrift.protocol.TField MAXDURATION_FIELD_DESC = new org.apache.thrift.protocol.TField("maxduration", org.apache.thrift.protocol.TType.I32, (short)3);
private static final org.apache.thrift.protocol.TField PROTOCOL_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol", org.apache.thrift.protocol.TType.I16, (short)4);
private static final org.apache.thrift.protocol.TField PROTOCOLS_FIELD_DESC = new org.apache.thrift.protocol.TField("protocols", org.apache.thrift.protocol.TType.LIST, (short)5);
private static final org.apache.thrift.protocol.TField W_FIELD_DESC = new org.apache.thrift.protocol.TField("w", org.apache.thrift.protocol.TType.I32, (short)6);
private static final org.apache.thrift.protocol.TField H_FIELD_DESC = new org.apache.thrift.protocol.TField("h", org.apache.thrift.protocol.TType.I32, (short)7);
private static final org.apache.thrift.protocol.TField STARTDELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("startdelay", org.apache.thrift.protocol.TType.I16, (short)8);
private static final org.apache.thrift.protocol.TField LINEARITY_FIELD_DESC = new org.apache.thrift.protocol.TField("linearity", org.apache.thrift.protocol.TType.I16, (short)9);
private static final org.apache.thrift.protocol.TField SEQUENCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sequence", org.apache.thrift.protocol.TType.I32, (short)10);
private static final org.apache.thrift.protocol.TField BATTR_FIELD_DESC = new org.apache.thrift.protocol.TField("battr", org.apache.thrift.protocol.TType.LIST, (short)11);
private static final org.apache.thrift.protocol.TField MAXEXTENDED_FIELD_DESC = new org.apache.thrift.protocol.TField("maxextended", org.apache.thrift.protocol.TType.I32, (short)12);
private static final org.apache.thrift.protocol.TField MINBITRATE_FIELD_DESC = new org.apache.thrift.protocol.TField("minbitrate", org.apache.thrift.protocol.TType.I32, (short)13);
private static final org.apache.thrift.protocol.TField MAXBITRATE_FIELD_DESC = new org.apache.thrift.protocol.TField("maxbitrate", org.apache.thrift.protocol.TType.I32, (short)14);
private static final org.apache.thrift.protocol.TField BOXINGALLOWED_FIELD_DESC = new org.apache.thrift.protocol.TField("boxingallowed", org.apache.thrift.protocol.TType.BYTE, (short)15);
private static final org.apache.thrift.protocol.TField PLAYBACKMETHOD_FIELD_DESC = new org.apache.thrift.protocol.TField("playbackmethod", org.apache.thrift.protocol.TType.LIST, (short)16);
private static final org.apache.thrift.protocol.TField DELIVERYMETHOD_FIELD_DESC = new org.apache.thrift.protocol.TField("deliverymethod", org.apache.thrift.protocol.TType.LIST, (short)17);
private static final org.apache.thrift.protocol.TField POS_FIELD_DESC = new org.apache.thrift.protocol.TField("pos", org.apache.thrift.protocol.TType.I16, (short)18);
private static final org.apache.thrift.protocol.TField COMPANIONAD_FIELD_DESC = new org.apache.thrift.protocol.TField("companionad", org.apache.thrift.protocol.TType.LIST, (short)19);
private static final org.apache.thrift.protocol.TField API_FIELD_DESC = new org.apache.thrift.protocol.TField("api", org.apache.thrift.protocol.TType.LIST, (short)20);
private static final org.apache.thrift.protocol.TField VAST_COMPANION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("vast_companion_type", org.apache.thrift.protocol.TType.LIST, (short)21);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new VideoThriftStandardSchemeFactory());
schemes.put(TupleScheme.class, new VideoThriftTupleSchemeFactory());
}
/**
* Content MIME types supported. Popular MIME types include, but are not limited to “video/x-ms- wmv” for Windows Media, and “video/x-flv” for Flash Video.
*/
public List mimes; // optional
/**
* Minimum video ad duration in seconds.
*/
public int minduration; // optional
/**
* Maximum video ad duration in seconds.
*/
public int maxduration; // optional
/**
* Video bid response protocols. See Table 6.7 Video Bid Response Protocols for a list of possible values. NOTE: Use “protocols” when multiple protocols are supported. Its use is also highly recommended even for one since this “protocol” attribute is likely to be deprecated in a future version.
* At least one supported protocol must be specified in either the “protocol” or “protocols” attribute.
*/
public short protocol; // optional
/**
* Video bid response protocols. See Table 6.7 Video Bid Response Protocols for a list of possible values.
* At least one supported protocol must be specified in either the “protocol” or “protocols” attribute.
*/
public List protocols; // optional
/**
* Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*/
public int w; // optional
/**
* Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*/
public int h; // optional
/**
* Indicates the start delay in seconds for preroll, midroll, or postroll ad placement. See Table 6.9 Video Start Delay for generic placement values.
*/
public short startdelay; // optional
/**
* Indicates whether the ad impression must be linear, non- linear or can be of any type (field not set). See Table 6.6 Video Linearity for a list of the possible values and recommended bidder interpretation.
*/
public short linearity; // optional
/**
* If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*/
public int sequence; // optional
/**
* Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*/
public List battr; // optional
/**
* Maximum extended video ad duration, if extension is allowed. If blank or 0, extension is not allowed. If -1, extension is allowed, and there is no time limit imposed. If greater than 0, then the value represents the number of seconds of extended play supported beyond the maxduration value.
*/
public int maxextended; // optional
/**
* Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*/
public int minbitrate; // optional
/**
* Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*/
public int maxbitrate; // optional
/**
* If exchange publisher has rules preventing letter boxing of 4x3 content to play in a 16x9 window, then this should be set to false. Default setting is true, which assumes that boxing of content to fit into a window is allowed. “1” indicates boxing is allowed. “0” indicates it is not allowed.
*/
public byte boxingallowed; // optional
/**
* List of allowed playback methods. If blank, assume that all are allowed. See Table 6.8 Video Playback Methods for a list of possible values.
*/
public List playbackmethod; // optional
/**
* List of supported delivery methods (streaming, progressive). If blank, assume all are supported. See Table 6.12 Content Delivery Methods for a list of possible values.
*/
public List deliverymethod; // optional
/**
* Ad Position (see table 6.5). Default: unknown.
*/
public short pos; // optional
/**
* If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*/
public List companionad; // optional
/**
* List of supported API frameworks for this impression. (See Table 6.4 API Frameworks). If an API is not explicitly listed it is assumed not to be supported.
*/
public List api; // optional
/**
* Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*/
public List vast_companion_type; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
/**
* Content MIME types supported. Popular MIME types include, but are not limited to “video/x-ms- wmv” for Windows Media, and “video/x-flv” for Flash Video.
*/
MIMES((short)1, "mimes"),
/**
* Minimum video ad duration in seconds.
*/
MINDURATION((short)2, "minduration"),
/**
* Maximum video ad duration in seconds.
*/
MAXDURATION((short)3, "maxduration"),
/**
* Video bid response protocols. See Table 6.7 Video Bid Response Protocols for a list of possible values. NOTE: Use “protocols” when multiple protocols are supported. Its use is also highly recommended even for one since this “protocol” attribute is likely to be deprecated in a future version.
* At least one supported protocol must be specified in either the “protocol” or “protocols” attribute.
*/
PROTOCOL((short)4, "protocol"),
/**
* Video bid response protocols. See Table 6.7 Video Bid Response Protocols for a list of possible values.
* At least one supported protocol must be specified in either the “protocol” or “protocols” attribute.
*/
PROTOCOLS((short)5, "protocols"),
/**
* Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*/
W((short)6, "w"),
/**
* Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*/
H((short)7, "h"),
/**
* Indicates the start delay in seconds for preroll, midroll, or postroll ad placement. See Table 6.9 Video Start Delay for generic placement values.
*/
STARTDELAY((short)8, "startdelay"),
/**
* Indicates whether the ad impression must be linear, non- linear or can be of any type (field not set). See Table 6.6 Video Linearity for a list of the possible values and recommended bidder interpretation.
*/
LINEARITY((short)9, "linearity"),
/**
* If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*/
SEQUENCE((short)10, "sequence"),
/**
* Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*/
BATTR((short)11, "battr"),
/**
* Maximum extended video ad duration, if extension is allowed. If blank or 0, extension is not allowed. If -1, extension is allowed, and there is no time limit imposed. If greater than 0, then the value represents the number of seconds of extended play supported beyond the maxduration value.
*/
MAXEXTENDED((short)12, "maxextended"),
/**
* Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*/
MINBITRATE((short)13, "minbitrate"),
/**
* Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*/
MAXBITRATE((short)14, "maxbitrate"),
/**
* If exchange publisher has rules preventing letter boxing of 4x3 content to play in a 16x9 window, then this should be set to false. Default setting is true, which assumes that boxing of content to fit into a window is allowed. “1” indicates boxing is allowed. “0” indicates it is not allowed.
*/
BOXINGALLOWED((short)15, "boxingallowed"),
/**
* List of allowed playback methods. If blank, assume that all are allowed. See Table 6.8 Video Playback Methods for a list of possible values.
*/
PLAYBACKMETHOD((short)16, "playbackmethod"),
/**
* List of supported delivery methods (streaming, progressive). If blank, assume all are supported. See Table 6.12 Content Delivery Methods for a list of possible values.
*/
DELIVERYMETHOD((short)17, "deliverymethod"),
/**
* Ad Position (see table 6.5). Default: unknown.
*/
POS((short)18, "pos"),
/**
* If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*/
COMPANIONAD((short)19, "companionad"),
/**
* List of supported API frameworks for this impression. (See Table 6.4 API Frameworks). If an API is not explicitly listed it is assumed not to be supported.
*/
API((short)20, "api"),
/**
* Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*/
VAST_COMPANION_TYPE((short)21, "vast_companion_type");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // MIMES
return MIMES;
case 2: // MINDURATION
return MINDURATION;
case 3: // MAXDURATION
return MAXDURATION;
case 4: // PROTOCOL
return PROTOCOL;
case 5: // PROTOCOLS
return PROTOCOLS;
case 6: // W
return W;
case 7: // H
return H;
case 8: // STARTDELAY
return STARTDELAY;
case 9: // LINEARITY
return LINEARITY;
case 10: // SEQUENCE
return SEQUENCE;
case 11: // BATTR
return BATTR;
case 12: // MAXEXTENDED
return MAXEXTENDED;
case 13: // MINBITRATE
return MINBITRATE;
case 14: // MAXBITRATE
return MAXBITRATE;
case 15: // BOXINGALLOWED
return BOXINGALLOWED;
case 16: // PLAYBACKMETHOD
return PLAYBACKMETHOD;
case 17: // DELIVERYMETHOD
return DELIVERYMETHOD;
case 18: // POS
return POS;
case 19: // COMPANIONAD
return COMPANIONAD;
case 20: // API
return API;
case 21: // VAST_COMPANION_TYPE
return VAST_COMPANION_TYPE;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __MINDURATION_ISSET_ID = 0;
private static final int __MAXDURATION_ISSET_ID = 1;
private static final int __PROTOCOL_ISSET_ID = 2;
private static final int __W_ISSET_ID = 3;
private static final int __H_ISSET_ID = 4;
private static final int __STARTDELAY_ISSET_ID = 5;
private static final int __LINEARITY_ISSET_ID = 6;
private static final int __SEQUENCE_ISSET_ID = 7;
private static final int __MAXEXTENDED_ISSET_ID = 8;
private static final int __MINBITRATE_ISSET_ID = 9;
private static final int __MAXBITRATE_ISSET_ID = 10;
private static final int __BOXINGALLOWED_ISSET_ID = 11;
private static final int __POS_ISSET_ID = 12;
private short __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.MIMES,_Fields.MINDURATION,_Fields.MAXDURATION,_Fields.PROTOCOL,_Fields.PROTOCOLS,_Fields.W,_Fields.H,_Fields.STARTDELAY,_Fields.LINEARITY,_Fields.SEQUENCE,_Fields.BATTR,_Fields.MAXEXTENDED,_Fields.MINBITRATE,_Fields.MAXBITRATE,_Fields.BOXINGALLOWED,_Fields.PLAYBACKMETHOD,_Fields.DELIVERYMETHOD,_Fields.POS,_Fields.COMPANIONAD,_Fields.API,_Fields.VAST_COMPANION_TYPE};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.MIMES, new org.apache.thrift.meta_data.FieldMetaData("mimes", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.MINDURATION, new org.apache.thrift.meta_data.FieldMetaData("minduration", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.MAXDURATION, new org.apache.thrift.meta_data.FieldMetaData("maxduration", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.PROTOCOL, new org.apache.thrift.meta_data.FieldMetaData("protocol", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
tmpMap.put(_Fields.PROTOCOLS, new org.apache.thrift.meta_data.FieldMetaData("protocols", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))));
tmpMap.put(_Fields.W, new org.apache.thrift.meta_data.FieldMetaData("w", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.H, new org.apache.thrift.meta_data.FieldMetaData("h", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.STARTDELAY, new org.apache.thrift.meta_data.FieldMetaData("startdelay", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
tmpMap.put(_Fields.LINEARITY, new org.apache.thrift.meta_data.FieldMetaData("linearity", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
tmpMap.put(_Fields.SEQUENCE, new org.apache.thrift.meta_data.FieldMetaData("sequence", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.BATTR, new org.apache.thrift.meta_data.FieldMetaData("battr", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))));
tmpMap.put(_Fields.MAXEXTENDED, new org.apache.thrift.meta_data.FieldMetaData("maxextended", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.MINBITRATE, new org.apache.thrift.meta_data.FieldMetaData("minbitrate", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.MAXBITRATE, new org.apache.thrift.meta_data.FieldMetaData("maxbitrate", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.BOXINGALLOWED, new org.apache.thrift.meta_data.FieldMetaData("boxingallowed", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
tmpMap.put(_Fields.PLAYBACKMETHOD, new org.apache.thrift.meta_data.FieldMetaData("playbackmethod", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))));
tmpMap.put(_Fields.DELIVERYMETHOD, new org.apache.thrift.meta_data.FieldMetaData("deliverymethod", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))));
tmpMap.put(_Fields.POS, new org.apache.thrift.meta_data.FieldMetaData("pos", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
tmpMap.put(_Fields.COMPANIONAD, new org.apache.thrift.meta_data.FieldMetaData("companionad", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BannerThrift.class))));
tmpMap.put(_Fields.API, new org.apache.thrift.meta_data.FieldMetaData("api", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))));
tmpMap.put(_Fields.VAST_COMPANION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("vast_companion_type", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(VideoThrift.class, metaDataMap);
}
public VideoThrift() {
this.minduration = -1;
this.maxduration = -1;
this.protocol = (short)0;
this.w = 0;
this.h = 0;
this.startdelay = (short)0;
this.linearity = (short)0;
this.sequence = 1;
this.maxextended = 0;
this.minbitrate = 0;
this.maxbitrate = 0;
this.boxingallowed = (byte)1;
this.pos = (short)0;
}
/**
* Performs a deep copy on other.
*/
public VideoThrift(VideoThrift other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetMimes()) {
List __this__mimes = new ArrayList(other.mimes);
this.mimes = __this__mimes;
}
this.minduration = other.minduration;
this.maxduration = other.maxduration;
this.protocol = other.protocol;
if (other.isSetProtocols()) {
List __this__protocols = new ArrayList(other.protocols);
this.protocols = __this__protocols;
}
this.w = other.w;
this.h = other.h;
this.startdelay = other.startdelay;
this.linearity = other.linearity;
this.sequence = other.sequence;
if (other.isSetBattr()) {
List __this__battr = new ArrayList(other.battr);
this.battr = __this__battr;
}
this.maxextended = other.maxextended;
this.minbitrate = other.minbitrate;
this.maxbitrate = other.maxbitrate;
this.boxingallowed = other.boxingallowed;
if (other.isSetPlaybackmethod()) {
List __this__playbackmethod = new ArrayList(other.playbackmethod);
this.playbackmethod = __this__playbackmethod;
}
if (other.isSetDeliverymethod()) {
List __this__deliverymethod = new ArrayList(other.deliverymethod);
this.deliverymethod = __this__deliverymethod;
}
this.pos = other.pos;
if (other.isSetCompanionad()) {
List __this__companionad = new ArrayList(other.companionad.size());
for (BannerThrift other_element : other.companionad) {
__this__companionad.add(new BannerThrift(other_element));
}
this.companionad = __this__companionad;
}
if (other.isSetApi()) {
List __this__api = new ArrayList(other.api);
this.api = __this__api;
}
if (other.isSetVast_companion_type()) {
List __this__vast_companion_type = new ArrayList(other.vast_companion_type);
this.vast_companion_type = __this__vast_companion_type;
}
}
public VideoThrift deepCopy() {
return new VideoThrift(this);
}
@Override
public void clear() {
this.mimes = null;
this.minduration = -1;
this.maxduration = -1;
this.protocol = (short)0;
this.protocols = null;
this.w = 0;
this.h = 0;
this.startdelay = (short)0;
this.linearity = (short)0;
this.sequence = 1;
this.battr = null;
this.maxextended = 0;
this.minbitrate = 0;
this.maxbitrate = 0;
this.boxingallowed = (byte)1;
this.playbackmethod = null;
this.deliverymethod = null;
this.pos = (short)0;
this.companionad = null;
this.api = null;
this.vast_companion_type = null;
}
public int getMimesSize() {
return (this.mimes == null) ? 0 : this.mimes.size();
}
public java.util.Iterator getMimesIterator() {
return (this.mimes == null) ? null : this.mimes.iterator();
}
public void addToMimes(String elem) {
if (this.mimes == null) {
this.mimes = new ArrayList();
}
this.mimes.add(elem);
}
/**
* Content MIME types supported. Popular MIME types include, but are not limited to “video/x-ms- wmv” for Windows Media, and “video/x-flv” for Flash Video.
*/
public List getMimes() {
return this.mimes;
}
/**
* Content MIME types supported. Popular MIME types include, but are not limited to “video/x-ms- wmv” for Windows Media, and “video/x-flv” for Flash Video.
*/
public VideoThrift setMimes(List mimes) {
this.mimes = mimes;
return this;
}
public void unsetMimes() {
this.mimes = null;
}
/** Returns true if field mimes is set (has been assigned a value) and false otherwise */
public boolean isSetMimes() {
return this.mimes != null;
}
public void setMimesIsSet(boolean value) {
if (!value) {
this.mimes = null;
}
}
/**
* Minimum video ad duration in seconds.
*/
public int getMinduration() {
return this.minduration;
}
/**
* Minimum video ad duration in seconds.
*/
public VideoThrift setMinduration(int minduration) {
this.minduration = minduration;
setMindurationIsSet(true);
return this;
}
public void unsetMinduration() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MINDURATION_ISSET_ID);
}
/** Returns true if field minduration is set (has been assigned a value) and false otherwise */
public boolean isSetMinduration() {
return EncodingUtils.testBit(__isset_bitfield, __MINDURATION_ISSET_ID);
}
public void setMindurationIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MINDURATION_ISSET_ID, value);
}
/**
* Maximum video ad duration in seconds.
*/
public int getMaxduration() {
return this.maxduration;
}
/**
* Maximum video ad duration in seconds.
*/
public VideoThrift setMaxduration(int maxduration) {
this.maxduration = maxduration;
setMaxdurationIsSet(true);
return this;
}
public void unsetMaxduration() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXDURATION_ISSET_ID);
}
/** Returns true if field maxduration is set (has been assigned a value) and false otherwise */
public boolean isSetMaxduration() {
return EncodingUtils.testBit(__isset_bitfield, __MAXDURATION_ISSET_ID);
}
public void setMaxdurationIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXDURATION_ISSET_ID, value);
}
/**
* Video bid response protocols. See Table 6.7 Video Bid Response Protocols for a list of possible values. NOTE: Use “protocols” when multiple protocols are supported. Its use is also highly recommended even for one since this “protocol” attribute is likely to be deprecated in a future version.
* At least one supported protocol must be specified in either the “protocol” or “protocols” attribute.
*/
public short getProtocol() {
return this.protocol;
}
/**
* Video bid response protocols. See Table 6.7 Video Bid Response Protocols for a list of possible values. NOTE: Use “protocols” when multiple protocols are supported. Its use is also highly recommended even for one since this “protocol” attribute is likely to be deprecated in a future version.
* At least one supported protocol must be specified in either the “protocol” or “protocols” attribute.
*/
public VideoThrift setProtocol(short protocol) {
this.protocol = protocol;
setProtocolIsSet(true);
return this;
}
public void unsetProtocol() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PROTOCOL_ISSET_ID);
}
/** Returns true if field protocol is set (has been assigned a value) and false otherwise */
public boolean isSetProtocol() {
return EncodingUtils.testBit(__isset_bitfield, __PROTOCOL_ISSET_ID);
}
public void setProtocolIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PROTOCOL_ISSET_ID, value);
}
public int getProtocolsSize() {
return (this.protocols == null) ? 0 : this.protocols.size();
}
public java.util.Iterator getProtocolsIterator() {
return (this.protocols == null) ? null : this.protocols.iterator();
}
public void addToProtocols(short elem) {
if (this.protocols == null) {
this.protocols = new ArrayList();
}
this.protocols.add(elem);
}
/**
* Video bid response protocols. See Table 6.7 Video Bid Response Protocols for a list of possible values.
* At least one supported protocol must be specified in either the “protocol” or “protocols” attribute.
*/
public List getProtocols() {
return this.protocols;
}
/**
* Video bid response protocols. See Table 6.7 Video Bid Response Protocols for a list of possible values.
* At least one supported protocol must be specified in either the “protocol” or “protocols” attribute.
*/
public VideoThrift setProtocols(List protocols) {
this.protocols = protocols;
return this;
}
public void unsetProtocols() {
this.protocols = null;
}
/** Returns true if field protocols is set (has been assigned a value) and false otherwise */
public boolean isSetProtocols() {
return this.protocols != null;
}
public void setProtocolsIsSet(boolean value) {
if (!value) {
this.protocols = null;
}
}
/**
* Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*/
public int getW() {
return this.w;
}
/**
* Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*/
public VideoThrift setW(int w) {
this.w = w;
setWIsSet(true);
return this;
}
public void unsetW() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __W_ISSET_ID);
}
/** Returns true if field w is set (has been assigned a value) and false otherwise */
public boolean isSetW() {
return EncodingUtils.testBit(__isset_bitfield, __W_ISSET_ID);
}
public void setWIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __W_ISSET_ID, value);
}
/**
* Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*/
public int getH() {
return this.h;
}
/**
* Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*/
public VideoThrift setH(int h) {
this.h = h;
setHIsSet(true);
return this;
}
public void unsetH() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __H_ISSET_ID);
}
/** Returns true if field h is set (has been assigned a value) and false otherwise */
public boolean isSetH() {
return EncodingUtils.testBit(__isset_bitfield, __H_ISSET_ID);
}
public void setHIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __H_ISSET_ID, value);
}
/**
* Indicates the start delay in seconds for preroll, midroll, or postroll ad placement. See Table 6.9 Video Start Delay for generic placement values.
*/
public short getStartdelay() {
return this.startdelay;
}
/**
* Indicates the start delay in seconds for preroll, midroll, or postroll ad placement. See Table 6.9 Video Start Delay for generic placement values.
*/
public VideoThrift setStartdelay(short startdelay) {
this.startdelay = startdelay;
setStartdelayIsSet(true);
return this;
}
public void unsetStartdelay() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STARTDELAY_ISSET_ID);
}
/** Returns true if field startdelay is set (has been assigned a value) and false otherwise */
public boolean isSetStartdelay() {
return EncodingUtils.testBit(__isset_bitfield, __STARTDELAY_ISSET_ID);
}
public void setStartdelayIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STARTDELAY_ISSET_ID, value);
}
/**
* Indicates whether the ad impression must be linear, non- linear or can be of any type (field not set). See Table 6.6 Video Linearity for a list of the possible values and recommended bidder interpretation.
*/
public short getLinearity() {
return this.linearity;
}
/**
* Indicates whether the ad impression must be linear, non- linear or can be of any type (field not set). See Table 6.6 Video Linearity for a list of the possible values and recommended bidder interpretation.
*/
public VideoThrift setLinearity(short linearity) {
this.linearity = linearity;
setLinearityIsSet(true);
return this;
}
public void unsetLinearity() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LINEARITY_ISSET_ID);
}
/** Returns true if field linearity is set (has been assigned a value) and false otherwise */
public boolean isSetLinearity() {
return EncodingUtils.testBit(__isset_bitfield, __LINEARITY_ISSET_ID);
}
public void setLinearityIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LINEARITY_ISSET_ID, value);
}
/**
* If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*/
public int getSequence() {
return this.sequence;
}
/**
* If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*/
public VideoThrift setSequence(int sequence) {
this.sequence = sequence;
setSequenceIsSet(true);
return this;
}
public void unsetSequence() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SEQUENCE_ISSET_ID);
}
/** Returns true if field sequence is set (has been assigned a value) and false otherwise */
public boolean isSetSequence() {
return EncodingUtils.testBit(__isset_bitfield, __SEQUENCE_ISSET_ID);
}
public void setSequenceIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SEQUENCE_ISSET_ID, value);
}
public int getBattrSize() {
return (this.battr == null) ? 0 : this.battr.size();
}
public java.util.Iterator getBattrIterator() {
return (this.battr == null) ? null : this.battr.iterator();
}
public void addToBattr(short elem) {
if (this.battr == null) {
this.battr = new ArrayList();
}
this.battr.add(elem);
}
/**
* Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*/
public List getBattr() {
return this.battr;
}
/**
* Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*/
public VideoThrift setBattr(List battr) {
this.battr = battr;
return this;
}
public void unsetBattr() {
this.battr = null;
}
/** Returns true if field battr is set (has been assigned a value) and false otherwise */
public boolean isSetBattr() {
return this.battr != null;
}
public void setBattrIsSet(boolean value) {
if (!value) {
this.battr = null;
}
}
/**
* Maximum extended video ad duration, if extension is allowed. If blank or 0, extension is not allowed. If -1, extension is allowed, and there is no time limit imposed. If greater than 0, then the value represents the number of seconds of extended play supported beyond the maxduration value.
*/
public int getMaxextended() {
return this.maxextended;
}
/**
* Maximum extended video ad duration, if extension is allowed. If blank or 0, extension is not allowed. If -1, extension is allowed, and there is no time limit imposed. If greater than 0, then the value represents the number of seconds of extended play supported beyond the maxduration value.
*/
public VideoThrift setMaxextended(int maxextended) {
this.maxextended = maxextended;
setMaxextendedIsSet(true);
return this;
}
public void unsetMaxextended() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXEXTENDED_ISSET_ID);
}
/** Returns true if field maxextended is set (has been assigned a value) and false otherwise */
public boolean isSetMaxextended() {
return EncodingUtils.testBit(__isset_bitfield, __MAXEXTENDED_ISSET_ID);
}
public void setMaxextendedIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXEXTENDED_ISSET_ID, value);
}
/**
* Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*/
public int getMinbitrate() {
return this.minbitrate;
}
/**
* Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*/
public VideoThrift setMinbitrate(int minbitrate) {
this.minbitrate = minbitrate;
setMinbitrateIsSet(true);
return this;
}
public void unsetMinbitrate() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MINBITRATE_ISSET_ID);
}
/** Returns true if field minbitrate is set (has been assigned a value) and false otherwise */
public boolean isSetMinbitrate() {
return EncodingUtils.testBit(__isset_bitfield, __MINBITRATE_ISSET_ID);
}
public void setMinbitrateIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MINBITRATE_ISSET_ID, value);
}
/**
* Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*/
public int getMaxbitrate() {
return this.maxbitrate;
}
/**
* Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*/
public VideoThrift setMaxbitrate(int maxbitrate) {
this.maxbitrate = maxbitrate;
setMaxbitrateIsSet(true);
return this;
}
public void unsetMaxbitrate() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXBITRATE_ISSET_ID);
}
/** Returns true if field maxbitrate is set (has been assigned a value) and false otherwise */
public boolean isSetMaxbitrate() {
return EncodingUtils.testBit(__isset_bitfield, __MAXBITRATE_ISSET_ID);
}
public void setMaxbitrateIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXBITRATE_ISSET_ID, value);
}
/**
* If exchange publisher has rules preventing letter boxing of 4x3 content to play in a 16x9 window, then this should be set to false. Default setting is true, which assumes that boxing of content to fit into a window is allowed. “1” indicates boxing is allowed. “0” indicates it is not allowed.
*/
public byte getBoxingallowed() {
return this.boxingallowed;
}
/**
* If exchange publisher has rules preventing letter boxing of 4x3 content to play in a 16x9 window, then this should be set to false. Default setting is true, which assumes that boxing of content to fit into a window is allowed. “1” indicates boxing is allowed. “0” indicates it is not allowed.
*/
public VideoThrift setBoxingallowed(byte boxingallowed) {
this.boxingallowed = boxingallowed;
setBoxingallowedIsSet(true);
return this;
}
public void unsetBoxingallowed() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __BOXINGALLOWED_ISSET_ID);
}
/** Returns true if field boxingallowed is set (has been assigned a value) and false otherwise */
public boolean isSetBoxingallowed() {
return EncodingUtils.testBit(__isset_bitfield, __BOXINGALLOWED_ISSET_ID);
}
public void setBoxingallowedIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __BOXINGALLOWED_ISSET_ID, value);
}
public int getPlaybackmethodSize() {
return (this.playbackmethod == null) ? 0 : this.playbackmethod.size();
}
public java.util.Iterator getPlaybackmethodIterator() {
return (this.playbackmethod == null) ? null : this.playbackmethod.iterator();
}
public void addToPlaybackmethod(short elem) {
if (this.playbackmethod == null) {
this.playbackmethod = new ArrayList();
}
this.playbackmethod.add(elem);
}
/**
* List of allowed playback methods. If blank, assume that all are allowed. See Table 6.8 Video Playback Methods for a list of possible values.
*/
public List getPlaybackmethod() {
return this.playbackmethod;
}
/**
* List of allowed playback methods. If blank, assume that all are allowed. See Table 6.8 Video Playback Methods for a list of possible values.
*/
public VideoThrift setPlaybackmethod(List playbackmethod) {
this.playbackmethod = playbackmethod;
return this;
}
public void unsetPlaybackmethod() {
this.playbackmethod = null;
}
/** Returns true if field playbackmethod is set (has been assigned a value) and false otherwise */
public boolean isSetPlaybackmethod() {
return this.playbackmethod != null;
}
public void setPlaybackmethodIsSet(boolean value) {
if (!value) {
this.playbackmethod = null;
}
}
public int getDeliverymethodSize() {
return (this.deliverymethod == null) ? 0 : this.deliverymethod.size();
}
public java.util.Iterator getDeliverymethodIterator() {
return (this.deliverymethod == null) ? null : this.deliverymethod.iterator();
}
public void addToDeliverymethod(short elem) {
if (this.deliverymethod == null) {
this.deliverymethod = new ArrayList();
}
this.deliverymethod.add(elem);
}
/**
* List of supported delivery methods (streaming, progressive). If blank, assume all are supported. See Table 6.12 Content Delivery Methods for a list of possible values.
*/
public List getDeliverymethod() {
return this.deliverymethod;
}
/**
* List of supported delivery methods (streaming, progressive). If blank, assume all are supported. See Table 6.12 Content Delivery Methods for a list of possible values.
*/
public VideoThrift setDeliverymethod(List deliverymethod) {
this.deliverymethod = deliverymethod;
return this;
}
public void unsetDeliverymethod() {
this.deliverymethod = null;
}
/** Returns true if field deliverymethod is set (has been assigned a value) and false otherwise */
public boolean isSetDeliverymethod() {
return this.deliverymethod != null;
}
public void setDeliverymethodIsSet(boolean value) {
if (!value) {
this.deliverymethod = null;
}
}
/**
* Ad Position (see table 6.5). Default: unknown.
*/
public short getPos() {
return this.pos;
}
/**
* Ad Position (see table 6.5). Default: unknown.
*/
public VideoThrift setPos(short pos) {
this.pos = pos;
setPosIsSet(true);
return this;
}
public void unsetPos() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __POS_ISSET_ID);
}
/** Returns true if field pos is set (has been assigned a value) and false otherwise */
public boolean isSetPos() {
return EncodingUtils.testBit(__isset_bitfield, __POS_ISSET_ID);
}
public void setPosIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __POS_ISSET_ID, value);
}
public int getCompanionadSize() {
return (this.companionad == null) ? 0 : this.companionad.size();
}
public java.util.Iterator getCompanionadIterator() {
return (this.companionad == null) ? null : this.companionad.iterator();
}
public void addToCompanionad(BannerThrift elem) {
if (this.companionad == null) {
this.companionad = new ArrayList();
}
this.companionad.add(elem);
}
/**
* If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*/
public List getCompanionad() {
return this.companionad;
}
/**
* If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*/
public VideoThrift setCompanionad(List companionad) {
this.companionad = companionad;
return this;
}
public void unsetCompanionad() {
this.companionad = null;
}
/** Returns true if field companionad is set (has been assigned a value) and false otherwise */
public boolean isSetCompanionad() {
return this.companionad != null;
}
public void setCompanionadIsSet(boolean value) {
if (!value) {
this.companionad = null;
}
}
public int getApiSize() {
return (this.api == null) ? 0 : this.api.size();
}
public java.util.Iterator getApiIterator() {
return (this.api == null) ? null : this.api.iterator();
}
public void addToApi(short elem) {
if (this.api == null) {
this.api = new ArrayList();
}
this.api.add(elem);
}
/**
* List of supported API frameworks for this impression. (See Table 6.4 API Frameworks). If an API is not explicitly listed it is assumed not to be supported.
*/
public List getApi() {
return this.api;
}
/**
* List of supported API frameworks for this impression. (See Table 6.4 API Frameworks). If an API is not explicitly listed it is assumed not to be supported.
*/
public VideoThrift setApi(List api) {
this.api = api;
return this;
}
public void unsetApi() {
this.api = null;
}
/** Returns true if field api is set (has been assigned a value) and false otherwise */
public boolean isSetApi() {
return this.api != null;
}
public void setApiIsSet(boolean value) {
if (!value) {
this.api = null;
}
}
public int getVast_companion_typeSize() {
return (this.vast_companion_type == null) ? 0 : this.vast_companion_type.size();
}
public java.util.Iterator getVast_companion_typeIterator() {
return (this.vast_companion_type == null) ? null : this.vast_companion_type.iterator();
}
public void addToVast_companion_type(short elem) {
if (this.vast_companion_type == null) {
this.vast_companion_type = new ArrayList();
}
this.vast_companion_type.add(elem);
}
/**
* Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*/
public List getVast_companion_type() {
return this.vast_companion_type;
}
/**
* Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*/
public VideoThrift setVast_companion_type(List vast_companion_type) {
this.vast_companion_type = vast_companion_type;
return this;
}
public void unsetVast_companion_type() {
this.vast_companion_type = null;
}
/** Returns true if field vast_companion_type is set (has been assigned a value) and false otherwise */
public boolean isSetVast_companion_type() {
return this.vast_companion_type != null;
}
public void setVast_companion_typeIsSet(boolean value) {
if (!value) {
this.vast_companion_type = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case MIMES:
if (value == null) {
unsetMimes();
} else {
setMimes((List)value);
}
break;
case MINDURATION:
if (value == null) {
unsetMinduration();
} else {
setMinduration((Integer)value);
}
break;
case MAXDURATION:
if (value == null) {
unsetMaxduration();
} else {
setMaxduration((Integer)value);
}
break;
case PROTOCOL:
if (value == null) {
unsetProtocol();
} else {
setProtocol((Short)value);
}
break;
case PROTOCOLS:
if (value == null) {
unsetProtocols();
} else {
setProtocols((List)value);
}
break;
case W:
if (value == null) {
unsetW();
} else {
setW((Integer)value);
}
break;
case H:
if (value == null) {
unsetH();
} else {
setH((Integer)value);
}
break;
case STARTDELAY:
if (value == null) {
unsetStartdelay();
} else {
setStartdelay((Short)value);
}
break;
case LINEARITY:
if (value == null) {
unsetLinearity();
} else {
setLinearity((Short)value);
}
break;
case SEQUENCE:
if (value == null) {
unsetSequence();
} else {
setSequence((Integer)value);
}
break;
case BATTR:
if (value == null) {
unsetBattr();
} else {
setBattr((List)value);
}
break;
case MAXEXTENDED:
if (value == null) {
unsetMaxextended();
} else {
setMaxextended((Integer)value);
}
break;
case MINBITRATE:
if (value == null) {
unsetMinbitrate();
} else {
setMinbitrate((Integer)value);
}
break;
case MAXBITRATE:
if (value == null) {
unsetMaxbitrate();
} else {
setMaxbitrate((Integer)value);
}
break;
case BOXINGALLOWED:
if (value == null) {
unsetBoxingallowed();
} else {
setBoxingallowed((Byte)value);
}
break;
case PLAYBACKMETHOD:
if (value == null) {
unsetPlaybackmethod();
} else {
setPlaybackmethod((List)value);
}
break;
case DELIVERYMETHOD:
if (value == null) {
unsetDeliverymethod();
} else {
setDeliverymethod((List)value);
}
break;
case POS:
if (value == null) {
unsetPos();
} else {
setPos((Short)value);
}
break;
case COMPANIONAD:
if (value == null) {
unsetCompanionad();
} else {
setCompanionad((List)value);
}
break;
case API:
if (value == null) {
unsetApi();
} else {
setApi((List)value);
}
break;
case VAST_COMPANION_TYPE:
if (value == null) {
unsetVast_companion_type();
} else {
setVast_companion_type((List)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case MIMES:
return getMimes();
case MINDURATION:
return Integer.valueOf(getMinduration());
case MAXDURATION:
return Integer.valueOf(getMaxduration());
case PROTOCOL:
return Short.valueOf(getProtocol());
case PROTOCOLS:
return getProtocols();
case W:
return Integer.valueOf(getW());
case H:
return Integer.valueOf(getH());
case STARTDELAY:
return Short.valueOf(getStartdelay());
case LINEARITY:
return Short.valueOf(getLinearity());
case SEQUENCE:
return Integer.valueOf(getSequence());
case BATTR:
return getBattr();
case MAXEXTENDED:
return Integer.valueOf(getMaxextended());
case MINBITRATE:
return Integer.valueOf(getMinbitrate());
case MAXBITRATE:
return Integer.valueOf(getMaxbitrate());
case BOXINGALLOWED:
return Byte.valueOf(getBoxingallowed());
case PLAYBACKMETHOD:
return getPlaybackmethod();
case DELIVERYMETHOD:
return getDeliverymethod();
case POS:
return Short.valueOf(getPos());
case COMPANIONAD:
return getCompanionad();
case API:
return getApi();
case VAST_COMPANION_TYPE:
return getVast_companion_type();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case MIMES:
return isSetMimes();
case MINDURATION:
return isSetMinduration();
case MAXDURATION:
return isSetMaxduration();
case PROTOCOL:
return isSetProtocol();
case PROTOCOLS:
return isSetProtocols();
case W:
return isSetW();
case H:
return isSetH();
case STARTDELAY:
return isSetStartdelay();
case LINEARITY:
return isSetLinearity();
case SEQUENCE:
return isSetSequence();
case BATTR:
return isSetBattr();
case MAXEXTENDED:
return isSetMaxextended();
case MINBITRATE:
return isSetMinbitrate();
case MAXBITRATE:
return isSetMaxbitrate();
case BOXINGALLOWED:
return isSetBoxingallowed();
case PLAYBACKMETHOD:
return isSetPlaybackmethod();
case DELIVERYMETHOD:
return isSetDeliverymethod();
case POS:
return isSetPos();
case COMPANIONAD:
return isSetCompanionad();
case API:
return isSetApi();
case VAST_COMPANION_TYPE:
return isSetVast_companion_type();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof VideoThrift)
return this.equals((VideoThrift)that);
return false;
}
public boolean equals(VideoThrift that) {
if (that == null)
return false;
boolean this_present_mimes = true && this.isSetMimes();
boolean that_present_mimes = true && that.isSetMimes();
if (this_present_mimes || that_present_mimes) {
if (!(this_present_mimes && that_present_mimes))
return false;
if (!this.mimes.equals(that.mimes))
return false;
}
boolean this_present_minduration = true && this.isSetMinduration();
boolean that_present_minduration = true && that.isSetMinduration();
if (this_present_minduration || that_present_minduration) {
if (!(this_present_minduration && that_present_minduration))
return false;
if (this.minduration != that.minduration)
return false;
}
boolean this_present_maxduration = true && this.isSetMaxduration();
boolean that_present_maxduration = true && that.isSetMaxduration();
if (this_present_maxduration || that_present_maxduration) {
if (!(this_present_maxduration && that_present_maxduration))
return false;
if (this.maxduration != that.maxduration)
return false;
}
boolean this_present_protocol = true && this.isSetProtocol();
boolean that_present_protocol = true && that.isSetProtocol();
if (this_present_protocol || that_present_protocol) {
if (!(this_present_protocol && that_present_protocol))
return false;
if (this.protocol != that.protocol)
return false;
}
boolean this_present_protocols = true && this.isSetProtocols();
boolean that_present_protocols = true && that.isSetProtocols();
if (this_present_protocols || that_present_protocols) {
if (!(this_present_protocols && that_present_protocols))
return false;
if (!this.protocols.equals(that.protocols))
return false;
}
boolean this_present_w = true && this.isSetW();
boolean that_present_w = true && that.isSetW();
if (this_present_w || that_present_w) {
if (!(this_present_w && that_present_w))
return false;
if (this.w != that.w)
return false;
}
boolean this_present_h = true && this.isSetH();
boolean that_present_h = true && that.isSetH();
if (this_present_h || that_present_h) {
if (!(this_present_h && that_present_h))
return false;
if (this.h != that.h)
return false;
}
boolean this_present_startdelay = true && this.isSetStartdelay();
boolean that_present_startdelay = true && that.isSetStartdelay();
if (this_present_startdelay || that_present_startdelay) {
if (!(this_present_startdelay && that_present_startdelay))
return false;
if (this.startdelay != that.startdelay)
return false;
}
boolean this_present_linearity = true && this.isSetLinearity();
boolean that_present_linearity = true && that.isSetLinearity();
if (this_present_linearity || that_present_linearity) {
if (!(this_present_linearity && that_present_linearity))
return false;
if (this.linearity != that.linearity)
return false;
}
boolean this_present_sequence = true && this.isSetSequence();
boolean that_present_sequence = true && that.isSetSequence();
if (this_present_sequence || that_present_sequence) {
if (!(this_present_sequence && that_present_sequence))
return false;
if (this.sequence != that.sequence)
return false;
}
boolean this_present_battr = true && this.isSetBattr();
boolean that_present_battr = true && that.isSetBattr();
if (this_present_battr || that_present_battr) {
if (!(this_present_battr && that_present_battr))
return false;
if (!this.battr.equals(that.battr))
return false;
}
boolean this_present_maxextended = true && this.isSetMaxextended();
boolean that_present_maxextended = true && that.isSetMaxextended();
if (this_present_maxextended || that_present_maxextended) {
if (!(this_present_maxextended && that_present_maxextended))
return false;
if (this.maxextended != that.maxextended)
return false;
}
boolean this_present_minbitrate = true && this.isSetMinbitrate();
boolean that_present_minbitrate = true && that.isSetMinbitrate();
if (this_present_minbitrate || that_present_minbitrate) {
if (!(this_present_minbitrate && that_present_minbitrate))
return false;
if (this.minbitrate != that.minbitrate)
return false;
}
boolean this_present_maxbitrate = true && this.isSetMaxbitrate();
boolean that_present_maxbitrate = true && that.isSetMaxbitrate();
if (this_present_maxbitrate || that_present_maxbitrate) {
if (!(this_present_maxbitrate && that_present_maxbitrate))
return false;
if (this.maxbitrate != that.maxbitrate)
return false;
}
boolean this_present_boxingallowed = true && this.isSetBoxingallowed();
boolean that_present_boxingallowed = true && that.isSetBoxingallowed();
if (this_present_boxingallowed || that_present_boxingallowed) {
if (!(this_present_boxingallowed && that_present_boxingallowed))
return false;
if (this.boxingallowed != that.boxingallowed)
return false;
}
boolean this_present_playbackmethod = true && this.isSetPlaybackmethod();
boolean that_present_playbackmethod = true && that.isSetPlaybackmethod();
if (this_present_playbackmethod || that_present_playbackmethod) {
if (!(this_present_playbackmethod && that_present_playbackmethod))
return false;
if (!this.playbackmethod.equals(that.playbackmethod))
return false;
}
boolean this_present_deliverymethod = true && this.isSetDeliverymethod();
boolean that_present_deliverymethod = true && that.isSetDeliverymethod();
if (this_present_deliverymethod || that_present_deliverymethod) {
if (!(this_present_deliverymethod && that_present_deliverymethod))
return false;
if (!this.deliverymethod.equals(that.deliverymethod))
return false;
}
boolean this_present_pos = true && this.isSetPos();
boolean that_present_pos = true && that.isSetPos();
if (this_present_pos || that_present_pos) {
if (!(this_present_pos && that_present_pos))
return false;
if (this.pos != that.pos)
return false;
}
boolean this_present_companionad = true && this.isSetCompanionad();
boolean that_present_companionad = true && that.isSetCompanionad();
if (this_present_companionad || that_present_companionad) {
if (!(this_present_companionad && that_present_companionad))
return false;
if (!this.companionad.equals(that.companionad))
return false;
}
boolean this_present_api = true && this.isSetApi();
boolean that_present_api = true && that.isSetApi();
if (this_present_api || that_present_api) {
if (!(this_present_api && that_present_api))
return false;
if (!this.api.equals(that.api))
return false;
}
boolean this_present_vast_companion_type = true && this.isSetVast_companion_type();
boolean that_present_vast_companion_type = true && that.isSetVast_companion_type();
if (this_present_vast_companion_type || that_present_vast_companion_type) {
if (!(this_present_vast_companion_type && that_present_vast_companion_type))
return false;
if (!this.vast_companion_type.equals(that.vast_companion_type))
return false;
}
return true;
}
@Override
public int hashCode() {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy