
open_rtb.OpenRtbProtobuf Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: open_rtb/open_rtb_protobuf.proto
package open_rtb;
public final class OpenRtbProtobuf {
private OpenRtbProtobuf() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface BannerOrBuilder extends
// @@protoc_insertion_point(interface_extends:open_rtb.Banner)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint32 w = 1;
*
*
** 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.
*
*/
boolean hasW();
/**
* optional uint32 w = 1;
*
*
** 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 getW();
/**
* optional uint32 h = 2;
*
*
** 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.
*
*/
boolean hasH();
/**
* optional uint32 h = 2;
*
*
** 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 getH();
/**
* optional uint32 wmax = 3;
*
*
** 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.
*
*/
boolean hasWmax();
/**
* optional uint32 wmax = 3;
*
*
** 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 getWmax();
/**
* optional uint32 hmax = 4;
*
*
** 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.
*
*/
boolean hasHmax();
/**
* optional uint32 hmax = 4;
*
*
** 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 getHmax();
/**
* optional uint32 wmin = 5;
*
*
** 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.
*
*/
boolean hasWmin();
/**
* optional uint32 wmin = 5;
*
*
** 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 getWmin();
/**
* optional uint32 hmin = 6;
*
*
** 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.
*
*/
boolean hasHmin();
/**
* optional uint32 hmin = 6;
*
*
** 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 getHmin();
/**
* optional string id = 7;
*
*
** 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.
*
*/
boolean hasId();
/**
* optional string id = 7;
*
*
** 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.
*
*/
java.lang.String getId();
/**
* optional string id = 7;
*
*
** 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.
*
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* optional uint32 pos = 8;
*
*
** Ad Position. Use Table 6.5
*
*/
boolean hasPos();
/**
* optional uint32 pos = 8;
*
*
** Ad Position. Use Table 6.5
*
*/
int getPos();
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
java.util.List getBtypeList();
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
int getBtypeCount();
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
int getBtype(int index);
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
java.util.List getBattrList();
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
int getBattrCount();
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
int getBattr(int index);
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
com.google.protobuf.ProtocolStringList
getMimesList();
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
int getMimesCount();
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
java.lang.String getMimes(int index);
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
com.google.protobuf.ByteString
getMimesBytes(int index);
/**
* optional uint32 topframe = 12;
*
*
** 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.
*
*/
boolean hasTopframe();
/**
* optional uint32 topframe = 12;
*
*
** 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 getTopframe();
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
java.util.List getExpdirList();
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
int getExpdirCount();
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
int getExpdir(int index);
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
java.util.List getApiList();
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
int getApiCount();
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
int getApi(int index);
}
/**
* Protobuf type {@code open_rtb.Banner}
*
*
** 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.
*
*/
public static final class Banner extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:open_rtb.Banner)
BannerOrBuilder {
// Use Banner.newBuilder() to construct.
private Banner(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Banner() {
w_ = 0;
h_ = 0;
wmax_ = 0;
hmax_ = 0;
wmin_ = 0;
hmin_ = 0;
id_ = "";
pos_ = 0;
btype_ = java.util.Collections.emptyList();
battr_ = java.util.Collections.emptyList();
mimes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
topframe_ = 0;
expdir_ = java.util.Collections.emptyList();
api_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Banner(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
w_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
h_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
wmax_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
hmax_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
wmin_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
hmin_ = input.readUInt32();
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
id_ = bs;
break;
}
case 64: {
bitField0_ |= 0x00000080;
pos_ = input.readUInt32();
break;
}
case 72: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
btype_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
btype_.add(input.readUInt32());
break;
}
case 74: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
btype_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
while (input.getBytesUntilLimit() > 0) {
btype_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 80: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
battr_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
battr_.add(input.readUInt32());
break;
}
case 82: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) {
battr_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
while (input.getBytesUntilLimit() > 0) {
battr_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
mimes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000400;
}
mimes_.add(bs);
break;
}
case 96: {
bitField0_ |= 0x00000100;
topframe_ = input.readUInt32();
break;
}
case 104: {
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
expdir_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
expdir_.add(input.readUInt32());
break;
}
case 106: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000) && input.getBytesUntilLimit() > 0) {
expdir_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
while (input.getBytesUntilLimit() > 0) {
expdir_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 112: {
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
api_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
api_.add(input.readUInt32());
break;
}
case 114: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000) && input.getBytesUntilLimit() > 0) {
api_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
while (input.getBytesUntilLimit() > 0) {
api_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
btype_ = java.util.Collections.unmodifiableList(btype_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
battr_ = java.util.Collections.unmodifiableList(battr_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
mimes_ = mimes_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
expdir_ = java.util.Collections.unmodifiableList(expdir_);
}
if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
api_ = java.util.Collections.unmodifiableList(api_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Banner_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Banner_fieldAccessorTable
.ensureFieldAccessorsInitialized(
open_rtb.OpenRtbProtobuf.Banner.class, open_rtb.OpenRtbProtobuf.Banner.Builder.class);
}
private int bitField0_;
public static final int W_FIELD_NUMBER = 1;
private int w_;
/**
* optional uint32 w = 1;
*
*
** 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.
*
*/
public boolean hasW() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 w = 1;
*
*
** 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.
*
*/
public int getW() {
return w_;
}
public static final int H_FIELD_NUMBER = 2;
private int h_;
/**
* optional uint32 h = 2;
*
*
** 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.
*
*/
public boolean hasH() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 h = 2;
*
*
** 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.
*
*/
public int getH() {
return h_;
}
public static final int WMAX_FIELD_NUMBER = 3;
private int wmax_;
/**
* optional uint32 wmax = 3;
*
*
** 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.
*
*/
public boolean hasWmax() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 wmax = 3;
*
*
** 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.
*
*/
public int getWmax() {
return wmax_;
}
public static final int HMAX_FIELD_NUMBER = 4;
private int hmax_;
/**
* optional uint32 hmax = 4;
*
*
** 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.
*
*/
public boolean hasHmax() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 hmax = 4;
*
*
** 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.
*
*/
public int getHmax() {
return hmax_;
}
public static final int WMIN_FIELD_NUMBER = 5;
private int wmin_;
/**
* optional uint32 wmin = 5;
*
*
** 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.
*
*/
public boolean hasWmin() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 wmin = 5;
*
*
** 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.
*
*/
public int getWmin() {
return wmin_;
}
public static final int HMIN_FIELD_NUMBER = 6;
private int hmin_;
/**
* optional uint32 hmin = 6;
*
*
** 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.
*
*/
public boolean hasHmin() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 hmin = 6;
*
*
** 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.
*
*/
public int getHmin() {
return hmin_;
}
public static final int ID_FIELD_NUMBER = 7;
private volatile java.lang.Object id_;
/**
* optional string id = 7;
*
*
** 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.
*
*/
public boolean hasId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string id = 7;
*
*
** 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.
*
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
* optional string id = 7;
*
*
** 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.
*
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POS_FIELD_NUMBER = 8;
private int pos_;
/**
* optional uint32 pos = 8;
*
*
** Ad Position. Use Table 6.5
*
*/
public boolean hasPos() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional uint32 pos = 8;
*
*
** Ad Position. Use Table 6.5
*
*/
public int getPos() {
return pos_;
}
public static final int BTYPE_FIELD_NUMBER = 9;
private java.util.List btype_;
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public java.util.List
getBtypeList() {
return btype_;
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public int getBtypeCount() {
return btype_.size();
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public int getBtype(int index) {
return btype_.get(index);
}
private int btypeMemoizedSerializedSize = -1;
public static final int BATTR_FIELD_NUMBER = 10;
private java.util.List battr_;
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public java.util.List
getBattrList() {
return battr_;
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public int getBattrCount() {
return battr_.size();
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public int getBattr(int index) {
return battr_.get(index);
}
private int battrMemoizedSerializedSize = -1;
public static final int MIMES_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList mimes_;
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public com.google.protobuf.ProtocolStringList
getMimesList() {
return mimes_;
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public int getMimesCount() {
return mimes_.size();
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public java.lang.String getMimes(int index) {
return mimes_.get(index);
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public com.google.protobuf.ByteString
getMimesBytes(int index) {
return mimes_.getByteString(index);
}
public static final int TOPFRAME_FIELD_NUMBER = 12;
private int topframe_;
/**
* optional uint32 topframe = 12;
*
*
** 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.
*
*/
public boolean hasTopframe() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 topframe = 12;
*
*
** 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.
*
*/
public int getTopframe() {
return topframe_;
}
public static final int EXPDIR_FIELD_NUMBER = 13;
private java.util.List expdir_;
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public java.util.List
getExpdirList() {
return expdir_;
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public int getExpdirCount() {
return expdir_.size();
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public int getExpdir(int index) {
return expdir_.get(index);
}
private int expdirMemoizedSerializedSize = -1;
public static final int API_FIELD_NUMBER = 14;
private java.util.List api_;
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public java.util.List
getApiList() {
return api_;
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public int getApiCount() {
return api_.size();
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public int getApi(int index) {
return api_.get(index);
}
private int apiMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, w_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, h_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, wmax_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, hmax_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, wmin_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(6, hmin_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, id_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeUInt32(8, pos_);
}
if (getBtypeList().size() > 0) {
output.writeRawVarint32(74);
output.writeRawVarint32(btypeMemoizedSerializedSize);
}
for (int i = 0; i < btype_.size(); i++) {
output.writeUInt32NoTag(btype_.get(i));
}
if (getBattrList().size() > 0) {
output.writeRawVarint32(82);
output.writeRawVarint32(battrMemoizedSerializedSize);
}
for (int i = 0; i < battr_.size(); i++) {
output.writeUInt32NoTag(battr_.get(i));
}
for (int i = 0; i < mimes_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 11, mimes_.getRaw(i));
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeUInt32(12, topframe_);
}
if (getExpdirList().size() > 0) {
output.writeRawVarint32(106);
output.writeRawVarint32(expdirMemoizedSerializedSize);
}
for (int i = 0; i < expdir_.size(); i++) {
output.writeUInt32NoTag(expdir_.get(i));
}
if (getApiList().size() > 0) {
output.writeRawVarint32(114);
output.writeRawVarint32(apiMemoizedSerializedSize);
}
for (int i = 0; i < api_.size(); i++) {
output.writeUInt32NoTag(api_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, w_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, h_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, wmax_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, hmax_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, wmin_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, hmin_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, id_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, pos_);
}
{
int dataSize = 0;
for (int i = 0; i < btype_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(btype_.get(i));
}
size += dataSize;
if (!getBtypeList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
btypeMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < battr_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(battr_.get(i));
}
size += dataSize;
if (!getBattrList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
battrMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < mimes_.size(); i++) {
dataSize += computeStringSizeNoTag(mimes_.getRaw(i));
}
size += dataSize;
size += 1 * getMimesList().size();
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, topframe_);
}
{
int dataSize = 0;
for (int i = 0; i < expdir_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(expdir_.get(i));
}
size += dataSize;
if (!getExpdirList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
expdirMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < api_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(api_.get(i));
}
size += dataSize;
if (!getApiList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
apiMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static open_rtb.OpenRtbProtobuf.Banner parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static open_rtb.OpenRtbProtobuf.Banner parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static open_rtb.OpenRtbProtobuf.Banner parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static open_rtb.OpenRtbProtobuf.Banner parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static open_rtb.OpenRtbProtobuf.Banner parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static open_rtb.OpenRtbProtobuf.Banner parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static open_rtb.OpenRtbProtobuf.Banner parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static open_rtb.OpenRtbProtobuf.Banner parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static open_rtb.OpenRtbProtobuf.Banner parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static open_rtb.OpenRtbProtobuf.Banner parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(open_rtb.OpenRtbProtobuf.Banner prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code open_rtb.Banner}
*
*
** 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.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:open_rtb.Banner)
open_rtb.OpenRtbProtobuf.BannerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Banner_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Banner_fieldAccessorTable
.ensureFieldAccessorsInitialized(
open_rtb.OpenRtbProtobuf.Banner.class, open_rtb.OpenRtbProtobuf.Banner.Builder.class);
}
// Construct using open_rtb.OpenRtbProtobuf.Banner.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
w_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
h_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
wmax_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
hmax_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
wmin_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
hmin_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
id_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
pos_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
btype_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
battr_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
mimes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
topframe_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
expdir_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
api_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Banner_descriptor;
}
public open_rtb.OpenRtbProtobuf.Banner getDefaultInstanceForType() {
return open_rtb.OpenRtbProtobuf.Banner.getDefaultInstance();
}
public open_rtb.OpenRtbProtobuf.Banner build() {
open_rtb.OpenRtbProtobuf.Banner result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public open_rtb.OpenRtbProtobuf.Banner buildPartial() {
open_rtb.OpenRtbProtobuf.Banner result = new open_rtb.OpenRtbProtobuf.Banner(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.w_ = w_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.h_ = h_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.wmax_ = wmax_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.hmax_ = hmax_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.wmin_ = wmin_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.hmin_ = hmin_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.pos_ = pos_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
btype_ = java.util.Collections.unmodifiableList(btype_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.btype_ = btype_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
battr_ = java.util.Collections.unmodifiableList(battr_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.battr_ = battr_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
mimes_ = mimes_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000400);
}
result.mimes_ = mimes_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000100;
}
result.topframe_ = topframe_;
if (((bitField0_ & 0x00001000) == 0x00001000)) {
expdir_ = java.util.Collections.unmodifiableList(expdir_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.expdir_ = expdir_;
if (((bitField0_ & 0x00002000) == 0x00002000)) {
api_ = java.util.Collections.unmodifiableList(api_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.api_ = api_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof open_rtb.OpenRtbProtobuf.Banner) {
return mergeFrom((open_rtb.OpenRtbProtobuf.Banner)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(open_rtb.OpenRtbProtobuf.Banner other) {
if (other == open_rtb.OpenRtbProtobuf.Banner.getDefaultInstance()) return this;
if (other.hasW()) {
setW(other.getW());
}
if (other.hasH()) {
setH(other.getH());
}
if (other.hasWmax()) {
setWmax(other.getWmax());
}
if (other.hasHmax()) {
setHmax(other.getHmax());
}
if (other.hasWmin()) {
setWmin(other.getWmin());
}
if (other.hasHmin()) {
setHmin(other.getHmin());
}
if (other.hasId()) {
bitField0_ |= 0x00000040;
id_ = other.id_;
onChanged();
}
if (other.hasPos()) {
setPos(other.getPos());
}
if (!other.btype_.isEmpty()) {
if (btype_.isEmpty()) {
btype_ = other.btype_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureBtypeIsMutable();
btype_.addAll(other.btype_);
}
onChanged();
}
if (!other.battr_.isEmpty()) {
if (battr_.isEmpty()) {
battr_ = other.battr_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureBattrIsMutable();
battr_.addAll(other.battr_);
}
onChanged();
}
if (!other.mimes_.isEmpty()) {
if (mimes_.isEmpty()) {
mimes_ = other.mimes_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureMimesIsMutable();
mimes_.addAll(other.mimes_);
}
onChanged();
}
if (other.hasTopframe()) {
setTopframe(other.getTopframe());
}
if (!other.expdir_.isEmpty()) {
if (expdir_.isEmpty()) {
expdir_ = other.expdir_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureExpdirIsMutable();
expdir_.addAll(other.expdir_);
}
onChanged();
}
if (!other.api_.isEmpty()) {
if (api_.isEmpty()) {
api_ = other.api_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureApiIsMutable();
api_.addAll(other.api_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
open_rtb.OpenRtbProtobuf.Banner parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (open_rtb.OpenRtbProtobuf.Banner) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int w_ ;
/**
* optional uint32 w = 1;
*
*
** 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.
*
*/
public boolean hasW() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 w = 1;
*
*
** 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.
*
*/
public int getW() {
return w_;
}
/**
* optional uint32 w = 1;
*
*
** 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.
*
*/
public Builder setW(int value) {
bitField0_ |= 0x00000001;
w_ = value;
onChanged();
return this;
}
/**
* optional uint32 w = 1;
*
*
** 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.
*
*/
public Builder clearW() {
bitField0_ = (bitField0_ & ~0x00000001);
w_ = 0;
onChanged();
return this;
}
private int h_ ;
/**
* optional uint32 h = 2;
*
*
** 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.
*
*/
public boolean hasH() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 h = 2;
*
*
** 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.
*
*/
public int getH() {
return h_;
}
/**
* optional uint32 h = 2;
*
*
** 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.
*
*/
public Builder setH(int value) {
bitField0_ |= 0x00000002;
h_ = value;
onChanged();
return this;
}
/**
* optional uint32 h = 2;
*
*
** 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.
*
*/
public Builder clearH() {
bitField0_ = (bitField0_ & ~0x00000002);
h_ = 0;
onChanged();
return this;
}
private int wmax_ ;
/**
* optional uint32 wmax = 3;
*
*
** 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.
*
*/
public boolean hasWmax() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 wmax = 3;
*
*
** 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.
*
*/
public int getWmax() {
return wmax_;
}
/**
* optional uint32 wmax = 3;
*
*
** 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.
*
*/
public Builder setWmax(int value) {
bitField0_ |= 0x00000004;
wmax_ = value;
onChanged();
return this;
}
/**
* optional uint32 wmax = 3;
*
*
** 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.
*
*/
public Builder clearWmax() {
bitField0_ = (bitField0_ & ~0x00000004);
wmax_ = 0;
onChanged();
return this;
}
private int hmax_ ;
/**
* optional uint32 hmax = 4;
*
*
** 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.
*
*/
public boolean hasHmax() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 hmax = 4;
*
*
** 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.
*
*/
public int getHmax() {
return hmax_;
}
/**
* optional uint32 hmax = 4;
*
*
** 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.
*
*/
public Builder setHmax(int value) {
bitField0_ |= 0x00000008;
hmax_ = value;
onChanged();
return this;
}
/**
* optional uint32 hmax = 4;
*
*
** 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.
*
*/
public Builder clearHmax() {
bitField0_ = (bitField0_ & ~0x00000008);
hmax_ = 0;
onChanged();
return this;
}
private int wmin_ ;
/**
* optional uint32 wmin = 5;
*
*
** 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.
*
*/
public boolean hasWmin() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 wmin = 5;
*
*
** 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.
*
*/
public int getWmin() {
return wmin_;
}
/**
* optional uint32 wmin = 5;
*
*
** 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.
*
*/
public Builder setWmin(int value) {
bitField0_ |= 0x00000010;
wmin_ = value;
onChanged();
return this;
}
/**
* optional uint32 wmin = 5;
*
*
** 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.
*
*/
public Builder clearWmin() {
bitField0_ = (bitField0_ & ~0x00000010);
wmin_ = 0;
onChanged();
return this;
}
private int hmin_ ;
/**
* optional uint32 hmin = 6;
*
*
** 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.
*
*/
public boolean hasHmin() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 hmin = 6;
*
*
** 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.
*
*/
public int getHmin() {
return hmin_;
}
/**
* optional uint32 hmin = 6;
*
*
** 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.
*
*/
public Builder setHmin(int value) {
bitField0_ |= 0x00000020;
hmin_ = value;
onChanged();
return this;
}
/**
* optional uint32 hmin = 6;
*
*
** 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.
*
*/
public Builder clearHmin() {
bitField0_ = (bitField0_ & ~0x00000020);
hmin_ = 0;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
* optional string id = 7;
*
*
** 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.
*
*/
public boolean hasId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string id = 7;
*
*
** 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.
*
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string id = 7;
*
*
** 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.
*
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string id = 7;
*
*
** 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.
*
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
id_ = value;
onChanged();
return this;
}
/**
* optional string id = 7;
*
*
** 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.
*
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000040);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* optional string id = 7;
*
*
** 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.
*
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
id_ = value;
onChanged();
return this;
}
private int pos_ ;
/**
* optional uint32 pos = 8;
*
*
** Ad Position. Use Table 6.5
*
*/
public boolean hasPos() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional uint32 pos = 8;
*
*
** Ad Position. Use Table 6.5
*
*/
public int getPos() {
return pos_;
}
/**
* optional uint32 pos = 8;
*
*
** Ad Position. Use Table 6.5
*
*/
public Builder setPos(int value) {
bitField0_ |= 0x00000080;
pos_ = value;
onChanged();
return this;
}
/**
* optional uint32 pos = 8;
*
*
** Ad Position. Use Table 6.5
*
*/
public Builder clearPos() {
bitField0_ = (bitField0_ & ~0x00000080);
pos_ = 0;
onChanged();
return this;
}
private java.util.List btype_ = java.util.Collections.emptyList();
private void ensureBtypeIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
btype_ = new java.util.ArrayList(btype_);
bitField0_ |= 0x00000100;
}
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public java.util.List
getBtypeList() {
return java.util.Collections.unmodifiableList(btype_);
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public int getBtypeCount() {
return btype_.size();
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public int getBtype(int index) {
return btype_.get(index);
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public Builder setBtype(
int index, int value) {
ensureBtypeIsMutable();
btype_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public Builder addBtype(int value) {
ensureBtypeIsMutable();
btype_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public Builder addAllBtype(
java.lang.Iterable extends java.lang.Integer> values) {
ensureBtypeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, btype_);
onChanged();
return this;
}
/**
* repeated uint32 btype = 9 [packed = true];
*
*
** Blocked creative types. See Table 6.2 Banner Ad Types. If blank, assume all types are allowed.
*
*/
public Builder clearBtype() {
btype_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
private java.util.List battr_ = java.util.Collections.emptyList();
private void ensureBattrIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
battr_ = new java.util.ArrayList(battr_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public java.util.List
getBattrList() {
return java.util.Collections.unmodifiableList(battr_);
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public int getBattrCount() {
return battr_.size();
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public int getBattr(int index) {
return battr_.get(index);
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public Builder setBattr(
int index, int value) {
ensureBattrIsMutable();
battr_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public Builder addBattr(int value) {
ensureBattrIsMutable();
battr_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public Builder addAllBattr(
java.lang.Iterable extends java.lang.Integer> values) {
ensureBattrIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, battr_);
onChanged();
return this;
}
/**
* repeated uint32 battr = 10 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public Builder clearBattr() {
battr_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList mimes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMimesIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
mimes_ = new com.google.protobuf.LazyStringArrayList(mimes_);
bitField0_ |= 0x00000400;
}
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public com.google.protobuf.ProtocolStringList
getMimesList() {
return mimes_.getUnmodifiableView();
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public int getMimesCount() {
return mimes_.size();
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public java.lang.String getMimes(int index) {
return mimes_.get(index);
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public com.google.protobuf.ByteString
getMimesBytes(int index) {
return mimes_.getByteString(index);
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public Builder setMimes(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMimesIsMutable();
mimes_.set(index, value);
onChanged();
return this;
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public Builder addMimes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMimesIsMutable();
mimes_.add(value);
onChanged();
return this;
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public Builder addAllMimes(
java.lang.Iterable values) {
ensureMimesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mimes_);
onChanged();
return this;
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public Builder clearMimes() {
mimes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* repeated string mimes = 11;
*
*
** Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif” and “application/x-shockwave-flash”.
*
*/
public Builder addMimesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureMimesIsMutable();
mimes_.add(value);
onChanged();
return this;
}
private int topframe_ ;
/**
* optional uint32 topframe = 12;
*
*
** 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.
*
*/
public boolean hasTopframe() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional uint32 topframe = 12;
*
*
** 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.
*
*/
public int getTopframe() {
return topframe_;
}
/**
* optional uint32 topframe = 12;
*
*
** 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.
*
*/
public Builder setTopframe(int value) {
bitField0_ |= 0x00000800;
topframe_ = value;
onChanged();
return this;
}
/**
* optional uint32 topframe = 12;
*
*
** 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.
*
*/
public Builder clearTopframe() {
bitField0_ = (bitField0_ & ~0x00000800);
topframe_ = 0;
onChanged();
return this;
}
private java.util.List expdir_ = java.util.Collections.emptyList();
private void ensureExpdirIsMutable() {
if (!((bitField0_ & 0x00001000) == 0x00001000)) {
expdir_ = new java.util.ArrayList(expdir_);
bitField0_ |= 0x00001000;
}
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public java.util.List
getExpdirList() {
return java.util.Collections.unmodifiableList(expdir_);
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public int getExpdirCount() {
return expdir_.size();
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public int getExpdir(int index) {
return expdir_.get(index);
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public Builder setExpdir(
int index, int value) {
ensureExpdirIsMutable();
expdir_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public Builder addExpdir(int value) {
ensureExpdirIsMutable();
expdir_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public Builder addAllExpdir(
java.lang.Iterable extends java.lang.Integer> values) {
ensureExpdirIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, expdir_);
onChanged();
return this;
}
/**
* repeated uint32 expdir = 13 [packed = true];
*
*
** Specify properties for an expandable ad. See Table 6.11 Expandable Direction for possible values.
*
*/
public Builder clearExpdir() {
expdir_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
private java.util.List api_ = java.util.Collections.emptyList();
private void ensureApiIsMutable() {
if (!((bitField0_ & 0x00002000) == 0x00002000)) {
api_ = new java.util.ArrayList(api_);
bitField0_ |= 0x00002000;
}
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public java.util.List
getApiList() {
return java.util.Collections.unmodifiableList(api_);
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public int getApiCount() {
return api_.size();
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public int getApi(int index) {
return api_.get(index);
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public Builder setApi(
int index, int value) {
ensureApiIsMutable();
api_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public Builder addApi(int value) {
ensureApiIsMutable();
api_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public Builder addAllApi(
java.lang.Iterable extends java.lang.Integer> values) {
ensureApiIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, api_);
onChanged();
return this;
}
/**
* repeated uint32 api = 14 [packed = true];
*
*
** 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.
*
*/
public Builder clearApi() {
api_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:open_rtb.Banner)
}
// @@protoc_insertion_point(class_scope:open_rtb.Banner)
private static final open_rtb.OpenRtbProtobuf.Banner DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new open_rtb.OpenRtbProtobuf.Banner();
}
public static open_rtb.OpenRtbProtobuf.Banner getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Banner parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new Banner(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public open_rtb.OpenRtbProtobuf.Banner getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface VideoOrBuilder extends
// @@protoc_insertion_point(interface_extends:open_rtb.Video)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string mimes = 1;
*
*
** 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.
*
*/
com.google.protobuf.ProtocolStringList
getMimesList();
/**
* repeated string mimes = 1;
*
*
** 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.
*
*/
int getMimesCount();
/**
* repeated string mimes = 1;
*
*
** 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.
*
*/
java.lang.String getMimes(int index);
/**
* repeated string mimes = 1;
*
*
** 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.
*
*/
com.google.protobuf.ByteString
getMimesBytes(int index);
/**
* optional sint32 minduration = 2 [default = -1];
*
*
** Minimum video ad duration in seconds.
*
*/
boolean hasMinduration();
/**
* optional sint32 minduration = 2 [default = -1];
*
*
** Minimum video ad duration in seconds.
*
*/
int getMinduration();
/**
* optional sint32 maxduration = 3 [default = -1];
*
*
** Maximum video ad duration in seconds.
*
*/
boolean hasMaxduration();
/**
* optional sint32 maxduration = 3 [default = -1];
*
*
** Maximum video ad duration in seconds.
*
*/
int getMaxduration();
/**
* optional uint32 protocol = 4;
*
*
** 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.
*
*/
boolean hasProtocol();
/**
* optional uint32 protocol = 4;
*
*
** 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.
*
*/
int getProtocol();
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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.
*
*/
java.util.List getProtocolsList();
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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.
*
*/
int getProtocolsCount();
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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.
*
*/
int getProtocols(int index);
/**
* optional uint32 w = 6;
*
*
** Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
boolean hasW();
/**
* optional uint32 w = 6;
*
*
** Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
int getW();
/**
* optional uint32 h = 7;
*
*
** Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
boolean hasH();
/**
* optional uint32 h = 7;
*
*
** Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
int getH();
/**
* optional sint32 startdelay = 8;
*
*
** Indicates the start delay in seconds for preroll, midroll, or postroll ad placement. See Table 6.9 Video Start Delay for generic placement values.
*
*/
boolean hasStartdelay();
/**
* optional sint32 startdelay = 8;
*
*
** Indicates the start delay in seconds for preroll, midroll, or postroll ad placement. See Table 6.9 Video Start Delay for generic placement values.
*
*/
int getStartdelay();
/**
* optional uint32 linearity = 9;
*
*
** 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.
*
*/
boolean hasLinearity();
/**
* optional uint32 linearity = 9;
*
*
** 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.
*
*/
int getLinearity();
/**
* optional uint32 sequence = 10 [default = 1];
*
*
** If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*
*/
boolean hasSequence();
/**
* optional uint32 sequence = 10 [default = 1];
*
*
** If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*
*/
int getSequence();
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
java.util.List getBattrList();
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
int getBattrCount();
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
int getBattr(int index);
/**
* optional sint32 maxextended = 12;
*
*
** 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.
*
*/
boolean hasMaxextended();
/**
* optional sint32 maxextended = 12;
*
*
** 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.
*
*/
int getMaxextended();
/**
* optional uint32 minbitrate = 13;
*
*
** Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
boolean hasMinbitrate();
/**
* optional uint32 minbitrate = 13;
*
*
** Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
int getMinbitrate();
/**
* optional uint32 maxbitrate = 14;
*
*
** Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
boolean hasMaxbitrate();
/**
* optional uint32 maxbitrate = 14;
*
*
** Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
int getMaxbitrate();
/**
* optional uint32 boxingallowed = 15 [default = 1];
*
*
** 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.
*
*/
boolean hasBoxingallowed();
/**
* optional uint32 boxingallowed = 15 [default = 1];
*
*
** 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.
*
*/
int getBoxingallowed();
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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.
*
*/
java.util.List getPlaybackmethodList();
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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.
*
*/
int getPlaybackmethodCount();
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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.
*
*/
int getPlaybackmethod(int index);
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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.
*
*/
java.util.List getDeliverymethodList();
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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.
*
*/
int getDeliverymethodCount();
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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.
*
*/
int getDeliverymethod(int index);
/**
* optional uint32 pos = 18;
*
*
** Ad Position (see table 6.5). Default: unknown.
*
*/
boolean hasPos();
/**
* optional uint32 pos = 18;
*
*
** Ad Position (see table 6.5). Default: unknown.
*
*/
int getPos();
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
java.util.List
getCompanionadList();
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
open_rtb.OpenRtbProtobuf.Banner getCompanionad(int index);
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
int getCompanionadCount();
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
java.util.List extends open_rtb.OpenRtbProtobuf.BannerOrBuilder>
getCompanionadOrBuilderList();
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
open_rtb.OpenRtbProtobuf.BannerOrBuilder getCompanionadOrBuilder(
int index);
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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.
*
*/
java.util.List getApiList();
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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.
*
*/
int getApiCount();
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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.
*
*/
int getApi(int index);
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
java.util.List getVastCompanionTypeList();
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
int getVastCompanionTypeCount();
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
int getVastCompanionType(int index);
}
/**
* Protobuf type {@code open_rtb.Video}
*
*
** 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.
*
*/
public static final class Video extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:open_rtb.Video)
VideoOrBuilder {
// Use Video.newBuilder() to construct.
private Video(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Video() {
mimes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
minduration_ = -1;
maxduration_ = -1;
protocol_ = 0;
protocols_ = java.util.Collections.emptyList();
w_ = 0;
h_ = 0;
startdelay_ = 0;
linearity_ = 0;
sequence_ = 1;
battr_ = java.util.Collections.emptyList();
maxextended_ = 0;
minbitrate_ = 0;
maxbitrate_ = 0;
boxingallowed_ = 1;
playbackmethod_ = java.util.Collections.emptyList();
deliverymethod_ = java.util.Collections.emptyList();
pos_ = 0;
companionad_ = java.util.Collections.emptyList();
api_ = java.util.Collections.emptyList();
vastCompanionType_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Video(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mimes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
mimes_.add(bs);
break;
}
case 16: {
bitField0_ |= 0x00000001;
minduration_ = input.readSInt32();
break;
}
case 24: {
bitField0_ |= 0x00000002;
maxduration_ = input.readSInt32();
break;
}
case 32: {
bitField0_ |= 0x00000004;
protocol_ = input.readUInt32();
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
protocols_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
protocols_.add(input.readUInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
protocols_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
protocols_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 48: {
bitField0_ |= 0x00000008;
w_ = input.readUInt32();
break;
}
case 56: {
bitField0_ |= 0x00000010;
h_ = input.readUInt32();
break;
}
case 64: {
bitField0_ |= 0x00000020;
startdelay_ = input.readSInt32();
break;
}
case 72: {
bitField0_ |= 0x00000040;
linearity_ = input.readUInt32();
break;
}
case 80: {
bitField0_ |= 0x00000080;
sequence_ = input.readUInt32();
break;
}
case 88: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
battr_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
battr_.add(input.readUInt32());
break;
}
case 90: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) {
battr_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
while (input.getBytesUntilLimit() > 0) {
battr_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 96: {
bitField0_ |= 0x00000100;
maxextended_ = input.readSInt32();
break;
}
case 104: {
bitField0_ |= 0x00000200;
minbitrate_ = input.readUInt32();
break;
}
case 112: {
bitField0_ |= 0x00000400;
maxbitrate_ = input.readUInt32();
break;
}
case 120: {
bitField0_ |= 0x00000800;
boxingallowed_ = input.readUInt32();
break;
}
case 128: {
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
playbackmethod_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
playbackmethod_.add(input.readUInt32());
break;
}
case 130: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000) && input.getBytesUntilLimit() > 0) {
playbackmethod_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
while (input.getBytesUntilLimit() > 0) {
playbackmethod_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 136: {
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
deliverymethod_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00010000;
}
deliverymethod_.add(input.readUInt32());
break;
}
case 138: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) {
deliverymethod_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00010000;
}
while (input.getBytesUntilLimit() > 0) {
deliverymethod_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 144: {
bitField0_ |= 0x00001000;
pos_ = input.readUInt32();
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
companionad_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00040000;
}
companionad_.add(input.readMessage(open_rtb.OpenRtbProtobuf.Banner.parser(), extensionRegistry));
break;
}
case 160: {
if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
api_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00080000;
}
api_.add(input.readUInt32());
break;
}
case 162: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00080000) == 0x00080000) && input.getBytesUntilLimit() > 0) {
api_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00080000;
}
while (input.getBytesUntilLimit() > 0) {
api_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 168: {
if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
vastCompanionType_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00100000;
}
vastCompanionType_.add(input.readUInt32());
break;
}
case 170: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00100000) == 0x00100000) && input.getBytesUntilLimit() > 0) {
vastCompanionType_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00100000;
}
while (input.getBytesUntilLimit() > 0) {
vastCompanionType_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
mimes_ = mimes_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
protocols_ = java.util.Collections.unmodifiableList(protocols_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
battr_ = java.util.Collections.unmodifiableList(battr_);
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
playbackmethod_ = java.util.Collections.unmodifiableList(playbackmethod_);
}
if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
deliverymethod_ = java.util.Collections.unmodifiableList(deliverymethod_);
}
if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
companionad_ = java.util.Collections.unmodifiableList(companionad_);
}
if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
api_ = java.util.Collections.unmodifiableList(api_);
}
if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
vastCompanionType_ = java.util.Collections.unmodifiableList(vastCompanionType_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Video_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Video_fieldAccessorTable
.ensureFieldAccessorsInitialized(
open_rtb.OpenRtbProtobuf.Video.class, open_rtb.OpenRtbProtobuf.Video.Builder.class);
}
private int bitField0_;
public static final int MIMES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList mimes_;
/**
* repeated string mimes = 1;
*
*
** 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 com.google.protobuf.ProtocolStringList
getMimesList() {
return mimes_;
}
/**
* repeated string mimes = 1;
*
*
** 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 int getMimesCount() {
return mimes_.size();
}
/**
* repeated string mimes = 1;
*
*
** 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 java.lang.String getMimes(int index) {
return mimes_.get(index);
}
/**
* repeated string mimes = 1;
*
*
** 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 com.google.protobuf.ByteString
getMimesBytes(int index) {
return mimes_.getByteString(index);
}
public static final int MINDURATION_FIELD_NUMBER = 2;
private int minduration_;
/**
* optional sint32 minduration = 2 [default = -1];
*
*
** Minimum video ad duration in seconds.
*
*/
public boolean hasMinduration() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional sint32 minduration = 2 [default = -1];
*
*
** Minimum video ad duration in seconds.
*
*/
public int getMinduration() {
return minduration_;
}
public static final int MAXDURATION_FIELD_NUMBER = 3;
private int maxduration_;
/**
* optional sint32 maxduration = 3 [default = -1];
*
*
** Maximum video ad duration in seconds.
*
*/
public boolean hasMaxduration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional sint32 maxduration = 3 [default = -1];
*
*
** Maximum video ad duration in seconds.
*
*/
public int getMaxduration() {
return maxduration_;
}
public static final int PROTOCOL_FIELD_NUMBER = 4;
private int protocol_;
/**
* optional uint32 protocol = 4;
*
*
** 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 boolean hasProtocol() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 protocol = 4;
*
*
** 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 int getProtocol() {
return protocol_;
}
public static final int PROTOCOLS_FIELD_NUMBER = 5;
private java.util.List protocols_;
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 java.util.List
getProtocolsList() {
return protocols_;
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 int getProtocolsCount() {
return protocols_.size();
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 int getProtocols(int index) {
return protocols_.get(index);
}
private int protocolsMemoizedSerializedSize = -1;
public static final int W_FIELD_NUMBER = 6;
private int w_;
/**
* optional uint32 w = 6;
*
*
** Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
public boolean hasW() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 w = 6;
*
*
** 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 w_;
}
public static final int H_FIELD_NUMBER = 7;
private int h_;
/**
* optional uint32 h = 7;
*
*
** Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
public boolean hasH() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 h = 7;
*
*
** 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 h_;
}
public static final int STARTDELAY_FIELD_NUMBER = 8;
private int startdelay_;
/**
* optional sint32 startdelay = 8;
*
*
** 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 boolean hasStartdelay() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional sint32 startdelay = 8;
*
*
** 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 int getStartdelay() {
return startdelay_;
}
public static final int LINEARITY_FIELD_NUMBER = 9;
private int linearity_;
/**
* optional uint32 linearity = 9;
*
*
** 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 boolean hasLinearity() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 linearity = 9;
*
*
** 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 int getLinearity() {
return linearity_;
}
public static final int SEQUENCE_FIELD_NUMBER = 10;
private int sequence_;
/**
* optional uint32 sequence = 10 [default = 1];
*
*
** If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*
*/
public boolean hasSequence() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional uint32 sequence = 10 [default = 1];
*
*
** 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 sequence_;
}
public static final int BATTR_FIELD_NUMBER = 11;
private java.util.List battr_;
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public java.util.List
getBattrList() {
return battr_;
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public int getBattrCount() {
return battr_.size();
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public int getBattr(int index) {
return battr_.get(index);
}
private int battrMemoizedSerializedSize = -1;
public static final int MAXEXTENDED_FIELD_NUMBER = 12;
private int maxextended_;
/**
* optional sint32 maxextended = 12;
*
*
** 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 boolean hasMaxextended() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional sint32 maxextended = 12;
*
*
** 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 maxextended_;
}
public static final int MINBITRATE_FIELD_NUMBER = 13;
private int minbitrate_;
/**
* optional uint32 minbitrate = 13;
*
*
** Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public boolean hasMinbitrate() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional uint32 minbitrate = 13;
*
*
** Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public int getMinbitrate() {
return minbitrate_;
}
public static final int MAXBITRATE_FIELD_NUMBER = 14;
private int maxbitrate_;
/**
* optional uint32 maxbitrate = 14;
*
*
** Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public boolean hasMaxbitrate() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional uint32 maxbitrate = 14;
*
*
** Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public int getMaxbitrate() {
return maxbitrate_;
}
public static final int BOXINGALLOWED_FIELD_NUMBER = 15;
private int boxingallowed_;
/**
* optional uint32 boxingallowed = 15 [default = 1];
*
*
** 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 boolean hasBoxingallowed() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional uint32 boxingallowed = 15 [default = 1];
*
*
** 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 int getBoxingallowed() {
return boxingallowed_;
}
public static final int PLAYBACKMETHOD_FIELD_NUMBER = 16;
private java.util.List playbackmethod_;
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 java.util.List
getPlaybackmethodList() {
return playbackmethod_;
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 int getPlaybackmethodCount() {
return playbackmethod_.size();
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 int getPlaybackmethod(int index) {
return playbackmethod_.get(index);
}
private int playbackmethodMemoizedSerializedSize = -1;
public static final int DELIVERYMETHOD_FIELD_NUMBER = 17;
private java.util.List deliverymethod_;
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 java.util.List
getDeliverymethodList() {
return deliverymethod_;
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 int getDeliverymethodCount() {
return deliverymethod_.size();
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 int getDeliverymethod(int index) {
return deliverymethod_.get(index);
}
private int deliverymethodMemoizedSerializedSize = -1;
public static final int POS_FIELD_NUMBER = 18;
private int pos_;
/**
* optional uint32 pos = 18;
*
*
** Ad Position (see table 6.5). Default: unknown.
*
*/
public boolean hasPos() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional uint32 pos = 18;
*
*
** Ad Position (see table 6.5). Default: unknown.
*
*/
public int getPos() {
return pos_;
}
public static final int COMPANIONAD_FIELD_NUMBER = 19;
private java.util.List companionad_;
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public java.util.List getCompanionadList() {
return companionad_;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public java.util.List extends open_rtb.OpenRtbProtobuf.BannerOrBuilder>
getCompanionadOrBuilderList() {
return companionad_;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public int getCompanionadCount() {
return companionad_.size();
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public open_rtb.OpenRtbProtobuf.Banner getCompanionad(int index) {
return companionad_.get(index);
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public open_rtb.OpenRtbProtobuf.BannerOrBuilder getCompanionadOrBuilder(
int index) {
return companionad_.get(index);
}
public static final int API_FIELD_NUMBER = 20;
private java.util.List api_;
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 java.util.List
getApiList() {
return api_;
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 int getApiCount() {
return api_.size();
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 int getApi(int index) {
return api_.get(index);
}
private int apiMemoizedSerializedSize = -1;
public static final int VAST_COMPANION_TYPE_FIELD_NUMBER = 21;
private java.util.List vastCompanionType_;
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public java.util.List
getVastCompanionTypeList() {
return vastCompanionType_;
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public int getVastCompanionTypeCount() {
return vastCompanionType_.size();
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public int getVastCompanionType(int index) {
return vastCompanionType_.get(index);
}
private int vastCompanionTypeMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < mimes_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, mimes_.getRaw(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeSInt32(2, minduration_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSInt32(3, maxduration_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(4, protocol_);
}
if (getProtocolsList().size() > 0) {
output.writeRawVarint32(42);
output.writeRawVarint32(protocolsMemoizedSerializedSize);
}
for (int i = 0; i < protocols_.size(); i++) {
output.writeUInt32NoTag(protocols_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(6, w_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(7, h_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeSInt32(8, startdelay_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeUInt32(9, linearity_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeUInt32(10, sequence_);
}
if (getBattrList().size() > 0) {
output.writeRawVarint32(90);
output.writeRawVarint32(battrMemoizedSerializedSize);
}
for (int i = 0; i < battr_.size(); i++) {
output.writeUInt32NoTag(battr_.get(i));
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeSInt32(12, maxextended_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeUInt32(13, minbitrate_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeUInt32(14, maxbitrate_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeUInt32(15, boxingallowed_);
}
if (getPlaybackmethodList().size() > 0) {
output.writeRawVarint32(130);
output.writeRawVarint32(playbackmethodMemoizedSerializedSize);
}
for (int i = 0; i < playbackmethod_.size(); i++) {
output.writeUInt32NoTag(playbackmethod_.get(i));
}
if (getDeliverymethodList().size() > 0) {
output.writeRawVarint32(138);
output.writeRawVarint32(deliverymethodMemoizedSerializedSize);
}
for (int i = 0; i < deliverymethod_.size(); i++) {
output.writeUInt32NoTag(deliverymethod_.get(i));
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeUInt32(18, pos_);
}
for (int i = 0; i < companionad_.size(); i++) {
output.writeMessage(19, companionad_.get(i));
}
if (getApiList().size() > 0) {
output.writeRawVarint32(162);
output.writeRawVarint32(apiMemoizedSerializedSize);
}
for (int i = 0; i < api_.size(); i++) {
output.writeUInt32NoTag(api_.get(i));
}
if (getVastCompanionTypeList().size() > 0) {
output.writeRawVarint32(170);
output.writeRawVarint32(vastCompanionTypeMemoizedSerializedSize);
}
for (int i = 0; i < vastCompanionType_.size(); i++) {
output.writeUInt32NoTag(vastCompanionType_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < mimes_.size(); i++) {
dataSize += computeStringSizeNoTag(mimes_.getRaw(i));
}
size += dataSize;
size += 1 * getMimesList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(2, minduration_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(3, maxduration_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, protocol_);
}
{
int dataSize = 0;
for (int i = 0; i < protocols_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(protocols_.get(i));
}
size += dataSize;
if (!getProtocolsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
protocolsMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, w_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, h_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(8, startdelay_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, linearity_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, sequence_);
}
{
int dataSize = 0;
for (int i = 0; i < battr_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(battr_.get(i));
}
size += dataSize;
if (!getBattrList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
battrMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(12, maxextended_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, minbitrate_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, maxbitrate_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, boxingallowed_);
}
{
int dataSize = 0;
for (int i = 0; i < playbackmethod_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(playbackmethod_.get(i));
}
size += dataSize;
if (!getPlaybackmethodList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
playbackmethodMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < deliverymethod_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(deliverymethod_.get(i));
}
size += dataSize;
if (!getDeliverymethodList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
deliverymethodMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(18, pos_);
}
for (int i = 0; i < companionad_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, companionad_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < api_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(api_.get(i));
}
size += dataSize;
if (!getApiList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
apiMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < vastCompanionType_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(vastCompanionType_.get(i));
}
size += dataSize;
if (!getVastCompanionTypeList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
vastCompanionTypeMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static open_rtb.OpenRtbProtobuf.Video parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static open_rtb.OpenRtbProtobuf.Video parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static open_rtb.OpenRtbProtobuf.Video parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static open_rtb.OpenRtbProtobuf.Video parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static open_rtb.OpenRtbProtobuf.Video parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static open_rtb.OpenRtbProtobuf.Video parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static open_rtb.OpenRtbProtobuf.Video parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static open_rtb.OpenRtbProtobuf.Video parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static open_rtb.OpenRtbProtobuf.Video parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static open_rtb.OpenRtbProtobuf.Video parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(open_rtb.OpenRtbProtobuf.Video prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code open_rtb.Video}
*
*
** 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.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:open_rtb.Video)
open_rtb.OpenRtbProtobuf.VideoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Video_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Video_fieldAccessorTable
.ensureFieldAccessorsInitialized(
open_rtb.OpenRtbProtobuf.Video.class, open_rtb.OpenRtbProtobuf.Video.Builder.class);
}
// Construct using open_rtb.OpenRtbProtobuf.Video.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getCompanionadFieldBuilder();
}
}
public Builder clear() {
super.clear();
mimes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
minduration_ = -1;
bitField0_ = (bitField0_ & ~0x00000002);
maxduration_ = -1;
bitField0_ = (bitField0_ & ~0x00000004);
protocol_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
protocols_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
w_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
h_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
startdelay_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
linearity_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
sequence_ = 1;
bitField0_ = (bitField0_ & ~0x00000200);
battr_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
maxextended_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
minbitrate_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
maxbitrate_ = 0;
bitField0_ = (bitField0_ & ~0x00002000);
boxingallowed_ = 1;
bitField0_ = (bitField0_ & ~0x00004000);
playbackmethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
deliverymethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
pos_ = 0;
bitField0_ = (bitField0_ & ~0x00020000);
if (companionadBuilder_ == null) {
companionad_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
} else {
companionadBuilder_.clear();
}
api_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00080000);
vastCompanionType_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return open_rtb.OpenRtbProtobuf.internal_static_open_rtb_Video_descriptor;
}
public open_rtb.OpenRtbProtobuf.Video getDefaultInstanceForType() {
return open_rtb.OpenRtbProtobuf.Video.getDefaultInstance();
}
public open_rtb.OpenRtbProtobuf.Video build() {
open_rtb.OpenRtbProtobuf.Video result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public open_rtb.OpenRtbProtobuf.Video buildPartial() {
open_rtb.OpenRtbProtobuf.Video result = new open_rtb.OpenRtbProtobuf.Video(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
mimes_ = mimes_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.mimes_ = mimes_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.minduration_ = minduration_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.maxduration_ = maxduration_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.protocol_ = protocol_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
protocols_ = java.util.Collections.unmodifiableList(protocols_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.protocols_ = protocols_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000008;
}
result.w_ = w_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000010;
}
result.h_ = h_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000020;
}
result.startdelay_ = startdelay_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000040;
}
result.linearity_ = linearity_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000080;
}
result.sequence_ = sequence_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
battr_ = java.util.Collections.unmodifiableList(battr_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.battr_ = battr_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000100;
}
result.maxextended_ = maxextended_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00000200;
}
result.minbitrate_ = minbitrate_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00000400;
}
result.maxbitrate_ = maxbitrate_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00000800;
}
result.boxingallowed_ = boxingallowed_;
if (((bitField0_ & 0x00008000) == 0x00008000)) {
playbackmethod_ = java.util.Collections.unmodifiableList(playbackmethod_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.playbackmethod_ = playbackmethod_;
if (((bitField0_ & 0x00010000) == 0x00010000)) {
deliverymethod_ = java.util.Collections.unmodifiableList(deliverymethod_);
bitField0_ = (bitField0_ & ~0x00010000);
}
result.deliverymethod_ = deliverymethod_;
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00001000;
}
result.pos_ = pos_;
if (companionadBuilder_ == null) {
if (((bitField0_ & 0x00040000) == 0x00040000)) {
companionad_ = java.util.Collections.unmodifiableList(companionad_);
bitField0_ = (bitField0_ & ~0x00040000);
}
result.companionad_ = companionad_;
} else {
result.companionad_ = companionadBuilder_.build();
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
api_ = java.util.Collections.unmodifiableList(api_);
bitField0_ = (bitField0_ & ~0x00080000);
}
result.api_ = api_;
if (((bitField0_ & 0x00100000) == 0x00100000)) {
vastCompanionType_ = java.util.Collections.unmodifiableList(vastCompanionType_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.vastCompanionType_ = vastCompanionType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof open_rtb.OpenRtbProtobuf.Video) {
return mergeFrom((open_rtb.OpenRtbProtobuf.Video)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(open_rtb.OpenRtbProtobuf.Video other) {
if (other == open_rtb.OpenRtbProtobuf.Video.getDefaultInstance()) return this;
if (!other.mimes_.isEmpty()) {
if (mimes_.isEmpty()) {
mimes_ = other.mimes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMimesIsMutable();
mimes_.addAll(other.mimes_);
}
onChanged();
}
if (other.hasMinduration()) {
setMinduration(other.getMinduration());
}
if (other.hasMaxduration()) {
setMaxduration(other.getMaxduration());
}
if (other.hasProtocol()) {
setProtocol(other.getProtocol());
}
if (!other.protocols_.isEmpty()) {
if (protocols_.isEmpty()) {
protocols_ = other.protocols_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureProtocolsIsMutable();
protocols_.addAll(other.protocols_);
}
onChanged();
}
if (other.hasW()) {
setW(other.getW());
}
if (other.hasH()) {
setH(other.getH());
}
if (other.hasStartdelay()) {
setStartdelay(other.getStartdelay());
}
if (other.hasLinearity()) {
setLinearity(other.getLinearity());
}
if (other.hasSequence()) {
setSequence(other.getSequence());
}
if (!other.battr_.isEmpty()) {
if (battr_.isEmpty()) {
battr_ = other.battr_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureBattrIsMutable();
battr_.addAll(other.battr_);
}
onChanged();
}
if (other.hasMaxextended()) {
setMaxextended(other.getMaxextended());
}
if (other.hasMinbitrate()) {
setMinbitrate(other.getMinbitrate());
}
if (other.hasMaxbitrate()) {
setMaxbitrate(other.getMaxbitrate());
}
if (other.hasBoxingallowed()) {
setBoxingallowed(other.getBoxingallowed());
}
if (!other.playbackmethod_.isEmpty()) {
if (playbackmethod_.isEmpty()) {
playbackmethod_ = other.playbackmethod_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensurePlaybackmethodIsMutable();
playbackmethod_.addAll(other.playbackmethod_);
}
onChanged();
}
if (!other.deliverymethod_.isEmpty()) {
if (deliverymethod_.isEmpty()) {
deliverymethod_ = other.deliverymethod_;
bitField0_ = (bitField0_ & ~0x00010000);
} else {
ensureDeliverymethodIsMutable();
deliverymethod_.addAll(other.deliverymethod_);
}
onChanged();
}
if (other.hasPos()) {
setPos(other.getPos());
}
if (companionadBuilder_ == null) {
if (!other.companionad_.isEmpty()) {
if (companionad_.isEmpty()) {
companionad_ = other.companionad_;
bitField0_ = (bitField0_ & ~0x00040000);
} else {
ensureCompanionadIsMutable();
companionad_.addAll(other.companionad_);
}
onChanged();
}
} else {
if (!other.companionad_.isEmpty()) {
if (companionadBuilder_.isEmpty()) {
companionadBuilder_.dispose();
companionadBuilder_ = null;
companionad_ = other.companionad_;
bitField0_ = (bitField0_ & ~0x00040000);
companionadBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCompanionadFieldBuilder() : null;
} else {
companionadBuilder_.addAllMessages(other.companionad_);
}
}
}
if (!other.api_.isEmpty()) {
if (api_.isEmpty()) {
api_ = other.api_;
bitField0_ = (bitField0_ & ~0x00080000);
} else {
ensureApiIsMutable();
api_.addAll(other.api_);
}
onChanged();
}
if (!other.vastCompanionType_.isEmpty()) {
if (vastCompanionType_.isEmpty()) {
vastCompanionType_ = other.vastCompanionType_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureVastCompanionTypeIsMutable();
vastCompanionType_.addAll(other.vastCompanionType_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
open_rtb.OpenRtbProtobuf.Video parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (open_rtb.OpenRtbProtobuf.Video) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList mimes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMimesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
mimes_ = new com.google.protobuf.LazyStringArrayList(mimes_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string mimes = 1;
*
*
** 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 com.google.protobuf.ProtocolStringList
getMimesList() {
return mimes_.getUnmodifiableView();
}
/**
* repeated string mimes = 1;
*
*
** 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 int getMimesCount() {
return mimes_.size();
}
/**
* repeated string mimes = 1;
*
*
** 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 java.lang.String getMimes(int index) {
return mimes_.get(index);
}
/**
* repeated string mimes = 1;
*
*
** 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 com.google.protobuf.ByteString
getMimesBytes(int index) {
return mimes_.getByteString(index);
}
/**
* repeated string mimes = 1;
*
*
** 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 Builder setMimes(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMimesIsMutable();
mimes_.set(index, value);
onChanged();
return this;
}
/**
* repeated string mimes = 1;
*
*
** 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 Builder addMimes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMimesIsMutable();
mimes_.add(value);
onChanged();
return this;
}
/**
* repeated string mimes = 1;
*
*
** 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 Builder addAllMimes(
java.lang.Iterable values) {
ensureMimesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mimes_);
onChanged();
return this;
}
/**
* repeated string mimes = 1;
*
*
** 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 Builder clearMimes() {
mimes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string mimes = 1;
*
*
** 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 Builder addMimesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureMimesIsMutable();
mimes_.add(value);
onChanged();
return this;
}
private int minduration_ = -1;
/**
* optional sint32 minduration = 2 [default = -1];
*
*
** Minimum video ad duration in seconds.
*
*/
public boolean hasMinduration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional sint32 minduration = 2 [default = -1];
*
*
** Minimum video ad duration in seconds.
*
*/
public int getMinduration() {
return minduration_;
}
/**
* optional sint32 minduration = 2 [default = -1];
*
*
** Minimum video ad duration in seconds.
*
*/
public Builder setMinduration(int value) {
bitField0_ |= 0x00000002;
minduration_ = value;
onChanged();
return this;
}
/**
* optional sint32 minduration = 2 [default = -1];
*
*
** Minimum video ad duration in seconds.
*
*/
public Builder clearMinduration() {
bitField0_ = (bitField0_ & ~0x00000002);
minduration_ = -1;
onChanged();
return this;
}
private int maxduration_ = -1;
/**
* optional sint32 maxduration = 3 [default = -1];
*
*
** Maximum video ad duration in seconds.
*
*/
public boolean hasMaxduration() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional sint32 maxduration = 3 [default = -1];
*
*
** Maximum video ad duration in seconds.
*
*/
public int getMaxduration() {
return maxduration_;
}
/**
* optional sint32 maxduration = 3 [default = -1];
*
*
** Maximum video ad duration in seconds.
*
*/
public Builder setMaxduration(int value) {
bitField0_ |= 0x00000004;
maxduration_ = value;
onChanged();
return this;
}
/**
* optional sint32 maxduration = 3 [default = -1];
*
*
** Maximum video ad duration in seconds.
*
*/
public Builder clearMaxduration() {
bitField0_ = (bitField0_ & ~0x00000004);
maxduration_ = -1;
onChanged();
return this;
}
private int protocol_ ;
/**
* optional uint32 protocol = 4;
*
*
** 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 boolean hasProtocol() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 protocol = 4;
*
*
** 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 int getProtocol() {
return protocol_;
}
/**
* optional uint32 protocol = 4;
*
*
** 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 Builder setProtocol(int value) {
bitField0_ |= 0x00000008;
protocol_ = value;
onChanged();
return this;
}
/**
* optional uint32 protocol = 4;
*
*
** 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 Builder clearProtocol() {
bitField0_ = (bitField0_ & ~0x00000008);
protocol_ = 0;
onChanged();
return this;
}
private java.util.List protocols_ = java.util.Collections.emptyList();
private void ensureProtocolsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
protocols_ = new java.util.ArrayList(protocols_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 java.util.List
getProtocolsList() {
return java.util.Collections.unmodifiableList(protocols_);
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 int getProtocolsCount() {
return protocols_.size();
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 int getProtocols(int index) {
return protocols_.get(index);
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 Builder setProtocols(
int index, int value) {
ensureProtocolsIsMutable();
protocols_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 Builder addProtocols(int value) {
ensureProtocolsIsMutable();
protocols_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 Builder addAllProtocols(
java.lang.Iterable extends java.lang.Integer> values) {
ensureProtocolsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, protocols_);
onChanged();
return this;
}
/**
* repeated uint32 protocols = 5 [packed = true];
*
*
** 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 Builder clearProtocols() {
protocols_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private int w_ ;
/**
* optional uint32 w = 6;
*
*
** Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
public boolean hasW() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 w = 6;
*
*
** 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 w_;
}
/**
* optional uint32 w = 6;
*
*
** Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
public Builder setW(int value) {
bitField0_ |= 0x00000020;
w_ = value;
onChanged();
return this;
}
/**
* optional uint32 w = 6;
*
*
** Width of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
public Builder clearW() {
bitField0_ = (bitField0_ & ~0x00000020);
w_ = 0;
onChanged();
return this;
}
private int h_ ;
/**
* optional uint32 h = 7;
*
*
** Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
public boolean hasH() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 h = 7;
*
*
** 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 h_;
}
/**
* optional uint32 h = 7;
*
*
** Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
public Builder setH(int value) {
bitField0_ |= 0x00000040;
h_ = value;
onChanged();
return this;
}
/**
* optional uint32 h = 7;
*
*
** Height of the player in pixels. This field is not required, but it’s highly recommended that this information be included.
*
*/
public Builder clearH() {
bitField0_ = (bitField0_ & ~0x00000040);
h_ = 0;
onChanged();
return this;
}
private int startdelay_ ;
/**
* optional sint32 startdelay = 8;
*
*
** 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 boolean hasStartdelay() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional sint32 startdelay = 8;
*
*
** 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 int getStartdelay() {
return startdelay_;
}
/**
* optional sint32 startdelay = 8;
*
*
** 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 Builder setStartdelay(int value) {
bitField0_ |= 0x00000080;
startdelay_ = value;
onChanged();
return this;
}
/**
* optional sint32 startdelay = 8;
*
*
** 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 Builder clearStartdelay() {
bitField0_ = (bitField0_ & ~0x00000080);
startdelay_ = 0;
onChanged();
return this;
}
private int linearity_ ;
/**
* optional uint32 linearity = 9;
*
*
** 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 boolean hasLinearity() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 linearity = 9;
*
*
** 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 int getLinearity() {
return linearity_;
}
/**
* optional uint32 linearity = 9;
*
*
** 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 Builder setLinearity(int value) {
bitField0_ |= 0x00000100;
linearity_ = value;
onChanged();
return this;
}
/**
* optional uint32 linearity = 9;
*
*
** 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 Builder clearLinearity() {
bitField0_ = (bitField0_ & ~0x00000100);
linearity_ = 0;
onChanged();
return this;
}
private int sequence_ = 1;
/**
* optional uint32 sequence = 10 [default = 1];
*
*
** If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*
*/
public boolean hasSequence() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional uint32 sequence = 10 [default = 1];
*
*
** 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 sequence_;
}
/**
* optional uint32 sequence = 10 [default = 1];
*
*
** If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*
*/
public Builder setSequence(int value) {
bitField0_ |= 0x00000200;
sequence_ = value;
onChanged();
return this;
}
/**
* optional uint32 sequence = 10 [default = 1];
*
*
** If multiple ad impressions are offered in the same bid request, the sequence number will allow for the coordinated delivery of multiple creatives.
*
*/
public Builder clearSequence() {
bitField0_ = (bitField0_ & ~0x00000200);
sequence_ = 1;
onChanged();
return this;
}
private java.util.List battr_ = java.util.Collections.emptyList();
private void ensureBattrIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
battr_ = new java.util.ArrayList(battr_);
bitField0_ |= 0x00000400;
}
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public java.util.List
getBattrList() {
return java.util.Collections.unmodifiableList(battr_);
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public int getBattrCount() {
return battr_.size();
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public int getBattr(int index) {
return battr_.get(index);
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public Builder setBattr(
int index, int value) {
ensureBattrIsMutable();
battr_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public Builder addBattr(int value) {
ensureBattrIsMutable();
battr_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public Builder addAllBattr(
java.lang.Iterable extends java.lang.Integer> values) {
ensureBattrIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, battr_);
onChanged();
return this;
}
/**
* repeated uint32 battr = 11 [packed = true];
*
*
** Blocked creative attributes. See Table 6.3 Creative Attributes. If blank assume all types are allowed.
*
*/
public Builder clearBattr() {
battr_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
private int maxextended_ ;
/**
* optional sint32 maxextended = 12;
*
*
** 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 boolean hasMaxextended() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional sint32 maxextended = 12;
*
*
** 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 maxextended_;
}
/**
* optional sint32 maxextended = 12;
*
*
** 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 Builder setMaxextended(int value) {
bitField0_ |= 0x00000800;
maxextended_ = value;
onChanged();
return this;
}
/**
* optional sint32 maxextended = 12;
*
*
** 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 Builder clearMaxextended() {
bitField0_ = (bitField0_ & ~0x00000800);
maxextended_ = 0;
onChanged();
return this;
}
private int minbitrate_ ;
/**
* optional uint32 minbitrate = 13;
*
*
** Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public boolean hasMinbitrate() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional uint32 minbitrate = 13;
*
*
** Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public int getMinbitrate() {
return minbitrate_;
}
/**
* optional uint32 minbitrate = 13;
*
*
** Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public Builder setMinbitrate(int value) {
bitField0_ |= 0x00001000;
minbitrate_ = value;
onChanged();
return this;
}
/**
* optional uint32 minbitrate = 13;
*
*
** Minimum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public Builder clearMinbitrate() {
bitField0_ = (bitField0_ & ~0x00001000);
minbitrate_ = 0;
onChanged();
return this;
}
private int maxbitrate_ ;
/**
* optional uint32 maxbitrate = 14;
*
*
** Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public boolean hasMaxbitrate() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional uint32 maxbitrate = 14;
*
*
** Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public int getMaxbitrate() {
return maxbitrate_;
}
/**
* optional uint32 maxbitrate = 14;
*
*
** Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public Builder setMaxbitrate(int value) {
bitField0_ |= 0x00002000;
maxbitrate_ = value;
onChanged();
return this;
}
/**
* optional uint32 maxbitrate = 14;
*
*
** Maximum bit rate in Kbps. Exchange may set this dynamically, or universally across their set of publishers.
*
*/
public Builder clearMaxbitrate() {
bitField0_ = (bitField0_ & ~0x00002000);
maxbitrate_ = 0;
onChanged();
return this;
}
private int boxingallowed_ = 1;
/**
* optional uint32 boxingallowed = 15 [default = 1];
*
*
** 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 boolean hasBoxingallowed() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional uint32 boxingallowed = 15 [default = 1];
*
*
** 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 int getBoxingallowed() {
return boxingallowed_;
}
/**
* optional uint32 boxingallowed = 15 [default = 1];
*
*
** 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 Builder setBoxingallowed(int value) {
bitField0_ |= 0x00004000;
boxingallowed_ = value;
onChanged();
return this;
}
/**
* optional uint32 boxingallowed = 15 [default = 1];
*
*
** 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 Builder clearBoxingallowed() {
bitField0_ = (bitField0_ & ~0x00004000);
boxingallowed_ = 1;
onChanged();
return this;
}
private java.util.List playbackmethod_ = java.util.Collections.emptyList();
private void ensurePlaybackmethodIsMutable() {
if (!((bitField0_ & 0x00008000) == 0x00008000)) {
playbackmethod_ = new java.util.ArrayList(playbackmethod_);
bitField0_ |= 0x00008000;
}
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 java.util.List
getPlaybackmethodList() {
return java.util.Collections.unmodifiableList(playbackmethod_);
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 int getPlaybackmethodCount() {
return playbackmethod_.size();
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 int getPlaybackmethod(int index) {
return playbackmethod_.get(index);
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 Builder setPlaybackmethod(
int index, int value) {
ensurePlaybackmethodIsMutable();
playbackmethod_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 Builder addPlaybackmethod(int value) {
ensurePlaybackmethodIsMutable();
playbackmethod_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 Builder addAllPlaybackmethod(
java.lang.Iterable extends java.lang.Integer> values) {
ensurePlaybackmethodIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, playbackmethod_);
onChanged();
return this;
}
/**
* repeated uint32 playbackmethod = 16 [packed = true];
*
*
** 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 Builder clearPlaybackmethod() {
playbackmethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
private java.util.List deliverymethod_ = java.util.Collections.emptyList();
private void ensureDeliverymethodIsMutable() {
if (!((bitField0_ & 0x00010000) == 0x00010000)) {
deliverymethod_ = new java.util.ArrayList(deliverymethod_);
bitField0_ |= 0x00010000;
}
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 java.util.List
getDeliverymethodList() {
return java.util.Collections.unmodifiableList(deliverymethod_);
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 int getDeliverymethodCount() {
return deliverymethod_.size();
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 int getDeliverymethod(int index) {
return deliverymethod_.get(index);
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 Builder setDeliverymethod(
int index, int value) {
ensureDeliverymethodIsMutable();
deliverymethod_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 Builder addDeliverymethod(int value) {
ensureDeliverymethodIsMutable();
deliverymethod_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 Builder addAllDeliverymethod(
java.lang.Iterable extends java.lang.Integer> values) {
ensureDeliverymethodIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deliverymethod_);
onChanged();
return this;
}
/**
* repeated uint32 deliverymethod = 17 [packed = true];
*
*
** 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 Builder clearDeliverymethod() {
deliverymethod_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
private int pos_ ;
/**
* optional uint32 pos = 18;
*
*
** Ad Position (see table 6.5). Default: unknown.
*
*/
public boolean hasPos() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional uint32 pos = 18;
*
*
** Ad Position (see table 6.5). Default: unknown.
*
*/
public int getPos() {
return pos_;
}
/**
* optional uint32 pos = 18;
*
*
** Ad Position (see table 6.5). Default: unknown.
*
*/
public Builder setPos(int value) {
bitField0_ |= 0x00020000;
pos_ = value;
onChanged();
return this;
}
/**
* optional uint32 pos = 18;
*
*
** Ad Position (see table 6.5). Default: unknown.
*
*/
public Builder clearPos() {
bitField0_ = (bitField0_ & ~0x00020000);
pos_ = 0;
onChanged();
return this;
}
private java.util.List companionad_ =
java.util.Collections.emptyList();
private void ensureCompanionadIsMutable() {
if (!((bitField0_ & 0x00040000) == 0x00040000)) {
companionad_ = new java.util.ArrayList(companionad_);
bitField0_ |= 0x00040000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
open_rtb.OpenRtbProtobuf.Banner, open_rtb.OpenRtbProtobuf.Banner.Builder, open_rtb.OpenRtbProtobuf.BannerOrBuilder> companionadBuilder_;
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public java.util.List getCompanionadList() {
if (companionadBuilder_ == null) {
return java.util.Collections.unmodifiableList(companionad_);
} else {
return companionadBuilder_.getMessageList();
}
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public int getCompanionadCount() {
if (companionadBuilder_ == null) {
return companionad_.size();
} else {
return companionadBuilder_.getCount();
}
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public open_rtb.OpenRtbProtobuf.Banner getCompanionad(int index) {
if (companionadBuilder_ == null) {
return companionad_.get(index);
} else {
return companionadBuilder_.getMessage(index);
}
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder setCompanionad(
int index, open_rtb.OpenRtbProtobuf.Banner value) {
if (companionadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionadIsMutable();
companionad_.set(index, value);
onChanged();
} else {
companionadBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder setCompanionad(
int index, open_rtb.OpenRtbProtobuf.Banner.Builder builderForValue) {
if (companionadBuilder_ == null) {
ensureCompanionadIsMutable();
companionad_.set(index, builderForValue.build());
onChanged();
} else {
companionadBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder addCompanionad(open_rtb.OpenRtbProtobuf.Banner value) {
if (companionadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionadIsMutable();
companionad_.add(value);
onChanged();
} else {
companionadBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder addCompanionad(
int index, open_rtb.OpenRtbProtobuf.Banner value) {
if (companionadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionadIsMutable();
companionad_.add(index, value);
onChanged();
} else {
companionadBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder addCompanionad(
open_rtb.OpenRtbProtobuf.Banner.Builder builderForValue) {
if (companionadBuilder_ == null) {
ensureCompanionadIsMutable();
companionad_.add(builderForValue.build());
onChanged();
} else {
companionadBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder addCompanionad(
int index, open_rtb.OpenRtbProtobuf.Banner.Builder builderForValue) {
if (companionadBuilder_ == null) {
ensureCompanionadIsMutable();
companionad_.add(index, builderForValue.build());
onChanged();
} else {
companionadBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder addAllCompanionad(
java.lang.Iterable extends open_rtb.OpenRtbProtobuf.Banner> values) {
if (companionadBuilder_ == null) {
ensureCompanionadIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, companionad_);
onChanged();
} else {
companionadBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder clearCompanionad() {
if (companionadBuilder_ == null) {
companionad_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
} else {
companionadBuilder_.clear();
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public Builder removeCompanionad(int index) {
if (companionadBuilder_ == null) {
ensureCompanionadIsMutable();
companionad_.remove(index);
onChanged();
} else {
companionadBuilder_.remove(index);
}
return this;
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public open_rtb.OpenRtbProtobuf.Banner.Builder getCompanionadBuilder(
int index) {
return getCompanionadFieldBuilder().getBuilder(index);
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public open_rtb.OpenRtbProtobuf.BannerOrBuilder getCompanionadOrBuilder(
int index) {
if (companionadBuilder_ == null) {
return companionad_.get(index); } else {
return companionadBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public java.util.List extends open_rtb.OpenRtbProtobuf.BannerOrBuilder>
getCompanionadOrBuilderList() {
if (companionadBuilder_ != null) {
return companionadBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(companionad_);
}
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public open_rtb.OpenRtbProtobuf.Banner.Builder addCompanionadBuilder() {
return getCompanionadFieldBuilder().addBuilder(
open_rtb.OpenRtbProtobuf.Banner.getDefaultInstance());
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public open_rtb.OpenRtbProtobuf.Banner.Builder addCompanionadBuilder(
int index) {
return getCompanionadFieldBuilder().addBuilder(
index, open_rtb.OpenRtbProtobuf.Banner.getDefaultInstance());
}
/**
* repeated .open_rtb.Banner companionad = 19;
*
*
** If companion ads are available, they can be listed as an array of banner objects. See Banner Object.
*
*/
public java.util.List
getCompanionadBuilderList() {
return getCompanionadFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
open_rtb.OpenRtbProtobuf.Banner, open_rtb.OpenRtbProtobuf.Banner.Builder, open_rtb.OpenRtbProtobuf.BannerOrBuilder>
getCompanionadFieldBuilder() {
if (companionadBuilder_ == null) {
companionadBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
open_rtb.OpenRtbProtobuf.Banner, open_rtb.OpenRtbProtobuf.Banner.Builder, open_rtb.OpenRtbProtobuf.BannerOrBuilder>(
companionad_,
((bitField0_ & 0x00040000) == 0x00040000),
getParentForChildren(),
isClean());
companionad_ = null;
}
return companionadBuilder_;
}
private java.util.List api_ = java.util.Collections.emptyList();
private void ensureApiIsMutable() {
if (!((bitField0_ & 0x00080000) == 0x00080000)) {
api_ = new java.util.ArrayList(api_);
bitField0_ |= 0x00080000;
}
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 java.util.List
getApiList() {
return java.util.Collections.unmodifiableList(api_);
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 int getApiCount() {
return api_.size();
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 int getApi(int index) {
return api_.get(index);
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 Builder setApi(
int index, int value) {
ensureApiIsMutable();
api_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 Builder addApi(int value) {
ensureApiIsMutable();
api_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 Builder addAllApi(
java.lang.Iterable extends java.lang.Integer> values) {
ensureApiIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, api_);
onChanged();
return this;
}
/**
* repeated uint32 api = 20 [packed = true];
*
*
** 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 Builder clearApi() {
api_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
return this;
}
private java.util.List vastCompanionType_ = java.util.Collections.emptyList();
private void ensureVastCompanionTypeIsMutable() {
if (!((bitField0_ & 0x00100000) == 0x00100000)) {
vastCompanionType_ = new java.util.ArrayList(vastCompanionType_);
bitField0_ |= 0x00100000;
}
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public java.util.List
getVastCompanionTypeList() {
return java.util.Collections.unmodifiableList(vastCompanionType_);
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public int getVastCompanionTypeCount() {
return vastCompanionType_.size();
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public int getVastCompanionType(int index) {
return vastCompanionType_.get(index);
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public Builder setVastCompanionType(
int index, int value) {
ensureVastCompanionTypeIsMutable();
vastCompanionType_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public Builder addVastCompanionType(int value) {
ensureVastCompanionTypeIsMutable();
vastCompanionType_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public Builder addAllVastCompanionType(
java.lang.Iterable extends java.lang.Integer> values) {
ensureVastCompanionTypeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vastCompanionType_);
onChanged();
return this;
}
/**
* repeated uint32 vast_companion_type = 21 [packed = true];
*
*
** Recommended if companion objects are included. See Table 6.17 VAST Companion Types for a list of possible values.
*
*/
public Builder clearVastCompanionType() {
vastCompanionType_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:open_rtb.Video)
}
// @@protoc_insertion_point(class_scope:open_rtb.Video)
private static final open_rtb.OpenRtbProtobuf.Video DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new open_rtb.OpenRtbProtobuf.Video();
}
public static open_rtb.OpenRtbProtobuf.Video getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser