public interface Deal<T> extends Supplier<T>, Comparable<Deal<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Deal.Avro |
static class |
Deal.AvroBuilder |
static interface |
Deal.Builder<T> |
static class |
Deal.Comparator |
static class |
Deal.NativeImpl |
static class |
Deal.Protobuf |
static class |
Deal.ProtobufBuilder |
static class |
Deal.Thrift |
static class |
Deal.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Deal.Avro |
avro(Deal<?> instance)
Returns a wrapped Avro record based on an instance of Deal.
|
static Deal.Avro |
avro(DealAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Deal<?> other) |
T |
get()
Returns underlying object.
|
int |
getAt()
Auction type.
|
static Class<DealAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
double |
getBidfloor()
Bid floor for this impression (in CPM of bidfloorcur).
|
String |
getBidfloorcur()
If bid floor is specified and multiple currencies supported per bid request, then currency should be specified here using ISO- 4217 alphabetic codes.
|
static Comparator<Deal<?>> |
getComparator()
Returns comparator instance for Deal objects.
|
String |
getId()
A unique identifier for the direct deal.
|
static Class<OpenRtbProtobuf.Deal> |
getProtobufClass()
Returns Protobuf class for this struct.
|
static com.google.protobuf.Descriptors.Descriptor |
getProtobufDescriptor()
Returns Protobuf descriptor for this struct.
|
static Class<AdExchangeProtobuf> |
getProtobufProtocolClass()
Returns Protobuf protocol class for this struct.
|
static com.google.protobuf.Descriptors.FileDescriptor |
getProtobufProtocolDescriptor()
Returns Protobuf protocol descriptor for this struct.
|
static Class<DealThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<DealThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
List<String> |
getWadomain()
Array of advertiser domains allowed to bid on this Direct Deal.
|
List<String> |
getWseat()
Array of buyer seats allowed to bid on this Direct Deal.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultAt() |
boolean |
isDefaultBidfloor() |
boolean |
isDefaultBidfloorcur() |
boolean |
isDefaultId() |
boolean |
isDefaultWadomain() |
boolean |
isDefaultWseat() |
static Deal.NativeImpl |
nativeImpl(Deal<?> instance)
Returns a POJO based on an instance of Deal.
|
static Deal.Builder<DealAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Deal.Builder<DealAvro> |
newAvroBuilder(Deal<?> other)
Returns new Avro builder instance based on existing prototype Deal.
|
static Deal.Builder<DealAvro> |
newAvroBuilder(DealAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Deal.Builder<DealAvro> |
newAvroBuilder(DealAvro other)
Returns new Avro builder instance based on existing prototype.
|
Deal.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Deal.Builder<Deal.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Deal.Builder<Deal.NativeImpl> |
newNativeImplBuilder(Deal<?> other)
Returns a POJO builder instance based on existing prototype Deal.
|
static Deal.Builder<OpenRtbProtobuf.Deal> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Deal.Builder<OpenRtbProtobuf.Deal> |
newProtobufBuilder(Deal<?> other)
Returns new Protobuf builder instance based on existing prototype Deal.
|
static Deal.Builder<OpenRtbProtobuf.Deal> |
newProtobufBuilder(OpenRtbProtobuf.Deal other)
Returns new Protobuf builder instance based on existing prototype.
|
static Deal.Builder<DealThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Deal.Builder<DealThrift> |
newThriftBuilder(Deal<?> other)
Returns new Thrift builder instance based on existing prototype Deal.
|
static Deal.Builder<DealThrift> |
newThriftBuilder(DealThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Deal.Protobuf |
protobuf(Deal<?> instance)
Returns a wrapped Protobuf message based on an instance of Deal.
|
static Deal.Protobuf |
protobuf(OpenRtbProtobuf.Deal wrapped)
Wraps an existing Protobuf message.
|
static Deal.Thrift |
thrift(Deal<?> instance)
Returns a wrapped Thrift struct based on an instance of Deal.
|
static Deal.Thrift |
thrift(DealThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Deal.Builder<T> newBuilder()
String getId()
boolean isDefaultId()
double getBidfloor()
boolean isDefaultBidfloor()
String getBidfloorcur()
boolean isDefaultBidfloorcur()
List<String> getWseat()
boolean isDefaultWseat()
List<String> getWadomain()
boolean isDefaultWadomain()
int getAt()
boolean isDefaultAt()
static Comparator<Deal<?>> getComparator()
default int compareTo(Deal<?> other)
compareTo in interface Comparable<Deal<?>>static Deal.Builder<Deal.NativeImpl> newNativeImplBuilder()
static Deal.Builder<Deal.NativeImpl> newNativeImplBuilder(Deal<?> other)
static Deal.NativeImpl nativeImpl(Deal<?> instance)
static Deal.Builder<DealAvro> newAvroBuilder()
static Deal.Builder<DealAvro> newAvroBuilder(DealAvro other)
static Deal.Builder<DealAvro> newAvroBuilder(DealAvro.Builder other)
static Deal.Builder<DealAvro> newAvroBuilder(Deal<?> other)
static Deal.Avro avro(Deal<?> instance)
static Schema getAvroSchema()
static Deal.Builder<OpenRtbProtobuf.Deal> newProtobufBuilder()
static Deal.Builder<OpenRtbProtobuf.Deal> newProtobufBuilder(OpenRtbProtobuf.Deal other)
static Deal.Builder<OpenRtbProtobuf.Deal> newProtobufBuilder(Deal<?> other)
static Deal.Protobuf protobuf(Deal<?> instance)
static Deal.Protobuf protobuf(OpenRtbProtobuf.Deal wrapped)
static Class<OpenRtbProtobuf.Deal> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Deal.Builder<DealThrift> newThriftBuilder()
static Deal.Builder<DealThrift> newThriftBuilder(DealThrift other)
static Deal.Builder<DealThrift> newThriftBuilder(Deal<?> other)
static Deal.Thrift thrift(Deal<?> instance)
static Deal.Thrift thrift(DealThrift instance)
static Class<DealThrift> getThriftClass()
static Map<DealThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.