You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by iv...@apache.org on 2012/03/14 12:29:04 UTC
svn commit: r1300510 [2/3] - in /zookeeper/bookkeeper/trunk: ./
hedwig-client/src/main/cpp/ hedwig-client/src/main/cpp/inc/hedwig/
hedwig-client/src/main/cpp/lib/ hedwig-client/src/main/cpp/scripts/
hedwig-client/src/main/cpp/test/ hedwig-client/src/ma...
Modified: zookeeper/bookkeeper/trunk/hedwig-protocol/src/main/java/org/apache/hedwig/protocol/PubSubProtocol.java
URL: http://svn.apache.org/viewvc/zookeeper/bookkeeper/trunk/hedwig-protocol/src/main/java/org/apache/hedwig/protocol/PubSubProtocol.java?rev=1300510&r1=1300509&r2=1300510&view=diff
==============================================================================
--- zookeeper/bookkeeper/trunk/hedwig-protocol/src/main/java/org/apache/hedwig/protocol/PubSubProtocol.java (original)
+++ zookeeper/bookkeeper/trunk/hedwig-protocol/src/main/java/org/apache/hedwig/protocol/PubSubProtocol.java Wed Mar 14 11:29:03 2012
@@ -4,6364 +4,6520 @@
package org.apache.hedwig.protocol;
public final class PubSubProtocol {
- private PubSubProtocol() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public enum ProtocolVersion
- implements com.google.protobuf.ProtocolMessageEnum {
- VERSION_ONE(0, 1),
- ;
-
-
- public final int getNumber() {
- return value;
- }
-
- public static ProtocolVersion valueOf(int value) {
- switch (value) {
- case 1:
- return VERSION_ONE;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<ProtocolVersion>
+ private PubSubProtocol() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ }
+ public enum ProtocolVersion
+ implements com.google.protobuf.ProtocolMessageEnum {
+ VERSION_ONE(0, 1),
+ ;
+
+
+ public final int getNumber() { return value; }
+
+ public static ProtocolVersion valueOf(int value) {
+ switch (value) {
+ case 1: return VERSION_ONE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<ProtocolVersion>
internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<ProtocolVersion>
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap<ProtocolVersion>
internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<ProtocolVersion>() {
+ new com.google.protobuf.Internal.EnumLiteMap<ProtocolVersion>() {
public ProtocolVersion findValueByNumber(int number) {
- return ProtocolVersion.valueOf(number)
- ;
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ return ProtocolVersion.valueOf(number)
+ ; }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return org.apache.hedwig.protocol.PubSubProtocol.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final ProtocolVersion[] VALUES = {
- VERSION_ONE,
- };
- public static ProtocolVersion valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
- private final int index;
- private final int value;
- private ProtocolVersion(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- static {
- org.apache.hedwig.protocol.PubSubProtocol.getDescriptor();
- }
-
- // @@protoc_insertion_point(enum_scope:Hedwig.ProtocolVersion)
+ return org.apache.hedwig.protocol.PubSubProtocol.getDescriptor().getEnumTypes().get(0);
}
-
- public enum OperationType
- implements com.google.protobuf.ProtocolMessageEnum {
- PUBLISH(0, 0),
- SUBSCRIBE(1, 1),
- CONSUME(2, 2),
- UNSUBSCRIBE(3, 3),
- START_DELIVERY(4, 4),
- STOP_DELIVERY(5, 5),
- ;
-
-
- public final int getNumber() {
- return value;
- }
-
- public static OperationType valueOf(int value) {
- switch (value) {
- case 0:
- return PUBLISH;
- case 1:
- return SUBSCRIBE;
- case 2:
- return CONSUME;
- case 3:
- return UNSUBSCRIBE;
- case 4:
- return START_DELIVERY;
- case 5:
- return STOP_DELIVERY;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<OperationType>
+
+ private static final ProtocolVersion[] VALUES = {
+ VERSION_ONE,
+ };
+ public static ProtocolVersion valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+ private final int index;
+ private final int value;
+ private ProtocolVersion(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ static {
+ org.apache.hedwig.protocol.PubSubProtocol.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(enum_scope:Hedwig.ProtocolVersion)
+ }
+
+ public enum OperationType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ PUBLISH(0, 0),
+ SUBSCRIBE(1, 1),
+ CONSUME(2, 2),
+ UNSUBSCRIBE(3, 3),
+ START_DELIVERY(4, 4),
+ STOP_DELIVERY(5, 5),
+ ;
+
+
+ public final int getNumber() { return value; }
+
+ public static OperationType valueOf(int value) {
+ switch (value) {
+ case 0: return PUBLISH;
+ case 1: return SUBSCRIBE;
+ case 2: return CONSUME;
+ case 3: return UNSUBSCRIBE;
+ case 4: return START_DELIVERY;
+ case 5: return STOP_DELIVERY;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<OperationType>
internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<OperationType>
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap<OperationType>
internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<OperationType>() {
+ new com.google.protobuf.Internal.EnumLiteMap<OperationType>() {
public OperationType findValueByNumber(int number) {
- return OperationType.valueOf(number)
- ;
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ return OperationType.valueOf(number)
+ ; }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return org.apache.hedwig.protocol.PubSubProtocol.getDescriptor().getEnumTypes().get(1);
- }
-
- private static final OperationType[] VALUES = {
- PUBLISH, SUBSCRIBE, CONSUME, UNSUBSCRIBE, START_DELIVERY, STOP_DELIVERY,
- };
- public static OperationType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
- private final int index;
- private final int value;
- private OperationType(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- static {
- org.apache.hedwig.protocol.PubSubProtocol.getDescriptor();
- }
-
- // @@protoc_insertion_point(enum_scope:Hedwig.OperationType)
+ return org.apache.hedwig.protocol.PubSubProtocol.getDescriptor().getEnumTypes().get(1);
}
-
- public enum StatusCode
- implements com.google.protobuf.ProtocolMessageEnum {
- SUCCESS(0, 0),
- MALFORMED_REQUEST(1, 401),
- NO_SUCH_TOPIC(2, 402),
- CLIENT_ALREADY_SUBSCRIBED(3, 403),
- CLIENT_NOT_SUBSCRIBED(4, 404),
- COULD_NOT_CONNECT(5, 405),
- TOPIC_BUSY(6, 406),
- NOT_RESPONSIBLE_FOR_TOPIC(7, 501),
- SERVICE_DOWN(8, 502),
- UNCERTAIN_STATE(9, 503),
- UNEXPECTED_CONDITION(10, 600),
- COMPOSITE(11, 700),
- ;
-
-
- public final int getNumber() {
- return value;
- }
-
- public static StatusCode valueOf(int value) {
- switch (value) {
- case 0:
- return SUCCESS;
- case 401:
- return MALFORMED_REQUEST;
- case 402:
- return NO_SUCH_TOPIC;
- case 403:
- return CLIENT_ALREADY_SUBSCRIBED;
- case 404:
- return CLIENT_NOT_SUBSCRIBED;
- case 405:
- return COULD_NOT_CONNECT;
- case 406:
- return TOPIC_BUSY;
- case 501:
- return NOT_RESPONSIBLE_FOR_TOPIC;
- case 502:
- return SERVICE_DOWN;
- case 503:
- return UNCERTAIN_STATE;
- case 600:
- return UNEXPECTED_CONDITION;
- case 700:
- return COMPOSITE;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<StatusCode>
+
+ private static final OperationType[] VALUES = {
+ PUBLISH, SUBSCRIBE, CONSUME, UNSUBSCRIBE, START_DELIVERY, STOP_DELIVERY,
+ };
+ public static OperationType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+ private final int index;
+ private final int value;
+ private OperationType(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ static {
+ org.apache.hedwig.protocol.PubSubProtocol.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(enum_scope:Hedwig.OperationType)
+ }
+
+ public enum StatusCode
+ implements com.google.protobuf.ProtocolMessageEnum {
+ SUCCESS(0, 0),
+ MALFORMED_REQUEST(1, 401),
+ NO_SUCH_TOPIC(2, 402),
+ CLIENT_ALREADY_SUBSCRIBED(3, 403),
+ CLIENT_NOT_SUBSCRIBED(4, 404),
+ COULD_NOT_CONNECT(5, 405),
+ TOPIC_BUSY(6, 406),
+ NOT_RESPONSIBLE_FOR_TOPIC(7, 501),
+ SERVICE_DOWN(8, 502),
+ UNCERTAIN_STATE(9, 503),
+ UNEXPECTED_CONDITION(10, 600),
+ COMPOSITE(11, 700),
+ ;
+
+
+ public final int getNumber() { return value; }
+
+ public static StatusCode valueOf(int value) {
+ switch (value) {
+ case 0: return SUCCESS;
+ case 401: return MALFORMED_REQUEST;
+ case 402: return NO_SUCH_TOPIC;
+ case 403: return CLIENT_ALREADY_SUBSCRIBED;
+ case 404: return CLIENT_NOT_SUBSCRIBED;
+ case 405: return COULD_NOT_CONNECT;
+ case 406: return TOPIC_BUSY;
+ case 501: return NOT_RESPONSIBLE_FOR_TOPIC;
+ case 502: return SERVICE_DOWN;
+ case 503: return UNCERTAIN_STATE;
+ case 600: return UNEXPECTED_CONDITION;
+ case 700: return COMPOSITE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<StatusCode>
internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<StatusCode>
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap<StatusCode>
internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<StatusCode>() {
+ new com.google.protobuf.Internal.EnumLiteMap<StatusCode>() {
public StatusCode findValueByNumber(int number) {
- return StatusCode.valueOf(number)
- ;
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ return StatusCode.valueOf(number)
+ ; }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
+ return getDescriptor().getValues().get(index);
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return org.apache.hedwig.protocol.PubSubProtocol.getDescriptor().getEnumTypes().get(2);
- }
-
- private static final StatusCode[] VALUES = {
- SUCCESS, MALFORMED_REQUEST, NO_SUCH_TOPIC, CLIENT_ALREADY_SUBSCRIBED, CLIENT_NOT_SUBSCRIBED, COULD_NOT_CONNECT, TOPIC_BUSY, NOT_RESPONSIBLE_FOR_TOPIC, SERVICE_DOWN, UNCERTAIN_STATE, UNEXPECTED_CONDITION, COMPOSITE,
- };
- public static StatusCode valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
- private final int index;
- private final int value;
- private StatusCode(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- static {
- org.apache.hedwig.protocol.PubSubProtocol.getDescriptor();
- }
-
- // @@protoc_insertion_point(enum_scope:Hedwig.StatusCode)
+ return org.apache.hedwig.protocol.PubSubProtocol.getDescriptor().getEnumTypes().get(2);
}
-
- public static final class Message extends
- com.google.protobuf.GeneratedMessage {
- // Use Message.newBuilder() to construct.
- private Message() {
- initFields();
- }
- private Message(boolean noInit) {}
-
- private static final Message defaultInstance;
- public static Message getDefaultInstance() {
- return defaultInstance;
- }
-
- public Message getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
+
+ private static final StatusCode[] VALUES = {
+ SUCCESS, MALFORMED_REQUEST, NO_SUCH_TOPIC, CLIENT_ALREADY_SUBSCRIBED, CLIENT_NOT_SUBSCRIBED, COULD_NOT_CONNECT, TOPIC_BUSY, NOT_RESPONSIBLE_FOR_TOPIC, SERVICE_DOWN, UNCERTAIN_STATE, UNEXPECTED_CONDITION, COMPOSITE,
+ };
+ public static StatusCode valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ return VALUES[desc.getIndex()];
+ }
+ private final int index;
+ private final int value;
+ private StatusCode(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ static {
+ org.apache.hedwig.protocol.PubSubProtocol.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(enum_scope:Hedwig.StatusCode)
+ }
+
+ public static final class Message extends
+ com.google.protobuf.GeneratedMessage {
+ // Use Message.newBuilder() to construct.
+ private Message() {
+ initFields();
+ }
+ private Message(boolean noInit) {}
+
+ private static final Message defaultInstance;
+ public static Message getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Message getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Message_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Message_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Message_fieldAccessorTable;
- }
-
- // required bytes body = 1;
- public static final int BODY_FIELD_NUMBER = 1;
- private boolean hasBody;
- private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasBody() {
- return hasBody;
- }
- public com.google.protobuf.ByteString getBody() {
- return body_;
- }
-
- // optional bytes srcRegion = 2;
- public static final int SRCREGION_FIELD_NUMBER = 2;
- private boolean hasSrcRegion;
- private com.google.protobuf.ByteString srcRegion_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasSrcRegion() {
- return hasSrcRegion;
- }
- public com.google.protobuf.ByteString getSrcRegion() {
- return srcRegion_;
- }
-
- // optional .Hedwig.MessageSeqId msgId = 3;
- public static final int MSGID_FIELD_NUMBER = 3;
- private boolean hasMsgId;
- private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId msgId_;
- public boolean hasMsgId() {
- return hasMsgId;
- }
- public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() {
- return msgId_;
- }
-
- private void initFields() {
- msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance();
- }
- public final boolean isInitialized() {
- if (!hasBody) return false;
- if (hasMsgId()) {
- if (!getMsgId().isInitialized()) return false;
- }
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasBody()) {
- output.writeBytes(1, getBody());
- }
- if (hasSrcRegion()) {
- output.writeBytes(2, getSrcRegion());
- }
- if (hasMsgId()) {
- output.writeMessage(3, getMsgId());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasBody()) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getBody());
- }
- if (hasSrcRegion()) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getSrcRegion());
- }
- if (hasMsgId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getMsgId());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() {
- return Builder.create();
- }
- public Builder newBuilderForType() {
- return newBuilder();
- }
- public static Builder newBuilder(org.apache.hedwig.protocol.PubSubProtocol.Message prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return newBuilder(this);
- }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private org.apache.hedwig.protocol.PubSubProtocol.Message result;
-
- // Construct using org.apache.hedwig.protocol.PubSubProtocol.Message.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hedwig.protocol.PubSubProtocol.Message();
- return builder;
- }
-
- protected org.apache.hedwig.protocol.PubSubProtocol.Message internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.apache.hedwig.protocol.PubSubProtocol.Message();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hedwig.protocol.PubSubProtocol.Message.getDescriptor();
- }
-
- public org.apache.hedwig.protocol.PubSubProtocol.Message getDefaultInstanceForType() {
- return org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.apache.hedwig.protocol.PubSubProtocol.Message build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.apache.hedwig.protocol.PubSubProtocol.Message buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.apache.hedwig.protocol.PubSubProtocol.Message buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- org.apache.hedwig.protocol.PubSubProtocol.Message returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.Message) {
- return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.Message)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.Message other) {
- if (other == org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance()) return this;
- if (other.hasBody()) {
- setBody(other.getBody());
- }
- if (other.hasSrcRegion()) {
- setSrcRegion(other.getSrcRegion());
- }
- if (other.hasMsgId()) {
- mergeMsgId(other.getMsgId());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 10: {
- setBody(input.readBytes());
- break;
- }
- case 18: {
- setSrcRegion(input.readBytes());
- break;
- }
- case 26: {
- org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder();
- if (hasMsgId()) {
- subBuilder.mergeFrom(getMsgId());
- }
- input.readMessage(subBuilder, extensionRegistry);
- setMsgId(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
-
- // required bytes body = 1;
- public boolean hasBody() {
- return result.hasBody();
- }
- public com.google.protobuf.ByteString getBody() {
- return result.getBody();
- }
- public Builder setBody(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasBody = true;
- result.body_ = value;
- return this;
- }
- public Builder clearBody() {
- result.hasBody = false;
- result.body_ = getDefaultInstance().getBody();
- return this;
- }
-
- // optional bytes srcRegion = 2;
- public boolean hasSrcRegion() {
- return result.hasSrcRegion();
- }
- public com.google.protobuf.ByteString getSrcRegion() {
- return result.getSrcRegion();
- }
- public Builder setSrcRegion(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasSrcRegion = true;
- result.srcRegion_ = value;
- return this;
- }
- public Builder clearSrcRegion() {
- result.hasSrcRegion = false;
- result.srcRegion_ = getDefaultInstance().getSrcRegion();
- return this;
- }
-
- // optional .Hedwig.MessageSeqId msgId = 3;
- public boolean hasMsgId() {
- return result.hasMsgId();
- }
- public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() {
- return result.getMsgId();
- }
- public Builder setMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasMsgId = true;
- result.msgId_ = value;
- return this;
- }
- public Builder setMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder builderForValue) {
- result.hasMsgId = true;
- result.msgId_ = builderForValue.build();
- return this;
- }
- public Builder mergeMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) {
- if (result.hasMsgId() &&
- result.msgId_ != org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance()) {
- result.msgId_ =
- org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(result.msgId_).mergeFrom(value).buildPartial();
- } else {
- result.msgId_ = value;
- }
- result.hasMsgId = true;
- return this;
- }
- public Builder clearMsgId() {
- result.hasMsgId = false;
- result.msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:Hedwig.Message)
- }
-
- static {
- defaultInstance = new Message(true);
- org.apache.hedwig.protocol.PubSubProtocol.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:Hedwig.Message)
+ return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Message_fieldAccessorTable;
}
-
- public static final class RegionSpecificSeqId extends
- com.google.protobuf.GeneratedMessage {
- // Use RegionSpecificSeqId.newBuilder() to construct.
- private RegionSpecificSeqId() {
- initFields();
- }
- private RegionSpecificSeqId(boolean noInit) {}
-
- private static final RegionSpecificSeqId defaultInstance;
- public static RegionSpecificSeqId getDefaultInstance() {
- return defaultInstance;
- }
-
- public RegionSpecificSeqId getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
+
+ // required bytes body = 1;
+ public static final int BODY_FIELD_NUMBER = 1;
+ private boolean hasBody;
+ private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasBody() { return hasBody; }
+ public com.google.protobuf.ByteString getBody() { return body_; }
+
+ // optional bytes srcRegion = 2;
+ public static final int SRCREGION_FIELD_NUMBER = 2;
+ private boolean hasSrcRegion;
+ private com.google.protobuf.ByteString srcRegion_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasSrcRegion() { return hasSrcRegion; }
+ public com.google.protobuf.ByteString getSrcRegion() { return srcRegion_; }
+
+ // optional .Hedwig.MessageSeqId msgId = 3;
+ public static final int MSGID_FIELD_NUMBER = 3;
+ private boolean hasMsgId;
+ private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId msgId_;
+ public boolean hasMsgId() { return hasMsgId; }
+ public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() { return msgId_; }
+
+ private void initFields() {
+ msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance();
+ }
+ public final boolean isInitialized() {
+ if (!hasBody) return false;
+ if (hasMsgId()) {
+ if (!getMsgId().isInitialized()) return false;
+ }
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasBody()) {
+ output.writeBytes(1, getBody());
+ }
+ if (hasSrcRegion()) {
+ output.writeBytes(2, getSrcRegion());
+ }
+ if (hasMsgId()) {
+ output.writeMessage(3, getMsgId());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasBody()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getBody());
+ }
+ if (hasSrcRegion()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getSrcRegion());
+ }
+ if (hasMsgId()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getMsgId());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.Message parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hedwig.protocol.PubSubProtocol.Message prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> {
+ private org.apache.hedwig.protocol.PubSubProtocol.Message result;
+
+ // Construct using org.apache.hedwig.protocol.PubSubProtocol.Message.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new org.apache.hedwig.protocol.PubSubProtocol.Message();
+ return builder;
+ }
+
+ protected org.apache.hedwig.protocol.PubSubProtocol.Message internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new org.apache.hedwig.protocol.PubSubProtocol.Message();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hedwig.protocol.PubSubProtocol.Message.getDescriptor();
+ }
+
+ public org.apache.hedwig.protocol.PubSubProtocol.Message getDefaultInstanceForType() {
+ return org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public org.apache.hedwig.protocol.PubSubProtocol.Message build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private org.apache.hedwig.protocol.PubSubProtocol.Message buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public org.apache.hedwig.protocol.PubSubProtocol.Message buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ org.apache.hedwig.protocol.PubSubProtocol.Message returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.Message) {
+ return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.Message)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.Message other) {
+ if (other == org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance()) return this;
+ if (other.hasBody()) {
+ setBody(other.getBody());
+ }
+ if (other.hasSrcRegion()) {
+ setSrcRegion(other.getSrcRegion());
+ }
+ if (other.hasMsgId()) {
+ mergeMsgId(other.getMsgId());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ setBody(input.readBytes());
+ break;
+ }
+ case 18: {
+ setSrcRegion(input.readBytes());
+ break;
+ }
+ case 26: {
+ org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder();
+ if (hasMsgId()) {
+ subBuilder.mergeFrom(getMsgId());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setMsgId(subBuilder.buildPartial());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required bytes body = 1;
+ public boolean hasBody() {
+ return result.hasBody();
+ }
+ public com.google.protobuf.ByteString getBody() {
+ return result.getBody();
+ }
+ public Builder setBody(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasBody = true;
+ result.body_ = value;
+ return this;
+ }
+ public Builder clearBody() {
+ result.hasBody = false;
+ result.body_ = getDefaultInstance().getBody();
+ return this;
+ }
+
+ // optional bytes srcRegion = 2;
+ public boolean hasSrcRegion() {
+ return result.hasSrcRegion();
+ }
+ public com.google.protobuf.ByteString getSrcRegion() {
+ return result.getSrcRegion();
+ }
+ public Builder setSrcRegion(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasSrcRegion = true;
+ result.srcRegion_ = value;
+ return this;
+ }
+ public Builder clearSrcRegion() {
+ result.hasSrcRegion = false;
+ result.srcRegion_ = getDefaultInstance().getSrcRegion();
+ return this;
+ }
+
+ // optional .Hedwig.MessageSeqId msgId = 3;
+ public boolean hasMsgId() {
+ return result.hasMsgId();
+ }
+ public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() {
+ return result.getMsgId();
+ }
+ public Builder setMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasMsgId = true;
+ result.msgId_ = value;
+ return this;
+ }
+ public Builder setMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder builderForValue) {
+ result.hasMsgId = true;
+ result.msgId_ = builderForValue.build();
+ return this;
+ }
+ public Builder mergeMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) {
+ if (result.hasMsgId() &&
+ result.msgId_ != org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance()) {
+ result.msgId_ =
+ org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(result.msgId_).mergeFrom(value).buildPartial();
+ } else {
+ result.msgId_ = value;
+ }
+ result.hasMsgId = true;
+ return this;
+ }
+ public Builder clearMsgId() {
+ result.hasMsgId = false;
+ result.msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:Hedwig.Message)
+ }
+
+ static {
+ defaultInstance = new Message(true);
+ org.apache.hedwig.protocol.PubSubProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:Hedwig.Message)
+ }
+
+ public static final class RegionSpecificSeqId extends
+ com.google.protobuf.GeneratedMessage {
+ // Use RegionSpecificSeqId.newBuilder() to construct.
+ private RegionSpecificSeqId() {
+ initFields();
+ }
+ private RegionSpecificSeqId(boolean noInit) {}
+
+ private static final RegionSpecificSeqId defaultInstance;
+ public static RegionSpecificSeqId getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public RegionSpecificSeqId getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_RegionSpecificSeqId_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_RegionSpecificSeqId_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_RegionSpecificSeqId_fieldAccessorTable;
- }
-
- // required bytes region = 1;
- public static final int REGION_FIELD_NUMBER = 1;
- private boolean hasRegion;
- private com.google.protobuf.ByteString region_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasRegion() {
- return hasRegion;
- }
- public com.google.protobuf.ByteString getRegion() {
- return region_;
- }
-
- // required uint64 seqId = 2;
- public static final int SEQID_FIELD_NUMBER = 2;
- private boolean hasSeqId;
- private long seqId_ = 0L;
- public boolean hasSeqId() {
- return hasSeqId;
- }
- public long getSeqId() {
- return seqId_;
- }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- if (!hasRegion) return false;
- if (!hasSeqId) return false;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasRegion()) {
- output.writeBytes(1, getRegion());
- }
- if (hasSeqId()) {
- output.writeUInt64(2, getSeqId());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasRegion()) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getRegion());
- }
- if (hasSeqId()) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(2, getSeqId());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() {
- return Builder.create();
- }
- public Builder newBuilderForType() {
- return newBuilder();
- }
- public static Builder newBuilder(org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return newBuilder(this);
- }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId result;
-
- // Construct using org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId();
- return builder;
- }
-
- protected org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.getDescriptor();
- }
-
- public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId getDefaultInstanceForType() {
- return org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId) {
- return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId other) {
- if (other == org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.getDefaultInstance()) return this;
- if (other.hasRegion()) {
- setRegion(other.getRegion());
- }
- if (other.hasSeqId()) {
- setSeqId(other.getSeqId());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 10: {
- setRegion(input.readBytes());
- break;
- }
- case 16: {
- setSeqId(input.readUInt64());
- break;
- }
- }
- }
- }
-
-
- // required bytes region = 1;
- public boolean hasRegion() {
- return result.hasRegion();
- }
- public com.google.protobuf.ByteString getRegion() {
- return result.getRegion();
- }
- public Builder setRegion(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- result.hasRegion = true;
- result.region_ = value;
- return this;
- }
- public Builder clearRegion() {
- result.hasRegion = false;
- result.region_ = getDefaultInstance().getRegion();
- return this;
- }
-
- // required uint64 seqId = 2;
- public boolean hasSeqId() {
- return result.hasSeqId();
- }
- public long getSeqId() {
- return result.getSeqId();
- }
- public Builder setSeqId(long value) {
- result.hasSeqId = true;
- result.seqId_ = value;
- return this;
- }
- public Builder clearSeqId() {
- result.hasSeqId = false;
- result.seqId_ = 0L;
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:Hedwig.RegionSpecificSeqId)
- }
-
- static {
- defaultInstance = new RegionSpecificSeqId(true);
- org.apache.hedwig.protocol.PubSubProtocol.internalForceInit();
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:Hedwig.RegionSpecificSeqId)
+ return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_RegionSpecificSeqId_fieldAccessorTable;
}
-
- public static final class MessageSeqId extends
- com.google.protobuf.GeneratedMessage {
- // Use MessageSeqId.newBuilder() to construct.
- private MessageSeqId() {
- initFields();
- }
- private MessageSeqId(boolean noInit) {}
-
- private static final MessageSeqId defaultInstance;
- public static MessageSeqId getDefaultInstance() {
- return defaultInstance;
- }
-
- public MessageSeqId getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
+
+ // required bytes region = 1;
+ public static final int REGION_FIELD_NUMBER = 1;
+ private boolean hasRegion;
+ private com.google.protobuf.ByteString region_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasRegion() { return hasRegion; }
+ public com.google.protobuf.ByteString getRegion() { return region_; }
+
+ // required uint64 seqId = 2;
+ public static final int SEQID_FIELD_NUMBER = 2;
+ private boolean hasSeqId;
+ private long seqId_ = 0L;
+ public boolean hasSeqId() { return hasSeqId; }
+ public long getSeqId() { return seqId_; }
+
+ private void initFields() {
+ }
+ public final boolean isInitialized() {
+ if (!hasRegion) return false;
+ if (!hasSeqId) return false;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (hasRegion()) {
+ output.writeBytes(1, getRegion());
+ }
+ if (hasSeqId()) {
+ output.writeUInt64(2, getSeqId());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (hasRegion()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getRegion());
+ }
+ if (hasSeqId()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(2, getSeqId());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data).buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return newBuilder().mergeFrom(data, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ Builder builder = newBuilder();
+ if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
+ return builder.buildParsed();
+ } else {
+ return null;
+ }
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input).buildParsed();
+ }
+ public static org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return newBuilder().mergeFrom(input, extensionRegistry)
+ .buildParsed();
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> {
+ private org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId result;
+
+ // Construct using org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.newBuilder()
+ private Builder() {}
+
+ private static Builder create() {
+ Builder builder = new Builder();
+ builder.result = new org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId();
+ return builder;
+ }
+
+ protected org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId internalGetResult() {
+ return result;
+ }
+
+ public Builder clear() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "Cannot call clear() after build().");
+ }
+ result = new org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId();
+ return this;
+ }
+
+ public Builder clone() {
+ return create().mergeFrom(result);
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.getDescriptor();
+ }
+
+ public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId getDefaultInstanceForType() {
+ return org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.getDefaultInstance();
+ }
+
+ public boolean isInitialized() {
+ return result.isInitialized();
+ }
+ public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId build() {
+ if (result != null && !isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return buildPartial();
+ }
+
+ private org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId buildParsed()
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ if (!isInitialized()) {
+ throw newUninitializedMessageException(
+ result).asInvalidProtocolBufferException();
+ }
+ return buildPartial();
+ }
+
+ public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId buildPartial() {
+ if (result == null) {
+ throw new IllegalStateException(
+ "build() has already been called on this Builder.");
+ }
+ org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId) {
+ return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId other) {
+ if (other == org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.getDefaultInstance()) return this;
+ if (other.hasRegion()) {
+ setRegion(other.getRegion());
+ }
+ if (other.hasSeqId()) {
+ setSeqId(other.getSeqId());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder(
+ this.getUnknownFields());
+ while (true) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ this.setUnknownFields(unknownFields.build());
+ return this;
+ }
+ break;
+ }
+ case 10: {
+ setRegion(input.readBytes());
+ break;
+ }
+ case 16: {
+ setSeqId(input.readUInt64());
+ break;
+ }
+ }
+ }
+ }
+
+
+ // required bytes region = 1;
+ public boolean hasRegion() {
+ return result.hasRegion();
+ }
+ public com.google.protobuf.ByteString getRegion() {
+ return result.getRegion();
+ }
+ public Builder setRegion(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result.hasRegion = true;
+ result.region_ = value;
+ return this;
+ }
+ public Builder clearRegion() {
+ result.hasRegion = false;
+ result.region_ = getDefaultInstance().getRegion();
+ return this;
+ }
+
+ // required uint64 seqId = 2;
+ public boolean hasSeqId() {
+ return result.hasSeqId();
+ }
+ public long getSeqId() {
+ return result.getSeqId();
+ }
+ public Builder setSeqId(long value) {
+ result.hasSeqId = true;
+ result.seqId_ = value;
+ return this;
+ }
+ public Builder clearSeqId() {
+ result.hasSeqId = false;
+ result.seqId_ = 0L;
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:Hedwig.RegionSpecificSeqId)
+ }
+
+ static {
+ defaultInstance = new RegionSpecificSeqId(true);
+ org.apache.hedwig.protocol.PubSubProtocol.internalForceInit();
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:Hedwig.RegionSpecificSeqId)
+ }
+
+ public static final class MessageSeqId extends
+ com.google.protobuf.GeneratedMessage {
+ // Use MessageSeqId.newBuilder() to construct.
+ private MessageSeqId() {
+ initFields();
+ }
+ private MessageSeqId(boolean noInit) {}
+
+ private static final MessageSeqId defaultInstance;
+ public static MessageSeqId getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public MessageSeqId getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageSeqId_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageSeqId_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageSeqId_fieldAccessorTable;
- }
-
- // optional uint64 localComponent = 1;
- public static final int LOCALCOMPONENT_FIELD_NUMBER = 1;
- private boolean hasLocalComponent;
- private long localComponent_ = 0L;
- public boolean hasLocalComponent() {
- return hasLocalComponent;
- }
- public long getLocalComponent() {
- return localComponent_;
- }
-
- // repeated .Hedwig.RegionSpecificSeqId remoteComponents = 2;
- public static final int REMOTECOMPONENTS_FIELD_NUMBER = 2;
- private java.util.List<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId> remoteComponents_ =
- java.util.Collections.emptyList();
- public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId> getRemoteComponentsList() {
- return remoteComponents_;
- }
- public int getRemoteComponentsCount() {
- return remoteComponents_.size();
- }
- public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId getRemoteComponents(int index) {
- return remoteComponents_.get(index);
- }
-
- private void initFields() {
- }
- public final boolean isInitialized() {
- for (org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId element : getRemoteComponentsList()) {
- if (!element.isInitialized()) return false;
- }
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (hasLocalComponent()) {
- output.writeUInt64(1, getLocalComponent());
- }
- for (org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId element : getRemoteComponentsList()) {
- output.writeMessage(2, element);
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (hasLocalComponent()) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(1, getLocalComponent());
- }
- for (org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId element : getRemoteComponentsList()) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, element);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() {
- return Builder.create();
- }
- public Builder newBuilderForType() {
- return newBuilder();
- }
- public static Builder newBuilder(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return newBuilder(this);
- }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId result;
-
- // Construct using org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId();
- return builder;
- }
-
- protected org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
- }
- result = new org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId();
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDescriptor();
- }
-
- public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getDefaultInstanceForType() {
- return org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance();
- }
-
- public boolean isInitialized() {
- return result.isInitialized();
- }
- public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId build() {
- if (result != null && !isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return buildPartial();
- }
-
- private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
- }
- if (result.remoteComponents_ != java.util.Collections.EMPTY_LIST) {
- result.remoteComponents_ =
- java.util.Collections.unmodifiableList(result.remoteComponents_);
- }
- org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId returnMe = result;
- result = null;
- return returnMe;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId) {
- return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId other) {
- if (other == org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance()) return this;
- if (other.hasLocalComponent()) {
- setLocalComponent(other.getLocalComponent());
- }
- if (!other.remoteComponents_.isEmpty()) {
- if (result.remoteComponents_.isEmpty()) {
- result.remoteComponents_ = new java.util.ArrayList<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId>();
- }
- result.remoteComponents_.addAll(other.remoteComponents_);
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- this.setUnknownFields(unknownFields.build());
- return this;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- this.setUnknownFields(unknownFields.build());
- return this;
- }
- break;
- }
- case 8: {
- setLocalComponent(input.readUInt64());
- break;
- }
- case 18: {
[... 10522 lines stripped ...]