| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: src/main/protobuf/PubSubProtocol.proto |
| |
| 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 static final int VERSION_ONE_VALUE = 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> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<ProtocolVersion>() { |
| public ProtocolVersion findValueByNumber(int number) { |
| return ProtocolVersion.valueOf(number); |
| } |
| }; |
| |
| public final com.google.protobuf.Descriptors.EnumValueDescriptor |
| getValueDescriptor() { |
| return getDescriptor().getValues().get(index); |
| } |
| public final com.google.protobuf.Descriptors.EnumDescriptor |
| getDescriptorForType() { |
| 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; |
| } |
| |
| // @@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), |
| CLOSESUBSCRIPTION(6, 6), |
| ; |
| |
| public static final int PUBLISH_VALUE = 0; |
| public static final int SUBSCRIBE_VALUE = 1; |
| public static final int CONSUME_VALUE = 2; |
| public static final int UNSUBSCRIBE_VALUE = 3; |
| public static final int START_DELIVERY_VALUE = 4; |
| public static final int STOP_DELIVERY_VALUE = 5; |
| public static final int CLOSESUBSCRIPTION_VALUE = 6; |
| |
| |
| 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; |
| case 6: return CLOSESUBSCRIPTION; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<OperationType> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<OperationType> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<OperationType>() { |
| public OperationType findValueByNumber(int number) { |
| return OperationType.valueOf(number); |
| } |
| }; |
| |
| public final com.google.protobuf.Descriptors.EnumValueDescriptor |
| getValueDescriptor() { |
| return getDescriptor().getValues().get(index); |
| } |
| public final com.google.protobuf.Descriptors.EnumDescriptor |
| getDescriptorForType() { |
| 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, CLOSESUBSCRIPTION, |
| }; |
| |
| 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; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:Hedwig.OperationType) |
| } |
| |
| public enum SubscriptionEvent |
| implements com.google.protobuf.ProtocolMessageEnum { |
| TOPIC_MOVED(0, 1), |
| SUBSCRIPTION_FORCED_CLOSED(1, 2), |
| ; |
| |
| public static final int TOPIC_MOVED_VALUE = 1; |
| public static final int SUBSCRIPTION_FORCED_CLOSED_VALUE = 2; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static SubscriptionEvent valueOf(int value) { |
| switch (value) { |
| case 1: return TOPIC_MOVED; |
| case 2: return SUBSCRIPTION_FORCED_CLOSED; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<SubscriptionEvent> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<SubscriptionEvent> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<SubscriptionEvent>() { |
| public SubscriptionEvent findValueByNumber(int number) { |
| return SubscriptionEvent.valueOf(number); |
| } |
| }; |
| |
| public final com.google.protobuf.Descriptors.EnumValueDescriptor |
| getValueDescriptor() { |
| return getDescriptor().getValues().get(index); |
| } |
| public final com.google.protobuf.Descriptors.EnumDescriptor |
| getDescriptorForType() { |
| return getDescriptor(); |
| } |
| public static final com.google.protobuf.Descriptors.EnumDescriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.getDescriptor().getEnumTypes().get(2); |
| } |
| |
| private static final SubscriptionEvent[] VALUES = { |
| TOPIC_MOVED, SUBSCRIPTION_FORCED_CLOSED, |
| }; |
| |
| public static SubscriptionEvent 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 SubscriptionEvent(int index, int value) { |
| this.index = index; |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:Hedwig.SubscriptionEvent) |
| } |
| |
| 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), |
| RESUBSCRIBE_EXCEPTION(7, 407), |
| NOT_RESPONSIBLE_FOR_TOPIC(8, 501), |
| SERVICE_DOWN(9, 502), |
| UNCERTAIN_STATE(10, 503), |
| INVALID_MESSAGE_FILTER(11, 504), |
| BAD_VERSION(12, 520), |
| NO_TOPIC_PERSISTENCE_INFO(13, 521), |
| TOPIC_PERSISTENCE_INFO_EXISTS(14, 522), |
| NO_SUBSCRIPTION_STATE(15, 523), |
| SUBSCRIPTION_STATE_EXISTS(16, 524), |
| NO_TOPIC_OWNER_INFO(17, 525), |
| TOPIC_OWNER_INFO_EXISTS(18, 526), |
| UNEXPECTED_CONDITION(19, 600), |
| COMPOSITE(20, 700), |
| ; |
| |
| public static final int SUCCESS_VALUE = 0; |
| public static final int MALFORMED_REQUEST_VALUE = 401; |
| public static final int NO_SUCH_TOPIC_VALUE = 402; |
| public static final int CLIENT_ALREADY_SUBSCRIBED_VALUE = 403; |
| public static final int CLIENT_NOT_SUBSCRIBED_VALUE = 404; |
| public static final int COULD_NOT_CONNECT_VALUE = 405; |
| public static final int TOPIC_BUSY_VALUE = 406; |
| public static final int RESUBSCRIBE_EXCEPTION_VALUE = 407; |
| public static final int NOT_RESPONSIBLE_FOR_TOPIC_VALUE = 501; |
| public static final int SERVICE_DOWN_VALUE = 502; |
| public static final int UNCERTAIN_STATE_VALUE = 503; |
| public static final int INVALID_MESSAGE_FILTER_VALUE = 504; |
| public static final int BAD_VERSION_VALUE = 520; |
| public static final int NO_TOPIC_PERSISTENCE_INFO_VALUE = 521; |
| public static final int TOPIC_PERSISTENCE_INFO_EXISTS_VALUE = 522; |
| public static final int NO_SUBSCRIPTION_STATE_VALUE = 523; |
| public static final int SUBSCRIPTION_STATE_EXISTS_VALUE = 524; |
| public static final int NO_TOPIC_OWNER_INFO_VALUE = 525; |
| public static final int TOPIC_OWNER_INFO_EXISTS_VALUE = 526; |
| public static final int UNEXPECTED_CONDITION_VALUE = 600; |
| public static final int COMPOSITE_VALUE = 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 407: return RESUBSCRIBE_EXCEPTION; |
| case 501: return NOT_RESPONSIBLE_FOR_TOPIC; |
| case 502: return SERVICE_DOWN; |
| case 503: return UNCERTAIN_STATE; |
| case 504: return INVALID_MESSAGE_FILTER; |
| case 520: return BAD_VERSION; |
| case 521: return NO_TOPIC_PERSISTENCE_INFO; |
| case 522: return TOPIC_PERSISTENCE_INFO_EXISTS; |
| case 523: return NO_SUBSCRIPTION_STATE; |
| case 524: return SUBSCRIPTION_STATE_EXISTS; |
| case 525: return NO_TOPIC_OWNER_INFO; |
| case 526: return TOPIC_OWNER_INFO_EXISTS; |
| 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> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<StatusCode>() { |
| public StatusCode findValueByNumber(int number) { |
| return StatusCode.valueOf(number); |
| } |
| }; |
| |
| public final com.google.protobuf.Descriptors.EnumValueDescriptor |
| getValueDescriptor() { |
| return getDescriptor().getValues().get(index); |
| } |
| public final com.google.protobuf.Descriptors.EnumDescriptor |
| getDescriptorForType() { |
| return getDescriptor(); |
| } |
| public static final com.google.protobuf.Descriptors.EnumDescriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.getDescriptor().getEnumTypes().get(3); |
| } |
| |
| private static final StatusCode[] VALUES = { |
| SUCCESS, MALFORMED_REQUEST, NO_SUCH_TOPIC, CLIENT_ALREADY_SUBSCRIBED, CLIENT_NOT_SUBSCRIBED, COULD_NOT_CONNECT, TOPIC_BUSY, RESUBSCRIBE_EXCEPTION, NOT_RESPONSIBLE_FOR_TOPIC, SERVICE_DOWN, UNCERTAIN_STATE, INVALID_MESSAGE_FILTER, BAD_VERSION, NO_TOPIC_PERSISTENCE_INFO, TOPIC_PERSISTENCE_INFO_EXISTS, NO_SUBSCRIPTION_STATE, SUBSCRIPTION_STATE_EXISTS, NO_TOPIC_OWNER_INFO, TOPIC_OWNER_INFO_EXISTS, 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; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:Hedwig.StatusCode) |
| } |
| |
| public interface MapOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated .Hedwig.Map.Entry entries = 1; |
| java.util.List<org.apache.hedwig.protocol.PubSubProtocol.Map.Entry> |
| getEntriesList(); |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry getEntries(int index); |
| int getEntriesCount(); |
| java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder> |
| getEntriesOrBuilderList(); |
| org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder getEntriesOrBuilder( |
| int index); |
| } |
| public static final class Map extends |
| com.google.protobuf.GeneratedMessage |
| implements MapOrBuilder { |
| // Use Map.newBuilder() to construct. |
| private Map(Builder builder) { |
| super(builder); |
| } |
| private Map(boolean noInit) {} |
| |
| private static final Map defaultInstance; |
| public static Map getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public Map getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Map_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Map_fieldAccessorTable; |
| } |
| |
| public interface EntryOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional string key = 1; |
| boolean hasKey(); |
| String getKey(); |
| |
| // optional bytes value = 2; |
| boolean hasValue(); |
| com.google.protobuf.ByteString getValue(); |
| } |
| public static final class Entry extends |
| com.google.protobuf.GeneratedMessage |
| implements EntryOrBuilder { |
| // Use Entry.newBuilder() to construct. |
| private Entry(Builder builder) { |
| super(builder); |
| } |
| private Entry(boolean noInit) {} |
| |
| private static final Entry defaultInstance; |
| public static Entry getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public Entry getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Map_Entry_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Map_Entry_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional string key = 1; |
| public static final int KEY_FIELD_NUMBER = 1; |
| private java.lang.Object key_; |
| public boolean hasKey() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getKey() { |
| java.lang.Object ref = key_; |
| if (ref instanceof String) { |
| return (String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| String s = bs.toStringUtf8(); |
| if (com.google.protobuf.Internal.isValidUtf8(bs)) { |
| key_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getKeyBytes() { |
| java.lang.Object ref = key_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| key_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional bytes value = 2; |
| public static final int VALUE_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString value_; |
| public boolean hasValue() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public com.google.protobuf.ByteString getValue() { |
| return value_; |
| } |
| |
| private void initFields() { |
| key_ = ""; |
| value_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getKeyBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, value_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getKeyBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, value_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map.Entry parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map.Entry 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.Map.Entry parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map.Entry 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.Map.Entry parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map.Entry 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.Map.Entry 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.Map.Entry 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.Map.Entry parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map.Entry 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.Map.Entry prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Map_Entry_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Map_Entry_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| key_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| value_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Entry getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Entry build() { |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.Map.Entry buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Entry buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry result = new org.apache.hedwig.protocol.PubSubProtocol.Map.Entry(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.key_ = key_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.value_ = value_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.Map.Entry) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.Map.Entry)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.Map.Entry other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.getDefaultInstance()) return this; |
| if (other.hasKey()) { |
| setKey(other.getKey()); |
| } |
| if (other.hasValue()) { |
| setValue(other.getValue()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| key_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| value_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional string key = 1; |
| private java.lang.Object key_ = ""; |
| public boolean hasKey() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getKey() { |
| java.lang.Object ref = key_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| key_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setKey(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| key_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearKey() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| key_ = getDefaultInstance().getKey(); |
| onChanged(); |
| return this; |
| } |
| void setKey(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| key_ = value; |
| onChanged(); |
| } |
| |
| // optional bytes value = 2; |
| private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasValue() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public com.google.protobuf.ByteString getValue() { |
| return value_; |
| } |
| public Builder setValue(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| value_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearValue() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| value_ = getDefaultInstance().getValue(); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.Map.Entry) |
| } |
| |
| static { |
| defaultInstance = new Entry(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.Map.Entry) |
| } |
| |
| // repeated .Hedwig.Map.Entry entries = 1; |
| public static final int ENTRIES_FIELD_NUMBER = 1; |
| private java.util.List<org.apache.hedwig.protocol.PubSubProtocol.Map.Entry> entries_; |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.Map.Entry> getEntriesList() { |
| return entries_; |
| } |
| public java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder> |
| getEntriesOrBuilderList() { |
| return entries_; |
| } |
| public int getEntriesCount() { |
| return entries_.size(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Entry getEntries(int index) { |
| return entries_.get(index); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder getEntriesOrBuilder( |
| int index) { |
| return entries_.get(index); |
| } |
| |
| private void initFields() { |
| entries_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < entries_.size(); i++) { |
| output.writeMessage(1, entries_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| for (int i = 0; i < entries_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, entries_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map 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.Map parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map 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.Map parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map 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.Map 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.Map 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.Map parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.Map 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.Map prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Map_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Map_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.Map.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getEntriesFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (entriesBuilder_ == null) { |
| entries_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| entriesBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.Map.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.Map getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.Map build() { |
| org.apache.hedwig.protocol.PubSubProtocol.Map result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.Map buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.Map result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.Map buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.Map result = new org.apache.hedwig.protocol.PubSubProtocol.Map(this); |
| int from_bitField0_ = bitField0_; |
| if (entriesBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| entries_ = java.util.Collections.unmodifiableList(entries_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.entries_ = entries_; |
| } else { |
| result.entries_ = entriesBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.Map) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.Map)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.Map other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance()) return this; |
| if (entriesBuilder_ == null) { |
| if (!other.entries_.isEmpty()) { |
| if (entries_.isEmpty()) { |
| entries_ = other.entries_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureEntriesIsMutable(); |
| entries_.addAll(other.entries_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.entries_.isEmpty()) { |
| if (entriesBuilder_.isEmpty()) { |
| entriesBuilder_.dispose(); |
| entriesBuilder_ = null; |
| entries_ = other.entries_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| entriesBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getEntriesFieldBuilder() : null; |
| } else { |
| entriesBuilder_.addAllMessages(other.entries_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addEntries(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // repeated .Hedwig.Map.Entry entries = 1; |
| private java.util.List<org.apache.hedwig.protocol.PubSubProtocol.Map.Entry> entries_ = |
| java.util.Collections.emptyList(); |
| private void ensureEntriesIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| entries_ = new java.util.ArrayList<org.apache.hedwig.protocol.PubSubProtocol.Map.Entry>(entries_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry, org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder, org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder> entriesBuilder_; |
| |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.Map.Entry> getEntriesList() { |
| if (entriesBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(entries_); |
| } else { |
| return entriesBuilder_.getMessageList(); |
| } |
| } |
| public int getEntriesCount() { |
| if (entriesBuilder_ == null) { |
| return entries_.size(); |
| } else { |
| return entriesBuilder_.getCount(); |
| } |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Entry getEntries(int index) { |
| if (entriesBuilder_ == null) { |
| return entries_.get(index); |
| } else { |
| return entriesBuilder_.getMessage(index); |
| } |
| } |
| public Builder setEntries( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.Map.Entry value) { |
| if (entriesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEntriesIsMutable(); |
| entries_.set(index, value); |
| onChanged(); |
| } else { |
| entriesBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| public Builder setEntries( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder builderForValue) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| entries_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| entriesBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addEntries(org.apache.hedwig.protocol.PubSubProtocol.Map.Entry value) { |
| if (entriesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEntriesIsMutable(); |
| entries_.add(value); |
| onChanged(); |
| } else { |
| entriesBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| public Builder addEntries( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.Map.Entry value) { |
| if (entriesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEntriesIsMutable(); |
| entries_.add(index, value); |
| onChanged(); |
| } else { |
| entriesBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| public Builder addEntries( |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder builderForValue) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| entries_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| entriesBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addEntries( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder builderForValue) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| entries_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| entriesBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addAllEntries( |
| java.lang.Iterable<? extends org.apache.hedwig.protocol.PubSubProtocol.Map.Entry> values) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| super.addAll(values, entries_); |
| onChanged(); |
| } else { |
| entriesBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| public Builder clearEntries() { |
| if (entriesBuilder_ == null) { |
| entries_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| } else { |
| entriesBuilder_.clear(); |
| } |
| return this; |
| } |
| public Builder removeEntries(int index) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| entries_.remove(index); |
| onChanged(); |
| } else { |
| entriesBuilder_.remove(index); |
| } |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder getEntriesBuilder( |
| int index) { |
| return getEntriesFieldBuilder().getBuilder(index); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder getEntriesOrBuilder( |
| int index) { |
| if (entriesBuilder_ == null) { |
| return entries_.get(index); } else { |
| return entriesBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| public java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder> |
| getEntriesOrBuilderList() { |
| if (entriesBuilder_ != null) { |
| return entriesBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(entries_); |
| } |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder addEntriesBuilder() { |
| return getEntriesFieldBuilder().addBuilder( |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.getDefaultInstance()); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder addEntriesBuilder( |
| int index) { |
| return getEntriesFieldBuilder().addBuilder( |
| index, org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.getDefaultInstance()); |
| } |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder> |
| getEntriesBuilderList() { |
| return getEntriesFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry, org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder, org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder> |
| getEntriesFieldBuilder() { |
| if (entriesBuilder_ == null) { |
| entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry, org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder, org.apache.hedwig.protocol.PubSubProtocol.Map.EntryOrBuilder>( |
| entries_, |
| ((bitField0_ & 0x00000001) == 0x00000001), |
| getParentForChildren(), |
| isClean()); |
| entries_ = null; |
| } |
| return entriesBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.Map) |
| } |
| |
| static { |
| defaultInstance = new Map(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.Map) |
| } |
| |
| public interface MessageHeaderOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional .Hedwig.Map properties = 1; |
| boolean hasProperties(); |
| org.apache.hedwig.protocol.PubSubProtocol.Map getProperties(); |
| org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getPropertiesOrBuilder(); |
| |
| // optional string messageType = 2; |
| boolean hasMessageType(); |
| String getMessageType(); |
| } |
| public static final class MessageHeader extends |
| com.google.protobuf.GeneratedMessage |
| implements MessageHeaderOrBuilder { |
| // Use MessageHeader.newBuilder() to construct. |
| private MessageHeader(Builder builder) { |
| super(builder); |
| } |
| private MessageHeader(boolean noInit) {} |
| |
| private static final MessageHeader defaultInstance; |
| public static MessageHeader getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public MessageHeader getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageHeader_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageHeader_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional .Hedwig.Map properties = 1; |
| public static final int PROPERTIES_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.Map properties_; |
| public boolean hasProperties() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map getProperties() { |
| return properties_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getPropertiesOrBuilder() { |
| return properties_; |
| } |
| |
| // optional string messageType = 2; |
| public static final int MESSAGETYPE_FIELD_NUMBER = 2; |
| private java.lang.Object messageType_; |
| public boolean hasMessageType() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getMessageType() { |
| java.lang.Object ref = messageType_; |
| if (ref instanceof String) { |
| return (String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| String s = bs.toStringUtf8(); |
| if (com.google.protobuf.Internal.isValidUtf8(bs)) { |
| messageType_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getMessageTypeBytes() { |
| java.lang.Object ref = messageType_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| messageType_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| properties_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| messageType_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(1, properties_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getMessageTypeBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, properties_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getMessageTypeBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.MessageHeader parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.MessageHeader 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.MessageHeader parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.MessageHeader 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.MessageHeader parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.MessageHeader 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.MessageHeader 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.MessageHeader 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.MessageHeader parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.MessageHeader 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.MessageHeader prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.MessageHeaderOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageHeader_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageHeader_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getPropertiesFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (propertiesBuilder_ == null) { |
| properties_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| } else { |
| propertiesBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| messageType_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageHeader getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageHeader build() { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageHeader buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageHeader buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader result = new org.apache.hedwig.protocol.PubSubProtocol.MessageHeader(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (propertiesBuilder_ == null) { |
| result.properties_ = properties_; |
| } else { |
| result.properties_ = propertiesBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.messageType_ = messageType_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.MessageHeader) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.MessageHeader)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.MessageHeader other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.getDefaultInstance()) return this; |
| if (other.hasProperties()) { |
| mergeProperties(other.getProperties()); |
| } |
| if (other.hasMessageType()) { |
| setMessageType(other.getMessageType()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.Map.newBuilder(); |
| if (hasProperties()) { |
| subBuilder.mergeFrom(getProperties()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setProperties(subBuilder.buildPartial()); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| messageType_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional .Hedwig.Map properties = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.Map properties_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder> propertiesBuilder_; |
| public boolean hasProperties() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map getProperties() { |
| if (propertiesBuilder_ == null) { |
| return properties_; |
| } else { |
| return propertiesBuilder_.getMessage(); |
| } |
| } |
| public Builder setProperties(org.apache.hedwig.protocol.PubSubProtocol.Map value) { |
| if (propertiesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| properties_ = value; |
| onChanged(); |
| } else { |
| propertiesBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setProperties( |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Builder builderForValue) { |
| if (propertiesBuilder_ == null) { |
| properties_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| propertiesBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergeProperties(org.apache.hedwig.protocol.PubSubProtocol.Map value) { |
| if (propertiesBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| properties_ != org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance()) { |
| properties_ = |
| org.apache.hedwig.protocol.PubSubProtocol.Map.newBuilder(properties_).mergeFrom(value).buildPartial(); |
| } else { |
| properties_ = value; |
| } |
| onChanged(); |
| } else { |
| propertiesBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearProperties() { |
| if (propertiesBuilder_ == null) { |
| properties_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| onChanged(); |
| } else { |
| propertiesBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Builder getPropertiesBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getPropertiesFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getPropertiesOrBuilder() { |
| if (propertiesBuilder_ != null) { |
| return propertiesBuilder_.getMessageOrBuilder(); |
| } else { |
| return properties_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder> |
| getPropertiesFieldBuilder() { |
| if (propertiesBuilder_ == null) { |
| propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder>( |
| properties_, |
| getParentForChildren(), |
| isClean()); |
| properties_ = null; |
| } |
| return propertiesBuilder_; |
| } |
| |
| // optional string messageType = 2; |
| private java.lang.Object messageType_ = ""; |
| public boolean hasMessageType() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getMessageType() { |
| java.lang.Object ref = messageType_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| messageType_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setMessageType(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| messageType_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageType() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messageType_ = getDefaultInstance().getMessageType(); |
| onChanged(); |
| return this; |
| } |
| void setMessageType(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000002; |
| messageType_ = value; |
| onChanged(); |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.MessageHeader) |
| } |
| |
| static { |
| defaultInstance = new MessageHeader(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.MessageHeader) |
| } |
| |
| public interface MessageOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes body = 1; |
| boolean hasBody(); |
| com.google.protobuf.ByteString getBody(); |
| |
| // optional bytes srcRegion = 2; |
| boolean hasSrcRegion(); |
| com.google.protobuf.ByteString getSrcRegion(); |
| |
| // optional .Hedwig.MessageSeqId msgId = 3; |
| boolean hasMsgId(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder(); |
| |
| // optional .Hedwig.MessageHeader header = 4; |
| boolean hasHeader(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader getHeader(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeaderOrBuilder getHeaderOrBuilder(); |
| } |
| public static final class Message extends |
| com.google.protobuf.GeneratedMessage |
| implements MessageOrBuilder { |
| // Use Message.newBuilder() to construct. |
| private Message(Builder builder) { |
| super(builder); |
| } |
| 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 |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Message_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required bytes body = 1; |
| public static final int BODY_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString body_; |
| public boolean hasBody() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getBody() { |
| return body_; |
| } |
| |
| // optional bytes srcRegion = 2; |
| public static final int SRCREGION_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString srcRegion_; |
| public boolean hasSrcRegion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public com.google.protobuf.ByteString getSrcRegion() { |
| return srcRegion_; |
| } |
| |
| // optional .Hedwig.MessageSeqId msgId = 3; |
| public static final int MSGID_FIELD_NUMBER = 3; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId msgId_; |
| public boolean hasMsgId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() { |
| return msgId_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder() { |
| return msgId_; |
| } |
| |
| // optional .Hedwig.MessageHeader header = 4; |
| public static final int HEADER_FIELD_NUMBER = 4; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageHeader header_; |
| public boolean hasHeader() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageHeader getHeader() { |
| return header_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageHeaderOrBuilder getHeaderOrBuilder() { |
| return header_; |
| } |
| |
| private void initFields() { |
| body_ = com.google.protobuf.ByteString.EMPTY; |
| srcRegion_ = com.google.protobuf.ByteString.EMPTY; |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| header_ = org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasBody()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasMsgId()) { |
| if (!getMsgId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, body_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, srcRegion_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeMessage(3, msgId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeMessage(4, header_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, body_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, srcRegion_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, msgId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(4, header_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| 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); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder { |
| 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 |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_Message_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.Message.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getMsgIdFieldBuilder(); |
| getHeaderFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| body_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| srcRegion_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| if (msgIdBuilder_ == null) { |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| } else { |
| msgIdBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000004); |
| if (headerBuilder_ == null) { |
| header_ = org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.getDefaultInstance(); |
| } else { |
| headerBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| 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 org.apache.hedwig.protocol.PubSubProtocol.Message build() { |
| org.apache.hedwig.protocol.PubSubProtocol.Message result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.Message buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.Message result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.Message buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.Message result = new org.apache.hedwig.protocol.PubSubProtocol.Message(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.body_ = body_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.srcRegion_ = srcRegion_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| if (msgIdBuilder_ == null) { |
| result.msgId_ = msgId_; |
| } else { |
| result.msgId_ = msgIdBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| if (headerBuilder_ == null) { |
| result.header_ = header_; |
| } else { |
| result.header_ = headerBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| 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()); |
| } |
| if (other.hasHeader()) { |
| mergeHeader(other.getHeader()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasBody()) { |
| |
| return false; |
| } |
| if (hasMsgId()) { |
| if (!getMsgId().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| body_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| srcRegion_ = 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; |
| } |
| case 34: { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.newBuilder(); |
| if (hasHeader()) { |
| subBuilder.mergeFrom(getHeader()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setHeader(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes body = 1; |
| private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasBody() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getBody() { |
| return body_; |
| } |
| public Builder setBody(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| body_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearBody() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| body_ = getDefaultInstance().getBody(); |
| onChanged(); |
| return this; |
| } |
| |
| // optional bytes srcRegion = 2; |
| private com.google.protobuf.ByteString srcRegion_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSrcRegion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public com.google.protobuf.ByteString getSrcRegion() { |
| return srcRegion_; |
| } |
| public Builder setSrcRegion(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| srcRegion_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSrcRegion() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| srcRegion_ = getDefaultInstance().getSrcRegion(); |
| onChanged(); |
| return this; |
| } |
| |
| // optional .Hedwig.MessageSeqId msgId = 3; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> msgIdBuilder_; |
| public boolean hasMsgId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() { |
| if (msgIdBuilder_ == null) { |
| return msgId_; |
| } else { |
| return msgIdBuilder_.getMessage(); |
| } |
| } |
| public Builder setMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (msgIdBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| msgId_ = value; |
| onChanged(); |
| } else { |
| msgIdBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder setMsgId( |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder builderForValue) { |
| if (msgIdBuilder_ == null) { |
| msgId_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| msgIdBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder mergeMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (msgIdBuilder_ == null) { |
| if (((bitField0_ & 0x00000004) == 0x00000004) && |
| msgId_ != org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance()) { |
| msgId_ = |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(msgId_).mergeFrom(value).buildPartial(); |
| } else { |
| msgId_ = value; |
| } |
| onChanged(); |
| } else { |
| msgIdBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder clearMsgId() { |
| if (msgIdBuilder_ == null) { |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| onChanged(); |
| } else { |
| msgIdBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder getMsgIdBuilder() { |
| bitField0_ |= 0x00000004; |
| onChanged(); |
| return getMsgIdFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder() { |
| if (msgIdBuilder_ != null) { |
| return msgIdBuilder_.getMessageOrBuilder(); |
| } else { |
| return msgId_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> |
| getMsgIdFieldBuilder() { |
| if (msgIdBuilder_ == null) { |
| msgIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder>( |
| msgId_, |
| getParentForChildren(), |
| isClean()); |
| msgId_ = null; |
| } |
| return msgIdBuilder_; |
| } |
| |
| // optional .Hedwig.MessageHeader header = 4; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageHeader header_ = org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader, org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageHeaderOrBuilder> headerBuilder_; |
| public boolean hasHeader() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageHeader getHeader() { |
| if (headerBuilder_ == null) { |
| return header_; |
| } else { |
| return headerBuilder_.getMessage(); |
| } |
| } |
| public Builder setHeader(org.apache.hedwig.protocol.PubSubProtocol.MessageHeader value) { |
| if (headerBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| header_ = value; |
| onChanged(); |
| } else { |
| headerBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder setHeader( |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.Builder builderForValue) { |
| if (headerBuilder_ == null) { |
| header_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| headerBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder mergeHeader(org.apache.hedwig.protocol.PubSubProtocol.MessageHeader value) { |
| if (headerBuilder_ == null) { |
| if (((bitField0_ & 0x00000008) == 0x00000008) && |
| header_ != org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.getDefaultInstance()) { |
| header_ = |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.newBuilder(header_).mergeFrom(value).buildPartial(); |
| } else { |
| header_ = value; |
| } |
| onChanged(); |
| } else { |
| headerBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder clearHeader() { |
| if (headerBuilder_ == null) { |
| header_ = org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.getDefaultInstance(); |
| onChanged(); |
| } else { |
| headerBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.Builder getHeaderBuilder() { |
| bitField0_ |= 0x00000008; |
| onChanged(); |
| return getHeaderFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageHeaderOrBuilder getHeaderOrBuilder() { |
| if (headerBuilder_ != null) { |
| return headerBuilder_.getMessageOrBuilder(); |
| } else { |
| return header_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader, org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageHeaderOrBuilder> |
| getHeaderFieldBuilder() { |
| if (headerBuilder_ == null) { |
| headerBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader, org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageHeaderOrBuilder>( |
| header_, |
| getParentForChildren(), |
| isClean()); |
| header_ = null; |
| } |
| return headerBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.Message) |
| } |
| |
| static { |
| defaultInstance = new Message(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.Message) |
| } |
| |
| public interface RegionSpecificSeqIdOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes region = 1; |
| boolean hasRegion(); |
| com.google.protobuf.ByteString getRegion(); |
| |
| // required uint64 seqId = 2; |
| boolean hasSeqId(); |
| long getSeqId(); |
| } |
| public static final class RegionSpecificSeqId extends |
| com.google.protobuf.GeneratedMessage |
| implements RegionSpecificSeqIdOrBuilder { |
| // Use RegionSpecificSeqId.newBuilder() to construct. |
| private RegionSpecificSeqId(Builder builder) { |
| super(builder); |
| } |
| 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 |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_RegionSpecificSeqId_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required bytes region = 1; |
| public static final int REGION_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString region_; |
| public boolean hasRegion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getRegion() { |
| return region_; |
| } |
| |
| // required uint64 seqId = 2; |
| public static final int SEQID_FIELD_NUMBER = 2; |
| private long seqId_; |
| public boolean hasSeqId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSeqId() { |
| return seqId_; |
| } |
| |
| private void initFields() { |
| region_ = com.google.protobuf.ByteString.EMPTY; |
| seqId_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRegion()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSeqId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, region_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, seqId_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, region_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, seqId_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| 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); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder { |
| 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 |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_RegionSpecificSeqId_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| region_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| seqId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| 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 org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId build() { |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId result = new org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.region_ = region_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.seqId_ = seqId_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| 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 final boolean isInitialized() { |
| if (!hasRegion()) { |
| |
| return false; |
| } |
| if (!hasSeqId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| region_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| seqId_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes region = 1; |
| private com.google.protobuf.ByteString region_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasRegion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getRegion() { |
| return region_; |
| } |
| public Builder setRegion(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| region_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearRegion() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| region_ = getDefaultInstance().getRegion(); |
| onChanged(); |
| return this; |
| } |
| |
| // required uint64 seqId = 2; |
| private long seqId_ ; |
| public boolean hasSeqId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSeqId() { |
| return seqId_; |
| } |
| public Builder setSeqId(long value) { |
| bitField0_ |= 0x00000002; |
| seqId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSeqId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| seqId_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.RegionSpecificSeqId) |
| } |
| |
| static { |
| defaultInstance = new RegionSpecificSeqId(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.RegionSpecificSeqId) |
| } |
| |
| public interface MessageSeqIdOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional uint64 localComponent = 1; |
| boolean hasLocalComponent(); |
| long getLocalComponent(); |
| |
| // repeated .Hedwig.RegionSpecificSeqId remoteComponents = 2; |
| java.util.List<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId> |
| getRemoteComponentsList(); |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId getRemoteComponents(int index); |
| int getRemoteComponentsCount(); |
| java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder> |
| getRemoteComponentsOrBuilderList(); |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder getRemoteComponentsOrBuilder( |
| int index); |
| } |
| public static final class MessageSeqId extends |
| com.google.protobuf.GeneratedMessage |
| implements MessageSeqIdOrBuilder { |
| // Use MessageSeqId.newBuilder() to construct. |
| private MessageSeqId(Builder builder) { |
| super(builder); |
| } |
| 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 |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageSeqId_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional uint64 localComponent = 1; |
| public static final int LOCALCOMPONENT_FIELD_NUMBER = 1; |
| private long localComponent_; |
| public boolean hasLocalComponent() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| 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_; |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId> getRemoteComponentsList() { |
| return remoteComponents_; |
| } |
| public java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder> |
| getRemoteComponentsOrBuilderList() { |
| return remoteComponents_; |
| } |
| public int getRemoteComponentsCount() { |
| return remoteComponents_.size(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId getRemoteComponents(int index) { |
| return remoteComponents_.get(index); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder getRemoteComponentsOrBuilder( |
| int index) { |
| return remoteComponents_.get(index); |
| } |
| |
| private void initFields() { |
| localComponent_ = 0L; |
| remoteComponents_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| for (int i = 0; i < getRemoteComponentsCount(); i++) { |
| if (!getRemoteComponents(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, localComponent_); |
| } |
| for (int i = 0; i < remoteComponents_.size(); i++) { |
| output.writeMessage(2, remoteComponents_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(1, localComponent_); |
| } |
| for (int i = 0; i < remoteComponents_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, remoteComponents_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| 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); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder { |
| 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 |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_MessageSeqId_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getRemoteComponentsFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| localComponent_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| if (remoteComponentsBuilder_ == null) { |
| remoteComponents_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| remoteComponentsBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| 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 org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId build() { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId result = new org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.localComponent_ = localComponent_; |
| if (remoteComponentsBuilder_ == null) { |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| remoteComponents_ = java.util.Collections.unmodifiableList(remoteComponents_); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } |
| result.remoteComponents_ = remoteComponents_; |
| } else { |
| result.remoteComponents_ = remoteComponentsBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| 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 (remoteComponentsBuilder_ == null) { |
| if (!other.remoteComponents_.isEmpty()) { |
| if (remoteComponents_.isEmpty()) { |
| remoteComponents_ = other.remoteComponents_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| ensureRemoteComponentsIsMutable(); |
| remoteComponents_.addAll(other.remoteComponents_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.remoteComponents_.isEmpty()) { |
| if (remoteComponentsBuilder_.isEmpty()) { |
| remoteComponentsBuilder_.dispose(); |
| remoteComponentsBuilder_ = null; |
| remoteComponents_ = other.remoteComponents_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| remoteComponentsBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getRemoteComponentsFieldBuilder() : null; |
| } else { |
| remoteComponentsBuilder_.addAllMessages(other.remoteComponents_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| for (int i = 0; i < getRemoteComponentsCount(); i++) { |
| if (!getRemoteComponents(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| localComponent_ = input.readUInt64(); |
| break; |
| } |
| case 18: { |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addRemoteComponents(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional uint64 localComponent = 1; |
| private long localComponent_ ; |
| public boolean hasLocalComponent() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getLocalComponent() { |
| return localComponent_; |
| } |
| public Builder setLocalComponent(long value) { |
| bitField0_ |= 0x00000001; |
| localComponent_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearLocalComponent() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| localComponent_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // repeated .Hedwig.RegionSpecificSeqId remoteComponents = 2; |
| private java.util.List<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId> remoteComponents_ = |
| java.util.Collections.emptyList(); |
| private void ensureRemoteComponentsIsMutable() { |
| if (!((bitField0_ & 0x00000002) == 0x00000002)) { |
| remoteComponents_ = new java.util.ArrayList<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId>(remoteComponents_); |
| bitField0_ |= 0x00000002; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder> remoteComponentsBuilder_; |
| |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId> getRemoteComponentsList() { |
| if (remoteComponentsBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(remoteComponents_); |
| } else { |
| return remoteComponentsBuilder_.getMessageList(); |
| } |
| } |
| public int getRemoteComponentsCount() { |
| if (remoteComponentsBuilder_ == null) { |
| return remoteComponents_.size(); |
| } else { |
| return remoteComponentsBuilder_.getCount(); |
| } |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId getRemoteComponents(int index) { |
| if (remoteComponentsBuilder_ == null) { |
| return remoteComponents_.get(index); |
| } else { |
| return remoteComponentsBuilder_.getMessage(index); |
| } |
| } |
| public Builder setRemoteComponents( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId value) { |
| if (remoteComponentsBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureRemoteComponentsIsMutable(); |
| remoteComponents_.set(index, value); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| public Builder setRemoteComponents( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder builderForValue) { |
| if (remoteComponentsBuilder_ == null) { |
| ensureRemoteComponentsIsMutable(); |
| remoteComponents_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addRemoteComponents(org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId value) { |
| if (remoteComponentsBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureRemoteComponentsIsMutable(); |
| remoteComponents_.add(value); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| public Builder addRemoteComponents( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId value) { |
| if (remoteComponentsBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureRemoteComponentsIsMutable(); |
| remoteComponents_.add(index, value); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| public Builder addRemoteComponents( |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder builderForValue) { |
| if (remoteComponentsBuilder_ == null) { |
| ensureRemoteComponentsIsMutable(); |
| remoteComponents_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addRemoteComponents( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder builderForValue) { |
| if (remoteComponentsBuilder_ == null) { |
| ensureRemoteComponentsIsMutable(); |
| remoteComponents_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addAllRemoteComponents( |
| java.lang.Iterable<? extends org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId> values) { |
| if (remoteComponentsBuilder_ == null) { |
| ensureRemoteComponentsIsMutable(); |
| super.addAll(values, remoteComponents_); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| public Builder clearRemoteComponents() { |
| if (remoteComponentsBuilder_ == null) { |
| remoteComponents_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.clear(); |
| } |
| return this; |
| } |
| public Builder removeRemoteComponents(int index) { |
| if (remoteComponentsBuilder_ == null) { |
| ensureRemoteComponentsIsMutable(); |
| remoteComponents_.remove(index); |
| onChanged(); |
| } else { |
| remoteComponentsBuilder_.remove(index); |
| } |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder getRemoteComponentsBuilder( |
| int index) { |
| return getRemoteComponentsFieldBuilder().getBuilder(index); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder getRemoteComponentsOrBuilder( |
| int index) { |
| if (remoteComponentsBuilder_ == null) { |
| return remoteComponents_.get(index); } else { |
| return remoteComponentsBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| public java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder> |
| getRemoteComponentsOrBuilderList() { |
| if (remoteComponentsBuilder_ != null) { |
| return remoteComponentsBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(remoteComponents_); |
| } |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder addRemoteComponentsBuilder() { |
| return getRemoteComponentsFieldBuilder().addBuilder( |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.getDefaultInstance()); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder addRemoteComponentsBuilder( |
| int index) { |
| return getRemoteComponentsFieldBuilder().addBuilder( |
| index, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.getDefaultInstance()); |
| } |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder> |
| getRemoteComponentsBuilderList() { |
| return getRemoteComponentsFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder> |
| getRemoteComponentsFieldBuilder() { |
| if (remoteComponentsBuilder_ == null) { |
| remoteComponentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqIdOrBuilder>( |
| remoteComponents_, |
| ((bitField0_ & 0x00000002) == 0x00000002), |
| getParentForChildren(), |
| isClean()); |
| remoteComponents_ = null; |
| } |
| return remoteComponentsBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.MessageSeqId) |
| } |
| |
| static { |
| defaultInstance = new MessageSeqId(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.MessageSeqId) |
| } |
| |
| public interface PubSubRequestOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required .Hedwig.ProtocolVersion protocolVersion = 1; |
| boolean hasProtocolVersion(); |
| org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion getProtocolVersion(); |
| |
| // required .Hedwig.OperationType type = 2; |
| boolean hasType(); |
| org.apache.hedwig.protocol.PubSubProtocol.OperationType getType(); |
| |
| // repeated bytes triedServers = 3; |
| java.util.List<com.google.protobuf.ByteString> getTriedServersList(); |
| int getTriedServersCount(); |
| com.google.protobuf.ByteString getTriedServers(int index); |
| |
| // required uint64 txnId = 4; |
| boolean hasTxnId(); |
| long getTxnId(); |
| |
| // optional bool shouldClaim = 5; |
| boolean hasShouldClaim(); |
| boolean getShouldClaim(); |
| |
| // required bytes topic = 6; |
| boolean hasTopic(); |
| com.google.protobuf.ByteString getTopic(); |
| |
| // optional .Hedwig.PublishRequest publishRequest = 52; |
| boolean hasPublishRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest getPublishRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequestOrBuilder getPublishRequestOrBuilder(); |
| |
| // optional .Hedwig.SubscribeRequest subscribeRequest = 53; |
| boolean hasSubscribeRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest getSubscribeRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequestOrBuilder getSubscribeRequestOrBuilder(); |
| |
| // optional .Hedwig.ConsumeRequest consumeRequest = 54; |
| boolean hasConsumeRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest getConsumeRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequestOrBuilder getConsumeRequestOrBuilder(); |
| |
| // optional .Hedwig.UnsubscribeRequest unsubscribeRequest = 55; |
| boolean hasUnsubscribeRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest getUnsubscribeRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequestOrBuilder getUnsubscribeRequestOrBuilder(); |
| |
| // optional .Hedwig.StopDeliveryRequest stopDeliveryRequest = 56; |
| boolean hasStopDeliveryRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest getStopDeliveryRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequestOrBuilder getStopDeliveryRequestOrBuilder(); |
| |
| // optional .Hedwig.StartDeliveryRequest startDeliveryRequest = 57; |
| boolean hasStartDeliveryRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest getStartDeliveryRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequestOrBuilder getStartDeliveryRequestOrBuilder(); |
| |
| // optional .Hedwig.CloseSubscriptionRequest closeSubscriptionRequest = 58; |
| boolean hasCloseSubscriptionRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest getCloseSubscriptionRequest(); |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequestOrBuilder getCloseSubscriptionRequestOrBuilder(); |
| } |
| public static final class PubSubRequest extends |
| com.google.protobuf.GeneratedMessage |
| implements PubSubRequestOrBuilder { |
| // Use PubSubRequest.newBuilder() to construct. |
| private PubSubRequest(Builder builder) { |
| super(builder); |
| } |
| private PubSubRequest(boolean noInit) {} |
| |
| private static final PubSubRequest defaultInstance; |
| public static PubSubRequest getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public PubSubRequest getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PubSubRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PubSubRequest_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required .Hedwig.ProtocolVersion protocolVersion = 1; |
| public static final int PROTOCOLVERSION_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion protocolVersion_; |
| public boolean hasProtocolVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion getProtocolVersion() { |
| return protocolVersion_; |
| } |
| |
| // required .Hedwig.OperationType type = 2; |
| public static final int TYPE_FIELD_NUMBER = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.OperationType type_; |
| public boolean hasType() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.OperationType getType() { |
| return type_; |
| } |
| |
| // repeated bytes triedServers = 3; |
| public static final int TRIEDSERVERS_FIELD_NUMBER = 3; |
| private java.util.List<com.google.protobuf.ByteString> triedServers_; |
| public java.util.List<com.google.protobuf.ByteString> |
| getTriedServersList() { |
| return triedServers_; |
| } |
| public int getTriedServersCount() { |
| return triedServers_.size(); |
| } |
| public com.google.protobuf.ByteString getTriedServers(int index) { |
| return triedServers_.get(index); |
| } |
| |
| // required uint64 txnId = 4; |
| public static final int TXNID_FIELD_NUMBER = 4; |
| private long txnId_; |
| public boolean hasTxnId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getTxnId() { |
| return txnId_; |
| } |
| |
| // optional bool shouldClaim = 5; |
| public static final int SHOULDCLAIM_FIELD_NUMBER = 5; |
| private boolean shouldClaim_; |
| public boolean hasShouldClaim() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public boolean getShouldClaim() { |
| return shouldClaim_; |
| } |
| |
| // required bytes topic = 6; |
| public static final int TOPIC_FIELD_NUMBER = 6; |
| private com.google.protobuf.ByteString topic_; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public com.google.protobuf.ByteString getTopic() { |
| return topic_; |
| } |
| |
| // optional .Hedwig.PublishRequest publishRequest = 52; |
| public static final int PUBLISHREQUEST_FIELD_NUMBER = 52; |
| private org.apache.hedwig.protocol.PubSubProtocol.PublishRequest publishRequest_; |
| public boolean hasPublishRequest() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishRequest getPublishRequest() { |
| return publishRequest_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishRequestOrBuilder getPublishRequestOrBuilder() { |
| return publishRequest_; |
| } |
| |
| // optional .Hedwig.SubscribeRequest subscribeRequest = 53; |
| public static final int SUBSCRIBEREQUEST_FIELD_NUMBER = 53; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest subscribeRequest_; |
| public boolean hasSubscribeRequest() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest getSubscribeRequest() { |
| return subscribeRequest_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequestOrBuilder getSubscribeRequestOrBuilder() { |
| return subscribeRequest_; |
| } |
| |
| // optional .Hedwig.ConsumeRequest consumeRequest = 54; |
| public static final int CONSUMEREQUEST_FIELD_NUMBER = 54; |
| private org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest consumeRequest_; |
| public boolean hasConsumeRequest() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest getConsumeRequest() { |
| return consumeRequest_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequestOrBuilder getConsumeRequestOrBuilder() { |
| return consumeRequest_; |
| } |
| |
| // optional .Hedwig.UnsubscribeRequest unsubscribeRequest = 55; |
| public static final int UNSUBSCRIBEREQUEST_FIELD_NUMBER = 55; |
| private org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest unsubscribeRequest_; |
| public boolean hasUnsubscribeRequest() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest getUnsubscribeRequest() { |
| return unsubscribeRequest_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequestOrBuilder getUnsubscribeRequestOrBuilder() { |
| return unsubscribeRequest_; |
| } |
| |
| // optional .Hedwig.StopDeliveryRequest stopDeliveryRequest = 56; |
| public static final int STOPDELIVERYREQUEST_FIELD_NUMBER = 56; |
| private org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest stopDeliveryRequest_; |
| public boolean hasStopDeliveryRequest() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest getStopDeliveryRequest() { |
| return stopDeliveryRequest_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequestOrBuilder getStopDeliveryRequestOrBuilder() { |
| return stopDeliveryRequest_; |
| } |
| |
| // optional .Hedwig.StartDeliveryRequest startDeliveryRequest = 57; |
| public static final int STARTDELIVERYREQUEST_FIELD_NUMBER = 57; |
| private org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest startDeliveryRequest_; |
| public boolean hasStartDeliveryRequest() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest getStartDeliveryRequest() { |
| return startDeliveryRequest_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequestOrBuilder getStartDeliveryRequestOrBuilder() { |
| return startDeliveryRequest_; |
| } |
| |
| // optional .Hedwig.CloseSubscriptionRequest closeSubscriptionRequest = 58; |
| public static final int CLOSESUBSCRIPTIONREQUEST_FIELD_NUMBER = 58; |
| private org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest closeSubscriptionRequest_; |
| public boolean hasCloseSubscriptionRequest() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest getCloseSubscriptionRequest() { |
| return closeSubscriptionRequest_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequestOrBuilder getCloseSubscriptionRequestOrBuilder() { |
| return closeSubscriptionRequest_; |
| } |
| |
| private void initFields() { |
| protocolVersion_ = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.VERSION_ONE; |
| type_ = org.apache.hedwig.protocol.PubSubProtocol.OperationType.PUBLISH; |
| triedServers_ = java.util.Collections.emptyList();; |
| txnId_ = 0L; |
| shouldClaim_ = false; |
| topic_ = com.google.protobuf.ByteString.EMPTY; |
| publishRequest_ = org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.getDefaultInstance(); |
| subscribeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDefaultInstance(); |
| consumeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.getDefaultInstance(); |
| unsubscribeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.getDefaultInstance(); |
| stopDeliveryRequest_ = org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.getDefaultInstance(); |
| startDeliveryRequest_ = org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.getDefaultInstance(); |
| closeSubscriptionRequest_ = org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasProtocolVersion()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasType()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasTxnId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasTopic()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasPublishRequest()) { |
| if (!getPublishRequest().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSubscribeRequest()) { |
| if (!getSubscribeRequest().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasConsumeRequest()) { |
| if (!getConsumeRequest().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasUnsubscribeRequest()) { |
| if (!getUnsubscribeRequest().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasStopDeliveryRequest()) { |
| if (!getStopDeliveryRequest().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasStartDeliveryRequest()) { |
| if (!getStartDeliveryRequest().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasCloseSubscriptionRequest()) { |
| if (!getCloseSubscriptionRequest().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeEnum(1, protocolVersion_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeEnum(2, type_.getNumber()); |
| } |
| for (int i = 0; i < triedServers_.size(); i++) { |
| output.writeBytes(3, triedServers_.get(i)); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeUInt64(4, txnId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBool(5, shouldClaim_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBytes(6, topic_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeMessage(52, publishRequest_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeMessage(53, subscribeRequest_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeMessage(54, consumeRequest_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeMessage(55, unsubscribeRequest_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeMessage(56, stopDeliveryRequest_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeMessage(57, startDeliveryRequest_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| output.writeMessage(58, closeSubscriptionRequest_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(1, protocolVersion_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(2, type_.getNumber()); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < triedServers_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(triedServers_.get(i)); |
| } |
| size += dataSize; |
| size += 1 * getTriedServersList().size(); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(4, txnId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(5, shouldClaim_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, topic_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(52, publishRequest_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(53, subscribeRequest_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(54, consumeRequest_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(55, unsubscribeRequest_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(56, stopDeliveryRequest_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(57, startDeliveryRequest_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(58, closeSubscriptionRequest_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest 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.PubSubRequest parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest 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.PubSubRequest parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest 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.PubSubRequest 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.PubSubRequest 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.PubSubRequest parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest 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.PubSubRequest prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.PubSubRequestOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PubSubRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PubSubRequest_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getPublishRequestFieldBuilder(); |
| getSubscribeRequestFieldBuilder(); |
| getConsumeRequestFieldBuilder(); |
| getUnsubscribeRequestFieldBuilder(); |
| getStopDeliveryRequestFieldBuilder(); |
| getStartDeliveryRequestFieldBuilder(); |
| getCloseSubscriptionRequestFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| protocolVersion_ = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.VERSION_ONE; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| type_ = org.apache.hedwig.protocol.PubSubProtocol.OperationType.PUBLISH; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| triedServers_ = java.util.Collections.emptyList();; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| txnId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| shouldClaim_ = false; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| topic_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| if (publishRequestBuilder_ == null) { |
| publishRequest_ = org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.getDefaultInstance(); |
| } else { |
| publishRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000040); |
| if (subscribeRequestBuilder_ == null) { |
| subscribeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDefaultInstance(); |
| } else { |
| subscribeRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000080); |
| if (consumeRequestBuilder_ == null) { |
| consumeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.getDefaultInstance(); |
| } else { |
| consumeRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000100); |
| if (unsubscribeRequestBuilder_ == null) { |
| unsubscribeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.getDefaultInstance(); |
| } else { |
| unsubscribeRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000200); |
| if (stopDeliveryRequestBuilder_ == null) { |
| stopDeliveryRequest_ = org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.getDefaultInstance(); |
| } else { |
| stopDeliveryRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000400); |
| if (startDeliveryRequestBuilder_ == null) { |
| startDeliveryRequest_ = org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.getDefaultInstance(); |
| } else { |
| startDeliveryRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000800); |
| if (closeSubscriptionRequestBuilder_ == null) { |
| closeSubscriptionRequest_ = org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.getDefaultInstance(); |
| } else { |
| closeSubscriptionRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00001000); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest build() { |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest result = new org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.protocolVersion_ = protocolVersion_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.type_ = type_; |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| triedServers_ = java.util.Collections.unmodifiableList(triedServers_); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| } |
| result.triedServers_ = triedServers_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.txnId_ = txnId_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.shouldClaim_ = shouldClaim_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.topic_ = topic_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| if (publishRequestBuilder_ == null) { |
| result.publishRequest_ = publishRequest_; |
| } else { |
| result.publishRequest_ = publishRequestBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| if (subscribeRequestBuilder_ == null) { |
| result.subscribeRequest_ = subscribeRequest_; |
| } else { |
| result.subscribeRequest_ = subscribeRequestBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| if (consumeRequestBuilder_ == null) { |
| result.consumeRequest_ = consumeRequest_; |
| } else { |
| result.consumeRequest_ = consumeRequestBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000200) == 0x00000200)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| if (unsubscribeRequestBuilder_ == null) { |
| result.unsubscribeRequest_ = unsubscribeRequest_; |
| } else { |
| result.unsubscribeRequest_ = unsubscribeRequestBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| if (stopDeliveryRequestBuilder_ == null) { |
| result.stopDeliveryRequest_ = stopDeliveryRequest_; |
| } else { |
| result.stopDeliveryRequest_ = stopDeliveryRequestBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000800) == 0x00000800)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| if (startDeliveryRequestBuilder_ == null) { |
| result.startDeliveryRequest_ = startDeliveryRequest_; |
| } else { |
| result.startDeliveryRequest_ = startDeliveryRequestBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00001000) == 0x00001000)) { |
| to_bitField0_ |= 0x00000800; |
| } |
| if (closeSubscriptionRequestBuilder_ == null) { |
| result.closeSubscriptionRequest_ = closeSubscriptionRequest_; |
| } else { |
| result.closeSubscriptionRequest_ = closeSubscriptionRequestBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest.getDefaultInstance()) return this; |
| if (other.hasProtocolVersion()) { |
| setProtocolVersion(other.getProtocolVersion()); |
| } |
| if (other.hasType()) { |
| setType(other.getType()); |
| } |
| if (!other.triedServers_.isEmpty()) { |
| if (triedServers_.isEmpty()) { |
| triedServers_ = other.triedServers_; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| } else { |
| ensureTriedServersIsMutable(); |
| triedServers_.addAll(other.triedServers_); |
| } |
| onChanged(); |
| } |
| if (other.hasTxnId()) { |
| setTxnId(other.getTxnId()); |
| } |
| if (other.hasShouldClaim()) { |
| setShouldClaim(other.getShouldClaim()); |
| } |
| if (other.hasTopic()) { |
| setTopic(other.getTopic()); |
| } |
| if (other.hasPublishRequest()) { |
| mergePublishRequest(other.getPublishRequest()); |
| } |
| if (other.hasSubscribeRequest()) { |
| mergeSubscribeRequest(other.getSubscribeRequest()); |
| } |
| if (other.hasConsumeRequest()) { |
| mergeConsumeRequest(other.getConsumeRequest()); |
| } |
| if (other.hasUnsubscribeRequest()) { |
| mergeUnsubscribeRequest(other.getUnsubscribeRequest()); |
| } |
| if (other.hasStopDeliveryRequest()) { |
| mergeStopDeliveryRequest(other.getStopDeliveryRequest()); |
| } |
| if (other.hasStartDeliveryRequest()) { |
| mergeStartDeliveryRequest(other.getStartDeliveryRequest()); |
| } |
| if (other.hasCloseSubscriptionRequest()) { |
| mergeCloseSubscriptionRequest(other.getCloseSubscriptionRequest()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasProtocolVersion()) { |
| |
| return false; |
| } |
| if (!hasType()) { |
| |
| return false; |
| } |
| if (!hasTxnId()) { |
| |
| return false; |
| } |
| if (!hasTopic()) { |
| |
| return false; |
| } |
| if (hasPublishRequest()) { |
| if (!getPublishRequest().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSubscribeRequest()) { |
| if (!getSubscribeRequest().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasConsumeRequest()) { |
| if (!getConsumeRequest().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasUnsubscribeRequest()) { |
| if (!getUnsubscribeRequest().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasStopDeliveryRequest()) { |
| if (!getStopDeliveryRequest().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasStartDeliveryRequest()) { |
| if (!getStartDeliveryRequest().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasCloseSubscriptionRequest()) { |
| if (!getCloseSubscriptionRequest().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| int rawValue = input.readEnum(); |
| org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion value = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.valueOf(rawValue); |
| if (value == null) { |
| unknownFields.mergeVarintField(1, rawValue); |
| } else { |
| bitField0_ |= 0x00000001; |
| protocolVersion_ = value; |
| } |
| break; |
| } |
| case 16: { |
| int rawValue = input.readEnum(); |
| org.apache.hedwig.protocol.PubSubProtocol.OperationType value = org.apache.hedwig.protocol.PubSubProtocol.OperationType.valueOf(rawValue); |
| if (value == null) { |
| unknownFields.mergeVarintField(2, rawValue); |
| } else { |
| bitField0_ |= 0x00000002; |
| type_ = value; |
| } |
| break; |
| } |
| case 26: { |
| ensureTriedServersIsMutable(); |
| triedServers_.add(input.readBytes()); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| txnId_ = input.readUInt64(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000010; |
| shouldClaim_ = input.readBool(); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000020; |
| topic_ = input.readBytes(); |
| break; |
| } |
| case 418: { |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.newBuilder(); |
| if (hasPublishRequest()) { |
| subBuilder.mergeFrom(getPublishRequest()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPublishRequest(subBuilder.buildPartial()); |
| break; |
| } |
| case 426: { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.newBuilder(); |
| if (hasSubscribeRequest()) { |
| subBuilder.mergeFrom(getSubscribeRequest()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSubscribeRequest(subBuilder.buildPartial()); |
| break; |
| } |
| case 434: { |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.newBuilder(); |
| if (hasConsumeRequest()) { |
| subBuilder.mergeFrom(getConsumeRequest()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setConsumeRequest(subBuilder.buildPartial()); |
| break; |
| } |
| case 442: { |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.newBuilder(); |
| if (hasUnsubscribeRequest()) { |
| subBuilder.mergeFrom(getUnsubscribeRequest()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setUnsubscribeRequest(subBuilder.buildPartial()); |
| break; |
| } |
| case 450: { |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.newBuilder(); |
| if (hasStopDeliveryRequest()) { |
| subBuilder.mergeFrom(getStopDeliveryRequest()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setStopDeliveryRequest(subBuilder.buildPartial()); |
| break; |
| } |
| case 458: { |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.newBuilder(); |
| if (hasStartDeliveryRequest()) { |
| subBuilder.mergeFrom(getStartDeliveryRequest()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setStartDeliveryRequest(subBuilder.buildPartial()); |
| break; |
| } |
| case 466: { |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.newBuilder(); |
| if (hasCloseSubscriptionRequest()) { |
| subBuilder.mergeFrom(getCloseSubscriptionRequest()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setCloseSubscriptionRequest(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required .Hedwig.ProtocolVersion protocolVersion = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion protocolVersion_ = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.VERSION_ONE; |
| public boolean hasProtocolVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion getProtocolVersion() { |
| return protocolVersion_; |
| } |
| public Builder setProtocolVersion(org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| protocolVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearProtocolVersion() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| protocolVersion_ = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.VERSION_ONE; |
| onChanged(); |
| return this; |
| } |
| |
| // required .Hedwig.OperationType type = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.OperationType type_ = org.apache.hedwig.protocol.PubSubProtocol.OperationType.PUBLISH; |
| public boolean hasType() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.OperationType getType() { |
| return type_; |
| } |
| public Builder setType(org.apache.hedwig.protocol.PubSubProtocol.OperationType value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| type_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearType() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| type_ = org.apache.hedwig.protocol.PubSubProtocol.OperationType.PUBLISH; |
| onChanged(); |
| return this; |
| } |
| |
| // repeated bytes triedServers = 3; |
| private java.util.List<com.google.protobuf.ByteString> triedServers_ = java.util.Collections.emptyList();; |
| private void ensureTriedServersIsMutable() { |
| if (!((bitField0_ & 0x00000004) == 0x00000004)) { |
| triedServers_ = new java.util.ArrayList<com.google.protobuf.ByteString>(triedServers_); |
| bitField0_ |= 0x00000004; |
| } |
| } |
| public java.util.List<com.google.protobuf.ByteString> |
| getTriedServersList() { |
| return java.util.Collections.unmodifiableList(triedServers_); |
| } |
| public int getTriedServersCount() { |
| return triedServers_.size(); |
| } |
| public com.google.protobuf.ByteString getTriedServers(int index) { |
| return triedServers_.get(index); |
| } |
| public Builder setTriedServers( |
| int index, com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTriedServersIsMutable(); |
| triedServers_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| public Builder addTriedServers(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTriedServersIsMutable(); |
| triedServers_.add(value); |
| onChanged(); |
| return this; |
| } |
| public Builder addAllTriedServers( |
| java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { |
| ensureTriedServersIsMutable(); |
| super.addAll(values, triedServers_); |
| onChanged(); |
| return this; |
| } |
| public Builder clearTriedServers() { |
| triedServers_ = java.util.Collections.emptyList();; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| onChanged(); |
| return this; |
| } |
| |
| // required uint64 txnId = 4; |
| private long txnId_ ; |
| public boolean hasTxnId() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public long getTxnId() { |
| return txnId_; |
| } |
| public Builder setTxnId(long value) { |
| bitField0_ |= 0x00000008; |
| txnId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearTxnId() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| txnId_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool shouldClaim = 5; |
| private boolean shouldClaim_ ; |
| public boolean hasShouldClaim() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public boolean getShouldClaim() { |
| return shouldClaim_; |
| } |
| public Builder setShouldClaim(boolean value) { |
| bitField0_ |= 0x00000010; |
| shouldClaim_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearShouldClaim() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| shouldClaim_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // required bytes topic = 6; |
| private com.google.protobuf.ByteString topic_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public com.google.protobuf.ByteString getTopic() { |
| return topic_; |
| } |
| public Builder setTopic(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| topic_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearTopic() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| topic_ = getDefaultInstance().getTopic(); |
| onChanged(); |
| return this; |
| } |
| |
| // optional .Hedwig.PublishRequest publishRequest = 52; |
| private org.apache.hedwig.protocol.PubSubProtocol.PublishRequest publishRequest_ = org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest, org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.PublishRequestOrBuilder> publishRequestBuilder_; |
| public boolean hasPublishRequest() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishRequest getPublishRequest() { |
| if (publishRequestBuilder_ == null) { |
| return publishRequest_; |
| } else { |
| return publishRequestBuilder_.getMessage(); |
| } |
| } |
| public Builder setPublishRequest(org.apache.hedwig.protocol.PubSubProtocol.PublishRequest value) { |
| if (publishRequestBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| publishRequest_ = value; |
| onChanged(); |
| } else { |
| publishRequestBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder setPublishRequest( |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.Builder builderForValue) { |
| if (publishRequestBuilder_ == null) { |
| publishRequest_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| publishRequestBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder mergePublishRequest(org.apache.hedwig.protocol.PubSubProtocol.PublishRequest value) { |
| if (publishRequestBuilder_ == null) { |
| if (((bitField0_ & 0x00000040) == 0x00000040) && |
| publishRequest_ != org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.getDefaultInstance()) { |
| publishRequest_ = |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.newBuilder(publishRequest_).mergeFrom(value).buildPartial(); |
| } else { |
| publishRequest_ = value; |
| } |
| onChanged(); |
| } else { |
| publishRequestBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder clearPublishRequest() { |
| if (publishRequestBuilder_ == null) { |
| publishRequest_ = org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.getDefaultInstance(); |
| onChanged(); |
| } else { |
| publishRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000040); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.Builder getPublishRequestBuilder() { |
| bitField0_ |= 0x00000040; |
| onChanged(); |
| return getPublishRequestFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishRequestOrBuilder getPublishRequestOrBuilder() { |
| if (publishRequestBuilder_ != null) { |
| return publishRequestBuilder_.getMessageOrBuilder(); |
| } else { |
| return publishRequest_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest, org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.PublishRequestOrBuilder> |
| getPublishRequestFieldBuilder() { |
| if (publishRequestBuilder_ == null) { |
| publishRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest, org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.PublishRequestOrBuilder>( |
| publishRequest_, |
| getParentForChildren(), |
| isClean()); |
| publishRequest_ = null; |
| } |
| return publishRequestBuilder_; |
| } |
| |
| // optional .Hedwig.SubscribeRequest subscribeRequest = 53; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest subscribeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest, org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequestOrBuilder> subscribeRequestBuilder_; |
| public boolean hasSubscribeRequest() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest getSubscribeRequest() { |
| if (subscribeRequestBuilder_ == null) { |
| return subscribeRequest_; |
| } else { |
| return subscribeRequestBuilder_.getMessage(); |
| } |
| } |
| public Builder setSubscribeRequest(org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest value) { |
| if (subscribeRequestBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| subscribeRequest_ = value; |
| onChanged(); |
| } else { |
| subscribeRequestBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder setSubscribeRequest( |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.Builder builderForValue) { |
| if (subscribeRequestBuilder_ == null) { |
| subscribeRequest_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| subscribeRequestBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder mergeSubscribeRequest(org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest value) { |
| if (subscribeRequestBuilder_ == null) { |
| if (((bitField0_ & 0x00000080) == 0x00000080) && |
| subscribeRequest_ != org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDefaultInstance()) { |
| subscribeRequest_ = |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.newBuilder(subscribeRequest_).mergeFrom(value).buildPartial(); |
| } else { |
| subscribeRequest_ = value; |
| } |
| onChanged(); |
| } else { |
| subscribeRequestBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder clearSubscribeRequest() { |
| if (subscribeRequestBuilder_ == null) { |
| subscribeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDefaultInstance(); |
| onChanged(); |
| } else { |
| subscribeRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000080); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.Builder getSubscribeRequestBuilder() { |
| bitField0_ |= 0x00000080; |
| onChanged(); |
| return getSubscribeRequestFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequestOrBuilder getSubscribeRequestOrBuilder() { |
| if (subscribeRequestBuilder_ != null) { |
| return subscribeRequestBuilder_.getMessageOrBuilder(); |
| } else { |
| return subscribeRequest_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest, org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequestOrBuilder> |
| getSubscribeRequestFieldBuilder() { |
| if (subscribeRequestBuilder_ == null) { |
| subscribeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest, org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequestOrBuilder>( |
| subscribeRequest_, |
| getParentForChildren(), |
| isClean()); |
| subscribeRequest_ = null; |
| } |
| return subscribeRequestBuilder_; |
| } |
| |
| // optional .Hedwig.ConsumeRequest consumeRequest = 54; |
| private org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest consumeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest, org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequestOrBuilder> consumeRequestBuilder_; |
| public boolean hasConsumeRequest() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest getConsumeRequest() { |
| if (consumeRequestBuilder_ == null) { |
| return consumeRequest_; |
| } else { |
| return consumeRequestBuilder_.getMessage(); |
| } |
| } |
| public Builder setConsumeRequest(org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest value) { |
| if (consumeRequestBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| consumeRequest_ = value; |
| onChanged(); |
| } else { |
| consumeRequestBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder setConsumeRequest( |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.Builder builderForValue) { |
| if (consumeRequestBuilder_ == null) { |
| consumeRequest_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| consumeRequestBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder mergeConsumeRequest(org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest value) { |
| if (consumeRequestBuilder_ == null) { |
| if (((bitField0_ & 0x00000100) == 0x00000100) && |
| consumeRequest_ != org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.getDefaultInstance()) { |
| consumeRequest_ = |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.newBuilder(consumeRequest_).mergeFrom(value).buildPartial(); |
| } else { |
| consumeRequest_ = value; |
| } |
| onChanged(); |
| } else { |
| consumeRequestBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder clearConsumeRequest() { |
| if (consumeRequestBuilder_ == null) { |
| consumeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.getDefaultInstance(); |
| onChanged(); |
| } else { |
| consumeRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000100); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.Builder getConsumeRequestBuilder() { |
| bitField0_ |= 0x00000100; |
| onChanged(); |
| return getConsumeRequestFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequestOrBuilder getConsumeRequestOrBuilder() { |
| if (consumeRequestBuilder_ != null) { |
| return consumeRequestBuilder_.getMessageOrBuilder(); |
| } else { |
| return consumeRequest_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest, org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequestOrBuilder> |
| getConsumeRequestFieldBuilder() { |
| if (consumeRequestBuilder_ == null) { |
| consumeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest, org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequestOrBuilder>( |
| consumeRequest_, |
| getParentForChildren(), |
| isClean()); |
| consumeRequest_ = null; |
| } |
| return consumeRequestBuilder_; |
| } |
| |
| // optional .Hedwig.UnsubscribeRequest unsubscribeRequest = 55; |
| private org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest unsubscribeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest, org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequestOrBuilder> unsubscribeRequestBuilder_; |
| public boolean hasUnsubscribeRequest() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest getUnsubscribeRequest() { |
| if (unsubscribeRequestBuilder_ == null) { |
| return unsubscribeRequest_; |
| } else { |
| return unsubscribeRequestBuilder_.getMessage(); |
| } |
| } |
| public Builder setUnsubscribeRequest(org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest value) { |
| if (unsubscribeRequestBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| unsubscribeRequest_ = value; |
| onChanged(); |
| } else { |
| unsubscribeRequestBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000200; |
| return this; |
| } |
| public Builder setUnsubscribeRequest( |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.Builder builderForValue) { |
| if (unsubscribeRequestBuilder_ == null) { |
| unsubscribeRequest_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| unsubscribeRequestBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000200; |
| return this; |
| } |
| public Builder mergeUnsubscribeRequest(org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest value) { |
| if (unsubscribeRequestBuilder_ == null) { |
| if (((bitField0_ & 0x00000200) == 0x00000200) && |
| unsubscribeRequest_ != org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.getDefaultInstance()) { |
| unsubscribeRequest_ = |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.newBuilder(unsubscribeRequest_).mergeFrom(value).buildPartial(); |
| } else { |
| unsubscribeRequest_ = value; |
| } |
| onChanged(); |
| } else { |
| unsubscribeRequestBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000200; |
| return this; |
| } |
| public Builder clearUnsubscribeRequest() { |
| if (unsubscribeRequestBuilder_ == null) { |
| unsubscribeRequest_ = org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.getDefaultInstance(); |
| onChanged(); |
| } else { |
| unsubscribeRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000200); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.Builder getUnsubscribeRequestBuilder() { |
| bitField0_ |= 0x00000200; |
| onChanged(); |
| return getUnsubscribeRequestFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequestOrBuilder getUnsubscribeRequestOrBuilder() { |
| if (unsubscribeRequestBuilder_ != null) { |
| return unsubscribeRequestBuilder_.getMessageOrBuilder(); |
| } else { |
| return unsubscribeRequest_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest, org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequestOrBuilder> |
| getUnsubscribeRequestFieldBuilder() { |
| if (unsubscribeRequestBuilder_ == null) { |
| unsubscribeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest, org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequestOrBuilder>( |
| unsubscribeRequest_, |
| getParentForChildren(), |
| isClean()); |
| unsubscribeRequest_ = null; |
| } |
| return unsubscribeRequestBuilder_; |
| } |
| |
| // optional .Hedwig.StopDeliveryRequest stopDeliveryRequest = 56; |
| private org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest stopDeliveryRequest_ = org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest, org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequestOrBuilder> stopDeliveryRequestBuilder_; |
| public boolean hasStopDeliveryRequest() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest getStopDeliveryRequest() { |
| if (stopDeliveryRequestBuilder_ == null) { |
| return stopDeliveryRequest_; |
| } else { |
| return stopDeliveryRequestBuilder_.getMessage(); |
| } |
| } |
| public Builder setStopDeliveryRequest(org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest value) { |
| if (stopDeliveryRequestBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| stopDeliveryRequest_ = value; |
| onChanged(); |
| } else { |
| stopDeliveryRequestBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000400; |
| return this; |
| } |
| public Builder setStopDeliveryRequest( |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.Builder builderForValue) { |
| if (stopDeliveryRequestBuilder_ == null) { |
| stopDeliveryRequest_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| stopDeliveryRequestBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000400; |
| return this; |
| } |
| public Builder mergeStopDeliveryRequest(org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest value) { |
| if (stopDeliveryRequestBuilder_ == null) { |
| if (((bitField0_ & 0x00000400) == 0x00000400) && |
| stopDeliveryRequest_ != org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.getDefaultInstance()) { |
| stopDeliveryRequest_ = |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.newBuilder(stopDeliveryRequest_).mergeFrom(value).buildPartial(); |
| } else { |
| stopDeliveryRequest_ = value; |
| } |
| onChanged(); |
| } else { |
| stopDeliveryRequestBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000400; |
| return this; |
| } |
| public Builder clearStopDeliveryRequest() { |
| if (stopDeliveryRequestBuilder_ == null) { |
| stopDeliveryRequest_ = org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.getDefaultInstance(); |
| onChanged(); |
| } else { |
| stopDeliveryRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000400); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.Builder getStopDeliveryRequestBuilder() { |
| bitField0_ |= 0x00000400; |
| onChanged(); |
| return getStopDeliveryRequestFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequestOrBuilder getStopDeliveryRequestOrBuilder() { |
| if (stopDeliveryRequestBuilder_ != null) { |
| return stopDeliveryRequestBuilder_.getMessageOrBuilder(); |
| } else { |
| return stopDeliveryRequest_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest, org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequestOrBuilder> |
| getStopDeliveryRequestFieldBuilder() { |
| if (stopDeliveryRequestBuilder_ == null) { |
| stopDeliveryRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest, org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequestOrBuilder>( |
| stopDeliveryRequest_, |
| getParentForChildren(), |
| isClean()); |
| stopDeliveryRequest_ = null; |
| } |
| return stopDeliveryRequestBuilder_; |
| } |
| |
| // optional .Hedwig.StartDeliveryRequest startDeliveryRequest = 57; |
| private org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest startDeliveryRequest_ = org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest, org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequestOrBuilder> startDeliveryRequestBuilder_; |
| public boolean hasStartDeliveryRequest() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest getStartDeliveryRequest() { |
| if (startDeliveryRequestBuilder_ == null) { |
| return startDeliveryRequest_; |
| } else { |
| return startDeliveryRequestBuilder_.getMessage(); |
| } |
| } |
| public Builder setStartDeliveryRequest(org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest value) { |
| if (startDeliveryRequestBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| startDeliveryRequest_ = value; |
| onChanged(); |
| } else { |
| startDeliveryRequestBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder setStartDeliveryRequest( |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.Builder builderForValue) { |
| if (startDeliveryRequestBuilder_ == null) { |
| startDeliveryRequest_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| startDeliveryRequestBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder mergeStartDeliveryRequest(org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest value) { |
| if (startDeliveryRequestBuilder_ == null) { |
| if (((bitField0_ & 0x00000800) == 0x00000800) && |
| startDeliveryRequest_ != org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.getDefaultInstance()) { |
| startDeliveryRequest_ = |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.newBuilder(startDeliveryRequest_).mergeFrom(value).buildPartial(); |
| } else { |
| startDeliveryRequest_ = value; |
| } |
| onChanged(); |
| } else { |
| startDeliveryRequestBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder clearStartDeliveryRequest() { |
| if (startDeliveryRequestBuilder_ == null) { |
| startDeliveryRequest_ = org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.getDefaultInstance(); |
| onChanged(); |
| } else { |
| startDeliveryRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000800); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.Builder getStartDeliveryRequestBuilder() { |
| bitField0_ |= 0x00000800; |
| onChanged(); |
| return getStartDeliveryRequestFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequestOrBuilder getStartDeliveryRequestOrBuilder() { |
| if (startDeliveryRequestBuilder_ != null) { |
| return startDeliveryRequestBuilder_.getMessageOrBuilder(); |
| } else { |
| return startDeliveryRequest_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest, org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequestOrBuilder> |
| getStartDeliveryRequestFieldBuilder() { |
| if (startDeliveryRequestBuilder_ == null) { |
| startDeliveryRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest, org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequestOrBuilder>( |
| startDeliveryRequest_, |
| getParentForChildren(), |
| isClean()); |
| startDeliveryRequest_ = null; |
| } |
| return startDeliveryRequestBuilder_; |
| } |
| |
| // optional .Hedwig.CloseSubscriptionRequest closeSubscriptionRequest = 58; |
| private org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest closeSubscriptionRequest_ = org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest, org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequestOrBuilder> closeSubscriptionRequestBuilder_; |
| public boolean hasCloseSubscriptionRequest() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest getCloseSubscriptionRequest() { |
| if (closeSubscriptionRequestBuilder_ == null) { |
| return closeSubscriptionRequest_; |
| } else { |
| return closeSubscriptionRequestBuilder_.getMessage(); |
| } |
| } |
| public Builder setCloseSubscriptionRequest(org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest value) { |
| if (closeSubscriptionRequestBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| closeSubscriptionRequest_ = value; |
| onChanged(); |
| } else { |
| closeSubscriptionRequestBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00001000; |
| return this; |
| } |
| public Builder setCloseSubscriptionRequest( |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.Builder builderForValue) { |
| if (closeSubscriptionRequestBuilder_ == null) { |
| closeSubscriptionRequest_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| closeSubscriptionRequestBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00001000; |
| return this; |
| } |
| public Builder mergeCloseSubscriptionRequest(org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest value) { |
| if (closeSubscriptionRequestBuilder_ == null) { |
| if (((bitField0_ & 0x00001000) == 0x00001000) && |
| closeSubscriptionRequest_ != org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.getDefaultInstance()) { |
| closeSubscriptionRequest_ = |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.newBuilder(closeSubscriptionRequest_).mergeFrom(value).buildPartial(); |
| } else { |
| closeSubscriptionRequest_ = value; |
| } |
| onChanged(); |
| } else { |
| closeSubscriptionRequestBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00001000; |
| return this; |
| } |
| public Builder clearCloseSubscriptionRequest() { |
| if (closeSubscriptionRequestBuilder_ == null) { |
| closeSubscriptionRequest_ = org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.getDefaultInstance(); |
| onChanged(); |
| } else { |
| closeSubscriptionRequestBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00001000); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.Builder getCloseSubscriptionRequestBuilder() { |
| bitField0_ |= 0x00001000; |
| onChanged(); |
| return getCloseSubscriptionRequestFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequestOrBuilder getCloseSubscriptionRequestOrBuilder() { |
| if (closeSubscriptionRequestBuilder_ != null) { |
| return closeSubscriptionRequestBuilder_.getMessageOrBuilder(); |
| } else { |
| return closeSubscriptionRequest_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest, org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequestOrBuilder> |
| getCloseSubscriptionRequestFieldBuilder() { |
| if (closeSubscriptionRequestBuilder_ == null) { |
| closeSubscriptionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest, org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.Builder, org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequestOrBuilder>( |
| closeSubscriptionRequest_, |
| getParentForChildren(), |
| isClean()); |
| closeSubscriptionRequest_ = null; |
| } |
| return closeSubscriptionRequestBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.PubSubRequest) |
| } |
| |
| static { |
| defaultInstance = new PubSubRequest(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.PubSubRequest) |
| } |
| |
| public interface PublishRequestOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required .Hedwig.Message msg = 2; |
| boolean hasMsg(); |
| org.apache.hedwig.protocol.PubSubProtocol.Message getMsg(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder getMsgOrBuilder(); |
| } |
| public static final class PublishRequest extends |
| com.google.protobuf.GeneratedMessage |
| implements PublishRequestOrBuilder { |
| // Use PublishRequest.newBuilder() to construct. |
| private PublishRequest(Builder builder) { |
| super(builder); |
| } |
| private PublishRequest(boolean noInit) {} |
| |
| private static final PublishRequest defaultInstance; |
| public static PublishRequest getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public PublishRequest getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PublishRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PublishRequest_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required .Hedwig.Message msg = 2; |
| public static final int MSG_FIELD_NUMBER = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.Message msg_; |
| public boolean hasMsg() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Message getMsg() { |
| return msg_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder getMsgOrBuilder() { |
| return msg_; |
| } |
| |
| private void initFields() { |
| msg_ = org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasMsg()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!getMsg().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(2, msg_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, msg_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishRequest parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishRequest 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.PublishRequest parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishRequest 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.PublishRequest parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishRequest 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.PublishRequest 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.PublishRequest 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.PublishRequest parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishRequest 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.PublishRequest prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.PublishRequestOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PublishRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PublishRequest_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getMsgFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (msgBuilder_ == null) { |
| msg_ = org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance(); |
| } else { |
| msgBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishRequest getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishRequest build() { |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.PublishRequest buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishRequest buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest result = new org.apache.hedwig.protocol.PubSubProtocol.PublishRequest(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (msgBuilder_ == null) { |
| result.msg_ = msg_; |
| } else { |
| result.msg_ = msgBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.PublishRequest) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.PublishRequest)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.PublishRequest other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.getDefaultInstance()) return this; |
| if (other.hasMsg()) { |
| mergeMsg(other.getMsg()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasMsg()) { |
| |
| return false; |
| } |
| if (!getMsg().isInitialized()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| org.apache.hedwig.protocol.PubSubProtocol.Message.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.Message.newBuilder(); |
| if (hasMsg()) { |
| subBuilder.mergeFrom(getMsg()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setMsg(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required .Hedwig.Message msg = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.Message msg_ = org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Message, org.apache.hedwig.protocol.PubSubProtocol.Message.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder> msgBuilder_; |
| public boolean hasMsg() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Message getMsg() { |
| if (msgBuilder_ == null) { |
| return msg_; |
| } else { |
| return msgBuilder_.getMessage(); |
| } |
| } |
| public Builder setMsg(org.apache.hedwig.protocol.PubSubProtocol.Message value) { |
| if (msgBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| msg_ = value; |
| onChanged(); |
| } else { |
| msgBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setMsg( |
| org.apache.hedwig.protocol.PubSubProtocol.Message.Builder builderForValue) { |
| if (msgBuilder_ == null) { |
| msg_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| msgBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergeMsg(org.apache.hedwig.protocol.PubSubProtocol.Message value) { |
| if (msgBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| msg_ != org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance()) { |
| msg_ = |
| org.apache.hedwig.protocol.PubSubProtocol.Message.newBuilder(msg_).mergeFrom(value).buildPartial(); |
| } else { |
| msg_ = value; |
| } |
| onChanged(); |
| } else { |
| msgBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearMsg() { |
| if (msgBuilder_ == null) { |
| msg_ = org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance(); |
| onChanged(); |
| } else { |
| msgBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Message.Builder getMsgBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getMsgFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder getMsgOrBuilder() { |
| if (msgBuilder_ != null) { |
| return msgBuilder_.getMessageOrBuilder(); |
| } else { |
| return msg_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Message, org.apache.hedwig.protocol.PubSubProtocol.Message.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder> |
| getMsgFieldBuilder() { |
| if (msgBuilder_ == null) { |
| msgBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Message, org.apache.hedwig.protocol.PubSubProtocol.Message.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder>( |
| msg_, |
| getParentForChildren(), |
| isClean()); |
| msg_ = null; |
| } |
| return msgBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.PublishRequest) |
| } |
| |
| static { |
| defaultInstance = new PublishRequest(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.PublishRequest) |
| } |
| |
| public interface SubscriptionPreferencesOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional .Hedwig.Map options = 1; |
| boolean hasOptions(); |
| org.apache.hedwig.protocol.PubSubProtocol.Map getOptions(); |
| org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getOptionsOrBuilder(); |
| |
| // optional uint32 messageBound = 2; |
| boolean hasMessageBound(); |
| int getMessageBound(); |
| |
| // optional string messageFilter = 3; |
| boolean hasMessageFilter(); |
| String getMessageFilter(); |
| |
| // optional uint32 messageWindowSize = 4; |
| boolean hasMessageWindowSize(); |
| int getMessageWindowSize(); |
| } |
| public static final class SubscriptionPreferences extends |
| com.google.protobuf.GeneratedMessage |
| implements SubscriptionPreferencesOrBuilder { |
| // Use SubscriptionPreferences.newBuilder() to construct. |
| private SubscriptionPreferences(Builder builder) { |
| super(builder); |
| } |
| private SubscriptionPreferences(boolean noInit) {} |
| |
| private static final SubscriptionPreferences defaultInstance; |
| public static SubscriptionPreferences getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public SubscriptionPreferences getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionPreferences_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionPreferences_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional .Hedwig.Map options = 1; |
| public static final int OPTIONS_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.Map options_; |
| public boolean hasOptions() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map getOptions() { |
| return options_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getOptionsOrBuilder() { |
| return options_; |
| } |
| |
| // optional uint32 messageBound = 2; |
| public static final int MESSAGEBOUND_FIELD_NUMBER = 2; |
| private int messageBound_; |
| public boolean hasMessageBound() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getMessageBound() { |
| return messageBound_; |
| } |
| |
| // optional string messageFilter = 3; |
| public static final int MESSAGEFILTER_FIELD_NUMBER = 3; |
| private java.lang.Object messageFilter_; |
| public boolean hasMessageFilter() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getMessageFilter() { |
| java.lang.Object ref = messageFilter_; |
| if (ref instanceof String) { |
| return (String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| String s = bs.toStringUtf8(); |
| if (com.google.protobuf.Internal.isValidUtf8(bs)) { |
| messageFilter_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getMessageFilterBytes() { |
| java.lang.Object ref = messageFilter_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| messageFilter_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional uint32 messageWindowSize = 4; |
| public static final int MESSAGEWINDOWSIZE_FIELD_NUMBER = 4; |
| private int messageWindowSize_; |
| public boolean hasMessageWindowSize() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public int getMessageWindowSize() { |
| return messageWindowSize_; |
| } |
| |
| private void initFields() { |
| options_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| messageBound_ = 0; |
| messageFilter_ = ""; |
| messageWindowSize_ = 0; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(1, options_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt32(2, messageBound_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(3, getMessageFilterBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeUInt32(4, messageWindowSize_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, options_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(2, messageBound_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, getMessageFilterBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(4, messageWindowSize_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences 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.SubscriptionPreferences parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences 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.SubscriptionPreferences parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences 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.SubscriptionPreferences 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.SubscriptionPreferences 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.SubscriptionPreferences parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences 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.SubscriptionPreferences prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionPreferences_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionPreferences_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getOptionsFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (optionsBuilder_ == null) { |
| options_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| } else { |
| optionsBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| messageBound_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messageFilter_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| messageWindowSize_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences build() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences result = new org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (optionsBuilder_ == null) { |
| result.options_ = options_; |
| } else { |
| result.options_ = optionsBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.messageBound_ = messageBound_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.messageFilter_ = messageFilter_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.messageWindowSize_ = messageWindowSize_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance()) return this; |
| if (other.hasOptions()) { |
| mergeOptions(other.getOptions()); |
| } |
| if (other.hasMessageBound()) { |
| setMessageBound(other.getMessageBound()); |
| } |
| if (other.hasMessageFilter()) { |
| setMessageFilter(other.getMessageFilter()); |
| } |
| if (other.hasMessageWindowSize()) { |
| setMessageWindowSize(other.getMessageWindowSize()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.Map.newBuilder(); |
| if (hasOptions()) { |
| subBuilder.mergeFrom(getOptions()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setOptions(subBuilder.buildPartial()); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| messageBound_ = input.readUInt32(); |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000004; |
| messageFilter_ = input.readBytes(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| messageWindowSize_ = input.readUInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional .Hedwig.Map options = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.Map options_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder> optionsBuilder_; |
| public boolean hasOptions() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map getOptions() { |
| if (optionsBuilder_ == null) { |
| return options_; |
| } else { |
| return optionsBuilder_.getMessage(); |
| } |
| } |
| public Builder setOptions(org.apache.hedwig.protocol.PubSubProtocol.Map value) { |
| if (optionsBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| options_ = value; |
| onChanged(); |
| } else { |
| optionsBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setOptions( |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Builder builderForValue) { |
| if (optionsBuilder_ == null) { |
| options_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| optionsBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergeOptions(org.apache.hedwig.protocol.PubSubProtocol.Map value) { |
| if (optionsBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| options_ != org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance()) { |
| options_ = |
| org.apache.hedwig.protocol.PubSubProtocol.Map.newBuilder(options_).mergeFrom(value).buildPartial(); |
| } else { |
| options_ = value; |
| } |
| onChanged(); |
| } else { |
| optionsBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearOptions() { |
| if (optionsBuilder_ == null) { |
| options_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| onChanged(); |
| } else { |
| optionsBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Builder getOptionsBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getOptionsFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getOptionsOrBuilder() { |
| if (optionsBuilder_ != null) { |
| return optionsBuilder_.getMessageOrBuilder(); |
| } else { |
| return options_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder> |
| getOptionsFieldBuilder() { |
| if (optionsBuilder_ == null) { |
| optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder>( |
| options_, |
| getParentForChildren(), |
| isClean()); |
| options_ = null; |
| } |
| return optionsBuilder_; |
| } |
| |
| // optional uint32 messageBound = 2; |
| private int messageBound_ ; |
| public boolean hasMessageBound() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getMessageBound() { |
| return messageBound_; |
| } |
| public Builder setMessageBound(int value) { |
| bitField0_ |= 0x00000002; |
| messageBound_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageBound() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messageBound_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string messageFilter = 3; |
| private java.lang.Object messageFilter_ = ""; |
| public boolean hasMessageFilter() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getMessageFilter() { |
| java.lang.Object ref = messageFilter_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| messageFilter_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setMessageFilter(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| messageFilter_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageFilter() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| messageFilter_ = getDefaultInstance().getMessageFilter(); |
| onChanged(); |
| return this; |
| } |
| void setMessageFilter(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000004; |
| messageFilter_ = value; |
| onChanged(); |
| } |
| |
| // optional uint32 messageWindowSize = 4; |
| private int messageWindowSize_ ; |
| public boolean hasMessageWindowSize() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public int getMessageWindowSize() { |
| return messageWindowSize_; |
| } |
| public Builder setMessageWindowSize(int value) { |
| bitField0_ |= 0x00000008; |
| messageWindowSize_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageWindowSize() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| messageWindowSize_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.SubscriptionPreferences) |
| } |
| |
| static { |
| defaultInstance = new SubscriptionPreferences(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.SubscriptionPreferences) |
| } |
| |
| public interface SubscribeRequestOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes subscriberId = 2; |
| boolean hasSubscriberId(); |
| com.google.protobuf.ByteString getSubscriberId(); |
| |
| // optional .Hedwig.SubscribeRequest.CreateOrAttach createOrAttach = 3 [default = CREATE_OR_ATTACH]; |
| boolean hasCreateOrAttach(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach getCreateOrAttach(); |
| |
| // optional bool synchronous = 4 [default = false]; |
| boolean hasSynchronous(); |
| boolean getSynchronous(); |
| |
| // optional uint32 messageBound = 5; |
| boolean hasMessageBound(); |
| int getMessageBound(); |
| |
| // optional .Hedwig.SubscriptionPreferences preferences = 6; |
| boolean hasPreferences(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder(); |
| |
| // optional bool forceAttach = 7 [default = false]; |
| boolean hasForceAttach(); |
| boolean getForceAttach(); |
| } |
| public static final class SubscribeRequest extends |
| com.google.protobuf.GeneratedMessage |
| implements SubscribeRequestOrBuilder { |
| // Use SubscribeRequest.newBuilder() to construct. |
| private SubscribeRequest(Builder builder) { |
| super(builder); |
| } |
| private SubscribeRequest(boolean noInit) {} |
| |
| private static final SubscribeRequest defaultInstance; |
| public static SubscribeRequest getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public SubscribeRequest getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscribeRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscribeRequest_fieldAccessorTable; |
| } |
| |
| public enum CreateOrAttach |
| implements com.google.protobuf.ProtocolMessageEnum { |
| CREATE(0, 0), |
| ATTACH(1, 1), |
| CREATE_OR_ATTACH(2, 2), |
| ; |
| |
| public static final int CREATE_VALUE = 0; |
| public static final int ATTACH_VALUE = 1; |
| public static final int CREATE_OR_ATTACH_VALUE = 2; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static CreateOrAttach valueOf(int value) { |
| switch (value) { |
| case 0: return CREATE; |
| case 1: return ATTACH; |
| case 2: return CREATE_OR_ATTACH; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<CreateOrAttach> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<CreateOrAttach> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<CreateOrAttach>() { |
| public CreateOrAttach findValueByNumber(int number) { |
| return CreateOrAttach.valueOf(number); |
| } |
| }; |
| |
| public final com.google.protobuf.Descriptors.EnumValueDescriptor |
| getValueDescriptor() { |
| return getDescriptor().getValues().get(index); |
| } |
| public final com.google.protobuf.Descriptors.EnumDescriptor |
| getDescriptorForType() { |
| return getDescriptor(); |
| } |
| public static final com.google.protobuf.Descriptors.EnumDescriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDescriptor().getEnumTypes().get(0); |
| } |
| |
| private static final CreateOrAttach[] VALUES = { |
| CREATE, ATTACH, CREATE_OR_ATTACH, |
| }; |
| |
| public static CreateOrAttach 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 CreateOrAttach(int index, int value) { |
| this.index = index; |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:Hedwig.SubscribeRequest.CreateOrAttach) |
| } |
| |
| private int bitField0_; |
| // required bytes subscriberId = 2; |
| public static final int SUBSCRIBERID_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString subscriberId_; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| |
| // optional .Hedwig.SubscribeRequest.CreateOrAttach createOrAttach = 3 [default = CREATE_OR_ATTACH]; |
| public static final int CREATEORATTACH_FIELD_NUMBER = 3; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach createOrAttach_; |
| public boolean hasCreateOrAttach() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach getCreateOrAttach() { |
| return createOrAttach_; |
| } |
| |
| // optional bool synchronous = 4 [default = false]; |
| public static final int SYNCHRONOUS_FIELD_NUMBER = 4; |
| private boolean synchronous_; |
| public boolean hasSynchronous() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public boolean getSynchronous() { |
| return synchronous_; |
| } |
| |
| // optional uint32 messageBound = 5; |
| public static final int MESSAGEBOUND_FIELD_NUMBER = 5; |
| private int messageBound_; |
| public boolean hasMessageBound() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public int getMessageBound() { |
| return messageBound_; |
| } |
| |
| // optional .Hedwig.SubscriptionPreferences preferences = 6; |
| public static final int PREFERENCES_FIELD_NUMBER = 6; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences preferences_; |
| public boolean hasPreferences() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences() { |
| return preferences_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder() { |
| return preferences_; |
| } |
| |
| // optional bool forceAttach = 7 [default = false]; |
| public static final int FORCEATTACH_FIELD_NUMBER = 7; |
| private boolean forceAttach_; |
| public boolean hasForceAttach() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public boolean getForceAttach() { |
| return forceAttach_; |
| } |
| |
| private void initFields() { |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| createOrAttach_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.CREATE_OR_ATTACH; |
| synchronous_ = false; |
| messageBound_ = 0; |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| forceAttach_ = false; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasSubscriberId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, subscriberId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeEnum(3, createOrAttach_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBool(4, synchronous_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeUInt32(5, messageBound_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeMessage(6, preferences_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeBool(7, forceAttach_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, subscriberId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(3, createOrAttach_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(4, synchronous_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(5, messageBound_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(6, preferences_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(7, forceAttach_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest 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.SubscribeRequest parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest 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.SubscribeRequest parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest 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.SubscribeRequest 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.SubscribeRequest 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.SubscribeRequest parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest 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.SubscribeRequest prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequestOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscribeRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscribeRequest_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getPreferencesFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| createOrAttach_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.CREATE_OR_ATTACH; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| synchronous_ = false; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| messageBound_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| if (preferencesBuilder_ == null) { |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| } else { |
| preferencesBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000010); |
| forceAttach_ = false; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest build() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest result = new org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.subscriberId_ = subscriberId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.createOrAttach_ = createOrAttach_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.synchronous_ = synchronous_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.messageBound_ = messageBound_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| if (preferencesBuilder_ == null) { |
| result.preferences_ = preferences_; |
| } else { |
| result.preferences_ = preferencesBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.forceAttach_ = forceAttach_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.getDefaultInstance()) return this; |
| if (other.hasSubscriberId()) { |
| setSubscriberId(other.getSubscriberId()); |
| } |
| if (other.hasCreateOrAttach()) { |
| setCreateOrAttach(other.getCreateOrAttach()); |
| } |
| if (other.hasSynchronous()) { |
| setSynchronous(other.getSynchronous()); |
| } |
| if (other.hasMessageBound()) { |
| setMessageBound(other.getMessageBound()); |
| } |
| if (other.hasPreferences()) { |
| mergePreferences(other.getPreferences()); |
| } |
| if (other.hasForceAttach()) { |
| setForceAttach(other.getForceAttach()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasSubscriberId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000001; |
| subscriberId_ = input.readBytes(); |
| break; |
| } |
| case 24: { |
| int rawValue = input.readEnum(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach value = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.valueOf(rawValue); |
| if (value == null) { |
| unknownFields.mergeVarintField(3, rawValue); |
| } else { |
| bitField0_ |= 0x00000002; |
| createOrAttach_ = value; |
| } |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000004; |
| synchronous_ = input.readBool(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000008; |
| messageBound_ = input.readUInt32(); |
| break; |
| } |
| case 50: { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.newBuilder(); |
| if (hasPreferences()) { |
| subBuilder.mergeFrom(getPreferences()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPreferences(subBuilder.buildPartial()); |
| break; |
| } |
| case 56: { |
| bitField0_ |= 0x00000020; |
| forceAttach_ = input.readBool(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes subscriberId = 2; |
| private com.google.protobuf.ByteString subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| public Builder setSubscriberId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| subscriberId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSubscriberId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| subscriberId_ = getDefaultInstance().getSubscriberId(); |
| onChanged(); |
| return this; |
| } |
| |
| // optional .Hedwig.SubscribeRequest.CreateOrAttach createOrAttach = 3 [default = CREATE_OR_ATTACH]; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach createOrAttach_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.CREATE_OR_ATTACH; |
| public boolean hasCreateOrAttach() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach getCreateOrAttach() { |
| return createOrAttach_; |
| } |
| public Builder setCreateOrAttach(org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| createOrAttach_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearCreateOrAttach() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| createOrAttach_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.CREATE_OR_ATTACH; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool synchronous = 4 [default = false]; |
| private boolean synchronous_ ; |
| public boolean hasSynchronous() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public boolean getSynchronous() { |
| return synchronous_; |
| } |
| public Builder setSynchronous(boolean value) { |
| bitField0_ |= 0x00000004; |
| synchronous_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSynchronous() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| synchronous_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional uint32 messageBound = 5; |
| private int messageBound_ ; |
| public boolean hasMessageBound() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public int getMessageBound() { |
| return messageBound_; |
| } |
| public Builder setMessageBound(int value) { |
| bitField0_ |= 0x00000008; |
| messageBound_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageBound() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| messageBound_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional .Hedwig.SubscriptionPreferences preferences = 6; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder> preferencesBuilder_; |
| public boolean hasPreferences() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences() { |
| if (preferencesBuilder_ == null) { |
| return preferences_; |
| } else { |
| return preferencesBuilder_.getMessage(); |
| } |
| } |
| public Builder setPreferences(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences value) { |
| if (preferencesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| preferences_ = value; |
| onChanged(); |
| } else { |
| preferencesBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder setPreferences( |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder builderForValue) { |
| if (preferencesBuilder_ == null) { |
| preferences_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| preferencesBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder mergePreferences(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences value) { |
| if (preferencesBuilder_ == null) { |
| if (((bitField0_ & 0x00000010) == 0x00000010) && |
| preferences_ != org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance()) { |
| preferences_ = |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.newBuilder(preferences_).mergeFrom(value).buildPartial(); |
| } else { |
| preferences_ = value; |
| } |
| onChanged(); |
| } else { |
| preferencesBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder clearPreferences() { |
| if (preferencesBuilder_ == null) { |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| onChanged(); |
| } else { |
| preferencesBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000010); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder getPreferencesBuilder() { |
| bitField0_ |= 0x00000010; |
| onChanged(); |
| return getPreferencesFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder() { |
| if (preferencesBuilder_ != null) { |
| return preferencesBuilder_.getMessageOrBuilder(); |
| } else { |
| return preferences_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder> |
| getPreferencesFieldBuilder() { |
| if (preferencesBuilder_ == null) { |
| preferencesBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder>( |
| preferences_, |
| getParentForChildren(), |
| isClean()); |
| preferences_ = null; |
| } |
| return preferencesBuilder_; |
| } |
| |
| // optional bool forceAttach = 7 [default = false]; |
| private boolean forceAttach_ ; |
| public boolean hasForceAttach() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public boolean getForceAttach() { |
| return forceAttach_; |
| } |
| public Builder setForceAttach(boolean value) { |
| bitField0_ |= 0x00000020; |
| forceAttach_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearForceAttach() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| forceAttach_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.SubscribeRequest) |
| } |
| |
| static { |
| defaultInstance = new SubscribeRequest(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.SubscribeRequest) |
| } |
| |
| public interface SubscriptionOptionsOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional bool forceAttach = 1 [default = false]; |
| boolean hasForceAttach(); |
| boolean getForceAttach(); |
| |
| // optional .Hedwig.SubscribeRequest.CreateOrAttach createOrAttach = 2 [default = CREATE_OR_ATTACH]; |
| boolean hasCreateOrAttach(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach getCreateOrAttach(); |
| |
| // optional uint32 messageBound = 3 [default = 0]; |
| boolean hasMessageBound(); |
| int getMessageBound(); |
| |
| // optional .Hedwig.Map options = 4; |
| boolean hasOptions(); |
| org.apache.hedwig.protocol.PubSubProtocol.Map getOptions(); |
| org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getOptionsOrBuilder(); |
| |
| // optional string messageFilter = 5; |
| boolean hasMessageFilter(); |
| String getMessageFilter(); |
| |
| // optional uint32 messageWindowSize = 6; |
| boolean hasMessageWindowSize(); |
| int getMessageWindowSize(); |
| |
| // optional bool enableResubscribe = 7 [default = true]; |
| boolean hasEnableResubscribe(); |
| boolean getEnableResubscribe(); |
| } |
| public static final class SubscriptionOptions extends |
| com.google.protobuf.GeneratedMessage |
| implements SubscriptionOptionsOrBuilder { |
| // Use SubscriptionOptions.newBuilder() to construct. |
| private SubscriptionOptions(Builder builder) { |
| super(builder); |
| } |
| private SubscriptionOptions(boolean noInit) {} |
| |
| private static final SubscriptionOptions defaultInstance; |
| public static SubscriptionOptions getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public SubscriptionOptions getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionOptions_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionOptions_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional bool forceAttach = 1 [default = false]; |
| public static final int FORCEATTACH_FIELD_NUMBER = 1; |
| private boolean forceAttach_; |
| public boolean hasForceAttach() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public boolean getForceAttach() { |
| return forceAttach_; |
| } |
| |
| // optional .Hedwig.SubscribeRequest.CreateOrAttach createOrAttach = 2 [default = CREATE_OR_ATTACH]; |
| public static final int CREATEORATTACH_FIELD_NUMBER = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach createOrAttach_; |
| public boolean hasCreateOrAttach() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach getCreateOrAttach() { |
| return createOrAttach_; |
| } |
| |
| // optional uint32 messageBound = 3 [default = 0]; |
| public static final int MESSAGEBOUND_FIELD_NUMBER = 3; |
| private int messageBound_; |
| public boolean hasMessageBound() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public int getMessageBound() { |
| return messageBound_; |
| } |
| |
| // optional .Hedwig.Map options = 4; |
| public static final int OPTIONS_FIELD_NUMBER = 4; |
| private org.apache.hedwig.protocol.PubSubProtocol.Map options_; |
| public boolean hasOptions() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map getOptions() { |
| return options_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getOptionsOrBuilder() { |
| return options_; |
| } |
| |
| // optional string messageFilter = 5; |
| public static final int MESSAGEFILTER_FIELD_NUMBER = 5; |
| private java.lang.Object messageFilter_; |
| public boolean hasMessageFilter() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getMessageFilter() { |
| java.lang.Object ref = messageFilter_; |
| if (ref instanceof String) { |
| return (String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| String s = bs.toStringUtf8(); |
| if (com.google.protobuf.Internal.isValidUtf8(bs)) { |
| messageFilter_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getMessageFilterBytes() { |
| java.lang.Object ref = messageFilter_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| messageFilter_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional uint32 messageWindowSize = 6; |
| public static final int MESSAGEWINDOWSIZE_FIELD_NUMBER = 6; |
| private int messageWindowSize_; |
| public boolean hasMessageWindowSize() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public int getMessageWindowSize() { |
| return messageWindowSize_; |
| } |
| |
| // optional bool enableResubscribe = 7 [default = true]; |
| public static final int ENABLERESUBSCRIBE_FIELD_NUMBER = 7; |
| private boolean enableResubscribe_; |
| public boolean hasEnableResubscribe() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public boolean getEnableResubscribe() { |
| return enableResubscribe_; |
| } |
| |
| private void initFields() { |
| forceAttach_ = false; |
| createOrAttach_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.CREATE_OR_ATTACH; |
| messageBound_ = 0; |
| options_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| messageFilter_ = ""; |
| messageWindowSize_ = 0; |
| enableResubscribe_ = true; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBool(1, forceAttach_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeEnum(2, createOrAttach_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeUInt32(3, messageBound_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeMessage(4, options_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBytes(5, getMessageFilterBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeUInt32(6, messageWindowSize_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeBool(7, enableResubscribe_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(1, forceAttach_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(2, createOrAttach_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(3, messageBound_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(4, options_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(5, getMessageFilterBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(6, messageWindowSize_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(7, enableResubscribe_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions 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.SubscriptionOptions parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions 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.SubscriptionOptions parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions 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.SubscriptionOptions 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.SubscriptionOptions 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.SubscriptionOptions parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions 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.SubscriptionOptions prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptionsOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionOptions_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionOptions_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getOptionsFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| forceAttach_ = false; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| createOrAttach_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.CREATE_OR_ATTACH; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messageBound_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| if (optionsBuilder_ == null) { |
| options_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| } else { |
| optionsBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000008); |
| messageFilter_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| messageWindowSize_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| enableResubscribe_ = true; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions build() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions result = new org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.forceAttach_ = forceAttach_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.createOrAttach_ = createOrAttach_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.messageBound_ = messageBound_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| if (optionsBuilder_ == null) { |
| result.options_ = options_; |
| } else { |
| result.options_ = optionsBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.messageFilter_ = messageFilter_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.messageWindowSize_ = messageWindowSize_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.enableResubscribe_ = enableResubscribe_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions.getDefaultInstance()) return this; |
| if (other.hasForceAttach()) { |
| setForceAttach(other.getForceAttach()); |
| } |
| if (other.hasCreateOrAttach()) { |
| setCreateOrAttach(other.getCreateOrAttach()); |
| } |
| if (other.hasMessageBound()) { |
| setMessageBound(other.getMessageBound()); |
| } |
| if (other.hasOptions()) { |
| mergeOptions(other.getOptions()); |
| } |
| if (other.hasMessageFilter()) { |
| setMessageFilter(other.getMessageFilter()); |
| } |
| if (other.hasMessageWindowSize()) { |
| setMessageWindowSize(other.getMessageWindowSize()); |
| } |
| if (other.hasEnableResubscribe()) { |
| setEnableResubscribe(other.getEnableResubscribe()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| forceAttach_ = input.readBool(); |
| break; |
| } |
| case 16: { |
| int rawValue = input.readEnum(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach value = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.valueOf(rawValue); |
| if (value == null) { |
| unknownFields.mergeVarintField(2, rawValue); |
| } else { |
| bitField0_ |= 0x00000002; |
| createOrAttach_ = value; |
| } |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| messageBound_ = input.readUInt32(); |
| break; |
| } |
| case 34: { |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.Map.newBuilder(); |
| if (hasOptions()) { |
| subBuilder.mergeFrom(getOptions()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setOptions(subBuilder.buildPartial()); |
| break; |
| } |
| case 42: { |
| bitField0_ |= 0x00000010; |
| messageFilter_ = input.readBytes(); |
| break; |
| } |
| case 48: { |
| bitField0_ |= 0x00000020; |
| messageWindowSize_ = input.readUInt32(); |
| break; |
| } |
| case 56: { |
| bitField0_ |= 0x00000040; |
| enableResubscribe_ = input.readBool(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional bool forceAttach = 1 [default = false]; |
| private boolean forceAttach_ ; |
| public boolean hasForceAttach() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public boolean getForceAttach() { |
| return forceAttach_; |
| } |
| public Builder setForceAttach(boolean value) { |
| bitField0_ |= 0x00000001; |
| forceAttach_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearForceAttach() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| forceAttach_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional .Hedwig.SubscribeRequest.CreateOrAttach createOrAttach = 2 [default = CREATE_OR_ATTACH]; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach createOrAttach_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.CREATE_OR_ATTACH; |
| public boolean hasCreateOrAttach() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach getCreateOrAttach() { |
| return createOrAttach_; |
| } |
| public Builder setCreateOrAttach(org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| createOrAttach_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearCreateOrAttach() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| createOrAttach_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.CreateOrAttach.CREATE_OR_ATTACH; |
| onChanged(); |
| return this; |
| } |
| |
| // optional uint32 messageBound = 3 [default = 0]; |
| private int messageBound_ ; |
| public boolean hasMessageBound() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public int getMessageBound() { |
| return messageBound_; |
| } |
| public Builder setMessageBound(int value) { |
| bitField0_ |= 0x00000004; |
| messageBound_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageBound() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| messageBound_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional .Hedwig.Map options = 4; |
| private org.apache.hedwig.protocol.PubSubProtocol.Map options_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder> optionsBuilder_; |
| public boolean hasOptions() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map getOptions() { |
| if (optionsBuilder_ == null) { |
| return options_; |
| } else { |
| return optionsBuilder_.getMessage(); |
| } |
| } |
| public Builder setOptions(org.apache.hedwig.protocol.PubSubProtocol.Map value) { |
| if (optionsBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| options_ = value; |
| onChanged(); |
| } else { |
| optionsBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder setOptions( |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Builder builderForValue) { |
| if (optionsBuilder_ == null) { |
| options_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| optionsBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder mergeOptions(org.apache.hedwig.protocol.PubSubProtocol.Map value) { |
| if (optionsBuilder_ == null) { |
| if (((bitField0_ & 0x00000008) == 0x00000008) && |
| options_ != org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance()) { |
| options_ = |
| org.apache.hedwig.protocol.PubSubProtocol.Map.newBuilder(options_).mergeFrom(value).buildPartial(); |
| } else { |
| options_ = value; |
| } |
| onChanged(); |
| } else { |
| optionsBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder clearOptions() { |
| if (optionsBuilder_ == null) { |
| options_ = org.apache.hedwig.protocol.PubSubProtocol.Map.getDefaultInstance(); |
| onChanged(); |
| } else { |
| optionsBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Map.Builder getOptionsBuilder() { |
| bitField0_ |= 0x00000008; |
| onChanged(); |
| return getOptionsFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder getOptionsOrBuilder() { |
| if (optionsBuilder_ != null) { |
| return optionsBuilder_.getMessageOrBuilder(); |
| } else { |
| return options_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder> |
| getOptionsFieldBuilder() { |
| if (optionsBuilder_ == null) { |
| optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Map, org.apache.hedwig.protocol.PubSubProtocol.Map.Builder, org.apache.hedwig.protocol.PubSubProtocol.MapOrBuilder>( |
| options_, |
| getParentForChildren(), |
| isClean()); |
| options_ = null; |
| } |
| return optionsBuilder_; |
| } |
| |
| // optional string messageFilter = 5; |
| private java.lang.Object messageFilter_ = ""; |
| public boolean hasMessageFilter() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getMessageFilter() { |
| java.lang.Object ref = messageFilter_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| messageFilter_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setMessageFilter(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| messageFilter_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageFilter() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| messageFilter_ = getDefaultInstance().getMessageFilter(); |
| onChanged(); |
| return this; |
| } |
| void setMessageFilter(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000010; |
| messageFilter_ = value; |
| onChanged(); |
| } |
| |
| // optional uint32 messageWindowSize = 6; |
| private int messageWindowSize_ ; |
| public boolean hasMessageWindowSize() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public int getMessageWindowSize() { |
| return messageWindowSize_; |
| } |
| public Builder setMessageWindowSize(int value) { |
| bitField0_ |= 0x00000020; |
| messageWindowSize_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageWindowSize() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| messageWindowSize_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool enableResubscribe = 7 [default = true]; |
| private boolean enableResubscribe_ = true; |
| public boolean hasEnableResubscribe() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public boolean getEnableResubscribe() { |
| return enableResubscribe_; |
| } |
| public Builder setEnableResubscribe(boolean value) { |
| bitField0_ |= 0x00000040; |
| enableResubscribe_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearEnableResubscribe() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| enableResubscribe_ = true; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.SubscriptionOptions) |
| } |
| |
| static { |
| defaultInstance = new SubscriptionOptions(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.SubscriptionOptions) |
| } |
| |
| public interface ConsumeRequestOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes subscriberId = 2; |
| boolean hasSubscriberId(); |
| com.google.protobuf.ByteString getSubscriberId(); |
| |
| // required .Hedwig.MessageSeqId msgId = 3; |
| boolean hasMsgId(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder(); |
| } |
| public static final class ConsumeRequest extends |
| com.google.protobuf.GeneratedMessage |
| implements ConsumeRequestOrBuilder { |
| // Use ConsumeRequest.newBuilder() to construct. |
| private ConsumeRequest(Builder builder) { |
| super(builder); |
| } |
| private ConsumeRequest(boolean noInit) {} |
| |
| private static final ConsumeRequest defaultInstance; |
| public static ConsumeRequest getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public ConsumeRequest getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ConsumeRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ConsumeRequest_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required bytes subscriberId = 2; |
| public static final int SUBSCRIBERID_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString subscriberId_; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| |
| // required .Hedwig.MessageSeqId msgId = 3; |
| public static final int MSGID_FIELD_NUMBER = 3; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId msgId_; |
| public boolean hasMsgId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() { |
| return msgId_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder() { |
| return msgId_; |
| } |
| |
| private void initFields() { |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasSubscriberId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasMsgId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!getMsgId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, subscriberId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeMessage(3, msgId_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, subscriberId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, msgId_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest 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.ConsumeRequest parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest 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.ConsumeRequest parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest 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.ConsumeRequest 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.ConsumeRequest 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.ConsumeRequest parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest 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.ConsumeRequest prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequestOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ConsumeRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ConsumeRequest_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getMsgIdFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| if (msgIdBuilder_ == null) { |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| } else { |
| msgIdBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest build() { |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest result = new org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.subscriberId_ = subscriberId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| if (msgIdBuilder_ == null) { |
| result.msgId_ = msgId_; |
| } else { |
| result.msgId_ = msgIdBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.getDefaultInstance()) return this; |
| if (other.hasSubscriberId()) { |
| setSubscriberId(other.getSubscriberId()); |
| } |
| if (other.hasMsgId()) { |
| mergeMsgId(other.getMsgId()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasSubscriberId()) { |
| |
| return false; |
| } |
| if (!hasMsgId()) { |
| |
| return false; |
| } |
| if (!getMsgId().isInitialized()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000001; |
| subscriberId_ = 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; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes subscriberId = 2; |
| private com.google.protobuf.ByteString subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| public Builder setSubscriberId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| subscriberId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSubscriberId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| subscriberId_ = getDefaultInstance().getSubscriberId(); |
| onChanged(); |
| return this; |
| } |
| |
| // required .Hedwig.MessageSeqId msgId = 3; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> msgIdBuilder_; |
| public boolean hasMsgId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() { |
| if (msgIdBuilder_ == null) { |
| return msgId_; |
| } else { |
| return msgIdBuilder_.getMessage(); |
| } |
| } |
| public Builder setMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (msgIdBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| msgId_ = value; |
| onChanged(); |
| } else { |
| msgIdBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder setMsgId( |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder builderForValue) { |
| if (msgIdBuilder_ == null) { |
| msgId_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| msgIdBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder mergeMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (msgIdBuilder_ == null) { |
| if (((bitField0_ & 0x00000002) == 0x00000002) && |
| msgId_ != org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance()) { |
| msgId_ = |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(msgId_).mergeFrom(value).buildPartial(); |
| } else { |
| msgId_ = value; |
| } |
| onChanged(); |
| } else { |
| msgIdBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder clearMsgId() { |
| if (msgIdBuilder_ == null) { |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| onChanged(); |
| } else { |
| msgIdBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder getMsgIdBuilder() { |
| bitField0_ |= 0x00000002; |
| onChanged(); |
| return getMsgIdFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder() { |
| if (msgIdBuilder_ != null) { |
| return msgIdBuilder_.getMessageOrBuilder(); |
| } else { |
| return msgId_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> |
| getMsgIdFieldBuilder() { |
| if (msgIdBuilder_ == null) { |
| msgIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder>( |
| msgId_, |
| getParentForChildren(), |
| isClean()); |
| msgId_ = null; |
| } |
| return msgIdBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.ConsumeRequest) |
| } |
| |
| static { |
| defaultInstance = new ConsumeRequest(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.ConsumeRequest) |
| } |
| |
| public interface UnsubscribeRequestOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes subscriberId = 2; |
| boolean hasSubscriberId(); |
| com.google.protobuf.ByteString getSubscriberId(); |
| } |
| public static final class UnsubscribeRequest extends |
| com.google.protobuf.GeneratedMessage |
| implements UnsubscribeRequestOrBuilder { |
| // Use UnsubscribeRequest.newBuilder() to construct. |
| private UnsubscribeRequest(Builder builder) { |
| super(builder); |
| } |
| private UnsubscribeRequest(boolean noInit) {} |
| |
| private static final UnsubscribeRequest defaultInstance; |
| public static UnsubscribeRequest getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public UnsubscribeRequest getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_UnsubscribeRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_UnsubscribeRequest_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required bytes subscriberId = 2; |
| public static final int SUBSCRIBERID_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString subscriberId_; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| |
| private void initFields() { |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasSubscriberId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, subscriberId_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, subscriberId_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest 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.UnsubscribeRequest parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest 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.UnsubscribeRequest parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest 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.UnsubscribeRequest 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.UnsubscribeRequest 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.UnsubscribeRequest parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest 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.UnsubscribeRequest prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequestOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_UnsubscribeRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_UnsubscribeRequest_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest build() { |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest result = new org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.subscriberId_ = subscriberId_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.getDefaultInstance()) return this; |
| if (other.hasSubscriberId()) { |
| setSubscriberId(other.getSubscriberId()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasSubscriberId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000001; |
| subscriberId_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes subscriberId = 2; |
| private com.google.protobuf.ByteString subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| public Builder setSubscriberId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| subscriberId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSubscriberId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| subscriberId_ = getDefaultInstance().getSubscriberId(); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.UnsubscribeRequest) |
| } |
| |
| static { |
| defaultInstance = new UnsubscribeRequest(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.UnsubscribeRequest) |
| } |
| |
| public interface CloseSubscriptionRequestOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes subscriberId = 2; |
| boolean hasSubscriberId(); |
| com.google.protobuf.ByteString getSubscriberId(); |
| } |
| public static final class CloseSubscriptionRequest extends |
| com.google.protobuf.GeneratedMessage |
| implements CloseSubscriptionRequestOrBuilder { |
| // Use CloseSubscriptionRequest.newBuilder() to construct. |
| private CloseSubscriptionRequest(Builder builder) { |
| super(builder); |
| } |
| private CloseSubscriptionRequest(boolean noInit) {} |
| |
| private static final CloseSubscriptionRequest defaultInstance; |
| public static CloseSubscriptionRequest getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CloseSubscriptionRequest getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_CloseSubscriptionRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_CloseSubscriptionRequest_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required bytes subscriberId = 2; |
| public static final int SUBSCRIBERID_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString subscriberId_; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| |
| private void initFields() { |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasSubscriberId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, subscriberId_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, subscriberId_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest 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.CloseSubscriptionRequest parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest 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.CloseSubscriptionRequest parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest 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.CloseSubscriptionRequest 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.CloseSubscriptionRequest 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.CloseSubscriptionRequest parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest 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.CloseSubscriptionRequest prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequestOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_CloseSubscriptionRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_CloseSubscriptionRequest_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest build() { |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest result = new org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.subscriberId_ = subscriberId_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.getDefaultInstance()) return this; |
| if (other.hasSubscriberId()) { |
| setSubscriberId(other.getSubscriberId()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasSubscriberId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000001; |
| subscriberId_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes subscriberId = 2; |
| private com.google.protobuf.ByteString subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| public Builder setSubscriberId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| subscriberId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSubscriberId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| subscriberId_ = getDefaultInstance().getSubscriberId(); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.CloseSubscriptionRequest) |
| } |
| |
| static { |
| defaultInstance = new CloseSubscriptionRequest(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.CloseSubscriptionRequest) |
| } |
| |
| public interface StopDeliveryRequestOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes subscriberId = 2; |
| boolean hasSubscriberId(); |
| com.google.protobuf.ByteString getSubscriberId(); |
| } |
| public static final class StopDeliveryRequest extends |
| com.google.protobuf.GeneratedMessage |
| implements StopDeliveryRequestOrBuilder { |
| // Use StopDeliveryRequest.newBuilder() to construct. |
| private StopDeliveryRequest(Builder builder) { |
| super(builder); |
| } |
| private StopDeliveryRequest(boolean noInit) {} |
| |
| private static final StopDeliveryRequest defaultInstance; |
| public static StopDeliveryRequest getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public StopDeliveryRequest getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_StopDeliveryRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_StopDeliveryRequest_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required bytes subscriberId = 2; |
| public static final int SUBSCRIBERID_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString subscriberId_; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| |
| private void initFields() { |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasSubscriberId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, subscriberId_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, subscriberId_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest 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.StopDeliveryRequest parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest 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.StopDeliveryRequest parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest 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.StopDeliveryRequest 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.StopDeliveryRequest 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.StopDeliveryRequest parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest 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.StopDeliveryRequest prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequestOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_StopDeliveryRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_StopDeliveryRequest_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest build() { |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest result = new org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.subscriberId_ = subscriberId_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.getDefaultInstance()) return this; |
| if (other.hasSubscriberId()) { |
| setSubscriberId(other.getSubscriberId()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasSubscriberId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000001; |
| subscriberId_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes subscriberId = 2; |
| private com.google.protobuf.ByteString subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| public Builder setSubscriberId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| subscriberId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSubscriberId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| subscriberId_ = getDefaultInstance().getSubscriberId(); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.StopDeliveryRequest) |
| } |
| |
| static { |
| defaultInstance = new StopDeliveryRequest(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.StopDeliveryRequest) |
| } |
| |
| public interface StartDeliveryRequestOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes subscriberId = 2; |
| boolean hasSubscriberId(); |
| com.google.protobuf.ByteString getSubscriberId(); |
| } |
| public static final class StartDeliveryRequest extends |
| com.google.protobuf.GeneratedMessage |
| implements StartDeliveryRequestOrBuilder { |
| // Use StartDeliveryRequest.newBuilder() to construct. |
| private StartDeliveryRequest(Builder builder) { |
| super(builder); |
| } |
| private StartDeliveryRequest(boolean noInit) {} |
| |
| private static final StartDeliveryRequest defaultInstance; |
| public static StartDeliveryRequest getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public StartDeliveryRequest getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_StartDeliveryRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_StartDeliveryRequest_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required bytes subscriberId = 2; |
| public static final int SUBSCRIBERID_FIELD_NUMBER = 2; |
| private com.google.protobuf.ByteString subscriberId_; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| |
| private void initFields() { |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasSubscriberId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, subscriberId_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, subscriberId_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest 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.StartDeliveryRequest parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest 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.StartDeliveryRequest parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest 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.StartDeliveryRequest 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.StartDeliveryRequest 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.StartDeliveryRequest parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest 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.StartDeliveryRequest prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequestOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_StartDeliveryRequest_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_StartDeliveryRequest_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest build() { |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest result = new org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.subscriberId_ = subscriberId_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.getDefaultInstance()) return this; |
| if (other.hasSubscriberId()) { |
| setSubscriberId(other.getSubscriberId()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasSubscriberId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000001; |
| subscriberId_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required bytes subscriberId = 2; |
| private com.google.protobuf.ByteString subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| public Builder setSubscriberId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| subscriberId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSubscriberId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| subscriberId_ = getDefaultInstance().getSubscriberId(); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.StartDeliveryRequest) |
| } |
| |
| static { |
| defaultInstance = new StartDeliveryRequest(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.StartDeliveryRequest) |
| } |
| |
| public interface SubscriptionEventResponseOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional .Hedwig.SubscriptionEvent event = 1; |
| boolean hasEvent(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent getEvent(); |
| } |
| public static final class SubscriptionEventResponse extends |
| com.google.protobuf.GeneratedMessage |
| implements SubscriptionEventResponseOrBuilder { |
| // Use SubscriptionEventResponse.newBuilder() to construct. |
| private SubscriptionEventResponse(Builder builder) { |
| super(builder); |
| } |
| private SubscriptionEventResponse(boolean noInit) {} |
| |
| private static final SubscriptionEventResponse defaultInstance; |
| public static SubscriptionEventResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public SubscriptionEventResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionEventResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionEventResponse_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional .Hedwig.SubscriptionEvent event = 1; |
| public static final int EVENT_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent event_; |
| public boolean hasEvent() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent getEvent() { |
| return event_; |
| } |
| |
| private void initFields() { |
| event_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent.TOPIC_MOVED; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeEnum(1, event_.getNumber()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(1, event_.getNumber()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse 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.SubscriptionEventResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse 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.SubscriptionEventResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse 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.SubscriptionEventResponse 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.SubscriptionEventResponse 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.SubscriptionEventResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse 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.SubscriptionEventResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponseOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionEventResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionEventResponse_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| event_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent.TOPIC_MOVED; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse build() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse result = new org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.event_ = event_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.getDefaultInstance()) return this; |
| if (other.hasEvent()) { |
| setEvent(other.getEvent()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| int rawValue = input.readEnum(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent value = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent.valueOf(rawValue); |
| if (value == null) { |
| unknownFields.mergeVarintField(1, rawValue); |
| } else { |
| bitField0_ |= 0x00000001; |
| event_ = value; |
| } |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional .Hedwig.SubscriptionEvent event = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent event_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent.TOPIC_MOVED; |
| public boolean hasEvent() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent getEvent() { |
| return event_; |
| } |
| public Builder setEvent(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| event_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearEvent() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| event_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEvent.TOPIC_MOVED; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.SubscriptionEventResponse) |
| } |
| |
| static { |
| defaultInstance = new SubscriptionEventResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.SubscriptionEventResponse) |
| } |
| |
| public interface PubSubResponseOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required .Hedwig.ProtocolVersion protocolVersion = 1; |
| boolean hasProtocolVersion(); |
| org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion getProtocolVersion(); |
| |
| // required .Hedwig.StatusCode statusCode = 2; |
| boolean hasStatusCode(); |
| org.apache.hedwig.protocol.PubSubProtocol.StatusCode getStatusCode(); |
| |
| // required uint64 txnId = 3; |
| boolean hasTxnId(); |
| long getTxnId(); |
| |
| // optional string statusMsg = 4; |
| boolean hasStatusMsg(); |
| String getStatusMsg(); |
| |
| // optional .Hedwig.Message message = 5; |
| boolean hasMessage(); |
| org.apache.hedwig.protocol.PubSubProtocol.Message getMessage(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder getMessageOrBuilder(); |
| |
| // optional bytes topic = 6; |
| boolean hasTopic(); |
| com.google.protobuf.ByteString getTopic(); |
| |
| // optional bytes subscriberId = 7; |
| boolean hasSubscriberId(); |
| com.google.protobuf.ByteString getSubscriberId(); |
| |
| // optional .Hedwig.ResponseBody responseBody = 8; |
| boolean hasResponseBody(); |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody getResponseBody(); |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBodyOrBuilder getResponseBodyOrBuilder(); |
| } |
| public static final class PubSubResponse extends |
| com.google.protobuf.GeneratedMessage |
| implements PubSubResponseOrBuilder { |
| // Use PubSubResponse.newBuilder() to construct. |
| private PubSubResponse(Builder builder) { |
| super(builder); |
| } |
| private PubSubResponse(boolean noInit) {} |
| |
| private static final PubSubResponse defaultInstance; |
| public static PubSubResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public PubSubResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PubSubResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PubSubResponse_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required .Hedwig.ProtocolVersion protocolVersion = 1; |
| public static final int PROTOCOLVERSION_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion protocolVersion_; |
| public boolean hasProtocolVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion getProtocolVersion() { |
| return protocolVersion_; |
| } |
| |
| // required .Hedwig.StatusCode statusCode = 2; |
| public static final int STATUSCODE_FIELD_NUMBER = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.StatusCode statusCode_; |
| public boolean hasStatusCode() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StatusCode getStatusCode() { |
| return statusCode_; |
| } |
| |
| // required uint64 txnId = 3; |
| public static final int TXNID_FIELD_NUMBER = 3; |
| private long txnId_; |
| public boolean hasTxnId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getTxnId() { |
| return txnId_; |
| } |
| |
| // optional string statusMsg = 4; |
| public static final int STATUSMSG_FIELD_NUMBER = 4; |
| private java.lang.Object statusMsg_; |
| public boolean hasStatusMsg() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getStatusMsg() { |
| java.lang.Object ref = statusMsg_; |
| if (ref instanceof String) { |
| return (String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| String s = bs.toStringUtf8(); |
| if (com.google.protobuf.Internal.isValidUtf8(bs)) { |
| statusMsg_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getStatusMsgBytes() { |
| java.lang.Object ref = statusMsg_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| statusMsg_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional .Hedwig.Message message = 5; |
| public static final int MESSAGE_FIELD_NUMBER = 5; |
| private org.apache.hedwig.protocol.PubSubProtocol.Message message_; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Message getMessage() { |
| return message_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder getMessageOrBuilder() { |
| return message_; |
| } |
| |
| // optional bytes topic = 6; |
| public static final int TOPIC_FIELD_NUMBER = 6; |
| private com.google.protobuf.ByteString topic_; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public com.google.protobuf.ByteString getTopic() { |
| return topic_; |
| } |
| |
| // optional bytes subscriberId = 7; |
| public static final int SUBSCRIBERID_FIELD_NUMBER = 7; |
| private com.google.protobuf.ByteString subscriberId_; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| |
| // optional .Hedwig.ResponseBody responseBody = 8; |
| public static final int RESPONSEBODY_FIELD_NUMBER = 8; |
| private org.apache.hedwig.protocol.PubSubProtocol.ResponseBody responseBody_; |
| public boolean hasResponseBody() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ResponseBody getResponseBody() { |
| return responseBody_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ResponseBodyOrBuilder getResponseBodyOrBuilder() { |
| return responseBody_; |
| } |
| |
| private void initFields() { |
| protocolVersion_ = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.VERSION_ONE; |
| statusCode_ = org.apache.hedwig.protocol.PubSubProtocol.StatusCode.SUCCESS; |
| txnId_ = 0L; |
| statusMsg_ = ""; |
| message_ = org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance(); |
| topic_ = com.google.protobuf.ByteString.EMPTY; |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| responseBody_ = org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasProtocolVersion()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasStatusCode()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasTxnId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasMessage()) { |
| if (!getMessage().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasResponseBody()) { |
| if (!getResponseBody().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeEnum(1, protocolVersion_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeEnum(2, statusCode_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeUInt64(3, txnId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(4, getStatusMsgBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeMessage(5, message_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeBytes(6, topic_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeBytes(7, subscriberId_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeMessage(8, responseBody_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(1, protocolVersion_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(2, statusCode_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(3, txnId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(4, getStatusMsgBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(5, message_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, topic_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(7, subscriberId_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(8, responseBody_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse 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.PubSubResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse 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.PubSubResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse 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.PubSubResponse 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.PubSubResponse 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.PubSubResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse 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.PubSubResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.PubSubResponseOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PubSubResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PubSubResponse_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getMessageFieldBuilder(); |
| getResponseBodyFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| protocolVersion_ = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.VERSION_ONE; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| statusCode_ = org.apache.hedwig.protocol.PubSubProtocol.StatusCode.SUCCESS; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| txnId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| statusMsg_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| if (messageBuilder_ == null) { |
| message_ = org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance(); |
| } else { |
| messageBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000010); |
| topic_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| if (responseBodyBuilder_ == null) { |
| responseBody_ = org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.getDefaultInstance(); |
| } else { |
| responseBodyBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000080); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse build() { |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse result = new org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.protocolVersion_ = protocolVersion_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.statusCode_ = statusCode_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.txnId_ = txnId_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.statusMsg_ = statusMsg_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| if (messageBuilder_ == null) { |
| result.message_ = message_; |
| } else { |
| result.message_ = messageBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.topic_ = topic_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.subscriberId_ = subscriberId_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| if (responseBodyBuilder_ == null) { |
| result.responseBody_ = responseBody_; |
| } else { |
| result.responseBody_ = responseBodyBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse.getDefaultInstance()) return this; |
| if (other.hasProtocolVersion()) { |
| setProtocolVersion(other.getProtocolVersion()); |
| } |
| if (other.hasStatusCode()) { |
| setStatusCode(other.getStatusCode()); |
| } |
| if (other.hasTxnId()) { |
| setTxnId(other.getTxnId()); |
| } |
| if (other.hasStatusMsg()) { |
| setStatusMsg(other.getStatusMsg()); |
| } |
| if (other.hasMessage()) { |
| mergeMessage(other.getMessage()); |
| } |
| if (other.hasTopic()) { |
| setTopic(other.getTopic()); |
| } |
| if (other.hasSubscriberId()) { |
| setSubscriberId(other.getSubscriberId()); |
| } |
| if (other.hasResponseBody()) { |
| mergeResponseBody(other.getResponseBody()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasProtocolVersion()) { |
| |
| return false; |
| } |
| if (!hasStatusCode()) { |
| |
| return false; |
| } |
| if (!hasTxnId()) { |
| |
| return false; |
| } |
| if (hasMessage()) { |
| if (!getMessage().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasResponseBody()) { |
| if (!getResponseBody().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| int rawValue = input.readEnum(); |
| org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion value = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.valueOf(rawValue); |
| if (value == null) { |
| unknownFields.mergeVarintField(1, rawValue); |
| } else { |
| bitField0_ |= 0x00000001; |
| protocolVersion_ = value; |
| } |
| break; |
| } |
| case 16: { |
| int rawValue = input.readEnum(); |
| org.apache.hedwig.protocol.PubSubProtocol.StatusCode value = org.apache.hedwig.protocol.PubSubProtocol.StatusCode.valueOf(rawValue); |
| if (value == null) { |
| unknownFields.mergeVarintField(2, rawValue); |
| } else { |
| bitField0_ |= 0x00000002; |
| statusCode_ = value; |
| } |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| txnId_ = input.readUInt64(); |
| break; |
| } |
| case 34: { |
| bitField0_ |= 0x00000008; |
| statusMsg_ = input.readBytes(); |
| break; |
| } |
| case 42: { |
| org.apache.hedwig.protocol.PubSubProtocol.Message.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.Message.newBuilder(); |
| if (hasMessage()) { |
| subBuilder.mergeFrom(getMessage()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setMessage(subBuilder.buildPartial()); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000020; |
| topic_ = input.readBytes(); |
| break; |
| } |
| case 58: { |
| bitField0_ |= 0x00000040; |
| subscriberId_ = input.readBytes(); |
| break; |
| } |
| case 66: { |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.newBuilder(); |
| if (hasResponseBody()) { |
| subBuilder.mergeFrom(getResponseBody()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setResponseBody(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required .Hedwig.ProtocolVersion protocolVersion = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion protocolVersion_ = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.VERSION_ONE; |
| public boolean hasProtocolVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion getProtocolVersion() { |
| return protocolVersion_; |
| } |
| public Builder setProtocolVersion(org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| protocolVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearProtocolVersion() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| protocolVersion_ = org.apache.hedwig.protocol.PubSubProtocol.ProtocolVersion.VERSION_ONE; |
| onChanged(); |
| return this; |
| } |
| |
| // required .Hedwig.StatusCode statusCode = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.StatusCode statusCode_ = org.apache.hedwig.protocol.PubSubProtocol.StatusCode.SUCCESS; |
| public boolean hasStatusCode() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.StatusCode getStatusCode() { |
| return statusCode_; |
| } |
| public Builder setStatusCode(org.apache.hedwig.protocol.PubSubProtocol.StatusCode value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| statusCode_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearStatusCode() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| statusCode_ = org.apache.hedwig.protocol.PubSubProtocol.StatusCode.SUCCESS; |
| onChanged(); |
| return this; |
| } |
| |
| // required uint64 txnId = 3; |
| private long txnId_ ; |
| public boolean hasTxnId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getTxnId() { |
| return txnId_; |
| } |
| public Builder setTxnId(long value) { |
| bitField0_ |= 0x00000004; |
| txnId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearTxnId() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| txnId_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string statusMsg = 4; |
| private java.lang.Object statusMsg_ = ""; |
| public boolean hasStatusMsg() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getStatusMsg() { |
| java.lang.Object ref = statusMsg_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| statusMsg_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setStatusMsg(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| statusMsg_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearStatusMsg() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| statusMsg_ = getDefaultInstance().getStatusMsg(); |
| onChanged(); |
| return this; |
| } |
| void setStatusMsg(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000008; |
| statusMsg_ = value; |
| onChanged(); |
| } |
| |
| // optional .Hedwig.Message message = 5; |
| private org.apache.hedwig.protocol.PubSubProtocol.Message message_ = org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Message, org.apache.hedwig.protocol.PubSubProtocol.Message.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder> messageBuilder_; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Message getMessage() { |
| if (messageBuilder_ == null) { |
| return message_; |
| } else { |
| return messageBuilder_.getMessage(); |
| } |
| } |
| public Builder setMessage(org.apache.hedwig.protocol.PubSubProtocol.Message value) { |
| if (messageBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| message_ = value; |
| onChanged(); |
| } else { |
| messageBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder setMessage( |
| org.apache.hedwig.protocol.PubSubProtocol.Message.Builder builderForValue) { |
| if (messageBuilder_ == null) { |
| message_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| messageBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder mergeMessage(org.apache.hedwig.protocol.PubSubProtocol.Message value) { |
| if (messageBuilder_ == null) { |
| if (((bitField0_ & 0x00000010) == 0x00000010) && |
| message_ != org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance()) { |
| message_ = |
| org.apache.hedwig.protocol.PubSubProtocol.Message.newBuilder(message_).mergeFrom(value).buildPartial(); |
| } else { |
| message_ = value; |
| } |
| onChanged(); |
| } else { |
| messageBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder clearMessage() { |
| if (messageBuilder_ == null) { |
| message_ = org.apache.hedwig.protocol.PubSubProtocol.Message.getDefaultInstance(); |
| onChanged(); |
| } else { |
| messageBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000010); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.Message.Builder getMessageBuilder() { |
| bitField0_ |= 0x00000010; |
| onChanged(); |
| return getMessageFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder getMessageOrBuilder() { |
| if (messageBuilder_ != null) { |
| return messageBuilder_.getMessageOrBuilder(); |
| } else { |
| return message_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Message, org.apache.hedwig.protocol.PubSubProtocol.Message.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder> |
| getMessageFieldBuilder() { |
| if (messageBuilder_ == null) { |
| messageBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.Message, org.apache.hedwig.protocol.PubSubProtocol.Message.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageOrBuilder>( |
| message_, |
| getParentForChildren(), |
| isClean()); |
| message_ = null; |
| } |
| return messageBuilder_; |
| } |
| |
| // optional bytes topic = 6; |
| private com.google.protobuf.ByteString topic_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public com.google.protobuf.ByteString getTopic() { |
| return topic_; |
| } |
| public Builder setTopic(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| topic_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearTopic() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| topic_ = getDefaultInstance().getTopic(); |
| onChanged(); |
| return this; |
| } |
| |
| // optional bytes subscriberId = 7; |
| private com.google.protobuf.ByteString subscriberId_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSubscriberId() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public com.google.protobuf.ByteString getSubscriberId() { |
| return subscriberId_; |
| } |
| public Builder setSubscriberId(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000040; |
| subscriberId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearSubscriberId() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| subscriberId_ = getDefaultInstance().getSubscriberId(); |
| onChanged(); |
| return this; |
| } |
| |
| // optional .Hedwig.ResponseBody responseBody = 8; |
| private org.apache.hedwig.protocol.PubSubProtocol.ResponseBody responseBody_ = org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody, org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.Builder, org.apache.hedwig.protocol.PubSubProtocol.ResponseBodyOrBuilder> responseBodyBuilder_; |
| public boolean hasResponseBody() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ResponseBody getResponseBody() { |
| if (responseBodyBuilder_ == null) { |
| return responseBody_; |
| } else { |
| return responseBodyBuilder_.getMessage(); |
| } |
| } |
| public Builder setResponseBody(org.apache.hedwig.protocol.PubSubProtocol.ResponseBody value) { |
| if (responseBodyBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| responseBody_ = value; |
| onChanged(); |
| } else { |
| responseBodyBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder setResponseBody( |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.Builder builderForValue) { |
| if (responseBodyBuilder_ == null) { |
| responseBody_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| responseBodyBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder mergeResponseBody(org.apache.hedwig.protocol.PubSubProtocol.ResponseBody value) { |
| if (responseBodyBuilder_ == null) { |
| if (((bitField0_ & 0x00000080) == 0x00000080) && |
| responseBody_ != org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.getDefaultInstance()) { |
| responseBody_ = |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.newBuilder(responseBody_).mergeFrom(value).buildPartial(); |
| } else { |
| responseBody_ = value; |
| } |
| onChanged(); |
| } else { |
| responseBodyBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder clearResponseBody() { |
| if (responseBodyBuilder_ == null) { |
| responseBody_ = org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.getDefaultInstance(); |
| onChanged(); |
| } else { |
| responseBodyBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000080); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.Builder getResponseBodyBuilder() { |
| bitField0_ |= 0x00000080; |
| onChanged(); |
| return getResponseBodyFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.ResponseBodyOrBuilder getResponseBodyOrBuilder() { |
| if (responseBodyBuilder_ != null) { |
| return responseBodyBuilder_.getMessageOrBuilder(); |
| } else { |
| return responseBody_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody, org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.Builder, org.apache.hedwig.protocol.PubSubProtocol.ResponseBodyOrBuilder> |
| getResponseBodyFieldBuilder() { |
| if (responseBodyBuilder_ == null) { |
| responseBodyBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody, org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.Builder, org.apache.hedwig.protocol.PubSubProtocol.ResponseBodyOrBuilder>( |
| responseBody_, |
| getParentForChildren(), |
| isClean()); |
| responseBody_ = null; |
| } |
| return responseBodyBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.PubSubResponse) |
| } |
| |
| static { |
| defaultInstance = new PubSubResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.PubSubResponse) |
| } |
| |
| public interface PublishResponseOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required .Hedwig.MessageSeqId publishedMsgId = 1; |
| boolean hasPublishedMsgId(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getPublishedMsgId(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getPublishedMsgIdOrBuilder(); |
| } |
| public static final class PublishResponse extends |
| com.google.protobuf.GeneratedMessage |
| implements PublishResponseOrBuilder { |
| // Use PublishResponse.newBuilder() to construct. |
| private PublishResponse(Builder builder) { |
| super(builder); |
| } |
| private PublishResponse(boolean noInit) {} |
| |
| private static final PublishResponse defaultInstance; |
| public static PublishResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public PublishResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PublishResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PublishResponse_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required .Hedwig.MessageSeqId publishedMsgId = 1; |
| public static final int PUBLISHEDMSGID_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId publishedMsgId_; |
| public boolean hasPublishedMsgId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getPublishedMsgId() { |
| return publishedMsgId_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getPublishedMsgIdOrBuilder() { |
| return publishedMsgId_; |
| } |
| |
| private void initFields() { |
| publishedMsgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasPublishedMsgId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!getPublishedMsgId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(1, publishedMsgId_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, publishedMsgId_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishResponse 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.PublishResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishResponse 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.PublishResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishResponse 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.PublishResponse 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.PublishResponse 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.PublishResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.PublishResponse 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.PublishResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.PublishResponseOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PublishResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_PublishResponse_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getPublishedMsgIdFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (publishedMsgIdBuilder_ == null) { |
| publishedMsgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| } else { |
| publishedMsgIdBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishResponse getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishResponse build() { |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.PublishResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishResponse buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse result = new org.apache.hedwig.protocol.PubSubProtocol.PublishResponse(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (publishedMsgIdBuilder_ == null) { |
| result.publishedMsgId_ = publishedMsgId_; |
| } else { |
| result.publishedMsgId_ = publishedMsgIdBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.PublishResponse) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.PublishResponse)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.PublishResponse other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.getDefaultInstance()) return this; |
| if (other.hasPublishedMsgId()) { |
| mergePublishedMsgId(other.getPublishedMsgId()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasPublishedMsgId()) { |
| |
| return false; |
| } |
| if (!getPublishedMsgId().isInitialized()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(); |
| if (hasPublishedMsgId()) { |
| subBuilder.mergeFrom(getPublishedMsgId()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPublishedMsgId(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required .Hedwig.MessageSeqId publishedMsgId = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId publishedMsgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> publishedMsgIdBuilder_; |
| public boolean hasPublishedMsgId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getPublishedMsgId() { |
| if (publishedMsgIdBuilder_ == null) { |
| return publishedMsgId_; |
| } else { |
| return publishedMsgIdBuilder_.getMessage(); |
| } |
| } |
| public Builder setPublishedMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (publishedMsgIdBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| publishedMsgId_ = value; |
| onChanged(); |
| } else { |
| publishedMsgIdBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setPublishedMsgId( |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder builderForValue) { |
| if (publishedMsgIdBuilder_ == null) { |
| publishedMsgId_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| publishedMsgIdBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergePublishedMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (publishedMsgIdBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| publishedMsgId_ != org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance()) { |
| publishedMsgId_ = |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(publishedMsgId_).mergeFrom(value).buildPartial(); |
| } else { |
| publishedMsgId_ = value; |
| } |
| onChanged(); |
| } else { |
| publishedMsgIdBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearPublishedMsgId() { |
| if (publishedMsgIdBuilder_ == null) { |
| publishedMsgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| onChanged(); |
| } else { |
| publishedMsgIdBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder getPublishedMsgIdBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getPublishedMsgIdFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getPublishedMsgIdOrBuilder() { |
| if (publishedMsgIdBuilder_ != null) { |
| return publishedMsgIdBuilder_.getMessageOrBuilder(); |
| } else { |
| return publishedMsgId_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> |
| getPublishedMsgIdFieldBuilder() { |
| if (publishedMsgIdBuilder_ == null) { |
| publishedMsgIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder>( |
| publishedMsgId_, |
| getParentForChildren(), |
| isClean()); |
| publishedMsgId_ = null; |
| } |
| return publishedMsgIdBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.PublishResponse) |
| } |
| |
| static { |
| defaultInstance = new PublishResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.PublishResponse) |
| } |
| |
| public interface SubscribeResponseOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional .Hedwig.SubscriptionPreferences preferences = 2; |
| boolean hasPreferences(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder(); |
| } |
| public static final class SubscribeResponse extends |
| com.google.protobuf.GeneratedMessage |
| implements SubscribeResponseOrBuilder { |
| // Use SubscribeResponse.newBuilder() to construct. |
| private SubscribeResponse(Builder builder) { |
| super(builder); |
| } |
| private SubscribeResponse(boolean noInit) {} |
| |
| private static final SubscribeResponse defaultInstance; |
| public static SubscribeResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public SubscribeResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscribeResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscribeResponse_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional .Hedwig.SubscriptionPreferences preferences = 2; |
| public static final int PREFERENCES_FIELD_NUMBER = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences preferences_; |
| public boolean hasPreferences() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences() { |
| return preferences_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder() { |
| return preferences_; |
| } |
| |
| private void initFields() { |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(2, preferences_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, preferences_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse 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.SubscribeResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse 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.SubscribeResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse 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.SubscribeResponse 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.SubscribeResponse 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.SubscribeResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse 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.SubscribeResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponseOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscribeResponse_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscribeResponse_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getPreferencesFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (preferencesBuilder_ == null) { |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| } else { |
| preferencesBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse build() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse result = new org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (preferencesBuilder_ == null) { |
| result.preferences_ = preferences_; |
| } else { |
| result.preferences_ = preferencesBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.getDefaultInstance()) return this; |
| if (other.hasPreferences()) { |
| mergePreferences(other.getPreferences()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.newBuilder(); |
| if (hasPreferences()) { |
| subBuilder.mergeFrom(getPreferences()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPreferences(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional .Hedwig.SubscriptionPreferences preferences = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder> preferencesBuilder_; |
| public boolean hasPreferences() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences() { |
| if (preferencesBuilder_ == null) { |
| return preferences_; |
| } else { |
| return preferencesBuilder_.getMessage(); |
| } |
| } |
| public Builder setPreferences(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences value) { |
| if (preferencesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| preferences_ = value; |
| onChanged(); |
| } else { |
| preferencesBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setPreferences( |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder builderForValue) { |
| if (preferencesBuilder_ == null) { |
| preferences_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| preferencesBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergePreferences(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences value) { |
| if (preferencesBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| preferences_ != org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance()) { |
| preferences_ = |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.newBuilder(preferences_).mergeFrom(value).buildPartial(); |
| } else { |
| preferences_ = value; |
| } |
| onChanged(); |
| } else { |
| preferencesBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearPreferences() { |
| if (preferencesBuilder_ == null) { |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| onChanged(); |
| } else { |
| preferencesBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder getPreferencesBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getPreferencesFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder() { |
| if (preferencesBuilder_ != null) { |
| return preferencesBuilder_.getMessageOrBuilder(); |
| } else { |
| return preferences_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder> |
| getPreferencesFieldBuilder() { |
| if (preferencesBuilder_ == null) { |
| preferencesBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder>( |
| preferences_, |
| getParentForChildren(), |
| isClean()); |
| preferences_ = null; |
| } |
| return preferencesBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.SubscribeResponse) |
| } |
| |
| static { |
| defaultInstance = new SubscribeResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.SubscribeResponse) |
| } |
| |
| public interface ResponseBodyOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional .Hedwig.PublishResponse publishResponse = 1; |
| boolean hasPublishResponse(); |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse getPublishResponse(); |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponseOrBuilder getPublishResponseOrBuilder(); |
| |
| // optional .Hedwig.SubscribeResponse subscribeResponse = 2; |
| boolean hasSubscribeResponse(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse getSubscribeResponse(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponseOrBuilder getSubscribeResponseOrBuilder(); |
| |
| // optional .Hedwig.SubscriptionEventResponse subscriptionEvent = 3; |
| boolean hasSubscriptionEvent(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse getSubscriptionEvent(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponseOrBuilder getSubscriptionEventOrBuilder(); |
| } |
| public static final class ResponseBody extends |
| com.google.protobuf.GeneratedMessage |
| implements ResponseBodyOrBuilder { |
| // Use ResponseBody.newBuilder() to construct. |
| private ResponseBody(Builder builder) { |
| super(builder); |
| } |
| private ResponseBody(boolean noInit) {} |
| |
| private static final ResponseBody defaultInstance; |
| public static ResponseBody getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public ResponseBody getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ResponseBody_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ResponseBody_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional .Hedwig.PublishResponse publishResponse = 1; |
| public static final int PUBLISHRESPONSE_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.PublishResponse publishResponse_; |
| public boolean hasPublishResponse() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishResponse getPublishResponse() { |
| return publishResponse_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishResponseOrBuilder getPublishResponseOrBuilder() { |
| return publishResponse_; |
| } |
| |
| // optional .Hedwig.SubscribeResponse subscribeResponse = 2; |
| public static final int SUBSCRIBERESPONSE_FIELD_NUMBER = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse subscribeResponse_; |
| public boolean hasSubscribeResponse() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse getSubscribeResponse() { |
| return subscribeResponse_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponseOrBuilder getSubscribeResponseOrBuilder() { |
| return subscribeResponse_; |
| } |
| |
| // optional .Hedwig.SubscriptionEventResponse subscriptionEvent = 3; |
| public static final int SUBSCRIPTIONEVENT_FIELD_NUMBER = 3; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse subscriptionEvent_; |
| public boolean hasSubscriptionEvent() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse getSubscriptionEvent() { |
| return subscriptionEvent_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponseOrBuilder getSubscriptionEventOrBuilder() { |
| return subscriptionEvent_; |
| } |
| |
| private void initFields() { |
| publishResponse_ = org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.getDefaultInstance(); |
| subscribeResponse_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.getDefaultInstance(); |
| subscriptionEvent_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (hasPublishResponse()) { |
| if (!getPublishResponse().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(1, publishResponse_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeMessage(2, subscribeResponse_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeMessage(3, subscriptionEvent_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, publishResponse_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, subscribeResponse_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, subscriptionEvent_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.ResponseBody parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ResponseBody 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.ResponseBody parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ResponseBody 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.ResponseBody parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ResponseBody 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.ResponseBody 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.ResponseBody 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.ResponseBody parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ResponseBody 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.ResponseBody prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.ResponseBodyOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ResponseBody_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ResponseBody_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getPublishResponseFieldBuilder(); |
| getSubscribeResponseFieldBuilder(); |
| getSubscriptionEventFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (publishResponseBuilder_ == null) { |
| publishResponse_ = org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.getDefaultInstance(); |
| } else { |
| publishResponseBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| if (subscribeResponseBuilder_ == null) { |
| subscribeResponse_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.getDefaultInstance(); |
| } else { |
| subscribeResponseBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| if (subscriptionEventBuilder_ == null) { |
| subscriptionEvent_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.getDefaultInstance(); |
| } else { |
| subscriptionEventBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ResponseBody getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ResponseBody build() { |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.ResponseBody buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ResponseBody buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody result = new org.apache.hedwig.protocol.PubSubProtocol.ResponseBody(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (publishResponseBuilder_ == null) { |
| result.publishResponse_ = publishResponse_; |
| } else { |
| result.publishResponse_ = publishResponseBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| if (subscribeResponseBuilder_ == null) { |
| result.subscribeResponse_ = subscribeResponse_; |
| } else { |
| result.subscribeResponse_ = subscribeResponseBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| if (subscriptionEventBuilder_ == null) { |
| result.subscriptionEvent_ = subscriptionEvent_; |
| } else { |
| result.subscriptionEvent_ = subscriptionEventBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.ResponseBody) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.ResponseBody)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.ResponseBody other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.getDefaultInstance()) return this; |
| if (other.hasPublishResponse()) { |
| mergePublishResponse(other.getPublishResponse()); |
| } |
| if (other.hasSubscribeResponse()) { |
| mergeSubscribeResponse(other.getSubscribeResponse()); |
| } |
| if (other.hasSubscriptionEvent()) { |
| mergeSubscriptionEvent(other.getSubscriptionEvent()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (hasPublishResponse()) { |
| if (!getPublishResponse().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.newBuilder(); |
| if (hasPublishResponse()) { |
| subBuilder.mergeFrom(getPublishResponse()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPublishResponse(subBuilder.buildPartial()); |
| break; |
| } |
| case 18: { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.newBuilder(); |
| if (hasSubscribeResponse()) { |
| subBuilder.mergeFrom(getSubscribeResponse()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSubscribeResponse(subBuilder.buildPartial()); |
| break; |
| } |
| case 26: { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.newBuilder(); |
| if (hasSubscriptionEvent()) { |
| subBuilder.mergeFrom(getSubscriptionEvent()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSubscriptionEvent(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional .Hedwig.PublishResponse publishResponse = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.PublishResponse publishResponse_ = org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse, org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.PublishResponseOrBuilder> publishResponseBuilder_; |
| public boolean hasPublishResponse() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishResponse getPublishResponse() { |
| if (publishResponseBuilder_ == null) { |
| return publishResponse_; |
| } else { |
| return publishResponseBuilder_.getMessage(); |
| } |
| } |
| public Builder setPublishResponse(org.apache.hedwig.protocol.PubSubProtocol.PublishResponse value) { |
| if (publishResponseBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| publishResponse_ = value; |
| onChanged(); |
| } else { |
| publishResponseBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setPublishResponse( |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.Builder builderForValue) { |
| if (publishResponseBuilder_ == null) { |
| publishResponse_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| publishResponseBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergePublishResponse(org.apache.hedwig.protocol.PubSubProtocol.PublishResponse value) { |
| if (publishResponseBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| publishResponse_ != org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.getDefaultInstance()) { |
| publishResponse_ = |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.newBuilder(publishResponse_).mergeFrom(value).buildPartial(); |
| } else { |
| publishResponse_ = value; |
| } |
| onChanged(); |
| } else { |
| publishResponseBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearPublishResponse() { |
| if (publishResponseBuilder_ == null) { |
| publishResponse_ = org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.getDefaultInstance(); |
| onChanged(); |
| } else { |
| publishResponseBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.Builder getPublishResponseBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getPublishResponseFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.PublishResponseOrBuilder getPublishResponseOrBuilder() { |
| if (publishResponseBuilder_ != null) { |
| return publishResponseBuilder_.getMessageOrBuilder(); |
| } else { |
| return publishResponse_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse, org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.PublishResponseOrBuilder> |
| getPublishResponseFieldBuilder() { |
| if (publishResponseBuilder_ == null) { |
| publishResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse, org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.PublishResponseOrBuilder>( |
| publishResponse_, |
| getParentForChildren(), |
| isClean()); |
| publishResponse_ = null; |
| } |
| return publishResponseBuilder_; |
| } |
| |
| // optional .Hedwig.SubscribeResponse subscribeResponse = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse subscribeResponse_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse, org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponseOrBuilder> subscribeResponseBuilder_; |
| public boolean hasSubscribeResponse() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse getSubscribeResponse() { |
| if (subscribeResponseBuilder_ == null) { |
| return subscribeResponse_; |
| } else { |
| return subscribeResponseBuilder_.getMessage(); |
| } |
| } |
| public Builder setSubscribeResponse(org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse value) { |
| if (subscribeResponseBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| subscribeResponse_ = value; |
| onChanged(); |
| } else { |
| subscribeResponseBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder setSubscribeResponse( |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.Builder builderForValue) { |
| if (subscribeResponseBuilder_ == null) { |
| subscribeResponse_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| subscribeResponseBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder mergeSubscribeResponse(org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse value) { |
| if (subscribeResponseBuilder_ == null) { |
| if (((bitField0_ & 0x00000002) == 0x00000002) && |
| subscribeResponse_ != org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.getDefaultInstance()) { |
| subscribeResponse_ = |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.newBuilder(subscribeResponse_).mergeFrom(value).buildPartial(); |
| } else { |
| subscribeResponse_ = value; |
| } |
| onChanged(); |
| } else { |
| subscribeResponseBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder clearSubscribeResponse() { |
| if (subscribeResponseBuilder_ == null) { |
| subscribeResponse_ = org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.getDefaultInstance(); |
| onChanged(); |
| } else { |
| subscribeResponseBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.Builder getSubscribeResponseBuilder() { |
| bitField0_ |= 0x00000002; |
| onChanged(); |
| return getSubscribeResponseFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponseOrBuilder getSubscribeResponseOrBuilder() { |
| if (subscribeResponseBuilder_ != null) { |
| return subscribeResponseBuilder_.getMessageOrBuilder(); |
| } else { |
| return subscribeResponse_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse, org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponseOrBuilder> |
| getSubscribeResponseFieldBuilder() { |
| if (subscribeResponseBuilder_ == null) { |
| subscribeResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse, org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponseOrBuilder>( |
| subscribeResponse_, |
| getParentForChildren(), |
| isClean()); |
| subscribeResponse_ = null; |
| } |
| return subscribeResponseBuilder_; |
| } |
| |
| // optional .Hedwig.SubscriptionEventResponse subscriptionEvent = 3; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse subscriptionEvent_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponseOrBuilder> subscriptionEventBuilder_; |
| public boolean hasSubscriptionEvent() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse getSubscriptionEvent() { |
| if (subscriptionEventBuilder_ == null) { |
| return subscriptionEvent_; |
| } else { |
| return subscriptionEventBuilder_.getMessage(); |
| } |
| } |
| public Builder setSubscriptionEvent(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse value) { |
| if (subscriptionEventBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| subscriptionEvent_ = value; |
| onChanged(); |
| } else { |
| subscriptionEventBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder setSubscriptionEvent( |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.Builder builderForValue) { |
| if (subscriptionEventBuilder_ == null) { |
| subscriptionEvent_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| subscriptionEventBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder mergeSubscriptionEvent(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse value) { |
| if (subscriptionEventBuilder_ == null) { |
| if (((bitField0_ & 0x00000004) == 0x00000004) && |
| subscriptionEvent_ != org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.getDefaultInstance()) { |
| subscriptionEvent_ = |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.newBuilder(subscriptionEvent_).mergeFrom(value).buildPartial(); |
| } else { |
| subscriptionEvent_ = value; |
| } |
| onChanged(); |
| } else { |
| subscriptionEventBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder clearSubscriptionEvent() { |
| if (subscriptionEventBuilder_ == null) { |
| subscriptionEvent_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.getDefaultInstance(); |
| onChanged(); |
| } else { |
| subscriptionEventBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.Builder getSubscriptionEventBuilder() { |
| bitField0_ |= 0x00000004; |
| onChanged(); |
| return getSubscriptionEventFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponseOrBuilder getSubscriptionEventOrBuilder() { |
| if (subscriptionEventBuilder_ != null) { |
| return subscriptionEventBuilder_.getMessageOrBuilder(); |
| } else { |
| return subscriptionEvent_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponseOrBuilder> |
| getSubscriptionEventFieldBuilder() { |
| if (subscriptionEventBuilder_ == null) { |
| subscriptionEventBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponseOrBuilder>( |
| subscriptionEvent_, |
| getParentForChildren(), |
| isClean()); |
| subscriptionEvent_ = null; |
| } |
| return subscriptionEventBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.ResponseBody) |
| } |
| |
| static { |
| defaultInstance = new ResponseBody(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.ResponseBody) |
| } |
| |
| public interface SubscriptionStateOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required .Hedwig.MessageSeqId msgId = 1; |
| boolean hasMsgId(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder(); |
| |
| // optional uint32 messageBound = 2; |
| boolean hasMessageBound(); |
| int getMessageBound(); |
| } |
| public static final class SubscriptionState extends |
| com.google.protobuf.GeneratedMessage |
| implements SubscriptionStateOrBuilder { |
| // Use SubscriptionState.newBuilder() to construct. |
| private SubscriptionState(Builder builder) { |
| super(builder); |
| } |
| private SubscriptionState(boolean noInit) {} |
| |
| private static final SubscriptionState defaultInstance; |
| public static SubscriptionState getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public SubscriptionState getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionState_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionState_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required .Hedwig.MessageSeqId msgId = 1; |
| public static final int MSGID_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId msgId_; |
| public boolean hasMsgId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() { |
| return msgId_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder() { |
| return msgId_; |
| } |
| |
| // optional uint32 messageBound = 2; |
| public static final int MESSAGEBOUND_FIELD_NUMBER = 2; |
| private int messageBound_; |
| public boolean hasMessageBound() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getMessageBound() { |
| return messageBound_; |
| } |
| |
| private void initFields() { |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| messageBound_ = 0; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasMsgId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!getMsgId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(1, msgId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt32(2, messageBound_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, msgId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(2, messageBound_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState 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.SubscriptionState parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState 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.SubscriptionState parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState 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.SubscriptionState 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.SubscriptionState 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.SubscriptionState parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState 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.SubscriptionState prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.SubscriptionStateOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionState_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionState_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getMsgIdFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (msgIdBuilder_ == null) { |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| } else { |
| msgIdBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| messageBound_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState build() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState result = new org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (msgIdBuilder_ == null) { |
| result.msgId_ = msgId_; |
| } else { |
| result.msgId_ = msgIdBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.messageBound_ = messageBound_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.getDefaultInstance()) return this; |
| if (other.hasMsgId()) { |
| mergeMsgId(other.getMsgId()); |
| } |
| if (other.hasMessageBound()) { |
| setMessageBound(other.getMessageBound()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasMsgId()) { |
| |
| return false; |
| } |
| if (!getMsgId().isInitialized()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| 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; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| messageBound_ = input.readUInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required .Hedwig.MessageSeqId msgId = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> msgIdBuilder_; |
| public boolean hasMsgId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getMsgId() { |
| if (msgIdBuilder_ == null) { |
| return msgId_; |
| } else { |
| return msgIdBuilder_.getMessage(); |
| } |
| } |
| public Builder setMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (msgIdBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| msgId_ = value; |
| onChanged(); |
| } else { |
| msgIdBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setMsgId( |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder builderForValue) { |
| if (msgIdBuilder_ == null) { |
| msgId_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| msgIdBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergeMsgId(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (msgIdBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| msgId_ != org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance()) { |
| msgId_ = |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(msgId_).mergeFrom(value).buildPartial(); |
| } else { |
| msgId_ = value; |
| } |
| onChanged(); |
| } else { |
| msgIdBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearMsgId() { |
| if (msgIdBuilder_ == null) { |
| msgId_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| onChanged(); |
| } else { |
| msgIdBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder getMsgIdBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getMsgIdFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder() { |
| if (msgIdBuilder_ != null) { |
| return msgIdBuilder_.getMessageOrBuilder(); |
| } else { |
| return msgId_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> |
| getMsgIdFieldBuilder() { |
| if (msgIdBuilder_ == null) { |
| msgIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder>( |
| msgId_, |
| getParentForChildren(), |
| isClean()); |
| msgId_ = null; |
| } |
| return msgIdBuilder_; |
| } |
| |
| // optional uint32 messageBound = 2; |
| private int messageBound_ ; |
| public boolean hasMessageBound() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getMessageBound() { |
| return messageBound_; |
| } |
| public Builder setMessageBound(int value) { |
| bitField0_ |= 0x00000002; |
| messageBound_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearMessageBound() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messageBound_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.SubscriptionState) |
| } |
| |
| static { |
| defaultInstance = new SubscriptionState(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.SubscriptionState) |
| } |
| |
| public interface SubscriptionDataOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional .Hedwig.SubscriptionState state = 1; |
| boolean hasState(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState getState(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionStateOrBuilder getStateOrBuilder(); |
| |
| // optional .Hedwig.SubscriptionPreferences preferences = 2; |
| boolean hasPreferences(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences(); |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder(); |
| } |
| public static final class SubscriptionData extends |
| com.google.protobuf.GeneratedMessage |
| implements SubscriptionDataOrBuilder { |
| // Use SubscriptionData.newBuilder() to construct. |
| private SubscriptionData(Builder builder) { |
| super(builder); |
| } |
| private SubscriptionData(boolean noInit) {} |
| |
| private static final SubscriptionData defaultInstance; |
| public static SubscriptionData getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public SubscriptionData getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionData_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionData_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // optional .Hedwig.SubscriptionState state = 1; |
| public static final int STATE_FIELD_NUMBER = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState state_; |
| public boolean hasState() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState getState() { |
| return state_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionStateOrBuilder getStateOrBuilder() { |
| return state_; |
| } |
| |
| // optional .Hedwig.SubscriptionPreferences preferences = 2; |
| public static final int PREFERENCES_FIELD_NUMBER = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences preferences_; |
| public boolean hasPreferences() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences() { |
| return preferences_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder() { |
| return preferences_; |
| } |
| |
| private void initFields() { |
| state_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.getDefaultInstance(); |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (hasState()) { |
| if (!getState().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(1, state_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeMessage(2, preferences_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, state_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, preferences_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData 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.SubscriptionData parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData 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.SubscriptionData parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData 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.SubscriptionData 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.SubscriptionData 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.SubscriptionData parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData 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.SubscriptionData prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.SubscriptionDataOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionData_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_SubscriptionData_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getStateFieldBuilder(); |
| getPreferencesFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (stateBuilder_ == null) { |
| state_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.getDefaultInstance(); |
| } else { |
| stateBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| if (preferencesBuilder_ == null) { |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| } else { |
| preferencesBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData build() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData result = new org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (stateBuilder_ == null) { |
| result.state_ = state_; |
| } else { |
| result.state_ = stateBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| if (preferencesBuilder_ == null) { |
| result.preferences_ = preferences_; |
| } else { |
| result.preferences_ = preferencesBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData.getDefaultInstance()) return this; |
| if (other.hasState()) { |
| mergeState(other.getState()); |
| } |
| if (other.hasPreferences()) { |
| mergePreferences(other.getPreferences()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (hasState()) { |
| if (!getState().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.newBuilder(); |
| if (hasState()) { |
| subBuilder.mergeFrom(getState()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setState(subBuilder.buildPartial()); |
| break; |
| } |
| case 18: { |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.newBuilder(); |
| if (hasPreferences()) { |
| subBuilder.mergeFrom(getPreferences()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPreferences(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional .Hedwig.SubscriptionState state = 1; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState state_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionStateOrBuilder> stateBuilder_; |
| public boolean hasState() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState getState() { |
| if (stateBuilder_ == null) { |
| return state_; |
| } else { |
| return stateBuilder_.getMessage(); |
| } |
| } |
| public Builder setState(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState value) { |
| if (stateBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| state_ = value; |
| onChanged(); |
| } else { |
| stateBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setState( |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.Builder builderForValue) { |
| if (stateBuilder_ == null) { |
| state_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| stateBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergeState(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState value) { |
| if (stateBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| state_ != org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.getDefaultInstance()) { |
| state_ = |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.newBuilder(state_).mergeFrom(value).buildPartial(); |
| } else { |
| state_ = value; |
| } |
| onChanged(); |
| } else { |
| stateBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearState() { |
| if (stateBuilder_ == null) { |
| state_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.getDefaultInstance(); |
| onChanged(); |
| } else { |
| stateBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.Builder getStateBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getStateFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionStateOrBuilder getStateOrBuilder() { |
| if (stateBuilder_ != null) { |
| return stateBuilder_.getMessageOrBuilder(); |
| } else { |
| return state_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionStateOrBuilder> |
| getStateFieldBuilder() { |
| if (stateBuilder_ == null) { |
| stateBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionStateOrBuilder>( |
| state_, |
| getParentForChildren(), |
| isClean()); |
| state_ = null; |
| } |
| return stateBuilder_; |
| } |
| |
| // optional .Hedwig.SubscriptionPreferences preferences = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder> preferencesBuilder_; |
| public boolean hasPreferences() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences getPreferences() { |
| if (preferencesBuilder_ == null) { |
| return preferences_; |
| } else { |
| return preferencesBuilder_.getMessage(); |
| } |
| } |
| public Builder setPreferences(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences value) { |
| if (preferencesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| preferences_ = value; |
| onChanged(); |
| } else { |
| preferencesBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder setPreferences( |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder builderForValue) { |
| if (preferencesBuilder_ == null) { |
| preferences_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| preferencesBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder mergePreferences(org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences value) { |
| if (preferencesBuilder_ == null) { |
| if (((bitField0_ & 0x00000002) == 0x00000002) && |
| preferences_ != org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance()) { |
| preferences_ = |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.newBuilder(preferences_).mergeFrom(value).buildPartial(); |
| } else { |
| preferences_ = value; |
| } |
| onChanged(); |
| } else { |
| preferencesBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder clearPreferences() { |
| if (preferencesBuilder_ == null) { |
| preferences_ = org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.getDefaultInstance(); |
| onChanged(); |
| } else { |
| preferencesBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder getPreferencesBuilder() { |
| bitField0_ |= 0x00000002; |
| onChanged(); |
| return getPreferencesFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder getPreferencesOrBuilder() { |
| if (preferencesBuilder_ != null) { |
| return preferencesBuilder_.getMessageOrBuilder(); |
| } else { |
| return preferences_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder> |
| getPreferencesFieldBuilder() { |
| if (preferencesBuilder_ == null) { |
| preferencesBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder, org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferencesOrBuilder>( |
| preferences_, |
| getParentForChildren(), |
| isClean()); |
| preferences_ = null; |
| } |
| return preferencesBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.SubscriptionData) |
| } |
| |
| static { |
| defaultInstance = new SubscriptionData(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.SubscriptionData) |
| } |
| |
| public interface LedgerRangeOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required uint64 ledgerId = 1; |
| boolean hasLedgerId(); |
| long getLedgerId(); |
| |
| // optional .Hedwig.MessageSeqId endSeqIdIncluded = 2; |
| boolean hasEndSeqIdIncluded(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getEndSeqIdIncluded(); |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getEndSeqIdIncludedOrBuilder(); |
| |
| // optional uint64 startSeqIdIncluded = 3; |
| boolean hasStartSeqIdIncluded(); |
| long getStartSeqIdIncluded(); |
| } |
| public static final class LedgerRange extends |
| com.google.protobuf.GeneratedMessage |
| implements LedgerRangeOrBuilder { |
| // Use LedgerRange.newBuilder() to construct. |
| private LedgerRange(Builder builder) { |
| super(builder); |
| } |
| private LedgerRange(boolean noInit) {} |
| |
| private static final LedgerRange defaultInstance; |
| public static LedgerRange getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public LedgerRange getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_LedgerRange_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_LedgerRange_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required uint64 ledgerId = 1; |
| public static final int LEDGERID_FIELD_NUMBER = 1; |
| private long ledgerId_; |
| public boolean hasLedgerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getLedgerId() { |
| return ledgerId_; |
| } |
| |
| // optional .Hedwig.MessageSeqId endSeqIdIncluded = 2; |
| public static final int ENDSEQIDINCLUDED_FIELD_NUMBER = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId endSeqIdIncluded_; |
| public boolean hasEndSeqIdIncluded() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getEndSeqIdIncluded() { |
| return endSeqIdIncluded_; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getEndSeqIdIncludedOrBuilder() { |
| return endSeqIdIncluded_; |
| } |
| |
| // optional uint64 startSeqIdIncluded = 3; |
| public static final int STARTSEQIDINCLUDED_FIELD_NUMBER = 3; |
| private long startSeqIdIncluded_; |
| public boolean hasStartSeqIdIncluded() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getStartSeqIdIncluded() { |
| return startSeqIdIncluded_; |
| } |
| |
| private void initFields() { |
| ledgerId_ = 0L; |
| endSeqIdIncluded_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| startSeqIdIncluded_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasLedgerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasEndSeqIdIncluded()) { |
| if (!getEndSeqIdIncluded().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, ledgerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeMessage(2, endSeqIdIncluded_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeUInt64(3, startSeqIdIncluded_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(1, ledgerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, endSeqIdIncluded_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(3, startSeqIdIncluded_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRange parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRange 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.LedgerRange parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRange 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.LedgerRange parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRange 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.LedgerRange 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.LedgerRange 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.LedgerRange parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRange 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.LedgerRange prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_LedgerRange_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_LedgerRange_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getEndSeqIdIncludedFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| ledgerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| if (endSeqIdIncludedBuilder_ == null) { |
| endSeqIdIncluded_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| } else { |
| endSeqIdIncludedBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| startSeqIdIncluded_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRange getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRange build() { |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.LedgerRange buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRange buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange result = new org.apache.hedwig.protocol.PubSubProtocol.LedgerRange(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.ledgerId_ = ledgerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| if (endSeqIdIncludedBuilder_ == null) { |
| result.endSeqIdIncluded_ = endSeqIdIncluded_; |
| } else { |
| result.endSeqIdIncluded_ = endSeqIdIncludedBuilder_.build(); |
| } |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.startSeqIdIncluded_ = startSeqIdIncluded_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.LedgerRange) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.LedgerRange)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.LedgerRange other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.getDefaultInstance()) return this; |
| if (other.hasLedgerId()) { |
| setLedgerId(other.getLedgerId()); |
| } |
| if (other.hasEndSeqIdIncluded()) { |
| mergeEndSeqIdIncluded(other.getEndSeqIdIncluded()); |
| } |
| if (other.hasStartSeqIdIncluded()) { |
| setStartSeqIdIncluded(other.getStartSeqIdIncluded()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasLedgerId()) { |
| |
| return false; |
| } |
| if (hasEndSeqIdIncluded()) { |
| if (!getEndSeqIdIncluded().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| ledgerId_ = input.readUInt64(); |
| break; |
| } |
| case 18: { |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(); |
| if (hasEndSeqIdIncluded()) { |
| subBuilder.mergeFrom(getEndSeqIdIncluded()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setEndSeqIdIncluded(subBuilder.buildPartial()); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| startSeqIdIncluded_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 ledgerId = 1; |
| private long ledgerId_ ; |
| public boolean hasLedgerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getLedgerId() { |
| return ledgerId_; |
| } |
| public Builder setLedgerId(long value) { |
| bitField0_ |= 0x00000001; |
| ledgerId_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearLedgerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| ledgerId_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional .Hedwig.MessageSeqId endSeqIdIncluded = 2; |
| private org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId endSeqIdIncluded_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> endSeqIdIncludedBuilder_; |
| public boolean hasEndSeqIdIncluded() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId getEndSeqIdIncluded() { |
| if (endSeqIdIncludedBuilder_ == null) { |
| return endSeqIdIncluded_; |
| } else { |
| return endSeqIdIncludedBuilder_.getMessage(); |
| } |
| } |
| public Builder setEndSeqIdIncluded(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (endSeqIdIncludedBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| endSeqIdIncluded_ = value; |
| onChanged(); |
| } else { |
| endSeqIdIncludedBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder setEndSeqIdIncluded( |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder builderForValue) { |
| if (endSeqIdIncludedBuilder_ == null) { |
| endSeqIdIncluded_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| endSeqIdIncludedBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder mergeEndSeqIdIncluded(org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId value) { |
| if (endSeqIdIncludedBuilder_ == null) { |
| if (((bitField0_ & 0x00000002) == 0x00000002) && |
| endSeqIdIncluded_ != org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance()) { |
| endSeqIdIncluded_ = |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.newBuilder(endSeqIdIncluded_).mergeFrom(value).buildPartial(); |
| } else { |
| endSeqIdIncluded_ = value; |
| } |
| onChanged(); |
| } else { |
| endSeqIdIncludedBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder clearEndSeqIdIncluded() { |
| if (endSeqIdIncludedBuilder_ == null) { |
| endSeqIdIncluded_ = org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.getDefaultInstance(); |
| onChanged(); |
| } else { |
| endSeqIdIncludedBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder getEndSeqIdIncludedBuilder() { |
| bitField0_ |= 0x00000002; |
| onChanged(); |
| return getEndSeqIdIncludedFieldBuilder().getBuilder(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder getEndSeqIdIncludedOrBuilder() { |
| if (endSeqIdIncludedBuilder_ != null) { |
| return endSeqIdIncludedBuilder_.getMessageOrBuilder(); |
| } else { |
| return endSeqIdIncluded_; |
| } |
| } |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder> |
| getEndSeqIdIncludedFieldBuilder() { |
| if (endSeqIdIncludedBuilder_ == null) { |
| endSeqIdIncludedBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder, org.apache.hedwig.protocol.PubSubProtocol.MessageSeqIdOrBuilder>( |
| endSeqIdIncluded_, |
| getParentForChildren(), |
| isClean()); |
| endSeqIdIncluded_ = null; |
| } |
| return endSeqIdIncludedBuilder_; |
| } |
| |
| // optional uint64 startSeqIdIncluded = 3; |
| private long startSeqIdIncluded_ ; |
| public boolean hasStartSeqIdIncluded() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getStartSeqIdIncluded() { |
| return startSeqIdIncluded_; |
| } |
| public Builder setStartSeqIdIncluded(long value) { |
| bitField0_ |= 0x00000004; |
| startSeqIdIncluded_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearStartSeqIdIncluded() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| startSeqIdIncluded_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.LedgerRange) |
| } |
| |
| static { |
| defaultInstance = new LedgerRange(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.LedgerRange) |
| } |
| |
| public interface LedgerRangesOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated .Hedwig.LedgerRange ranges = 1; |
| java.util.List<org.apache.hedwig.protocol.PubSubProtocol.LedgerRange> |
| getRangesList(); |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange getRanges(int index); |
| int getRangesCount(); |
| java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder> |
| getRangesOrBuilderList(); |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder getRangesOrBuilder( |
| int index); |
| } |
| public static final class LedgerRanges extends |
| com.google.protobuf.GeneratedMessage |
| implements LedgerRangesOrBuilder { |
| // Use LedgerRanges.newBuilder() to construct. |
| private LedgerRanges(Builder builder) { |
| super(builder); |
| } |
| private LedgerRanges(boolean noInit) {} |
| |
| private static final LedgerRanges defaultInstance; |
| public static LedgerRanges getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public LedgerRanges getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_LedgerRanges_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_LedgerRanges_fieldAccessorTable; |
| } |
| |
| // repeated .Hedwig.LedgerRange ranges = 1; |
| public static final int RANGES_FIELD_NUMBER = 1; |
| private java.util.List<org.apache.hedwig.protocol.PubSubProtocol.LedgerRange> ranges_; |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.LedgerRange> getRangesList() { |
| return ranges_; |
| } |
| public java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder> |
| getRangesOrBuilderList() { |
| return ranges_; |
| } |
| public int getRangesCount() { |
| return ranges_.size(); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRange getRanges(int index) { |
| return ranges_.get(index); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder getRangesOrBuilder( |
| int index) { |
| return ranges_.get(index); |
| } |
| |
| private void initFields() { |
| ranges_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| for (int i = 0; i < getRangesCount(); i++) { |
| if (!getRanges(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < ranges_.size(); i++) { |
| output.writeMessage(1, ranges_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| for (int i = 0; i < ranges_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, ranges_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges 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.LedgerRanges parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges 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.LedgerRanges parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges 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.LedgerRanges 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.LedgerRanges 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.LedgerRanges parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges 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.LedgerRanges prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.LedgerRangesOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_LedgerRanges_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_LedgerRanges_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getRangesFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (rangesBuilder_ == null) { |
| ranges_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| rangesBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges build() { |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges result = new org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges(this); |
| int from_bitField0_ = bitField0_; |
| if (rangesBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| ranges_ = java.util.Collections.unmodifiableList(ranges_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.ranges_ = ranges_; |
| } else { |
| result.ranges_ = rangesBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges.getDefaultInstance()) return this; |
| if (rangesBuilder_ == null) { |
| if (!other.ranges_.isEmpty()) { |
| if (ranges_.isEmpty()) { |
| ranges_ = other.ranges_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureRangesIsMutable(); |
| ranges_.addAll(other.ranges_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.ranges_.isEmpty()) { |
| if (rangesBuilder_.isEmpty()) { |
| rangesBuilder_.dispose(); |
| rangesBuilder_ = null; |
| ranges_ = other.ranges_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| rangesBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getRangesFieldBuilder() : null; |
| } else { |
| rangesBuilder_.addAllMessages(other.ranges_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| for (int i = 0; i < getRangesCount(); i++) { |
| if (!getRanges(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder subBuilder = org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addRanges(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // repeated .Hedwig.LedgerRange ranges = 1; |
| private java.util.List<org.apache.hedwig.protocol.PubSubProtocol.LedgerRange> ranges_ = |
| java.util.Collections.emptyList(); |
| private void ensureRangesIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| ranges_ = new java.util.ArrayList<org.apache.hedwig.protocol.PubSubProtocol.LedgerRange>(ranges_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange, org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder, org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder> rangesBuilder_; |
| |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.LedgerRange> getRangesList() { |
| if (rangesBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(ranges_); |
| } else { |
| return rangesBuilder_.getMessageList(); |
| } |
| } |
| public int getRangesCount() { |
| if (rangesBuilder_ == null) { |
| return ranges_.size(); |
| } else { |
| return rangesBuilder_.getCount(); |
| } |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRange getRanges(int index) { |
| if (rangesBuilder_ == null) { |
| return ranges_.get(index); |
| } else { |
| return rangesBuilder_.getMessage(index); |
| } |
| } |
| public Builder setRanges( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.LedgerRange value) { |
| if (rangesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureRangesIsMutable(); |
| ranges_.set(index, value); |
| onChanged(); |
| } else { |
| rangesBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| public Builder setRanges( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder builderForValue) { |
| if (rangesBuilder_ == null) { |
| ensureRangesIsMutable(); |
| ranges_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| rangesBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addRanges(org.apache.hedwig.protocol.PubSubProtocol.LedgerRange value) { |
| if (rangesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureRangesIsMutable(); |
| ranges_.add(value); |
| onChanged(); |
| } else { |
| rangesBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| public Builder addRanges( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.LedgerRange value) { |
| if (rangesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureRangesIsMutable(); |
| ranges_.add(index, value); |
| onChanged(); |
| } else { |
| rangesBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| public Builder addRanges( |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder builderForValue) { |
| if (rangesBuilder_ == null) { |
| ensureRangesIsMutable(); |
| ranges_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| rangesBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addRanges( |
| int index, org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder builderForValue) { |
| if (rangesBuilder_ == null) { |
| ensureRangesIsMutable(); |
| ranges_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| rangesBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| public Builder addAllRanges( |
| java.lang.Iterable<? extends org.apache.hedwig.protocol.PubSubProtocol.LedgerRange> values) { |
| if (rangesBuilder_ == null) { |
| ensureRangesIsMutable(); |
| super.addAll(values, ranges_); |
| onChanged(); |
| } else { |
| rangesBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| public Builder clearRanges() { |
| if (rangesBuilder_ == null) { |
| ranges_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| } else { |
| rangesBuilder_.clear(); |
| } |
| return this; |
| } |
| public Builder removeRanges(int index) { |
| if (rangesBuilder_ == null) { |
| ensureRangesIsMutable(); |
| ranges_.remove(index); |
| onChanged(); |
| } else { |
| rangesBuilder_.remove(index); |
| } |
| return this; |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder getRangesBuilder( |
| int index) { |
| return getRangesFieldBuilder().getBuilder(index); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder getRangesOrBuilder( |
| int index) { |
| if (rangesBuilder_ == null) { |
| return ranges_.get(index); } else { |
| return rangesBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| public java.util.List<? extends org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder> |
| getRangesOrBuilderList() { |
| if (rangesBuilder_ != null) { |
| return rangesBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(ranges_); |
| } |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder addRangesBuilder() { |
| return getRangesFieldBuilder().addBuilder( |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.getDefaultInstance()); |
| } |
| public org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder addRangesBuilder( |
| int index) { |
| return getRangesFieldBuilder().addBuilder( |
| index, org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.getDefaultInstance()); |
| } |
| public java.util.List<org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder> |
| getRangesBuilderList() { |
| return getRangesFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange, org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder, org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder> |
| getRangesFieldBuilder() { |
| if (rangesBuilder_ == null) { |
| rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange, org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder, org.apache.hedwig.protocol.PubSubProtocol.LedgerRangeOrBuilder>( |
| ranges_, |
| ((bitField0_ & 0x00000001) == 0x00000001), |
| getParentForChildren(), |
| isClean()); |
| ranges_ = null; |
| } |
| return rangesBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.LedgerRanges) |
| } |
| |
| static { |
| defaultInstance = new LedgerRanges(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.LedgerRanges) |
| } |
| |
| public interface ManagerMetaOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string managerImpl = 2; |
| boolean hasManagerImpl(); |
| String getManagerImpl(); |
| |
| // required uint32 managerVersion = 3; |
| boolean hasManagerVersion(); |
| int getManagerVersion(); |
| } |
| public static final class ManagerMeta extends |
| com.google.protobuf.GeneratedMessage |
| implements ManagerMetaOrBuilder { |
| // Use ManagerMeta.newBuilder() to construct. |
| private ManagerMeta(Builder builder) { |
| super(builder); |
| } |
| private ManagerMeta(boolean noInit) {} |
| |
| private static final ManagerMeta defaultInstance; |
| public static ManagerMeta getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public ManagerMeta getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ManagerMeta_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ManagerMeta_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required string managerImpl = 2; |
| public static final int MANAGERIMPL_FIELD_NUMBER = 2; |
| private java.lang.Object managerImpl_; |
| public boolean hasManagerImpl() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getManagerImpl() { |
| java.lang.Object ref = managerImpl_; |
| if (ref instanceof String) { |
| return (String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| String s = bs.toStringUtf8(); |
| if (com.google.protobuf.Internal.isValidUtf8(bs)) { |
| managerImpl_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getManagerImplBytes() { |
| java.lang.Object ref = managerImpl_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| managerImpl_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required uint32 managerVersion = 3; |
| public static final int MANAGERVERSION_FIELD_NUMBER = 3; |
| private int managerVersion_; |
| public boolean hasManagerVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getManagerVersion() { |
| return managerVersion_; |
| } |
| |
| private void initFields() { |
| managerImpl_ = ""; |
| managerVersion_ = 0; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasManagerImpl()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasManagerVersion()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, getManagerImplBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt32(3, managerVersion_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getManagerImplBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(3, managerVersion_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta 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.ManagerMeta parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta 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.ManagerMeta parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta 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.ManagerMeta 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.ManagerMeta 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.ManagerMeta parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta 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.ManagerMeta prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.ManagerMetaOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ManagerMeta_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_ManagerMeta_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| managerImpl_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| managerVersion_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta build() { |
| org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta result = new org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.managerImpl_ = managerImpl_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.managerVersion_ = managerVersion_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta.getDefaultInstance()) return this; |
| if (other.hasManagerImpl()) { |
| setManagerImpl(other.getManagerImpl()); |
| } |
| if (other.hasManagerVersion()) { |
| setManagerVersion(other.getManagerVersion()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasManagerImpl()) { |
| |
| return false; |
| } |
| if (!hasManagerVersion()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000001; |
| managerImpl_ = input.readBytes(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000002; |
| managerVersion_ = input.readUInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string managerImpl = 2; |
| private java.lang.Object managerImpl_ = ""; |
| public boolean hasManagerImpl() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getManagerImpl() { |
| java.lang.Object ref = managerImpl_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| managerImpl_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setManagerImpl(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| managerImpl_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearManagerImpl() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| managerImpl_ = getDefaultInstance().getManagerImpl(); |
| onChanged(); |
| return this; |
| } |
| void setManagerImpl(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| managerImpl_ = value; |
| onChanged(); |
| } |
| |
| // required uint32 managerVersion = 3; |
| private int managerVersion_ ; |
| public boolean hasManagerVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getManagerVersion() { |
| return managerVersion_; |
| } |
| public Builder setManagerVersion(int value) { |
| bitField0_ |= 0x00000002; |
| managerVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearManagerVersion() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| managerVersion_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.ManagerMeta) |
| } |
| |
| static { |
| defaultInstance = new ManagerMeta(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.ManagerMeta) |
| } |
| |
| public interface HubInfoDataOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string hostname = 2; |
| boolean hasHostname(); |
| String getHostname(); |
| |
| // required uint64 czxid = 3; |
| boolean hasCzxid(); |
| long getCzxid(); |
| } |
| public static final class HubInfoData extends |
| com.google.protobuf.GeneratedMessage |
| implements HubInfoDataOrBuilder { |
| // Use HubInfoData.newBuilder() to construct. |
| private HubInfoData(Builder builder) { |
| super(builder); |
| } |
| private HubInfoData(boolean noInit) {} |
| |
| private static final HubInfoData defaultInstance; |
| public static HubInfoData getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public HubInfoData getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_HubInfoData_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_HubInfoData_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required string hostname = 2; |
| public static final int HOSTNAME_FIELD_NUMBER = 2; |
| private java.lang.Object hostname_; |
| public boolean hasHostname() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getHostname() { |
| java.lang.Object ref = hostname_; |
| if (ref instanceof String) { |
| return (String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| String s = bs.toStringUtf8(); |
| if (com.google.protobuf.Internal.isValidUtf8(bs)) { |
| hostname_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getHostnameBytes() { |
| java.lang.Object ref = hostname_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| hostname_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required uint64 czxid = 3; |
| public static final int CZXID_FIELD_NUMBER = 3; |
| private long czxid_; |
| public boolean hasCzxid() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getCzxid() { |
| return czxid_; |
| } |
| |
| private void initFields() { |
| hostname_ = ""; |
| czxid_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasHostname()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasCzxid()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, getHostnameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(3, czxid_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getHostnameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(3, czxid_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubInfoData parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubInfoData 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.HubInfoData parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubInfoData 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.HubInfoData parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubInfoData 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.HubInfoData 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.HubInfoData 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.HubInfoData parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubInfoData 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.HubInfoData prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.HubInfoDataOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_HubInfoData_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_HubInfoData_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.HubInfoData.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| hostname_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| czxid_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.HubInfoData.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.HubInfoData getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.HubInfoData.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.HubInfoData build() { |
| org.apache.hedwig.protocol.PubSubProtocol.HubInfoData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.HubInfoData buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.HubInfoData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.HubInfoData buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.HubInfoData result = new org.apache.hedwig.protocol.PubSubProtocol.HubInfoData(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.hostname_ = hostname_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.czxid_ = czxid_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.HubInfoData) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.HubInfoData)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.HubInfoData other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.HubInfoData.getDefaultInstance()) return this; |
| if (other.hasHostname()) { |
| setHostname(other.getHostname()); |
| } |
| if (other.hasCzxid()) { |
| setCzxid(other.getCzxid()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasHostname()) { |
| |
| return false; |
| } |
| if (!hasCzxid()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000001; |
| hostname_ = input.readBytes(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000002; |
| czxid_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string hostname = 2; |
| private java.lang.Object hostname_ = ""; |
| public boolean hasHostname() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getHostname() { |
| java.lang.Object ref = hostname_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| hostname_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setHostname(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| hostname_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearHostname() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| hostname_ = getDefaultInstance().getHostname(); |
| onChanged(); |
| return this; |
| } |
| void setHostname(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| hostname_ = value; |
| onChanged(); |
| } |
| |
| // required uint64 czxid = 3; |
| private long czxid_ ; |
| public boolean hasCzxid() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getCzxid() { |
| return czxid_; |
| } |
| public Builder setCzxid(long value) { |
| bitField0_ |= 0x00000002; |
| czxid_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearCzxid() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| czxid_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.HubInfoData) |
| } |
| |
| static { |
| defaultInstance = new HubInfoData(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.HubInfoData) |
| } |
| |
| public interface HubLoadDataOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required uint64 numTopics = 2; |
| boolean hasNumTopics(); |
| long getNumTopics(); |
| } |
| public static final class HubLoadData extends |
| com.google.protobuf.GeneratedMessage |
| implements HubLoadDataOrBuilder { |
| // Use HubLoadData.newBuilder() to construct. |
| private HubLoadData(Builder builder) { |
| super(builder); |
| } |
| private HubLoadData(boolean noInit) {} |
| |
| private static final HubLoadData defaultInstance; |
| public static HubLoadData getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public HubLoadData getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_HubLoadData_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_HubLoadData_fieldAccessorTable; |
| } |
| |
| private int bitField0_; |
| // required uint64 numTopics = 2; |
| public static final int NUMTOPICS_FIELD_NUMBER = 2; |
| private long numTopics_; |
| public boolean hasNumTopics() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getNumTopics() { |
| return numTopics_; |
| } |
| |
| private void initFields() { |
| numTopics_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasNumTopics()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(2, numTopics_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, numTopics_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubLoadData parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubLoadData 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.HubLoadData parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubLoadData 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.HubLoadData parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubLoadData 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.HubLoadData 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.HubLoadData 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.HubLoadData parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.hedwig.protocol.PubSubProtocol.HubLoadData 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.HubLoadData prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.hedwig.protocol.PubSubProtocol.HubLoadDataOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_HubLoadData_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.hedwig.protocol.PubSubProtocol.internal_static_Hedwig_HubLoadData_fieldAccessorTable; |
| } |
| |
| // Construct using org.apache.hedwig.protocol.PubSubProtocol.HubLoadData.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder(BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| numTopics_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.HubLoadData.getDescriptor(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.HubLoadData getDefaultInstanceForType() { |
| return org.apache.hedwig.protocol.PubSubProtocol.HubLoadData.getDefaultInstance(); |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.HubLoadData build() { |
| org.apache.hedwig.protocol.PubSubProtocol.HubLoadData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.hedwig.protocol.PubSubProtocol.HubLoadData buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.hedwig.protocol.PubSubProtocol.HubLoadData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.hedwig.protocol.PubSubProtocol.HubLoadData buildPartial() { |
| org.apache.hedwig.protocol.PubSubProtocol.HubLoadData result = new org.apache.hedwig.protocol.PubSubProtocol.HubLoadData(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.numTopics_ = numTopics_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.hedwig.protocol.PubSubProtocol.HubLoadData) { |
| return mergeFrom((org.apache.hedwig.protocol.PubSubProtocol.HubLoadData)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.hedwig.protocol.PubSubProtocol.HubLoadData other) { |
| if (other == org.apache.hedwig.protocol.PubSubProtocol.HubLoadData.getDefaultInstance()) return this; |
| if (other.hasNumTopics()) { |
| setNumTopics(other.getNumTopics()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasNumTopics()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| 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()); |
| onChanged(); |
| return this; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| this.setUnknownFields(unknownFields.build()); |
| onChanged(); |
| return this; |
| } |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000001; |
| numTopics_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 numTopics = 2; |
| private long numTopics_ ; |
| public boolean hasNumTopics() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getNumTopics() { |
| return numTopics_; |
| } |
| public Builder setNumTopics(long value) { |
| bitField0_ |= 0x00000001; |
| numTopics_ = value; |
| onChanged(); |
| return this; |
| } |
| public Builder clearNumTopics() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| numTopics_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:Hedwig.HubLoadData) |
| } |
| |
| static { |
| defaultInstance = new HubLoadData(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:Hedwig.HubLoadData) |
| } |
| |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_Map_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_Map_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_Map_Entry_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_Map_Entry_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_MessageHeader_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_MessageHeader_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_Message_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_Message_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_RegionSpecificSeqId_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_RegionSpecificSeqId_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_MessageSeqId_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_MessageSeqId_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_PubSubRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_PubSubRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_PublishRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_PublishRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_SubscriptionPreferences_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_SubscriptionPreferences_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_SubscribeRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_SubscribeRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_SubscriptionOptions_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_SubscriptionOptions_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_ConsumeRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_ConsumeRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_UnsubscribeRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_UnsubscribeRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_CloseSubscriptionRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_CloseSubscriptionRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_StopDeliveryRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_StopDeliveryRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_StartDeliveryRequest_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_StartDeliveryRequest_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_SubscriptionEventResponse_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_SubscriptionEventResponse_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_PubSubResponse_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_PubSubResponse_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_PublishResponse_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_PublishResponse_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_SubscribeResponse_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_SubscribeResponse_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_ResponseBody_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_ResponseBody_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_SubscriptionState_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_SubscriptionState_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_SubscriptionData_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_SubscriptionData_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_LedgerRange_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_LedgerRange_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_LedgerRanges_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_LedgerRanges_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_ManagerMeta_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_ManagerMeta_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_HubInfoData_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_HubInfoData_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_Hedwig_HubLoadData_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_Hedwig_HubLoadData_fieldAccessorTable; |
| |
| public static com.google.protobuf.Descriptors.FileDescriptor |
| getDescriptor() { |
| return descriptor; |
| } |
| private static com.google.protobuf.Descriptors.FileDescriptor |
| descriptor; |
| static { |
| java.lang.String[] descriptorData = { |
| "\n&src/main/protobuf/PubSubProtocol.proto" + |
| "\022\006Hedwig\"N\n\003Map\022\"\n\007entries\030\001 \003(\0132\021.Hedwi" + |
| "g.Map.Entry\032#\n\005Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + |
| "ue\030\002 \001(\014\"E\n\rMessageHeader\022\037\n\nproperties\030" + |
| "\001 \001(\0132\013.Hedwig.Map\022\023\n\013messageType\030\002 \001(\t\"" + |
| "v\n\007Message\022\014\n\004body\030\001 \002(\014\022\021\n\tsrcRegion\030\002 " + |
| "\001(\014\022#\n\005msgId\030\003 \001(\0132\024.Hedwig.MessageSeqId" + |
| "\022%\n\006header\030\004 \001(\0132\025.Hedwig.MessageHeader\"" + |
| "4\n\023RegionSpecificSeqId\022\016\n\006region\030\001 \002(\014\022\r" + |
| "\n\005seqId\030\002 \002(\004\"]\n\014MessageSeqId\022\026\n\016localCo", |
| "mponent\030\001 \001(\004\0225\n\020remoteComponents\030\002 \003(\0132" + |
| "\033.Hedwig.RegionSpecificSeqId\"\265\004\n\rPubSubR" + |
| "equest\0220\n\017protocolVersion\030\001 \002(\0162\027.Hedwig" + |
| ".ProtocolVersion\022#\n\004type\030\002 \002(\0162\025.Hedwig." + |
| "OperationType\022\024\n\014triedServers\030\003 \003(\014\022\r\n\005t" + |
| "xnId\030\004 \002(\004\022\023\n\013shouldClaim\030\005 \001(\010\022\r\n\005topic" + |
| "\030\006 \002(\014\022.\n\016publishRequest\0304 \001(\0132\026.Hedwig." + |
| "PublishRequest\0222\n\020subscribeRequest\0305 \001(\013" + |
| "2\030.Hedwig.SubscribeRequest\022.\n\016consumeReq" + |
| "uest\0306 \001(\0132\026.Hedwig.ConsumeRequest\0226\n\022un", |
| "subscribeRequest\0307 \001(\0132\032.Hedwig.Unsubscr" + |
| "ibeRequest\0228\n\023stopDeliveryRequest\0308 \001(\0132" + |
| "\033.Hedwig.StopDeliveryRequest\022:\n\024startDel" + |
| "iveryRequest\0309 \001(\0132\034.Hedwig.StartDeliver" + |
| "yRequest\022B\n\030closeSubscriptionRequest\030: \001" + |
| "(\0132 .Hedwig.CloseSubscriptionRequest\".\n\016" + |
| "PublishRequest\022\034\n\003msg\030\002 \002(\0132\017.Hedwig.Mes" + |
| "sage\"\177\n\027SubscriptionPreferences\022\034\n\007optio" + |
| "ns\030\001 \001(\0132\013.Hedwig.Map\022\024\n\014messageBound\030\002 " + |
| "\001(\r\022\025\n\rmessageFilter\030\003 \001(\t\022\031\n\021messageWin", |
| "dowSize\030\004 \001(\r\"\277\002\n\020SubscribeRequest\022\024\n\014su" + |
| "bscriberId\030\002 \002(\014\022Q\n\016createOrAttach\030\003 \001(\016" + |
| "2\'.Hedwig.SubscribeRequest.CreateOrAttac" + |
| "h:\020CREATE_OR_ATTACH\022\032\n\013synchronous\030\004 \001(\010" + |
| ":\005false\022\024\n\014messageBound\030\005 \001(\r\0224\n\013prefere" + |
| "nces\030\006 \001(\0132\037.Hedwig.SubscriptionPreferen" + |
| "ces\022\032\n\013forceAttach\030\007 \001(\010:\005false\">\n\016Creat" + |
| "eOrAttach\022\n\n\006CREATE\020\000\022\n\n\006ATTACH\020\001\022\024\n\020CRE" + |
| "ATE_OR_ATTACH\020\002\"\216\002\n\023SubscriptionOptions\022" + |
| "\032\n\013forceAttach\030\001 \001(\010:\005false\022Q\n\016createOrA", |
| "ttach\030\002 \001(\0162\'.Hedwig.SubscribeRequest.Cr" + |
| "eateOrAttach:\020CREATE_OR_ATTACH\022\027\n\014messag" + |
| "eBound\030\003 \001(\r:\0010\022\034\n\007options\030\004 \001(\0132\013.Hedwi" + |
| "g.Map\022\025\n\rmessageFilter\030\005 \001(\t\022\031\n\021messageW" + |
| "indowSize\030\006 \001(\r\022\037\n\021enableResubscribe\030\007 \001" + |
| "(\010:\004true\"K\n\016ConsumeRequest\022\024\n\014subscriber" + |
| "Id\030\002 \002(\014\022#\n\005msgId\030\003 \002(\0132\024.Hedwig.Message" + |
| "SeqId\"*\n\022UnsubscribeRequest\022\024\n\014subscribe" + |
| "rId\030\002 \002(\014\"0\n\030CloseSubscriptionRequest\022\024\n" + |
| "\014subscriberId\030\002 \002(\014\"+\n\023StopDeliveryReque", |
| "st\022\024\n\014subscriberId\030\002 \002(\014\",\n\024StartDeliver" + |
| "yRequest\022\024\n\014subscriberId\030\002 \002(\014\"E\n\031Subscr" + |
| "iptionEventResponse\022(\n\005event\030\001 \001(\0162\031.Hed" + |
| "wig.SubscriptionEvent\"\377\001\n\016PubSubResponse" + |
| "\0220\n\017protocolVersion\030\001 \002(\0162\027.Hedwig.Proto" + |
| "colVersion\022&\n\nstatusCode\030\002 \002(\0162\022.Hedwig." + |
| "StatusCode\022\r\n\005txnId\030\003 \002(\004\022\021\n\tstatusMsg\030\004" + |
| " \001(\t\022 \n\007message\030\005 \001(\0132\017.Hedwig.Message\022\r" + |
| "\n\005topic\030\006 \001(\014\022\024\n\014subscriberId\030\007 \001(\014\022*\n\014r" + |
| "esponseBody\030\010 \001(\0132\024.Hedwig.ResponseBody\"", |
| "?\n\017PublishResponse\022,\n\016publishedMsgId\030\001 \002" + |
| "(\0132\024.Hedwig.MessageSeqId\"I\n\021SubscribeRes" + |
| "ponse\0224\n\013preferences\030\002 \001(\0132\037.Hedwig.Subs" + |
| "criptionPreferences\"\264\001\n\014ResponseBody\0220\n\017" + |
| "publishResponse\030\001 \001(\0132\027.Hedwig.PublishRe" + |
| "sponse\0224\n\021subscribeResponse\030\002 \001(\0132\031.Hedw" + |
| "ig.SubscribeResponse\022<\n\021subscriptionEven" + |
| "t\030\003 \001(\0132!.Hedwig.SubscriptionEventRespon" + |
| "se\"N\n\021SubscriptionState\022#\n\005msgId\030\001 \002(\0132\024" + |
| ".Hedwig.MessageSeqId\022\024\n\014messageBound\030\002 \001", |
| "(\r\"r\n\020SubscriptionData\022(\n\005state\030\001 \001(\0132\031." + |
| "Hedwig.SubscriptionState\0224\n\013preferences\030" + |
| "\002 \001(\0132\037.Hedwig.SubscriptionPreferences\"k" + |
| "\n\013LedgerRange\022\020\n\010ledgerId\030\001 \002(\004\022.\n\020endSe" + |
| "qIdIncluded\030\002 \001(\0132\024.Hedwig.MessageSeqId\022" + |
| "\032\n\022startSeqIdIncluded\030\003 \001(\004\"3\n\014LedgerRan" + |
| "ges\022#\n\006ranges\030\001 \003(\0132\023.Hedwig.LedgerRange" + |
| "\":\n\013ManagerMeta\022\023\n\013managerImpl\030\002 \002(\t\022\026\n\016" + |
| "managerVersion\030\003 \002(\r\".\n\013HubInfoData\022\020\n\010h" + |
| "ostname\030\002 \002(\t\022\r\n\005czxid\030\003 \002(\004\" \n\013HubLoadD", |
| "ata\022\021\n\tnumTopics\030\002 \002(\004*\"\n\017ProtocolVersio" + |
| "n\022\017\n\013VERSION_ONE\020\001*\207\001\n\rOperationType\022\013\n\007" + |
| "PUBLISH\020\000\022\r\n\tSUBSCRIBE\020\001\022\013\n\007CONSUME\020\002\022\017\n" + |
| "\013UNSUBSCRIBE\020\003\022\022\n\016START_DELIVERY\020\004\022\021\n\rST" + |
| "OP_DELIVERY\020\005\022\025\n\021CLOSESUBSCRIPTION\020\006*D\n\021" + |
| "SubscriptionEvent\022\017\n\013TOPIC_MOVED\020\001\022\036\n\032SU" + |
| "BSCRIPTION_FORCED_CLOSED\020\002*\241\004\n\nStatusCod" + |
| "e\022\013\n\007SUCCESS\020\000\022\026\n\021MALFORMED_REQUEST\020\221\003\022\022" + |
| "\n\rNO_SUCH_TOPIC\020\222\003\022\036\n\031CLIENT_ALREADY_SUB" + |
| "SCRIBED\020\223\003\022\032\n\025CLIENT_NOT_SUBSCRIBED\020\224\003\022\026", |
| "\n\021COULD_NOT_CONNECT\020\225\003\022\017\n\nTOPIC_BUSY\020\226\003\022" + |
| "\032\n\025RESUBSCRIBE_EXCEPTION\020\227\003\022\036\n\031NOT_RESPO" + |
| "NSIBLE_FOR_TOPIC\020\365\003\022\021\n\014SERVICE_DOWN\020\366\003\022\024" + |
| "\n\017UNCERTAIN_STATE\020\367\003\022\033\n\026INVALID_MESSAGE_" + |
| "FILTER\020\370\003\022\020\n\013BAD_VERSION\020\210\004\022\036\n\031NO_TOPIC_" + |
| "PERSISTENCE_INFO\020\211\004\022\"\n\035TOPIC_PERSISTENCE" + |
| "_INFO_EXISTS\020\212\004\022\032\n\025NO_SUBSCRIPTION_STATE" + |
| "\020\213\004\022\036\n\031SUBSCRIPTION_STATE_EXISTS\020\214\004\022\030\n\023N" + |
| "O_TOPIC_OWNER_INFO\020\215\004\022\034\n\027TOPIC_OWNER_INF" + |
| "O_EXISTS\020\216\004\022\031\n\024UNEXPECTED_CONDITION\020\330\004\022\016", |
| "\n\tCOMPOSITE\020\274\005B\036\n\032org.apache.hedwig.prot" + |
| "ocolH\001" |
| }; |
| com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = |
| new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { |
| public com.google.protobuf.ExtensionRegistry assignDescriptors( |
| com.google.protobuf.Descriptors.FileDescriptor root) { |
| descriptor = root; |
| internal_static_Hedwig_Map_descriptor = |
| getDescriptor().getMessageTypes().get(0); |
| internal_static_Hedwig_Map_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_Map_descriptor, |
| new java.lang.String[] { "Entries", }, |
| org.apache.hedwig.protocol.PubSubProtocol.Map.class, |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Builder.class); |
| internal_static_Hedwig_Map_Entry_descriptor = |
| internal_static_Hedwig_Map_descriptor.getNestedTypes().get(0); |
| internal_static_Hedwig_Map_Entry_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_Map_Entry_descriptor, |
| new java.lang.String[] { "Key", "Value", }, |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.class, |
| org.apache.hedwig.protocol.PubSubProtocol.Map.Entry.Builder.class); |
| internal_static_Hedwig_MessageHeader_descriptor = |
| getDescriptor().getMessageTypes().get(1); |
| internal_static_Hedwig_MessageHeader_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_MessageHeader_descriptor, |
| new java.lang.String[] { "Properties", "MessageType", }, |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.class, |
| org.apache.hedwig.protocol.PubSubProtocol.MessageHeader.Builder.class); |
| internal_static_Hedwig_Message_descriptor = |
| getDescriptor().getMessageTypes().get(2); |
| internal_static_Hedwig_Message_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_Message_descriptor, |
| new java.lang.String[] { "Body", "SrcRegion", "MsgId", "Header", }, |
| org.apache.hedwig.protocol.PubSubProtocol.Message.class, |
| org.apache.hedwig.protocol.PubSubProtocol.Message.Builder.class); |
| internal_static_Hedwig_RegionSpecificSeqId_descriptor = |
| getDescriptor().getMessageTypes().get(3); |
| internal_static_Hedwig_RegionSpecificSeqId_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_RegionSpecificSeqId_descriptor, |
| new java.lang.String[] { "Region", "SeqId", }, |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.class, |
| org.apache.hedwig.protocol.PubSubProtocol.RegionSpecificSeqId.Builder.class); |
| internal_static_Hedwig_MessageSeqId_descriptor = |
| getDescriptor().getMessageTypes().get(4); |
| internal_static_Hedwig_MessageSeqId_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_MessageSeqId_descriptor, |
| new java.lang.String[] { "LocalComponent", "RemoteComponents", }, |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.class, |
| org.apache.hedwig.protocol.PubSubProtocol.MessageSeqId.Builder.class); |
| internal_static_Hedwig_PubSubRequest_descriptor = |
| getDescriptor().getMessageTypes().get(5); |
| internal_static_Hedwig_PubSubRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_PubSubRequest_descriptor, |
| new java.lang.String[] { "ProtocolVersion", "Type", "TriedServers", "TxnId", "ShouldClaim", "Topic", "PublishRequest", "SubscribeRequest", "ConsumeRequest", "UnsubscribeRequest", "StopDeliveryRequest", "StartDeliveryRequest", "CloseSubscriptionRequest", }, |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest.class, |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubRequest.Builder.class); |
| internal_static_Hedwig_PublishRequest_descriptor = |
| getDescriptor().getMessageTypes().get(6); |
| internal_static_Hedwig_PublishRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_PublishRequest_descriptor, |
| new java.lang.String[] { "Msg", }, |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.class, |
| org.apache.hedwig.protocol.PubSubProtocol.PublishRequest.Builder.class); |
| internal_static_Hedwig_SubscriptionPreferences_descriptor = |
| getDescriptor().getMessageTypes().get(7); |
| internal_static_Hedwig_SubscriptionPreferences_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_SubscriptionPreferences_descriptor, |
| new java.lang.String[] { "Options", "MessageBound", "MessageFilter", "MessageWindowSize", }, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.class, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences.Builder.class); |
| internal_static_Hedwig_SubscribeRequest_descriptor = |
| getDescriptor().getMessageTypes().get(8); |
| internal_static_Hedwig_SubscribeRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_SubscribeRequest_descriptor, |
| new java.lang.String[] { "SubscriberId", "CreateOrAttach", "Synchronous", "MessageBound", "Preferences", "ForceAttach", }, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.class, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeRequest.Builder.class); |
| internal_static_Hedwig_SubscriptionOptions_descriptor = |
| getDescriptor().getMessageTypes().get(9); |
| internal_static_Hedwig_SubscriptionOptions_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_SubscriptionOptions_descriptor, |
| new java.lang.String[] { "ForceAttach", "CreateOrAttach", "MessageBound", "Options", "MessageFilter", "MessageWindowSize", "EnableResubscribe", }, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions.class, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionOptions.Builder.class); |
| internal_static_Hedwig_ConsumeRequest_descriptor = |
| getDescriptor().getMessageTypes().get(10); |
| internal_static_Hedwig_ConsumeRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_ConsumeRequest_descriptor, |
| new java.lang.String[] { "SubscriberId", "MsgId", }, |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.class, |
| org.apache.hedwig.protocol.PubSubProtocol.ConsumeRequest.Builder.class); |
| internal_static_Hedwig_UnsubscribeRequest_descriptor = |
| getDescriptor().getMessageTypes().get(11); |
| internal_static_Hedwig_UnsubscribeRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_UnsubscribeRequest_descriptor, |
| new java.lang.String[] { "SubscriberId", }, |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.class, |
| org.apache.hedwig.protocol.PubSubProtocol.UnsubscribeRequest.Builder.class); |
| internal_static_Hedwig_CloseSubscriptionRequest_descriptor = |
| getDescriptor().getMessageTypes().get(12); |
| internal_static_Hedwig_CloseSubscriptionRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_CloseSubscriptionRequest_descriptor, |
| new java.lang.String[] { "SubscriberId", }, |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.class, |
| org.apache.hedwig.protocol.PubSubProtocol.CloseSubscriptionRequest.Builder.class); |
| internal_static_Hedwig_StopDeliveryRequest_descriptor = |
| getDescriptor().getMessageTypes().get(13); |
| internal_static_Hedwig_StopDeliveryRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_StopDeliveryRequest_descriptor, |
| new java.lang.String[] { "SubscriberId", }, |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.class, |
| org.apache.hedwig.protocol.PubSubProtocol.StopDeliveryRequest.Builder.class); |
| internal_static_Hedwig_StartDeliveryRequest_descriptor = |
| getDescriptor().getMessageTypes().get(14); |
| internal_static_Hedwig_StartDeliveryRequest_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_StartDeliveryRequest_descriptor, |
| new java.lang.String[] { "SubscriberId", }, |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.class, |
| org.apache.hedwig.protocol.PubSubProtocol.StartDeliveryRequest.Builder.class); |
| internal_static_Hedwig_SubscriptionEventResponse_descriptor = |
| getDescriptor().getMessageTypes().get(15); |
| internal_static_Hedwig_SubscriptionEventResponse_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_SubscriptionEventResponse_descriptor, |
| new java.lang.String[] { "Event", }, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.class, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionEventResponse.Builder.class); |
| internal_static_Hedwig_PubSubResponse_descriptor = |
| getDescriptor().getMessageTypes().get(16); |
| internal_static_Hedwig_PubSubResponse_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_PubSubResponse_descriptor, |
| new java.lang.String[] { "ProtocolVersion", "StatusCode", "TxnId", "StatusMsg", "Message", "Topic", "SubscriberId", "ResponseBody", }, |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse.class, |
| org.apache.hedwig.protocol.PubSubProtocol.PubSubResponse.Builder.class); |
| internal_static_Hedwig_PublishResponse_descriptor = |
| getDescriptor().getMessageTypes().get(17); |
| internal_static_Hedwig_PublishResponse_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_PublishResponse_descriptor, |
| new java.lang.String[] { "PublishedMsgId", }, |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.class, |
| org.apache.hedwig.protocol.PubSubProtocol.PublishResponse.Builder.class); |
| internal_static_Hedwig_SubscribeResponse_descriptor = |
| getDescriptor().getMessageTypes().get(18); |
| internal_static_Hedwig_SubscribeResponse_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_SubscribeResponse_descriptor, |
| new java.lang.String[] { "Preferences", }, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.class, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscribeResponse.Builder.class); |
| internal_static_Hedwig_ResponseBody_descriptor = |
| getDescriptor().getMessageTypes().get(19); |
| internal_static_Hedwig_ResponseBody_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_ResponseBody_descriptor, |
| new java.lang.String[] { "PublishResponse", "SubscribeResponse", "SubscriptionEvent", }, |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.class, |
| org.apache.hedwig.protocol.PubSubProtocol.ResponseBody.Builder.class); |
| internal_static_Hedwig_SubscriptionState_descriptor = |
| getDescriptor().getMessageTypes().get(20); |
| internal_static_Hedwig_SubscriptionState_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_SubscriptionState_descriptor, |
| new java.lang.String[] { "MsgId", "MessageBound", }, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.class, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionState.Builder.class); |
| internal_static_Hedwig_SubscriptionData_descriptor = |
| getDescriptor().getMessageTypes().get(21); |
| internal_static_Hedwig_SubscriptionData_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_SubscriptionData_descriptor, |
| new java.lang.String[] { "State", "Preferences", }, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData.class, |
| org.apache.hedwig.protocol.PubSubProtocol.SubscriptionData.Builder.class); |
| internal_static_Hedwig_LedgerRange_descriptor = |
| getDescriptor().getMessageTypes().get(22); |
| internal_static_Hedwig_LedgerRange_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_LedgerRange_descriptor, |
| new java.lang.String[] { "LedgerId", "EndSeqIdIncluded", "StartSeqIdIncluded", }, |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.class, |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRange.Builder.class); |
| internal_static_Hedwig_LedgerRanges_descriptor = |
| getDescriptor().getMessageTypes().get(23); |
| internal_static_Hedwig_LedgerRanges_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_LedgerRanges_descriptor, |
| new java.lang.String[] { "Ranges", }, |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges.class, |
| org.apache.hedwig.protocol.PubSubProtocol.LedgerRanges.Builder.class); |
| internal_static_Hedwig_ManagerMeta_descriptor = |
| getDescriptor().getMessageTypes().get(24); |
| internal_static_Hedwig_ManagerMeta_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_ManagerMeta_descriptor, |
| new java.lang.String[] { "ManagerImpl", "ManagerVersion", }, |
| org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta.class, |
| org.apache.hedwig.protocol.PubSubProtocol.ManagerMeta.Builder.class); |
| internal_static_Hedwig_HubInfoData_descriptor = |
| getDescriptor().getMessageTypes().get(25); |
| internal_static_Hedwig_HubInfoData_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_HubInfoData_descriptor, |
| new java.lang.String[] { "Hostname", "Czxid", }, |
| org.apache.hedwig.protocol.PubSubProtocol.HubInfoData.class, |
| org.apache.hedwig.protocol.PubSubProtocol.HubInfoData.Builder.class); |
| internal_static_Hedwig_HubLoadData_descriptor = |
| getDescriptor().getMessageTypes().get(26); |
| internal_static_Hedwig_HubLoadData_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_Hedwig_HubLoadData_descriptor, |
| new java.lang.String[] { "NumTopics", }, |
| org.apache.hedwig.protocol.PubSubProtocol.HubLoadData.class, |
| org.apache.hedwig.protocol.PubSubProtocol.HubLoadData.Builder.class); |
| return null; |
| } |
| }; |
| com.google.protobuf.Descriptors.FileDescriptor |
| .internalBuildGeneratedFileFrom(descriptorData, |
| new com.google.protobuf.Descriptors.FileDescriptor[] { |
| }, assigner); |
| } |
| |
| // @@protoc_insertion_point(outer_class_scope) |
| } |