public static class Segment.Protobuf extends Object implements Segment<OpenRtbProtobuf.Segment>
Segment.Avro, Segment.AvroBuilder, Segment.Builder<T>, Segment.Comparator, Segment.NativeImpl, Segment.Protobuf, Segment.ProtobufBuilder, Segment.Thrift, Segment.ThriftBuilder| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Protobuf(byte[] binaryEncoding)
Constructs a new Protobuf instance based on a message's binary encoding.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static Segment<OpenRtbProtobuf.Segment> |
from(byte[] binaryEncoding)
Decodes a Protobuf message.
|
OpenRtbProtobuf.Segment |
get()
Returns underlying object.
|
String |
getId()
ID of a data provider’s segment applicable to the user.
|
String |
getName()
Name of a data provider’s segment applicable to the user.
|
String |
getValue()
String representing the value of the segment.
|
int |
hashCode() |
boolean |
isDefaultId() |
boolean |
isDefaultName() |
boolean |
isDefaultValue() |
Segment.Builder<OpenRtbProtobuf.Segment> |
newBuilder()
Creates a new builder based on this object.
|
String |
toString() |
avro, avro, compareTo, getAvroClass, getAvroSchema, getComparator, getProtobufClass, getProtobufDescriptor, getProtobufProtocolClass, getProtobufProtocolDescriptor, getThriftClass, getThriftMetadataMap, isDefault, nativeImpl, newAvroBuilder, newAvroBuilder, newAvroBuilder, newAvroBuilder, newNativeImplBuilder, newNativeImplBuilder, newProtobufBuilder, newProtobufBuilder, newProtobufBuilder, newThriftBuilder, newThriftBuilder, newThriftBuilder, protobuf, protobuf, thrift, thriftpublic static final long serialVersionUID
public Protobuf(byte[] binaryEncoding)
public OpenRtbProtobuf.Segment get()
Segmentget in interface Supplier<OpenRtbProtobuf.Segment>get in interface Segment<OpenRtbProtobuf.Segment>public Segment.Builder<OpenRtbProtobuf.Segment> newBuilder()
SegmentnewBuilder in interface Segment<OpenRtbProtobuf.Segment>public String getId()
SegmentgetId in interface Segment<OpenRtbProtobuf.Segment>public boolean isDefaultId()
isDefaultId in interface Segment<OpenRtbProtobuf.Segment>public String getName()
SegmentgetName in interface Segment<OpenRtbProtobuf.Segment>public boolean isDefaultName()
isDefaultName in interface Segment<OpenRtbProtobuf.Segment>public String getValue()
SegmentgetValue in interface Segment<OpenRtbProtobuf.Segment>public boolean isDefaultValue()
isDefaultValue in interface Segment<OpenRtbProtobuf.Segment>public static Segment<OpenRtbProtobuf.Segment> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.