public interface Publisher<T> extends Supplier<T>, Comparable<Publisher<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Publisher.Avro |
static class |
Publisher.AvroBuilder |
static interface |
Publisher.Builder<T> |
static class |
Publisher.Comparator |
static class |
Publisher.NativeImpl |
static class |
Publisher.Protobuf |
static class |
Publisher.ProtobufBuilder |
static class |
Publisher.Thrift |
static class |
Publisher.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Publisher.Avro |
avro(Publisher<?> instance)
Returns a wrapped Avro record based on an instance of Publisher.
|
static Publisher.Avro |
avro(PublisherAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Publisher<?> other) |
T |
get()
Returns underlying object.
|
static Class<PublisherAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
List<String> |
getCat()
Array of IAB content categories for the publisher.
|
static Comparator<Publisher<?>> |
getComparator()
Returns comparator instance for Publisher objects.
|
String |
getDomain()
Publisher’s highest level domain name, for example “foopub.com”.
|
String |
getId()
Publisher ID on the exchange.
|
String |
getName()
Publisher name (may be masked at publisher’s request).
|
static Class<OpenRtbProtobuf.Publisher> |
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<PublisherThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<PublisherThrift._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 Publisher.NativeImpl |
nativeImpl(Publisher<?> instance)
Returns a POJO based on an instance of Publisher.
|
static Publisher.Builder<PublisherAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Publisher.Builder<PublisherAvro> |
newAvroBuilder(Publisher<?> other)
Returns new Avro builder instance based on existing prototype Publisher.
|
static Publisher.Builder<PublisherAvro> |
newAvroBuilder(PublisherAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Publisher.Builder<PublisherAvro> |
newAvroBuilder(PublisherAvro other)
Returns new Avro builder instance based on existing prototype.
|
Publisher.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Publisher.Builder<Publisher.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Publisher.Builder<Publisher.NativeImpl> |
newNativeImplBuilder(Publisher<?> other)
Returns a POJO builder instance based on existing prototype Publisher.
|
static Publisher.Builder<OpenRtbProtobuf.Publisher> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Publisher.Builder<OpenRtbProtobuf.Publisher> |
newProtobufBuilder(OpenRtbProtobuf.Publisher other)
Returns new Protobuf builder instance based on existing prototype.
|
static Publisher.Builder<OpenRtbProtobuf.Publisher> |
newProtobufBuilder(Publisher<?> other)
Returns new Protobuf builder instance based on existing prototype Publisher.
|
static Publisher.Builder<PublisherThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Publisher.Builder<PublisherThrift> |
newThriftBuilder(Publisher<?> other)
Returns new Thrift builder instance based on existing prototype Publisher.
|
static Publisher.Builder<PublisherThrift> |
newThriftBuilder(PublisherThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Publisher.Protobuf |
protobuf(OpenRtbProtobuf.Publisher wrapped)
Wraps an existing Protobuf message.
|
static Publisher.Protobuf |
protobuf(Publisher<?> instance)
Returns a wrapped Protobuf message based on an instance of Publisher.
|
static Publisher.Thrift |
thrift(Publisher<?> instance)
Returns a wrapped Thrift struct based on an instance of Publisher.
|
static Publisher.Thrift |
thrift(PublisherThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Publisher.Builder<T> newBuilder()
String getId()
boolean isDefaultId()
String getName()
boolean isDefaultName()
List<String> getCat()
boolean isDefaultCat()
String getDomain()
boolean isDefaultDomain()
static Comparator<Publisher<?>> getComparator()
default int compareTo(Publisher<?> other)
compareTo in interface Comparable<Publisher<?>>static Publisher.Builder<Publisher.NativeImpl> newNativeImplBuilder()
static Publisher.Builder<Publisher.NativeImpl> newNativeImplBuilder(Publisher<?> other)
static Publisher.NativeImpl nativeImpl(Publisher<?> instance)
static Publisher.Builder<PublisherAvro> newAvroBuilder()
static Publisher.Builder<PublisherAvro> newAvroBuilder(PublisherAvro other)
static Publisher.Builder<PublisherAvro> newAvroBuilder(PublisherAvro.Builder other)
static Publisher.Builder<PublisherAvro> newAvroBuilder(Publisher<?> other)
static Publisher.Avro avro(Publisher<?> instance)
static Publisher.Avro avro(PublisherAvro wrapped)
static Class<PublisherAvro> getAvroClass()
static Schema getAvroSchema()
static Publisher.Builder<OpenRtbProtobuf.Publisher> newProtobufBuilder()
static Publisher.Builder<OpenRtbProtobuf.Publisher> newProtobufBuilder(OpenRtbProtobuf.Publisher other)
static Publisher.Builder<OpenRtbProtobuf.Publisher> newProtobufBuilder(Publisher<?> other)
static Publisher.Protobuf protobuf(Publisher<?> instance)
static Publisher.Protobuf protobuf(OpenRtbProtobuf.Publisher wrapped)
static Class<OpenRtbProtobuf.Publisher> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Publisher.Builder<PublisherThrift> newThriftBuilder()
static Publisher.Builder<PublisherThrift> newThriftBuilder(PublisherThrift other)
static Publisher.Builder<PublisherThrift> newThriftBuilder(Publisher<?> other)
static Publisher.Thrift thrift(Publisher<?> instance)
static Publisher.Thrift thrift(PublisherThrift instance)
static Class<PublisherThrift> getThriftClass()
static Map<PublisherThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.