public static class Regulations.Avro extends Object implements Regulations<RegulationsAvro>
Regulations.Avro, Regulations.AvroBuilder, Regulations.Builder<T>, Regulations.Comparator, Regulations.NativeImpl, Regulations.Protobuf, Regulations.ProtobufBuilder, Regulations.Thrift, Regulations.ThriftBuilder| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Avro(byte[] binaryEncoding)
Constructs a new Avro instance based on a message's binary encoding.
|
| Modifier and Type | Method and Description |
|---|---|
Regulations.Avro |
encoded() |
boolean |
equals(Object other) |
static Regulations<RegulationsAvro> |
from(byte[] binaryEncoding)
Decodes a Avro record.
|
RegulationsAvro |
get()
Returns underlying object.
|
int |
getCoppa()
Flag indicating whether or not this request falls under the COPPA regulations established by the USA FTC, where 0 = no, 1 = yes.
|
int |
hashCode() |
boolean |
isDefaultCoppa() |
Regulations.Builder<RegulationsAvro> |
newBuilder()
Creates a new builder based on this object.
|
byte[] |
toByteArray()
Returns an Avro binary encoding of this record.
|
ByteBuffer |
toByteBuffer()
Returns the Avro binary encoding of this record wrapped in a read-only buffer.
|
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 Avro(byte[] binaryEncoding)
public RegulationsAvro get()
Regulationsget in interface Supplier<RegulationsAvro>get in interface Regulations<RegulationsAvro>public Regulations.Builder<RegulationsAvro> newBuilder()
RegulationsnewBuilder in interface Regulations<RegulationsAvro>public byte[] toByteArray()
public ByteBuffer toByteBuffer()
public int getCoppa()
RegulationsgetCoppa in interface Regulations<RegulationsAvro>public boolean isDefaultCoppa()
isDefaultCoppa in interface Regulations<RegulationsAvro>public Regulations.Avro encoded()
public static Regulations<RegulationsAvro> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.