public static class Simple.Protobuf extends Object implements Simple<SimpleProtobuf.Simple>
Simple.Avro, Simple.AvroBuilder, Simple.Builder<T>, Simple.Comparator, Simple.NativeImpl, Simple.Protobuf, Simple.ProtobufBuilder, Simple.Thrift, Simple.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 Simple<SimpleProtobuf.Simple> |
from(byte[] binaryEncoding)
Decodes a Protobuf message.
|
SimpleProtobuf.Simple |
get()
Returns underlying object.
|
Supplier<byte[]> |
getBar()
field #2
|
double |
getBaz()
field #3
|
long |
getFoo()
field #1
|
int |
hashCode() |
boolean |
isDefaultBar() |
boolean |
isDefaultBaz() |
boolean |
isDefaultFoo() |
Simple.Builder<SimpleProtobuf.Simple> |
newBuilder()
Creates a new builder based on this object.
|
String |
toString() |
avro, avro, compareTo, getAvroClass, getAvroSchema, getBlab, getComparator, getProtobufClass, getProtobufDescriptor, getProtobufProtocolClass, getProtobufProtocolDescriptor, getThriftClass, getThriftMetadataMap, isDefault, isDefaultBlab, 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 SimpleProtobuf.Simple get()
Simpleget in interface Simple<SimpleProtobuf.Simple>get in interface Supplier<SimpleProtobuf.Simple>public Simple.Builder<SimpleProtobuf.Simple> newBuilder()
SimplenewBuilder in interface Simple<SimpleProtobuf.Simple>public long getFoo()
SimplegetFoo in interface Simple<SimpleProtobuf.Simple>public boolean isDefaultFoo()
isDefaultFoo in interface Simple<SimpleProtobuf.Simple>public Supplier<byte[]> getBar()
SimplegetBar in interface Simple<SimpleProtobuf.Simple>public boolean isDefaultBar()
isDefaultBar in interface Simple<SimpleProtobuf.Simple>public double getBaz()
SimplegetBaz in interface Simple<SimpleProtobuf.Simple>public boolean isDefaultBaz()
isDefaultBaz in interface Simple<SimpleProtobuf.Simple>public static Simple<SimpleProtobuf.Simple> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.