public interface Producer<T> extends Supplier<T>, Comparable<Producer<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Producer.Avro |
static class |
Producer.AvroBuilder |
static interface |
Producer.Builder<T> |
static class |
Producer.Comparator |
static class |
Producer.NativeImpl |
static class |
Producer.Protobuf |
static class |
Producer.ProtobufBuilder |
static class |
Producer.Thrift |
static class |
Producer.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Producer.Avro |
avro(Producer<?> instance)
Returns a wrapped Avro record based on an instance of Producer.
|
static Producer.Avro |
avro(ProducerAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Producer<?> other) |
T |
get()
Returns underlying object.
|
static Class<ProducerAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
List<String> |
getCat()
Array of IAB content categories for the content producer.
|
static Comparator<Producer<?>> |
getComparator()
Returns comparator instance for Producer objects.
|
String |
getDomain()
URL of the content producer.
|
String |
getId()
Content producer or originator ID.
|
String |
getName()
Content producer or originator name (e.g., “Warner Bros”).
|
static Class<OpenRtbProtobuf.Producer> |
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<ProducerThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<ProducerThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultCat() |
boolean |
isDefaultDomain() |
boolean |
isDefaultId() |
boolean |
isDefaultName() |
static Producer.NativeImpl |
nativeImpl(Producer<?> instance)
Returns a POJO based on an instance of Producer.
|
static Producer.Builder<ProducerAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Producer.Builder<ProducerAvro> |
newAvroBuilder(Producer<?> other)
Returns new Avro builder instance based on existing prototype Producer.
|
static Producer.Builder<ProducerAvro> |
newAvroBuilder(ProducerAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Producer.Builder<ProducerAvro> |
newAvroBuilder(ProducerAvro other)
Returns new Avro builder instance based on existing prototype.
|
Producer.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Producer.Builder<Producer.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Producer.Builder<Producer.NativeImpl> |
newNativeImplBuilder(Producer<?> other)
Returns a POJO builder instance based on existing prototype Producer.
|
static Producer.Builder<OpenRtbProtobuf.Producer> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Producer.Builder<OpenRtbProtobuf.Producer> |
newProtobufBuilder(OpenRtbProtobuf.Producer other)
Returns new Protobuf builder instance based on existing prototype.
|
static Producer.Builder<OpenRtbProtobuf.Producer> |
newProtobufBuilder(Producer<?> other)
Returns new Protobuf builder instance based on existing prototype Producer.
|
static Producer.Builder<ProducerThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Producer.Builder<ProducerThrift> |
newThriftBuilder(Producer<?> other)
Returns new Thrift builder instance based on existing prototype Producer.
|
static Producer.Builder<ProducerThrift> |
newThriftBuilder(ProducerThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Producer.Protobuf |
protobuf(OpenRtbProtobuf.Producer wrapped)
Wraps an existing Protobuf message.
|
static Producer.Protobuf |
protobuf(Producer<?> instance)
Returns a wrapped Protobuf message based on an instance of Producer.
|
static Producer.Thrift |
thrift(Producer<?> instance)
Returns a wrapped Thrift struct based on an instance of Producer.
|
static Producer.Thrift |
thrift(ProducerThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Producer.Builder<T> newBuilder()
String getId()
boolean isDefaultId()
String getName()
boolean isDefaultName()
List<String> getCat()
boolean isDefaultCat()
String getDomain()
boolean isDefaultDomain()
static Comparator<Producer<?>> getComparator()
default int compareTo(Producer<?> other)
compareTo in interface Comparable<Producer<?>>static Producer.Builder<Producer.NativeImpl> newNativeImplBuilder()
static Producer.Builder<Producer.NativeImpl> newNativeImplBuilder(Producer<?> other)
static Producer.NativeImpl nativeImpl(Producer<?> instance)
static Producer.Builder<ProducerAvro> newAvroBuilder()
static Producer.Builder<ProducerAvro> newAvroBuilder(ProducerAvro other)
static Producer.Builder<ProducerAvro> newAvroBuilder(ProducerAvro.Builder other)
static Producer.Builder<ProducerAvro> newAvroBuilder(Producer<?> other)
static Producer.Avro avro(Producer<?> instance)
static Producer.Avro avro(ProducerAvro wrapped)
static Class<ProducerAvro> getAvroClass()
static Schema getAvroSchema()
static Producer.Builder<OpenRtbProtobuf.Producer> newProtobufBuilder()
static Producer.Builder<OpenRtbProtobuf.Producer> newProtobufBuilder(OpenRtbProtobuf.Producer other)
static Producer.Builder<OpenRtbProtobuf.Producer> newProtobufBuilder(Producer<?> other)
static Producer.Protobuf protobuf(Producer<?> instance)
static Producer.Protobuf protobuf(OpenRtbProtobuf.Producer wrapped)
static Class<OpenRtbProtobuf.Producer> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Producer.Builder<ProducerThrift> newThriftBuilder()
static Producer.Builder<ProducerThrift> newThriftBuilder(ProducerThrift other)
static Producer.Builder<ProducerThrift> newThriftBuilder(Producer<?> other)
static Producer.Thrift thrift(Producer<?> instance)
static Producer.Thrift thrift(ProducerThrift instance)
static Class<ProducerThrift> getThriftClass()
static Map<ProducerThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.