public Buffer parseFramed(org.fusesource.hawtbuf.Buffer data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException { try { org.fusesource.hawtbuf.proto.CodedInputStream input = new org.fusesource.hawtbuf.proto.CodedInputStream(data); Buffer rc = parseFramed(input); input.checkLastTagWas(0); return rc; } catch (org.fusesource.hawtbuf.proto.InvalidProtocolBufferException e) { throw e; } catch (java.io.IOException e) { throw new RuntimeException("An IOException was thrown (should never happen in this method).", e); } }
public Buffer parseFramed(org.fusesource.hawtbuf.proto.CodedInputStream data) throws org.fusesource.hawtbuf.proto.InvalidProtocolBufferException, java.io.IOException { int length = data.readRawVarint32(); int oldLimit = data.pushLimit(length); Buffer rc = parseUnframed(data.readRawBytes(length)); data.popLimit(oldLimit); return rc; }
public T mergeFramed(CodedInputStream input) throws IOException { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); T rc = mergeUnframed(input); input.checkLastTagWas(0); input.popLimit(oldLimit); return rc; }
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { input.skipField(tag); break; } case 8: setCollectionKey(input.readInt64()); break; case 18: setEntryKey(input.readBytes()); break; } } } public boolean equals(Object obj) {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 10: setName(new org.fusesource.hawtbuf.UTF8Buffer(input.readBytes())); break; case 16: setQos(input.readInt32()); break; case 26: setAddress(new org.fusesource.hawtbuf.UTF8Buffer(input.readBytes())); break; } } } public boolean equals(Object obj) {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 8: setCollectionKey(input.readInt64()); break; case 18: setEntryKey(input.readBytes()); break; } } } public boolean equals(Object obj) {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { input.skipField(tag); break; } case 10: setKey(input.readBytes()); break; case 18: setValue(input.readBytes()); break; } } } public boolean equals(Object obj) {
public Segment mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 10: setSegmentId(input.readString()); break; case 16: setOffset(input.readInt64()); break; case 24: setLength(input.readInt64()); break; } } } public void writeUnframed(org.fusesource.hawtbuf.proto.CodedOutputStream output) throws java.io.IOException {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { input.skipField(tag); break; } case 8: setKey(input.readInt64()); break; } } } public boolean equals(Object obj) {
/** * Reads and discards a single field, given its tag value. * * @return {@code false} if the tag is an endgroup tag, in which case * nothing is skipped. Otherwise, returns {@code true}. */ public boolean skipField(int tag) throws IOException { switch (WireFormat.getTagWireType(tag)) { case WireFormat.WIRETYPE_VARINT: readInt32(); return true; case WireFormat.WIRETYPE_FIXED64: readRawLittleEndian64(); return true; case WireFormat.WIRETYPE_LENGTH_DELIMITED: skipRawBytes(readRawVarint32()); return true; case WireFormat.WIRETYPE_START_GROUP: skipMessage(); checkLastTagWas(WireFormat.makeTag(WireFormat.getTagFieldNumber(tag), WireFormat.WIRETYPE_END_GROUP)); return true; case WireFormat.WIRETYPE_END_GROUP: return false; case WireFormat.WIRETYPE_FIXED32: readRawLittleEndian32(); return true; default: throw InvalidProtocolBufferException.invalidWireType(); } }
public Hash mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 10: setHashAlg(input.readString()); break; case 18: setHashBytes(input.readBytes()); break; } } } public void writeUnframed(org.fusesource.hawtbuf.proto.CodedOutputStream output) throws java.io.IOException {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 8: setKey(input.readInt64()); break; } } } public boolean equals(Object obj) {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 10: setKey(input.readBytes()); break; case 18: setValue(input.readBytes()); break; } } } public boolean equals(Object obj) {
public SegmentFooter mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 10: setMagic(input.readString()); break; case 18: getHashesList().add(new Hash().mergeFramed(input)); break; } } } public void writeUnframed(org.fusesource.hawtbuf.proto.CodedOutputStream output) throws java.io.IOException {
static protected <T extends BaseMessage> T readGroup(CodedInputStream input, int tag, T group) throws IOException { group.mergeUnframed(input); input.checkLastTagWas(WireFormat.makeTag(tag, WireFormat.WIRETYPE_END_GROUP)); return group; }
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { input.skipField(tag); break; } case 8: setCollectionKey(input.readInt64()); break; case 18: setEntryKey(input.readBytes()); break; } } } public boolean equals(Object obj) {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 10: setName(new org.fusesource.hawtbuf.UTF8Buffer(input.readBytes())); break; case 16: setQos(input.readInt32()); break; case 26: setAddress(new org.fusesource.hawtbuf.UTF8Buffer(input.readBytes())); break; } } } public boolean equals(Object obj) {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { break; } case 8: setCollectionKey(input.readInt64()); break; case 18: setEntryKey(input.readBytes()); break; } } } public boolean equals(Object obj) {
public Bean mergeUnframed(org.fusesource.hawtbuf.proto.CodedInputStream input) throws java.io.IOException { copyCheck(); while (true) { int tag = input.readTag(); if ((tag & 0x07) == 4) { return this; } switch (tag) { case 0: return this; default: { input.skipField(tag); break; } case 10: setKey(input.readBytes()); break; case 18: setValue(input.readBytes()); break; } } } public boolean equals(Object obj) {