| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: src/main/proto/PulsarApi.proto |
| |
| package org.apache.pulsar.common.api.proto; |
| |
| public final class PulsarApi { |
| private PulsarApi() {} |
| public static void registerAllExtensions( |
| com.google.protobuf.ExtensionRegistryLite registry) { |
| } |
| public enum CompressionType |
| implements com.google.protobuf.Internal.EnumLite { |
| NONE(0, 0), |
| LZ4(1, 1), |
| ZLIB(2, 2), |
| ; |
| |
| public static final int NONE_VALUE = 0; |
| public static final int LZ4_VALUE = 1; |
| public static final int ZLIB_VALUE = 2; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static CompressionType valueOf(int value) { |
| switch (value) { |
| case 0: return NONE; |
| case 1: return LZ4; |
| case 2: return ZLIB; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<CompressionType> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<CompressionType> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<CompressionType>() { |
| public CompressionType findValueByNumber(int number) { |
| return CompressionType.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private CompressionType(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.CompressionType) |
| } |
| |
| public enum ServerError |
| implements com.google.protobuf.Internal.EnumLite { |
| UnknownError(0, 0), |
| MetadataError(1, 1), |
| PersistenceError(2, 2), |
| AuthenticationError(3, 3), |
| AuthorizationError(4, 4), |
| ConsumerBusy(5, 5), |
| ServiceNotReady(6, 6), |
| ProducerBlockedQuotaExceededError(7, 7), |
| ProducerBlockedQuotaExceededException(8, 8), |
| ChecksumError(9, 9), |
| UnsupportedVersionError(10, 10), |
| TopicNotFound(11, 11), |
| SubscriptionNotFound(12, 12), |
| ConsumerNotFound(13, 13), |
| TooManyRequests(14, 14), |
| TopicTerminatedError(15, 15), |
| ProducerBusy(16, 16), |
| InvalidTopicName(17, 17), |
| ; |
| |
| public static final int UnknownError_VALUE = 0; |
| public static final int MetadataError_VALUE = 1; |
| public static final int PersistenceError_VALUE = 2; |
| public static final int AuthenticationError_VALUE = 3; |
| public static final int AuthorizationError_VALUE = 4; |
| public static final int ConsumerBusy_VALUE = 5; |
| public static final int ServiceNotReady_VALUE = 6; |
| public static final int ProducerBlockedQuotaExceededError_VALUE = 7; |
| public static final int ProducerBlockedQuotaExceededException_VALUE = 8; |
| public static final int ChecksumError_VALUE = 9; |
| public static final int UnsupportedVersionError_VALUE = 10; |
| public static final int TopicNotFound_VALUE = 11; |
| public static final int SubscriptionNotFound_VALUE = 12; |
| public static final int ConsumerNotFound_VALUE = 13; |
| public static final int TooManyRequests_VALUE = 14; |
| public static final int TopicTerminatedError_VALUE = 15; |
| public static final int ProducerBusy_VALUE = 16; |
| public static final int InvalidTopicName_VALUE = 17; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static ServerError valueOf(int value) { |
| switch (value) { |
| case 0: return UnknownError; |
| case 1: return MetadataError; |
| case 2: return PersistenceError; |
| case 3: return AuthenticationError; |
| case 4: return AuthorizationError; |
| case 5: return ConsumerBusy; |
| case 6: return ServiceNotReady; |
| case 7: return ProducerBlockedQuotaExceededError; |
| case 8: return ProducerBlockedQuotaExceededException; |
| case 9: return ChecksumError; |
| case 10: return UnsupportedVersionError; |
| case 11: return TopicNotFound; |
| case 12: return SubscriptionNotFound; |
| case 13: return ConsumerNotFound; |
| case 14: return TooManyRequests; |
| case 15: return TopicTerminatedError; |
| case 16: return ProducerBusy; |
| case 17: return InvalidTopicName; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<ServerError> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<ServerError> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<ServerError>() { |
| public ServerError findValueByNumber(int number) { |
| return ServerError.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private ServerError(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.ServerError) |
| } |
| |
| public enum AuthMethod |
| implements com.google.protobuf.Internal.EnumLite { |
| AuthMethodNone(0, 0), |
| AuthMethodYcaV1(1, 1), |
| AuthMethodAthens(2, 2), |
| ; |
| |
| public static final int AuthMethodNone_VALUE = 0; |
| public static final int AuthMethodYcaV1_VALUE = 1; |
| public static final int AuthMethodAthens_VALUE = 2; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static AuthMethod valueOf(int value) { |
| switch (value) { |
| case 0: return AuthMethodNone; |
| case 1: return AuthMethodYcaV1; |
| case 2: return AuthMethodAthens; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<AuthMethod> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<AuthMethod> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<AuthMethod>() { |
| public AuthMethod findValueByNumber(int number) { |
| return AuthMethod.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private AuthMethod(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.AuthMethod) |
| } |
| |
| public enum ProtocolVersion |
| implements com.google.protobuf.Internal.EnumLite { |
| v0(0, 0), |
| v1(1, 1), |
| v2(2, 2), |
| v3(3, 3), |
| v4(4, 4), |
| v5(5, 5), |
| v6(6, 6), |
| v7(7, 7), |
| v8(8, 8), |
| v9(9, 9), |
| v10(10, 10), |
| v11(11, 11), |
| v12(12, 12), |
| ; |
| |
| public static final int v0_VALUE = 0; |
| public static final int v1_VALUE = 1; |
| public static final int v2_VALUE = 2; |
| public static final int v3_VALUE = 3; |
| public static final int v4_VALUE = 4; |
| public static final int v5_VALUE = 5; |
| public static final int v6_VALUE = 6; |
| public static final int v7_VALUE = 7; |
| public static final int v8_VALUE = 8; |
| public static final int v9_VALUE = 9; |
| public static final int v10_VALUE = 10; |
| public static final int v11_VALUE = 11; |
| public static final int v12_VALUE = 12; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static ProtocolVersion valueOf(int value) { |
| switch (value) { |
| case 0: return v0; |
| case 1: return v1; |
| case 2: return v2; |
| case 3: return v3; |
| case 4: return v4; |
| case 5: return v5; |
| case 6: return v6; |
| case 7: return v7; |
| case 8: return v8; |
| case 9: return v9; |
| case 10: return v10; |
| case 11: return v11; |
| case 12: return v12; |
| 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); |
| } |
| }; |
| |
| private final int value; |
| |
| private ProtocolVersion(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.ProtocolVersion) |
| } |
| |
| public interface SchemaOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string name = 1; |
| boolean hasName(); |
| String getName(); |
| |
| // required bytes schema_data = 3; |
| boolean hasSchemaData(); |
| com.google.protobuf.ByteString getSchemaData(); |
| |
| // required .pulsar.proto.Schema.Type type = 4; |
| boolean hasType(); |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type getType(); |
| |
| // repeated .pulsar.proto.KeyValue properties = 5; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> |
| getPropertiesList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index); |
| int getPropertiesCount(); |
| } |
| public static final class Schema extends |
| com.google.protobuf.GeneratedMessageLite |
| implements SchemaOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use Schema.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<Schema> handle; |
| private Schema(io.netty.util.Recycler.Handle<Schema> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<Schema> RECYCLER = new io.netty.util.Recycler<Schema>() { |
| protected Schema newObject(Handle<Schema> handle) { |
| return new Schema(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private Schema(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final Schema defaultInstance; |
| public static Schema getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public Schema getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public enum Type |
| implements com.google.protobuf.Internal.EnumLite { |
| None(0, 0), |
| String(1, 1), |
| Json(2, 2), |
| ; |
| |
| public static final int None_VALUE = 0; |
| public static final int String_VALUE = 1; |
| public static final int Json_VALUE = 2; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static Type valueOf(int value) { |
| switch (value) { |
| case 0: return None; |
| case 1: return String; |
| case 2: return Json; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<Type> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<Type> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<Type>() { |
| public Type findValueByNumber(int number) { |
| return Type.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private Type(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.Schema.Type) |
| } |
| |
| private int bitField0_; |
| // required string name = 1; |
| public static final int NAME_FIELD_NUMBER = 1; |
| private java.lang.Object name_; |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getName() { |
| java.lang.Object ref = name_; |
| 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)) { |
| name_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getNameBytes() { |
| java.lang.Object ref = name_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| name_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required bytes schema_data = 3; |
| public static final int SCHEMA_DATA_FIELD_NUMBER = 3; |
| private com.google.protobuf.ByteString schemaData_; |
| public boolean hasSchemaData() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public com.google.protobuf.ByteString getSchemaData() { |
| return schemaData_; |
| } |
| |
| // required .pulsar.proto.Schema.Type type = 4; |
| public static final int TYPE_FIELD_NUMBER = 4; |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type type_; |
| public boolean hasType() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type getType() { |
| return type_; |
| } |
| |
| // repeated .pulsar.proto.KeyValue properties = 5; |
| public static final int PROPERTIES_FIELD_NUMBER = 5; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> properties_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getPropertiesList() { |
| return properties_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder> |
| getPropertiesOrBuilderList() { |
| return properties_; |
| } |
| public int getPropertiesCount() { |
| return properties_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index) { |
| return properties_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder getPropertiesOrBuilder( |
| int index) { |
| return properties_.get(index); |
| } |
| |
| private void initFields() { |
| name_ = ""; |
| schemaData_ = com.google.protobuf.ByteString.EMPTY; |
| type_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type.None; |
| properties_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasName()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSchemaData()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasType()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| for (int i = 0; i < getPropertiesCount(); i++) { |
| if (!getProperties(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getNameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(3, schemaData_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeEnum(4, type_.getNumber()); |
| } |
| for (int i = 0; i < properties_.size(); i++) { |
| output.writeMessage(5, properties_.get(i)); |
| } |
| } |
| |
| 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, getNameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, schemaData_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(4, type_.getNumber()); |
| } |
| for (int i = 0; i < properties_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(5, properties_.get(i)); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.Schema parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.Schema parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.Schema parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.Schema parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.Schema parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.Schema parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.Schema 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.pulsar.common.api.proto.PulsarApi.Schema 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.pulsar.common.api.proto.PulsarApi.Schema parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.Schema 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.pulsar.common.api.proto.PulsarApi.Schema prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.SchemaOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.Schema.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| name_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| schemaData_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| type_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type.None; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| properties_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema result = org.apache.pulsar.common.api.proto.PulsarApi.Schema.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.name_ = name_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.schemaData_ = schemaData_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.type_ = type_; |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| properties_ = java.util.Collections.unmodifiableList(properties_); |
| bitField0_ = (bitField0_ & ~0x00000008); |
| } |
| result.properties_ = properties_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.Schema other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance()) return this; |
| if (other.hasName()) { |
| setName(other.getName()); |
| } |
| if (other.hasSchemaData()) { |
| setSchemaData(other.getSchemaData()); |
| } |
| if (other.hasType()) { |
| setType(other.getType()); |
| } |
| if (!other.properties_.isEmpty()) { |
| if (properties_.isEmpty()) { |
| properties_ = other.properties_; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| } else { |
| ensurePropertiesIsMutable(); |
| properties_.addAll(other.properties_); |
| } |
| |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasName()) { |
| |
| return false; |
| } |
| if (!hasSchemaData()) { |
| |
| return false; |
| } |
| if (!hasType()) { |
| |
| return false; |
| } |
| for (int i = 0; i < getPropertiesCount(); i++) { |
| if (!getProperties(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| name_ = input.readBytes(); |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000002; |
| schemaData_ = input.readBytes(); |
| break; |
| } |
| case 32: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type value = org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000004; |
| type_ = value; |
| } |
| break; |
| } |
| case 42: { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addProperties(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string name = 1; |
| private java.lang.Object name_ = ""; |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getName() { |
| java.lang.Object ref = name_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| name_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setName(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| |
| return this; |
| } |
| public Builder clearName() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| name_ = getDefaultInstance().getName(); |
| |
| return this; |
| } |
| void setName(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| |
| } |
| |
| // required bytes schema_data = 3; |
| private com.google.protobuf.ByteString schemaData_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSchemaData() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public com.google.protobuf.ByteString getSchemaData() { |
| return schemaData_; |
| } |
| public Builder setSchemaData(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| schemaData_ = value; |
| |
| return this; |
| } |
| public Builder clearSchemaData() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| schemaData_ = getDefaultInstance().getSchemaData(); |
| |
| return this; |
| } |
| |
| // required .pulsar.proto.Schema.Type type = 4; |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type type_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type.None; |
| public boolean hasType() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type getType() { |
| return type_; |
| } |
| public Builder setType(org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| type_ = value; |
| |
| return this; |
| } |
| public Builder clearType() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| type_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.Type.None; |
| |
| return this; |
| } |
| |
| // repeated .pulsar.proto.KeyValue properties = 5; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> properties_ = |
| java.util.Collections.emptyList(); |
| private void ensurePropertiesIsMutable() { |
| if (!((bitField0_ & 0x00000008) == 0x00000008)) { |
| properties_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue>(properties_); |
| bitField0_ |= 0x00000008; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getPropertiesList() { |
| return java.util.Collections.unmodifiableList(properties_); |
| } |
| public int getPropertiesCount() { |
| return properties_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index) { |
| return properties_.get(index); |
| } |
| public Builder setProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.set(index, value); |
| |
| return this; |
| } |
| public Builder setProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addProperties(org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.add(value); |
| |
| return this; |
| } |
| public Builder addProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.add(index, value); |
| |
| return this; |
| } |
| public Builder addProperties( |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllProperties( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> values) { |
| ensurePropertiesIsMutable(); |
| super.addAll(values, properties_); |
| |
| return this; |
| } |
| public Builder clearProperties() { |
| properties_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000008); |
| |
| return this; |
| } |
| public Builder removeProperties(int index) { |
| ensurePropertiesIsMutable(); |
| properties_.remove(index); |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.Schema) |
| } |
| |
| static { |
| defaultInstance = new Schema(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.Schema) |
| } |
| |
| public interface MessageIdDataOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 ledgerId = 1; |
| boolean hasLedgerId(); |
| long getLedgerId(); |
| |
| // required uint64 entryId = 2; |
| boolean hasEntryId(); |
| long getEntryId(); |
| |
| // optional int32 partition = 3 [default = -1]; |
| boolean hasPartition(); |
| int getPartition(); |
| |
| // optional int32 batch_index = 4 [default = -1]; |
| boolean hasBatchIndex(); |
| int getBatchIndex(); |
| } |
| public static final class MessageIdData extends |
| com.google.protobuf.GeneratedMessageLite |
| implements MessageIdDataOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use MessageIdData.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<MessageIdData> handle; |
| private MessageIdData(io.netty.util.Recycler.Handle<MessageIdData> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<MessageIdData> RECYCLER = new io.netty.util.Recycler<MessageIdData>() { |
| protected MessageIdData newObject(Handle<MessageIdData> handle) { |
| return new MessageIdData(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private MessageIdData(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final MessageIdData defaultInstance; |
| public static MessageIdData getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public MessageIdData getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| 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_; |
| } |
| |
| // required uint64 entryId = 2; |
| public static final int ENTRYID_FIELD_NUMBER = 2; |
| private long entryId_; |
| public boolean hasEntryId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getEntryId() { |
| return entryId_; |
| } |
| |
| // optional int32 partition = 3 [default = -1]; |
| public static final int PARTITION_FIELD_NUMBER = 3; |
| private int partition_; |
| public boolean hasPartition() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public int getPartition() { |
| return partition_; |
| } |
| |
| // optional int32 batch_index = 4 [default = -1]; |
| public static final int BATCH_INDEX_FIELD_NUMBER = 4; |
| private int batchIndex_; |
| public boolean hasBatchIndex() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public int getBatchIndex() { |
| return batchIndex_; |
| } |
| |
| private void initFields() { |
| ledgerId_ = 0L; |
| entryId_ = 0L; |
| partition_ = -1; |
| batchIndex_ = -1; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasLedgerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasEntryId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, ledgerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, entryId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeInt32(3, partition_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeInt32(4, batchIndex_); |
| } |
| } |
| |
| 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 |
| .computeUInt64Size(2, entryId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(3, partition_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(4, batchIndex_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.MessageIdData parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData 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.pulsar.common.api.proto.PulsarApi.MessageIdData 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.pulsar.common.api.proto.PulsarApi.MessageIdData parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData 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.pulsar.common.api.proto.PulsarApi.MessageIdData prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.MessageIdDataOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| ledgerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| entryId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| partition_ = -1; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| batchIndex_ = -1; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData result = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.RECYCLER.get(); |
| 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; |
| } |
| result.entryId_ = entryId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.partition_ = partition_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.batchIndex_ = batchIndex_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance()) return this; |
| if (other.hasLedgerId()) { |
| setLedgerId(other.getLedgerId()); |
| } |
| if (other.hasEntryId()) { |
| setEntryId(other.getEntryId()); |
| } |
| if (other.hasPartition()) { |
| setPartition(other.getPartition()); |
| } |
| if (other.hasBatchIndex()) { |
| setBatchIndex(other.getBatchIndex()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasLedgerId()) { |
| |
| return false; |
| } |
| if (!hasEntryId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| ledgerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| entryId_ = input.readUInt64(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| partition_ = input.readInt32(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| batchIndex_ = input.readInt32(); |
| 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; |
| |
| return this; |
| } |
| public Builder clearLedgerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| ledgerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 entryId = 2; |
| private long entryId_ ; |
| public boolean hasEntryId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getEntryId() { |
| return entryId_; |
| } |
| public Builder setEntryId(long value) { |
| bitField0_ |= 0x00000002; |
| entryId_ = value; |
| |
| return this; |
| } |
| public Builder clearEntryId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| entryId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional int32 partition = 3 [default = -1]; |
| private int partition_ = -1; |
| public boolean hasPartition() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public int getPartition() { |
| return partition_; |
| } |
| public Builder setPartition(int value) { |
| bitField0_ |= 0x00000004; |
| partition_ = value; |
| |
| return this; |
| } |
| public Builder clearPartition() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| partition_ = -1; |
| |
| return this; |
| } |
| |
| // optional int32 batch_index = 4 [default = -1]; |
| private int batchIndex_ = -1; |
| public boolean hasBatchIndex() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public int getBatchIndex() { |
| return batchIndex_; |
| } |
| public Builder setBatchIndex(int value) { |
| bitField0_ |= 0x00000008; |
| batchIndex_ = value; |
| |
| return this; |
| } |
| public Builder clearBatchIndex() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| batchIndex_ = -1; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.MessageIdData) |
| } |
| |
| static { |
| defaultInstance = new MessageIdData(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.MessageIdData) |
| } |
| |
| public interface KeyValueOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string key = 1; |
| boolean hasKey(); |
| String getKey(); |
| |
| // required string value = 2; |
| boolean hasValue(); |
| String getValue(); |
| } |
| public static final class KeyValue extends |
| com.google.protobuf.GeneratedMessageLite |
| implements KeyValueOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use KeyValue.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<KeyValue> handle; |
| private KeyValue(io.netty.util.Recycler.Handle<KeyValue> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<KeyValue> RECYCLER = new io.netty.util.Recycler<KeyValue>() { |
| protected KeyValue newObject(Handle<KeyValue> handle) { |
| return new KeyValue(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private KeyValue(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final KeyValue defaultInstance; |
| public static KeyValue getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public KeyValue getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required 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; |
| } |
| } |
| |
| // required string value = 2; |
| public static final int VALUE_FIELD_NUMBER = 2; |
| private java.lang.Object value_; |
| public boolean hasValue() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getValue() { |
| java.lang.Object ref = value_; |
| 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)) { |
| value_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getValueBytes() { |
| java.lang.Object ref = value_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| value_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| key_ = ""; |
| value_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasKey()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasValue()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getKeyBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getValueBytes()); |
| } |
| } |
| |
| 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, getValueBytes()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.KeyValue parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyValue parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyValue parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyValue parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyValue parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyValue parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyValue 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.pulsar.common.api.proto.PulsarApi.KeyValue 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.pulsar.common.api.proto.PulsarApi.KeyValue parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyValue 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.pulsar.common.api.proto.PulsarApi.KeyValue prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| key_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| value_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.KeyValue buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue result = org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.RECYCLER.get(); |
| 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_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.KeyValue other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.getDefaultInstance()) return this; |
| if (other.hasKey()) { |
| setKey(other.getKey()); |
| } |
| if (other.hasValue()) { |
| setValue(other.getValue()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasKey()) { |
| |
| return false; |
| } |
| if (!hasValue()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| key_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| value_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required 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; |
| |
| return this; |
| } |
| public Builder clearKey() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| key_ = getDefaultInstance().getKey(); |
| |
| return this; |
| } |
| void setKey(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| key_ = value; |
| |
| } |
| |
| // required string value = 2; |
| private java.lang.Object value_ = ""; |
| public boolean hasValue() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getValue() { |
| java.lang.Object ref = value_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| value_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setValue(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| value_ = value; |
| |
| return this; |
| } |
| public Builder clearValue() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| value_ = getDefaultInstance().getValue(); |
| |
| return this; |
| } |
| void setValue(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000002; |
| value_ = value; |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.KeyValue) |
| } |
| |
| static { |
| defaultInstance = new KeyValue(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.KeyValue) |
| } |
| |
| public interface KeyLongValueOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string key = 1; |
| boolean hasKey(); |
| String getKey(); |
| |
| // required uint64 value = 2; |
| boolean hasValue(); |
| long getValue(); |
| } |
| public static final class KeyLongValue extends |
| com.google.protobuf.GeneratedMessageLite |
| implements KeyLongValueOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use KeyLongValue.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<KeyLongValue> handle; |
| private KeyLongValue(io.netty.util.Recycler.Handle<KeyLongValue> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<KeyLongValue> RECYCLER = new io.netty.util.Recycler<KeyLongValue>() { |
| protected KeyLongValue newObject(Handle<KeyLongValue> handle) { |
| return new KeyLongValue(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private KeyLongValue(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final KeyLongValue defaultInstance; |
| public static KeyLongValue getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public KeyLongValue getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required 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; |
| } |
| } |
| |
| // required uint64 value = 2; |
| public static final int VALUE_FIELD_NUMBER = 2; |
| private long value_; |
| public boolean hasValue() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getValue() { |
| return value_; |
| } |
| |
| private void initFields() { |
| key_ = ""; |
| value_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasKey()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasValue()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getKeyBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, value_); |
| } |
| } |
| |
| 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 |
| .computeUInt64Size(2, value_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.KeyLongValue parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue 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.pulsar.common.api.proto.PulsarApi.KeyLongValue 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.pulsar.common.api.proto.PulsarApi.KeyLongValue parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue 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.pulsar.common.api.proto.PulsarApi.KeyLongValue prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValueOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| key_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| value_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue result = org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.RECYCLER.get(); |
| 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_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.getDefaultInstance()) return this; |
| if (other.hasKey()) { |
| setKey(other.getKey()); |
| } |
| if (other.hasValue()) { |
| setValue(other.getValue()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasKey()) { |
| |
| return false; |
| } |
| if (!hasValue()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| key_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| value_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required 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; |
| |
| return this; |
| } |
| public Builder clearKey() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| key_ = getDefaultInstance().getKey(); |
| |
| return this; |
| } |
| void setKey(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| key_ = value; |
| |
| } |
| |
| // required uint64 value = 2; |
| private long value_ ; |
| public boolean hasValue() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getValue() { |
| return value_; |
| } |
| public Builder setValue(long value) { |
| bitField0_ |= 0x00000002; |
| value_ = value; |
| |
| return this; |
| } |
| public Builder clearValue() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| value_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.KeyLongValue) |
| } |
| |
| static { |
| defaultInstance = new KeyLongValue(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.KeyLongValue) |
| } |
| |
| public interface EncryptionKeysOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string key = 1; |
| boolean hasKey(); |
| String getKey(); |
| |
| // required bytes value = 2; |
| boolean hasValue(); |
| com.google.protobuf.ByteString getValue(); |
| |
| // repeated .pulsar.proto.KeyValue metadata = 3; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> |
| getMetadataList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index); |
| int getMetadataCount(); |
| } |
| public static final class EncryptionKeys extends |
| com.google.protobuf.GeneratedMessageLite |
| implements EncryptionKeysOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use EncryptionKeys.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<EncryptionKeys> handle; |
| private EncryptionKeys(io.netty.util.Recycler.Handle<EncryptionKeys> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<EncryptionKeys> RECYCLER = new io.netty.util.Recycler<EncryptionKeys>() { |
| protected EncryptionKeys newObject(Handle<EncryptionKeys> handle) { |
| return new EncryptionKeys(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private EncryptionKeys(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final EncryptionKeys defaultInstance; |
| public static EncryptionKeys getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public EncryptionKeys getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required 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; |
| } |
| } |
| |
| // required 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_; |
| } |
| |
| // repeated .pulsar.proto.KeyValue metadata = 3; |
| public static final int METADATA_FIELD_NUMBER = 3; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> metadata_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getMetadataList() { |
| return metadata_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder> |
| getMetadataOrBuilderList() { |
| return metadata_; |
| } |
| public int getMetadataCount() { |
| return metadata_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index) { |
| return metadata_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder getMetadataOrBuilder( |
| int index) { |
| return metadata_.get(index); |
| } |
| |
| private void initFields() { |
| key_ = ""; |
| value_ = com.google.protobuf.ByteString.EMPTY; |
| metadata_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasKey()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasValue()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| for (int i = 0; i < getMetadataCount(); i++) { |
| if (!getMetadata(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getKeyBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, value_); |
| } |
| for (int i = 0; i < metadata_.size(); i++) { |
| output.writeMessage(3, metadata_.get(i)); |
| } |
| } |
| |
| 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_); |
| } |
| for (int i = 0; i < metadata_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, metadata_.get(i)); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.EncryptionKeys parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys 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.pulsar.common.api.proto.PulsarApi.EncryptionKeys 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.pulsar.common.api.proto.PulsarApi.EncryptionKeys parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys 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.pulsar.common.api.proto.PulsarApi.EncryptionKeys prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeysOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| key_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| value_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| metadata_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys result = org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.RECYCLER.get(); |
| 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_; |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| metadata_ = java.util.Collections.unmodifiableList(metadata_); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| } |
| result.metadata_ = metadata_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.getDefaultInstance()) return this; |
| if (other.hasKey()) { |
| setKey(other.getKey()); |
| } |
| if (other.hasValue()) { |
| setValue(other.getValue()); |
| } |
| if (!other.metadata_.isEmpty()) { |
| if (metadata_.isEmpty()) { |
| metadata_ = other.metadata_; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| } else { |
| ensureMetadataIsMutable(); |
| metadata_.addAll(other.metadata_); |
| } |
| |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasKey()) { |
| |
| return false; |
| } |
| if (!hasValue()) { |
| |
| return false; |
| } |
| for (int i = 0; i < getMetadataCount(); i++) { |
| if (!getMetadata(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| key_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| value_ = input.readBytes(); |
| break; |
| } |
| case 26: { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addMetadata(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required 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; |
| |
| return this; |
| } |
| public Builder clearKey() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| key_ = getDefaultInstance().getKey(); |
| |
| return this; |
| } |
| void setKey(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| key_ = value; |
| |
| } |
| |
| // required 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; |
| |
| return this; |
| } |
| public Builder clearValue() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| value_ = getDefaultInstance().getValue(); |
| |
| return this; |
| } |
| |
| // repeated .pulsar.proto.KeyValue metadata = 3; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> metadata_ = |
| java.util.Collections.emptyList(); |
| private void ensureMetadataIsMutable() { |
| if (!((bitField0_ & 0x00000004) == 0x00000004)) { |
| metadata_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue>(metadata_); |
| bitField0_ |= 0x00000004; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getMetadataList() { |
| return java.util.Collections.unmodifiableList(metadata_); |
| } |
| public int getMetadataCount() { |
| return metadata_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index) { |
| return metadata_.get(index); |
| } |
| public Builder setMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.set(index, value); |
| |
| return this; |
| } |
| public Builder setMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMetadata(org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.add(value); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.add(index, value); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllMetadata( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> values) { |
| ensureMetadataIsMutable(); |
| super.addAll(values, metadata_); |
| |
| return this; |
| } |
| public Builder clearMetadata() { |
| metadata_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| |
| return this; |
| } |
| public Builder removeMetadata(int index) { |
| ensureMetadataIsMutable(); |
| metadata_.remove(index); |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.EncryptionKeys) |
| } |
| |
| static { |
| defaultInstance = new EncryptionKeys(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.EncryptionKeys) |
| } |
| |
| public interface MessageMetadataOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string producer_name = 1; |
| boolean hasProducerName(); |
| String getProducerName(); |
| |
| // required uint64 sequence_id = 2; |
| boolean hasSequenceId(); |
| long getSequenceId(); |
| |
| // required uint64 publish_time = 3; |
| boolean hasPublishTime(); |
| long getPublishTime(); |
| |
| // repeated .pulsar.proto.KeyValue properties = 4; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> |
| getPropertiesList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index); |
| int getPropertiesCount(); |
| |
| // optional string replicated_from = 5; |
| boolean hasReplicatedFrom(); |
| String getReplicatedFrom(); |
| |
| // optional string partition_key = 6; |
| boolean hasPartitionKey(); |
| String getPartitionKey(); |
| |
| // repeated string replicate_to = 7; |
| java.util.List<String> getReplicateToList(); |
| int getReplicateToCount(); |
| String getReplicateTo(int index); |
| |
| // optional .pulsar.proto.CompressionType compression = 8 [default = NONE]; |
| boolean hasCompression(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CompressionType getCompression(); |
| |
| // optional uint32 uncompressed_size = 9 [default = 0]; |
| boolean hasUncompressedSize(); |
| int getUncompressedSize(); |
| |
| // optional int32 num_messages_in_batch = 11 [default = 1]; |
| boolean hasNumMessagesInBatch(); |
| int getNumMessagesInBatch(); |
| |
| // optional uint64 event_time = 12 [default = 0]; |
| boolean hasEventTime(); |
| long getEventTime(); |
| |
| // repeated .pulsar.proto.EncryptionKeys encryption_keys = 13; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys> |
| getEncryptionKeysList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys getEncryptionKeys(int index); |
| int getEncryptionKeysCount(); |
| |
| // optional string encryption_algo = 14; |
| boolean hasEncryptionAlgo(); |
| String getEncryptionAlgo(); |
| |
| // optional bytes encryption_param = 15; |
| boolean hasEncryptionParam(); |
| com.google.protobuf.ByteString getEncryptionParam(); |
| |
| // optional bytes schema_version = 16; |
| boolean hasSchemaVersion(); |
| com.google.protobuf.ByteString getSchemaVersion(); |
| } |
| public static final class MessageMetadata extends |
| com.google.protobuf.GeneratedMessageLite |
| implements MessageMetadataOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use MessageMetadata.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<MessageMetadata> handle; |
| private MessageMetadata(io.netty.util.Recycler.Handle<MessageMetadata> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<MessageMetadata> RECYCLER = new io.netty.util.Recycler<MessageMetadata>() { |
| protected MessageMetadata newObject(Handle<MessageMetadata> handle) { |
| return new MessageMetadata(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private MessageMetadata(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final MessageMetadata defaultInstance; |
| public static MessageMetadata getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public MessageMetadata getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required string producer_name = 1; |
| public static final int PRODUCER_NAME_FIELD_NUMBER = 1; |
| private java.lang.Object producerName_; |
| public boolean hasProducerName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getProducerName() { |
| java.lang.Object ref = producerName_; |
| 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)) { |
| producerName_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getProducerNameBytes() { |
| java.lang.Object ref = producerName_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| producerName_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required uint64 sequence_id = 2; |
| public static final int SEQUENCE_ID_FIELD_NUMBER = 2; |
| private long sequenceId_; |
| public boolean hasSequenceId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSequenceId() { |
| return sequenceId_; |
| } |
| |
| // required uint64 publish_time = 3; |
| public static final int PUBLISH_TIME_FIELD_NUMBER = 3; |
| private long publishTime_; |
| public boolean hasPublishTime() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getPublishTime() { |
| return publishTime_; |
| } |
| |
| // repeated .pulsar.proto.KeyValue properties = 4; |
| public static final int PROPERTIES_FIELD_NUMBER = 4; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> properties_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getPropertiesList() { |
| return properties_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder> |
| getPropertiesOrBuilderList() { |
| return properties_; |
| } |
| public int getPropertiesCount() { |
| return properties_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index) { |
| return properties_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder getPropertiesOrBuilder( |
| int index) { |
| return properties_.get(index); |
| } |
| |
| // optional string replicated_from = 5; |
| public static final int REPLICATED_FROM_FIELD_NUMBER = 5; |
| private java.lang.Object replicatedFrom_; |
| public boolean hasReplicatedFrom() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getReplicatedFrom() { |
| java.lang.Object ref = replicatedFrom_; |
| 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)) { |
| replicatedFrom_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getReplicatedFromBytes() { |
| java.lang.Object ref = replicatedFrom_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| replicatedFrom_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string partition_key = 6; |
| public static final int PARTITION_KEY_FIELD_NUMBER = 6; |
| private java.lang.Object partitionKey_; |
| public boolean hasPartitionKey() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getPartitionKey() { |
| java.lang.Object ref = partitionKey_; |
| 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)) { |
| partitionKey_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getPartitionKeyBytes() { |
| java.lang.Object ref = partitionKey_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| partitionKey_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // repeated string replicate_to = 7; |
| public static final int REPLICATE_TO_FIELD_NUMBER = 7; |
| private com.google.protobuf.LazyStringList replicateTo_; |
| public java.util.List<String> |
| getReplicateToList() { |
| return replicateTo_; |
| } |
| public int getReplicateToCount() { |
| return replicateTo_.size(); |
| } |
| public String getReplicateTo(int index) { |
| return replicateTo_.get(index); |
| } |
| |
| // optional .pulsar.proto.CompressionType compression = 8 [default = NONE]; |
| public static final int COMPRESSION_FIELD_NUMBER = 8; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CompressionType compression_; |
| public boolean hasCompression() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CompressionType getCompression() { |
| return compression_; |
| } |
| |
| // optional uint32 uncompressed_size = 9 [default = 0]; |
| public static final int UNCOMPRESSED_SIZE_FIELD_NUMBER = 9; |
| private int uncompressedSize_; |
| public boolean hasUncompressedSize() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public int getUncompressedSize() { |
| return uncompressedSize_; |
| } |
| |
| // optional int32 num_messages_in_batch = 11 [default = 1]; |
| public static final int NUM_MESSAGES_IN_BATCH_FIELD_NUMBER = 11; |
| private int numMessagesInBatch_; |
| public boolean hasNumMessagesInBatch() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public int getNumMessagesInBatch() { |
| return numMessagesInBatch_; |
| } |
| |
| // optional uint64 event_time = 12 [default = 0]; |
| public static final int EVENT_TIME_FIELD_NUMBER = 12; |
| private long eventTime_; |
| public boolean hasEventTime() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public long getEventTime() { |
| return eventTime_; |
| } |
| |
| // repeated .pulsar.proto.EncryptionKeys encryption_keys = 13; |
| public static final int ENCRYPTION_KEYS_FIELD_NUMBER = 13; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys> encryptionKeys_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys> getEncryptionKeysList() { |
| return encryptionKeys_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeysOrBuilder> |
| getEncryptionKeysOrBuilderList() { |
| return encryptionKeys_; |
| } |
| public int getEncryptionKeysCount() { |
| return encryptionKeys_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys getEncryptionKeys(int index) { |
| return encryptionKeys_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeysOrBuilder getEncryptionKeysOrBuilder( |
| int index) { |
| return encryptionKeys_.get(index); |
| } |
| |
| // optional string encryption_algo = 14; |
| public static final int ENCRYPTION_ALGO_FIELD_NUMBER = 14; |
| private java.lang.Object encryptionAlgo_; |
| public boolean hasEncryptionAlgo() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public String getEncryptionAlgo() { |
| java.lang.Object ref = encryptionAlgo_; |
| 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)) { |
| encryptionAlgo_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getEncryptionAlgoBytes() { |
| java.lang.Object ref = encryptionAlgo_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| encryptionAlgo_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional bytes encryption_param = 15; |
| public static final int ENCRYPTION_PARAM_FIELD_NUMBER = 15; |
| private com.google.protobuf.ByteString encryptionParam_; |
| public boolean hasEncryptionParam() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public com.google.protobuf.ByteString getEncryptionParam() { |
| return encryptionParam_; |
| } |
| |
| // optional bytes schema_version = 16; |
| public static final int SCHEMA_VERSION_FIELD_NUMBER = 16; |
| private com.google.protobuf.ByteString schemaVersion_; |
| public boolean hasSchemaVersion() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public com.google.protobuf.ByteString getSchemaVersion() { |
| return schemaVersion_; |
| } |
| |
| private void initFields() { |
| producerName_ = ""; |
| sequenceId_ = 0L; |
| publishTime_ = 0L; |
| properties_ = java.util.Collections.emptyList(); |
| replicatedFrom_ = ""; |
| partitionKey_ = ""; |
| replicateTo_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| compression_ = org.apache.pulsar.common.api.proto.PulsarApi.CompressionType.NONE; |
| uncompressedSize_ = 0; |
| numMessagesInBatch_ = 1; |
| eventTime_ = 0L; |
| encryptionKeys_ = java.util.Collections.emptyList(); |
| encryptionAlgo_ = ""; |
| encryptionParam_ = com.google.protobuf.ByteString.EMPTY; |
| schemaVersion_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasProducerName()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSequenceId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasPublishTime()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| for (int i = 0; i < getPropertiesCount(); i++) { |
| if (!getProperties(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| for (int i = 0; i < getEncryptionKeysCount(); i++) { |
| if (!getEncryptionKeys(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getProducerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, sequenceId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeUInt64(3, publishTime_); |
| } |
| for (int i = 0; i < properties_.size(); i++) { |
| output.writeMessage(4, properties_.get(i)); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(5, getReplicatedFromBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBytes(6, getPartitionKeyBytes()); |
| } |
| for (int i = 0; i < replicateTo_.size(); i++) { |
| output.writeBytes(7, replicateTo_.getByteString(i)); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeEnum(8, compression_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeUInt32(9, uncompressedSize_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeInt32(11, numMessagesInBatch_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeUInt64(12, eventTime_); |
| } |
| for (int i = 0; i < encryptionKeys_.size(); i++) { |
| output.writeMessage(13, encryptionKeys_.get(i)); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeBytes(14, getEncryptionAlgoBytes()); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeBytes(15, encryptionParam_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| output.writeBytes(16, schemaVersion_); |
| } |
| } |
| |
| 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, getProducerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, sequenceId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(3, publishTime_); |
| } |
| for (int i = 0; i < properties_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(4, properties_.get(i)); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(5, getReplicatedFromBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, getPartitionKeyBytes()); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < replicateTo_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(replicateTo_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getReplicateToList().size(); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(8, compression_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(9, uncompressedSize_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(11, numMessagesInBatch_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(12, eventTime_); |
| } |
| for (int i = 0; i < encryptionKeys_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(13, encryptionKeys_.get(i)); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(14, getEncryptionAlgoBytes()); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(15, encryptionParam_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(16, schemaVersion_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.MessageMetadata parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata 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.pulsar.common.api.proto.PulsarApi.MessageMetadata 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.pulsar.common.api.proto.PulsarApi.MessageMetadata parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata 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.pulsar.common.api.proto.PulsarApi.MessageMetadata prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadataOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| producerName_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| sequenceId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| publishTime_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| properties_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000008); |
| replicatedFrom_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| partitionKey_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| replicateTo_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| compression_ = org.apache.pulsar.common.api.proto.PulsarApi.CompressionType.NONE; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| uncompressedSize_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| numMessagesInBatch_ = 1; |
| bitField0_ = (bitField0_ & ~0x00000200); |
| eventTime_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000400); |
| encryptionKeys_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000800); |
| encryptionAlgo_ = ""; |
| bitField0_ = (bitField0_ & ~0x00001000); |
| encryptionParam_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00002000); |
| schemaVersion_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00004000); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata result = org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.producerName_ = producerName_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.sequenceId_ = sequenceId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.publishTime_ = publishTime_; |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| properties_ = java.util.Collections.unmodifiableList(properties_); |
| bitField0_ = (bitField0_ & ~0x00000008); |
| } |
| result.properties_ = properties_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.replicatedFrom_ = replicatedFrom_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.partitionKey_ = partitionKey_; |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| replicateTo_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| replicateTo_); |
| bitField0_ = (bitField0_ & ~0x00000040); |
| } |
| result.replicateTo_ = replicateTo_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.compression_ = compression_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.uncompressedSize_ = uncompressedSize_; |
| if (((from_bitField0_ & 0x00000200) == 0x00000200)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.numMessagesInBatch_ = numMessagesInBatch_; |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.eventTime_ = eventTime_; |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| encryptionKeys_ = java.util.Collections.unmodifiableList(encryptionKeys_); |
| bitField0_ = (bitField0_ & ~0x00000800); |
| } |
| result.encryptionKeys_ = encryptionKeys_; |
| if (((from_bitField0_ & 0x00001000) == 0x00001000)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| result.encryptionAlgo_ = encryptionAlgo_; |
| if (((from_bitField0_ & 0x00002000) == 0x00002000)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| result.encryptionParam_ = encryptionParam_; |
| if (((from_bitField0_ & 0x00004000) == 0x00004000)) { |
| to_bitField0_ |= 0x00000800; |
| } |
| result.schemaVersion_ = schemaVersion_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.MessageMetadata.getDefaultInstance()) return this; |
| if (other.hasProducerName()) { |
| setProducerName(other.getProducerName()); |
| } |
| if (other.hasSequenceId()) { |
| setSequenceId(other.getSequenceId()); |
| } |
| if (other.hasPublishTime()) { |
| setPublishTime(other.getPublishTime()); |
| } |
| if (!other.properties_.isEmpty()) { |
| if (properties_.isEmpty()) { |
| properties_ = other.properties_; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| } else { |
| ensurePropertiesIsMutable(); |
| properties_.addAll(other.properties_); |
| } |
| |
| } |
| if (other.hasReplicatedFrom()) { |
| setReplicatedFrom(other.getReplicatedFrom()); |
| } |
| if (other.hasPartitionKey()) { |
| setPartitionKey(other.getPartitionKey()); |
| } |
| if (!other.replicateTo_.isEmpty()) { |
| if (replicateTo_.isEmpty()) { |
| replicateTo_ = other.replicateTo_; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| } else { |
| ensureReplicateToIsMutable(); |
| replicateTo_.addAll(other.replicateTo_); |
| } |
| |
| } |
| if (other.hasCompression()) { |
| setCompression(other.getCompression()); |
| } |
| if (other.hasUncompressedSize()) { |
| setUncompressedSize(other.getUncompressedSize()); |
| } |
| if (other.hasNumMessagesInBatch()) { |
| setNumMessagesInBatch(other.getNumMessagesInBatch()); |
| } |
| if (other.hasEventTime()) { |
| setEventTime(other.getEventTime()); |
| } |
| if (!other.encryptionKeys_.isEmpty()) { |
| if (encryptionKeys_.isEmpty()) { |
| encryptionKeys_ = other.encryptionKeys_; |
| bitField0_ = (bitField0_ & ~0x00000800); |
| } else { |
| ensureEncryptionKeysIsMutable(); |
| encryptionKeys_.addAll(other.encryptionKeys_); |
| } |
| |
| } |
| if (other.hasEncryptionAlgo()) { |
| setEncryptionAlgo(other.getEncryptionAlgo()); |
| } |
| if (other.hasEncryptionParam()) { |
| setEncryptionParam(other.getEncryptionParam()); |
| } |
| if (other.hasSchemaVersion()) { |
| setSchemaVersion(other.getSchemaVersion()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasProducerName()) { |
| |
| return false; |
| } |
| if (!hasSequenceId()) { |
| |
| return false; |
| } |
| if (!hasPublishTime()) { |
| |
| return false; |
| } |
| for (int i = 0; i < getPropertiesCount(); i++) { |
| if (!getProperties(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| for (int i = 0; i < getEncryptionKeysCount(); i++) { |
| if (!getEncryptionKeys(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| producerName_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| sequenceId_ = input.readUInt64(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| publishTime_ = input.readUInt64(); |
| break; |
| } |
| case 34: { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addProperties(subBuilder.buildPartial()); |
| break; |
| } |
| case 42: { |
| bitField0_ |= 0x00000010; |
| replicatedFrom_ = input.readBytes(); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000020; |
| partitionKey_ = input.readBytes(); |
| break; |
| } |
| case 58: { |
| ensureReplicateToIsMutable(); |
| replicateTo_.add(input.readBytes()); |
| break; |
| } |
| case 64: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CompressionType value = org.apache.pulsar.common.api.proto.PulsarApi.CompressionType.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000080; |
| compression_ = value; |
| } |
| break; |
| } |
| case 72: { |
| bitField0_ |= 0x00000100; |
| uncompressedSize_ = input.readUInt32(); |
| break; |
| } |
| case 88: { |
| bitField0_ |= 0x00000200; |
| numMessagesInBatch_ = input.readInt32(); |
| break; |
| } |
| case 96: { |
| bitField0_ |= 0x00000400; |
| eventTime_ = input.readUInt64(); |
| break; |
| } |
| case 106: { |
| org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addEncryptionKeys(subBuilder.buildPartial()); |
| break; |
| } |
| case 114: { |
| bitField0_ |= 0x00001000; |
| encryptionAlgo_ = input.readBytes(); |
| break; |
| } |
| case 122: { |
| bitField0_ |= 0x00002000; |
| encryptionParam_ = input.readBytes(); |
| break; |
| } |
| case 130: { |
| bitField0_ |= 0x00004000; |
| schemaVersion_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string producer_name = 1; |
| private java.lang.Object producerName_ = ""; |
| public boolean hasProducerName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getProducerName() { |
| java.lang.Object ref = producerName_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| producerName_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setProducerName(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| producerName_ = value; |
| |
| return this; |
| } |
| public Builder clearProducerName() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| producerName_ = getDefaultInstance().getProducerName(); |
| |
| return this; |
| } |
| void setProducerName(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| producerName_ = value; |
| |
| } |
| |
| // required uint64 sequence_id = 2; |
| private long sequenceId_ ; |
| public boolean hasSequenceId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSequenceId() { |
| return sequenceId_; |
| } |
| public Builder setSequenceId(long value) { |
| bitField0_ |= 0x00000002; |
| sequenceId_ = value; |
| |
| return this; |
| } |
| public Builder clearSequenceId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| sequenceId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 publish_time = 3; |
| private long publishTime_ ; |
| public boolean hasPublishTime() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getPublishTime() { |
| return publishTime_; |
| } |
| public Builder setPublishTime(long value) { |
| bitField0_ |= 0x00000004; |
| publishTime_ = value; |
| |
| return this; |
| } |
| public Builder clearPublishTime() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| publishTime_ = 0L; |
| |
| return this; |
| } |
| |
| // repeated .pulsar.proto.KeyValue properties = 4; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> properties_ = |
| java.util.Collections.emptyList(); |
| private void ensurePropertiesIsMutable() { |
| if (!((bitField0_ & 0x00000008) == 0x00000008)) { |
| properties_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue>(properties_); |
| bitField0_ |= 0x00000008; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getPropertiesList() { |
| return java.util.Collections.unmodifiableList(properties_); |
| } |
| public int getPropertiesCount() { |
| return properties_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index) { |
| return properties_.get(index); |
| } |
| public Builder setProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.set(index, value); |
| |
| return this; |
| } |
| public Builder setProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addProperties(org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.add(value); |
| |
| return this; |
| } |
| public Builder addProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.add(index, value); |
| |
| return this; |
| } |
| public Builder addProperties( |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllProperties( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> values) { |
| ensurePropertiesIsMutable(); |
| super.addAll(values, properties_); |
| |
| return this; |
| } |
| public Builder clearProperties() { |
| properties_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000008); |
| |
| return this; |
| } |
| public Builder removeProperties(int index) { |
| ensurePropertiesIsMutable(); |
| properties_.remove(index); |
| |
| return this; |
| } |
| |
| // optional string replicated_from = 5; |
| private java.lang.Object replicatedFrom_ = ""; |
| public boolean hasReplicatedFrom() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getReplicatedFrom() { |
| java.lang.Object ref = replicatedFrom_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| replicatedFrom_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setReplicatedFrom(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| replicatedFrom_ = value; |
| |
| return this; |
| } |
| public Builder clearReplicatedFrom() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| replicatedFrom_ = getDefaultInstance().getReplicatedFrom(); |
| |
| return this; |
| } |
| void setReplicatedFrom(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000010; |
| replicatedFrom_ = value; |
| |
| } |
| |
| // optional string partition_key = 6; |
| private java.lang.Object partitionKey_ = ""; |
| public boolean hasPartitionKey() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public String getPartitionKey() { |
| java.lang.Object ref = partitionKey_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| partitionKey_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setPartitionKey(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| partitionKey_ = value; |
| |
| return this; |
| } |
| public Builder clearPartitionKey() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| partitionKey_ = getDefaultInstance().getPartitionKey(); |
| |
| return this; |
| } |
| void setPartitionKey(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000020; |
| partitionKey_ = value; |
| |
| } |
| |
| // repeated string replicate_to = 7; |
| private com.google.protobuf.LazyStringList replicateTo_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureReplicateToIsMutable() { |
| if (!((bitField0_ & 0x00000040) == 0x00000040)) { |
| replicateTo_ = new com.google.protobuf.LazyStringArrayList(replicateTo_); |
| bitField0_ |= 0x00000040; |
| } |
| } |
| public java.util.List<String> |
| getReplicateToList() { |
| return java.util.Collections.unmodifiableList(replicateTo_); |
| } |
| public int getReplicateToCount() { |
| return replicateTo_.size(); |
| } |
| public String getReplicateTo(int index) { |
| return replicateTo_.get(index); |
| } |
| public Builder setReplicateTo( |
| int index, String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureReplicateToIsMutable(); |
| replicateTo_.set(index, value); |
| |
| return this; |
| } |
| public Builder addReplicateTo(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureReplicateToIsMutable(); |
| replicateTo_.add(value); |
| |
| return this; |
| } |
| public Builder addAllReplicateTo( |
| java.lang.Iterable<String> values) { |
| ensureReplicateToIsMutable(); |
| super.addAll(values, replicateTo_); |
| |
| return this; |
| } |
| public Builder clearReplicateTo() { |
| replicateTo_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| |
| return this; |
| } |
| void addReplicateTo(com.google.protobuf.ByteString value) { |
| ensureReplicateToIsMutable(); |
| replicateTo_.add(value); |
| |
| } |
| |
| // optional .pulsar.proto.CompressionType compression = 8 [default = NONE]; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CompressionType compression_ = org.apache.pulsar.common.api.proto.PulsarApi.CompressionType.NONE; |
| public boolean hasCompression() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CompressionType getCompression() { |
| return compression_; |
| } |
| public Builder setCompression(org.apache.pulsar.common.api.proto.PulsarApi.CompressionType value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000080; |
| compression_ = value; |
| |
| return this; |
| } |
| public Builder clearCompression() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| compression_ = org.apache.pulsar.common.api.proto.PulsarApi.CompressionType.NONE; |
| |
| return this; |
| } |
| |
| // optional uint32 uncompressed_size = 9 [default = 0]; |
| private int uncompressedSize_ ; |
| public boolean hasUncompressedSize() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public int getUncompressedSize() { |
| return uncompressedSize_; |
| } |
| public Builder setUncompressedSize(int value) { |
| bitField0_ |= 0x00000100; |
| uncompressedSize_ = value; |
| |
| return this; |
| } |
| public Builder clearUncompressedSize() { |
| bitField0_ = (bitField0_ & ~0x00000100); |
| uncompressedSize_ = 0; |
| |
| return this; |
| } |
| |
| // optional int32 num_messages_in_batch = 11 [default = 1]; |
| private int numMessagesInBatch_ = 1; |
| public boolean hasNumMessagesInBatch() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public int getNumMessagesInBatch() { |
| return numMessagesInBatch_; |
| } |
| public Builder setNumMessagesInBatch(int value) { |
| bitField0_ |= 0x00000200; |
| numMessagesInBatch_ = value; |
| |
| return this; |
| } |
| public Builder clearNumMessagesInBatch() { |
| bitField0_ = (bitField0_ & ~0x00000200); |
| numMessagesInBatch_ = 1; |
| |
| return this; |
| } |
| |
| // optional uint64 event_time = 12 [default = 0]; |
| private long eventTime_ ; |
| public boolean hasEventTime() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public long getEventTime() { |
| return eventTime_; |
| } |
| public Builder setEventTime(long value) { |
| bitField0_ |= 0x00000400; |
| eventTime_ = value; |
| |
| return this; |
| } |
| public Builder clearEventTime() { |
| bitField0_ = (bitField0_ & ~0x00000400); |
| eventTime_ = 0L; |
| |
| return this; |
| } |
| |
| // repeated .pulsar.proto.EncryptionKeys encryption_keys = 13; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys> encryptionKeys_ = |
| java.util.Collections.emptyList(); |
| private void ensureEncryptionKeysIsMutable() { |
| if (!((bitField0_ & 0x00000800) == 0x00000800)) { |
| encryptionKeys_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys>(encryptionKeys_); |
| bitField0_ |= 0x00000800; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys> getEncryptionKeysList() { |
| return java.util.Collections.unmodifiableList(encryptionKeys_); |
| } |
| public int getEncryptionKeysCount() { |
| return encryptionKeys_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys getEncryptionKeys(int index) { |
| return encryptionKeys_.get(index); |
| } |
| public Builder setEncryptionKeys( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEncryptionKeysIsMutable(); |
| encryptionKeys_.set(index, value); |
| |
| return this; |
| } |
| public Builder setEncryptionKeys( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.Builder builderForValue) { |
| ensureEncryptionKeysIsMutable(); |
| encryptionKeys_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addEncryptionKeys(org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEncryptionKeysIsMutable(); |
| encryptionKeys_.add(value); |
| |
| return this; |
| } |
| public Builder addEncryptionKeys( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEncryptionKeysIsMutable(); |
| encryptionKeys_.add(index, value); |
| |
| return this; |
| } |
| public Builder addEncryptionKeys( |
| org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.Builder builderForValue) { |
| ensureEncryptionKeysIsMutable(); |
| encryptionKeys_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addEncryptionKeys( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys.Builder builderForValue) { |
| ensureEncryptionKeysIsMutable(); |
| encryptionKeys_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllEncryptionKeys( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.EncryptionKeys> values) { |
| ensureEncryptionKeysIsMutable(); |
| super.addAll(values, encryptionKeys_); |
| |
| return this; |
| } |
| public Builder clearEncryptionKeys() { |
| encryptionKeys_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000800); |
| |
| return this; |
| } |
| public Builder removeEncryptionKeys(int index) { |
| ensureEncryptionKeysIsMutable(); |
| encryptionKeys_.remove(index); |
| |
| return this; |
| } |
| |
| // optional string encryption_algo = 14; |
| private java.lang.Object encryptionAlgo_ = ""; |
| public boolean hasEncryptionAlgo() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| public String getEncryptionAlgo() { |
| java.lang.Object ref = encryptionAlgo_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| encryptionAlgo_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setEncryptionAlgo(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00001000; |
| encryptionAlgo_ = value; |
| |
| return this; |
| } |
| public Builder clearEncryptionAlgo() { |
| bitField0_ = (bitField0_ & ~0x00001000); |
| encryptionAlgo_ = getDefaultInstance().getEncryptionAlgo(); |
| |
| return this; |
| } |
| void setEncryptionAlgo(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00001000; |
| encryptionAlgo_ = value; |
| |
| } |
| |
| // optional bytes encryption_param = 15; |
| private com.google.protobuf.ByteString encryptionParam_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasEncryptionParam() { |
| return ((bitField0_ & 0x00002000) == 0x00002000); |
| } |
| public com.google.protobuf.ByteString getEncryptionParam() { |
| return encryptionParam_; |
| } |
| public Builder setEncryptionParam(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00002000; |
| encryptionParam_ = value; |
| |
| return this; |
| } |
| public Builder clearEncryptionParam() { |
| bitField0_ = (bitField0_ & ~0x00002000); |
| encryptionParam_ = getDefaultInstance().getEncryptionParam(); |
| |
| return this; |
| } |
| |
| // optional bytes schema_version = 16; |
| private com.google.protobuf.ByteString schemaVersion_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSchemaVersion() { |
| return ((bitField0_ & 0x00004000) == 0x00004000); |
| } |
| public com.google.protobuf.ByteString getSchemaVersion() { |
| return schemaVersion_; |
| } |
| public Builder setSchemaVersion(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00004000; |
| schemaVersion_ = value; |
| |
| return this; |
| } |
| public Builder clearSchemaVersion() { |
| bitField0_ = (bitField0_ & ~0x00004000); |
| schemaVersion_ = getDefaultInstance().getSchemaVersion(); |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.MessageMetadata) |
| } |
| |
| static { |
| defaultInstance = new MessageMetadata(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.MessageMetadata) |
| } |
| |
| public interface SingleMessageMetadataOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // repeated .pulsar.proto.KeyValue properties = 1; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> |
| getPropertiesList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index); |
| int getPropertiesCount(); |
| |
| // optional string partition_key = 2; |
| boolean hasPartitionKey(); |
| String getPartitionKey(); |
| |
| // required int32 payload_size = 3; |
| boolean hasPayloadSize(); |
| int getPayloadSize(); |
| |
| // optional bool compacted_out = 4 [default = false]; |
| boolean hasCompactedOut(); |
| boolean getCompactedOut(); |
| |
| // optional uint64 event_time = 5 [default = 0]; |
| boolean hasEventTime(); |
| long getEventTime(); |
| } |
| public static final class SingleMessageMetadata extends |
| com.google.protobuf.GeneratedMessageLite |
| implements SingleMessageMetadataOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use SingleMessageMetadata.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<SingleMessageMetadata> handle; |
| private SingleMessageMetadata(io.netty.util.Recycler.Handle<SingleMessageMetadata> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<SingleMessageMetadata> RECYCLER = new io.netty.util.Recycler<SingleMessageMetadata>() { |
| protected SingleMessageMetadata newObject(Handle<SingleMessageMetadata> handle) { |
| return new SingleMessageMetadata(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private SingleMessageMetadata(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final SingleMessageMetadata defaultInstance; |
| public static SingleMessageMetadata getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public SingleMessageMetadata getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // repeated .pulsar.proto.KeyValue properties = 1; |
| public static final int PROPERTIES_FIELD_NUMBER = 1; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> properties_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getPropertiesList() { |
| return properties_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder> |
| getPropertiesOrBuilderList() { |
| return properties_; |
| } |
| public int getPropertiesCount() { |
| return properties_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index) { |
| return properties_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder getPropertiesOrBuilder( |
| int index) { |
| return properties_.get(index); |
| } |
| |
| // optional string partition_key = 2; |
| public static final int PARTITION_KEY_FIELD_NUMBER = 2; |
| private java.lang.Object partitionKey_; |
| public boolean hasPartitionKey() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getPartitionKey() { |
| java.lang.Object ref = partitionKey_; |
| 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)) { |
| partitionKey_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getPartitionKeyBytes() { |
| java.lang.Object ref = partitionKey_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| partitionKey_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required int32 payload_size = 3; |
| public static final int PAYLOAD_SIZE_FIELD_NUMBER = 3; |
| private int payloadSize_; |
| public boolean hasPayloadSize() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getPayloadSize() { |
| return payloadSize_; |
| } |
| |
| // optional bool compacted_out = 4 [default = false]; |
| public static final int COMPACTED_OUT_FIELD_NUMBER = 4; |
| private boolean compactedOut_; |
| public boolean hasCompactedOut() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public boolean getCompactedOut() { |
| return compactedOut_; |
| } |
| |
| // optional uint64 event_time = 5 [default = 0]; |
| public static final int EVENT_TIME_FIELD_NUMBER = 5; |
| private long eventTime_; |
| public boolean hasEventTime() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public long getEventTime() { |
| return eventTime_; |
| } |
| |
| private void initFields() { |
| properties_ = java.util.Collections.emptyList(); |
| partitionKey_ = ""; |
| payloadSize_ = 0; |
| compactedOut_ = false; |
| eventTime_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasPayloadSize()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| for (int i = 0; i < getPropertiesCount(); i++) { |
| if (!getProperties(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < properties_.size(); i++) { |
| output.writeMessage(1, properties_.get(i)); |
| } |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(2, getPartitionKeyBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeInt32(3, payloadSize_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBool(4, compactedOut_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeUInt64(5, eventTime_); |
| } |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| for (int i = 0; i < properties_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, properties_.get(i)); |
| } |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getPartitionKeyBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(3, payloadSize_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(4, compactedOut_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(5, eventTime_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata 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.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata 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.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata 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.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadataOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| properties_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| partitionKey_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| payloadSize_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| compactedOut_ = false; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| eventTime_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata result = org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| properties_ = java.util.Collections.unmodifiableList(properties_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.properties_ = properties_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.partitionKey_ = partitionKey_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.payloadSize_ = payloadSize_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.compactedOut_ = compactedOut_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.eventTime_ = eventTime_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.SingleMessageMetadata.getDefaultInstance()) return this; |
| if (!other.properties_.isEmpty()) { |
| if (properties_.isEmpty()) { |
| properties_ = other.properties_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensurePropertiesIsMutable(); |
| properties_.addAll(other.properties_); |
| } |
| |
| } |
| if (other.hasPartitionKey()) { |
| setPartitionKey(other.getPartitionKey()); |
| } |
| if (other.hasPayloadSize()) { |
| setPayloadSize(other.getPayloadSize()); |
| } |
| if (other.hasCompactedOut()) { |
| setCompactedOut(other.getCompactedOut()); |
| } |
| if (other.hasEventTime()) { |
| setEventTime(other.getEventTime()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasPayloadSize()) { |
| |
| return false; |
| } |
| for (int i = 0; i < getPropertiesCount(); i++) { |
| if (!getProperties(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addProperties(subBuilder.buildPartial()); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| partitionKey_ = input.readBytes(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| payloadSize_ = input.readInt32(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| compactedOut_ = input.readBool(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000010; |
| eventTime_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // repeated .pulsar.proto.KeyValue properties = 1; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> properties_ = |
| java.util.Collections.emptyList(); |
| private void ensurePropertiesIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| properties_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue>(properties_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getPropertiesList() { |
| return java.util.Collections.unmodifiableList(properties_); |
| } |
| public int getPropertiesCount() { |
| return properties_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getProperties(int index) { |
| return properties_.get(index); |
| } |
| public Builder setProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.set(index, value); |
| |
| return this; |
| } |
| public Builder setProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addProperties(org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.add(value); |
| |
| return this; |
| } |
| public Builder addProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.add(index, value); |
| |
| return this; |
| } |
| public Builder addProperties( |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllProperties( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> values) { |
| ensurePropertiesIsMutable(); |
| super.addAll(values, properties_); |
| |
| return this; |
| } |
| public Builder clearProperties() { |
| properties_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| |
| return this; |
| } |
| public Builder removeProperties(int index) { |
| ensurePropertiesIsMutable(); |
| properties_.remove(index); |
| |
| return this; |
| } |
| |
| // optional string partition_key = 2; |
| private java.lang.Object partitionKey_ = ""; |
| public boolean hasPartitionKey() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getPartitionKey() { |
| java.lang.Object ref = partitionKey_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| partitionKey_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setPartitionKey(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| partitionKey_ = value; |
| |
| return this; |
| } |
| public Builder clearPartitionKey() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| partitionKey_ = getDefaultInstance().getPartitionKey(); |
| |
| return this; |
| } |
| void setPartitionKey(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000002; |
| partitionKey_ = value; |
| |
| } |
| |
| // required int32 payload_size = 3; |
| private int payloadSize_ ; |
| public boolean hasPayloadSize() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public int getPayloadSize() { |
| return payloadSize_; |
| } |
| public Builder setPayloadSize(int value) { |
| bitField0_ |= 0x00000004; |
| payloadSize_ = value; |
| |
| return this; |
| } |
| public Builder clearPayloadSize() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| payloadSize_ = 0; |
| |
| return this; |
| } |
| |
| // optional bool compacted_out = 4 [default = false]; |
| private boolean compactedOut_ ; |
| public boolean hasCompactedOut() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public boolean getCompactedOut() { |
| return compactedOut_; |
| } |
| public Builder setCompactedOut(boolean value) { |
| bitField0_ |= 0x00000008; |
| compactedOut_ = value; |
| |
| return this; |
| } |
| public Builder clearCompactedOut() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| compactedOut_ = false; |
| |
| return this; |
| } |
| |
| // optional uint64 event_time = 5 [default = 0]; |
| private long eventTime_ ; |
| public boolean hasEventTime() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public long getEventTime() { |
| return eventTime_; |
| } |
| public Builder setEventTime(long value) { |
| bitField0_ |= 0x00000010; |
| eventTime_ = value; |
| |
| return this; |
| } |
| public Builder clearEventTime() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| eventTime_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.SingleMessageMetadata) |
| } |
| |
| static { |
| defaultInstance = new SingleMessageMetadata(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.SingleMessageMetadata) |
| } |
| |
| public interface CommandConnectOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string client_version = 1; |
| boolean hasClientVersion(); |
| String getClientVersion(); |
| |
| // optional .pulsar.proto.AuthMethod auth_method = 2; |
| boolean hasAuthMethod(); |
| org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod getAuthMethod(); |
| |
| // optional string auth_method_name = 5; |
| boolean hasAuthMethodName(); |
| String getAuthMethodName(); |
| |
| // optional bytes auth_data = 3; |
| boolean hasAuthData(); |
| com.google.protobuf.ByteString getAuthData(); |
| |
| // optional int32 protocol_version = 4 [default = 0]; |
| boolean hasProtocolVersion(); |
| int getProtocolVersion(); |
| |
| // optional string proxy_to_broker_url = 6; |
| boolean hasProxyToBrokerUrl(); |
| String getProxyToBrokerUrl(); |
| |
| // optional string original_principal = 7; |
| boolean hasOriginalPrincipal(); |
| String getOriginalPrincipal(); |
| |
| // optional string original_auth_data = 8; |
| boolean hasOriginalAuthData(); |
| String getOriginalAuthData(); |
| |
| // optional string original_auth_method = 9; |
| boolean hasOriginalAuthMethod(); |
| String getOriginalAuthMethod(); |
| } |
| public static final class CommandConnect extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandConnectOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandConnect.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandConnect> handle; |
| private CommandConnect(io.netty.util.Recycler.Handle<CommandConnect> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandConnect> RECYCLER = new io.netty.util.Recycler<CommandConnect>() { |
| protected CommandConnect newObject(Handle<CommandConnect> handle) { |
| return new CommandConnect(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandConnect(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandConnect defaultInstance; |
| public static CommandConnect getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandConnect getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required string client_version = 1; |
| public static final int CLIENT_VERSION_FIELD_NUMBER = 1; |
| private java.lang.Object clientVersion_; |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getClientVersion() { |
| java.lang.Object ref = clientVersion_; |
| 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)) { |
| clientVersion_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getClientVersionBytes() { |
| java.lang.Object ref = clientVersion_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| clientVersion_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional .pulsar.proto.AuthMethod auth_method = 2; |
| public static final int AUTH_METHOD_FIELD_NUMBER = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod authMethod_; |
| public boolean hasAuthMethod() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod getAuthMethod() { |
| return authMethod_; |
| } |
| |
| // optional string auth_method_name = 5; |
| public static final int AUTH_METHOD_NAME_FIELD_NUMBER = 5; |
| private java.lang.Object authMethodName_; |
| public boolean hasAuthMethodName() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getAuthMethodName() { |
| java.lang.Object ref = authMethodName_; |
| 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)) { |
| authMethodName_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getAuthMethodNameBytes() { |
| java.lang.Object ref = authMethodName_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| authMethodName_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional bytes auth_data = 3; |
| public static final int AUTH_DATA_FIELD_NUMBER = 3; |
| private com.google.protobuf.ByteString authData_; |
| public boolean hasAuthData() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public com.google.protobuf.ByteString getAuthData() { |
| return authData_; |
| } |
| |
| // optional int32 protocol_version = 4 [default = 0]; |
| public static final int PROTOCOL_VERSION_FIELD_NUMBER = 4; |
| private int protocolVersion_; |
| public boolean hasProtocolVersion() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public int getProtocolVersion() { |
| return protocolVersion_; |
| } |
| |
| // optional string proxy_to_broker_url = 6; |
| public static final int PROXY_TO_BROKER_URL_FIELD_NUMBER = 6; |
| private java.lang.Object proxyToBrokerUrl_; |
| public boolean hasProxyToBrokerUrl() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public String getProxyToBrokerUrl() { |
| java.lang.Object ref = proxyToBrokerUrl_; |
| 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)) { |
| proxyToBrokerUrl_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getProxyToBrokerUrlBytes() { |
| java.lang.Object ref = proxyToBrokerUrl_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| proxyToBrokerUrl_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string original_principal = 7; |
| public static final int ORIGINAL_PRINCIPAL_FIELD_NUMBER = 7; |
| private java.lang.Object originalPrincipal_; |
| public boolean hasOriginalPrincipal() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public String getOriginalPrincipal() { |
| java.lang.Object ref = originalPrincipal_; |
| 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)) { |
| originalPrincipal_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalPrincipalBytes() { |
| java.lang.Object ref = originalPrincipal_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalPrincipal_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string original_auth_data = 8; |
| public static final int ORIGINAL_AUTH_DATA_FIELD_NUMBER = 8; |
| private java.lang.Object originalAuthData_; |
| public boolean hasOriginalAuthData() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public String getOriginalAuthData() { |
| java.lang.Object ref = originalAuthData_; |
| 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)) { |
| originalAuthData_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalAuthDataBytes() { |
| java.lang.Object ref = originalAuthData_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalAuthData_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string original_auth_method = 9; |
| public static final int ORIGINAL_AUTH_METHOD_FIELD_NUMBER = 9; |
| private java.lang.Object originalAuthMethod_; |
| public boolean hasOriginalAuthMethod() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public String getOriginalAuthMethod() { |
| java.lang.Object ref = originalAuthMethod_; |
| 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)) { |
| originalAuthMethod_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalAuthMethodBytes() { |
| java.lang.Object ref = originalAuthMethod_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalAuthMethod_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| clientVersion_ = ""; |
| authMethod_ = org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod.AuthMethodNone; |
| authMethodName_ = ""; |
| authData_ = com.google.protobuf.ByteString.EMPTY; |
| protocolVersion_ = 0; |
| proxyToBrokerUrl_ = ""; |
| originalPrincipal_ = ""; |
| originalAuthData_ = ""; |
| originalAuthMethod_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasClientVersion()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getClientVersionBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeEnum(2, authMethod_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(3, authData_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeInt32(4, protocolVersion_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(5, getAuthMethodNameBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeBytes(6, getProxyToBrokerUrlBytes()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeBytes(7, getOriginalPrincipalBytes()); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeBytes(8, getOriginalAuthDataBytes()); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeBytes(9, getOriginalAuthMethodBytes()); |
| } |
| } |
| |
| 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, getClientVersionBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(2, authMethod_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, authData_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(4, protocolVersion_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(5, getAuthMethodNameBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, getProxyToBrokerUrlBytes()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(7, getOriginalPrincipalBytes()); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(8, getOriginalAuthDataBytes()); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(9, getOriginalAuthMethodBytes()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandConnect parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect 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.pulsar.common.api.proto.PulsarApi.CommandConnect 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.pulsar.common.api.proto.PulsarApi.CommandConnect parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect 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.pulsar.common.api.proto.PulsarApi.CommandConnect prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandConnectOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| clientVersion_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| authMethod_ = org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod.AuthMethodNone; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| authMethodName_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| authData_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| protocolVersion_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| proxyToBrokerUrl_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| originalPrincipal_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| originalAuthData_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| originalAuthMethod_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect result = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.clientVersion_ = clientVersion_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.authMethod_ = authMethod_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.authMethodName_ = authMethodName_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.authData_ = authData_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.protocolVersion_ = protocolVersion_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.proxyToBrokerUrl_ = proxyToBrokerUrl_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.originalPrincipal_ = originalPrincipal_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.originalAuthData_ = originalAuthData_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.originalAuthMethod_ = originalAuthMethod_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.getDefaultInstance()) return this; |
| if (other.hasClientVersion()) { |
| setClientVersion(other.getClientVersion()); |
| } |
| if (other.hasAuthMethod()) { |
| setAuthMethod(other.getAuthMethod()); |
| } |
| if (other.hasAuthMethodName()) { |
| setAuthMethodName(other.getAuthMethodName()); |
| } |
| if (other.hasAuthData()) { |
| setAuthData(other.getAuthData()); |
| } |
| if (other.hasProtocolVersion()) { |
| setProtocolVersion(other.getProtocolVersion()); |
| } |
| if (other.hasProxyToBrokerUrl()) { |
| setProxyToBrokerUrl(other.getProxyToBrokerUrl()); |
| } |
| if (other.hasOriginalPrincipal()) { |
| setOriginalPrincipal(other.getOriginalPrincipal()); |
| } |
| if (other.hasOriginalAuthData()) { |
| setOriginalAuthData(other.getOriginalAuthData()); |
| } |
| if (other.hasOriginalAuthMethod()) { |
| setOriginalAuthMethod(other.getOriginalAuthMethod()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasClientVersion()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| clientVersion_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod value = org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000002; |
| authMethod_ = value; |
| } |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000008; |
| authData_ = input.readBytes(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000010; |
| protocolVersion_ = input.readInt32(); |
| break; |
| } |
| case 42: { |
| bitField0_ |= 0x00000004; |
| authMethodName_ = input.readBytes(); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000020; |
| proxyToBrokerUrl_ = input.readBytes(); |
| break; |
| } |
| case 58: { |
| bitField0_ |= 0x00000040; |
| originalPrincipal_ = input.readBytes(); |
| break; |
| } |
| case 66: { |
| bitField0_ |= 0x00000080; |
| originalAuthData_ = input.readBytes(); |
| break; |
| } |
| case 74: { |
| bitField0_ |= 0x00000100; |
| originalAuthMethod_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string client_version = 1; |
| private java.lang.Object clientVersion_ = ""; |
| public boolean hasClientVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getClientVersion() { |
| java.lang.Object ref = clientVersion_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| clientVersion_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setClientVersion(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| clientVersion_ = value; |
| |
| return this; |
| } |
| public Builder clearClientVersion() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| clientVersion_ = getDefaultInstance().getClientVersion(); |
| |
| return this; |
| } |
| void setClientVersion(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| clientVersion_ = value; |
| |
| } |
| |
| // optional .pulsar.proto.AuthMethod auth_method = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod authMethod_ = org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod.AuthMethodNone; |
| public boolean hasAuthMethod() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod getAuthMethod() { |
| return authMethod_; |
| } |
| public Builder setAuthMethod(org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| authMethod_ = value; |
| |
| return this; |
| } |
| public Builder clearAuthMethod() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| authMethod_ = org.apache.pulsar.common.api.proto.PulsarApi.AuthMethod.AuthMethodNone; |
| |
| return this; |
| } |
| |
| // optional string auth_method_name = 5; |
| private java.lang.Object authMethodName_ = ""; |
| public boolean hasAuthMethodName() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getAuthMethodName() { |
| java.lang.Object ref = authMethodName_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| authMethodName_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setAuthMethodName(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| authMethodName_ = value; |
| |
| return this; |
| } |
| public Builder clearAuthMethodName() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| authMethodName_ = getDefaultInstance().getAuthMethodName(); |
| |
| return this; |
| } |
| void setAuthMethodName(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000004; |
| authMethodName_ = value; |
| |
| } |
| |
| // optional bytes auth_data = 3; |
| private com.google.protobuf.ByteString authData_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasAuthData() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public com.google.protobuf.ByteString getAuthData() { |
| return authData_; |
| } |
| public Builder setAuthData(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| authData_ = value; |
| |
| return this; |
| } |
| public Builder clearAuthData() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| authData_ = getDefaultInstance().getAuthData(); |
| |
| return this; |
| } |
| |
| // optional int32 protocol_version = 4 [default = 0]; |
| private int protocolVersion_ ; |
| public boolean hasProtocolVersion() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public int getProtocolVersion() { |
| return protocolVersion_; |
| } |
| public Builder setProtocolVersion(int value) { |
| bitField0_ |= 0x00000010; |
| protocolVersion_ = value; |
| |
| return this; |
| } |
| public Builder clearProtocolVersion() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| protocolVersion_ = 0; |
| |
| return this; |
| } |
| |
| // optional string proxy_to_broker_url = 6; |
| private java.lang.Object proxyToBrokerUrl_ = ""; |
| public boolean hasProxyToBrokerUrl() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public String getProxyToBrokerUrl() { |
| java.lang.Object ref = proxyToBrokerUrl_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| proxyToBrokerUrl_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setProxyToBrokerUrl(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| proxyToBrokerUrl_ = value; |
| |
| return this; |
| } |
| public Builder clearProxyToBrokerUrl() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| proxyToBrokerUrl_ = getDefaultInstance().getProxyToBrokerUrl(); |
| |
| return this; |
| } |
| void setProxyToBrokerUrl(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000020; |
| proxyToBrokerUrl_ = value; |
| |
| } |
| |
| // optional string original_principal = 7; |
| private java.lang.Object originalPrincipal_ = ""; |
| public boolean hasOriginalPrincipal() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public String getOriginalPrincipal() { |
| java.lang.Object ref = originalPrincipal_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalPrincipal_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalPrincipal(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000040; |
| originalPrincipal_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalPrincipal() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| originalPrincipal_ = getDefaultInstance().getOriginalPrincipal(); |
| |
| return this; |
| } |
| void setOriginalPrincipal(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000040; |
| originalPrincipal_ = value; |
| |
| } |
| |
| // optional string original_auth_data = 8; |
| private java.lang.Object originalAuthData_ = ""; |
| public boolean hasOriginalAuthData() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public String getOriginalAuthData() { |
| java.lang.Object ref = originalAuthData_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalAuthData_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalAuthData(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000080; |
| originalAuthData_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalAuthData() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| originalAuthData_ = getDefaultInstance().getOriginalAuthData(); |
| |
| return this; |
| } |
| void setOriginalAuthData(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000080; |
| originalAuthData_ = value; |
| |
| } |
| |
| // optional string original_auth_method = 9; |
| private java.lang.Object originalAuthMethod_ = ""; |
| public boolean hasOriginalAuthMethod() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public String getOriginalAuthMethod() { |
| java.lang.Object ref = originalAuthMethod_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalAuthMethod_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalAuthMethod(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000100; |
| originalAuthMethod_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalAuthMethod() { |
| bitField0_ = (bitField0_ & ~0x00000100); |
| originalAuthMethod_ = getDefaultInstance().getOriginalAuthMethod(); |
| |
| return this; |
| } |
| void setOriginalAuthMethod(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000100; |
| originalAuthMethod_ = value; |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandConnect) |
| } |
| |
| static { |
| defaultInstance = new CommandConnect(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandConnect) |
| } |
| |
| public interface CommandConnectedOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string server_version = 1; |
| boolean hasServerVersion(); |
| String getServerVersion(); |
| |
| // optional int32 protocol_version = 2 [default = 0]; |
| boolean hasProtocolVersion(); |
| int getProtocolVersion(); |
| } |
| public static final class CommandConnected extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandConnectedOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandConnected.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandConnected> handle; |
| private CommandConnected(io.netty.util.Recycler.Handle<CommandConnected> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandConnected> RECYCLER = new io.netty.util.Recycler<CommandConnected>() { |
| protected CommandConnected newObject(Handle<CommandConnected> handle) { |
| return new CommandConnected(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandConnected(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandConnected defaultInstance; |
| public static CommandConnected getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandConnected getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required string server_version = 1; |
| public static final int SERVER_VERSION_FIELD_NUMBER = 1; |
| private java.lang.Object serverVersion_; |
| public boolean hasServerVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getServerVersion() { |
| java.lang.Object ref = serverVersion_; |
| 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)) { |
| serverVersion_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getServerVersionBytes() { |
| java.lang.Object ref = serverVersion_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| serverVersion_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional int32 protocol_version = 2 [default = 0]; |
| public static final int PROTOCOL_VERSION_FIELD_NUMBER = 2; |
| private int protocolVersion_; |
| public boolean hasProtocolVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getProtocolVersion() { |
| return protocolVersion_; |
| } |
| |
| private void initFields() { |
| serverVersion_ = ""; |
| protocolVersion_ = 0; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasServerVersion()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getServerVersionBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeInt32(2, protocolVersion_); |
| } |
| } |
| |
| 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, getServerVersionBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(2, protocolVersion_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandConnected parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected 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.pulsar.common.api.proto.PulsarApi.CommandConnected 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.pulsar.common.api.proto.PulsarApi.CommandConnected parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected 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.pulsar.common.api.proto.PulsarApi.CommandConnected prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandConnectedOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| serverVersion_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| protocolVersion_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected result = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.serverVersion_ = serverVersion_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.protocolVersion_ = protocolVersion_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.getDefaultInstance()) return this; |
| if (other.hasServerVersion()) { |
| setServerVersion(other.getServerVersion()); |
| } |
| if (other.hasProtocolVersion()) { |
| setProtocolVersion(other.getProtocolVersion()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasServerVersion()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| serverVersion_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| protocolVersion_ = input.readInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string server_version = 1; |
| private java.lang.Object serverVersion_ = ""; |
| public boolean hasServerVersion() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getServerVersion() { |
| java.lang.Object ref = serverVersion_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| serverVersion_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setServerVersion(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| serverVersion_ = value; |
| |
| return this; |
| } |
| public Builder clearServerVersion() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| serverVersion_ = getDefaultInstance().getServerVersion(); |
| |
| return this; |
| } |
| void setServerVersion(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| serverVersion_ = value; |
| |
| } |
| |
| // optional int32 protocol_version = 2 [default = 0]; |
| private int protocolVersion_ ; |
| public boolean hasProtocolVersion() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getProtocolVersion() { |
| return protocolVersion_; |
| } |
| public Builder setProtocolVersion(int value) { |
| bitField0_ |= 0x00000002; |
| protocolVersion_ = value; |
| |
| return this; |
| } |
| public Builder clearProtocolVersion() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| protocolVersion_ = 0; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandConnected) |
| } |
| |
| static { |
| defaultInstance = new CommandConnected(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandConnected) |
| } |
| |
| public interface CommandSubscribeOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string topic = 1; |
| boolean hasTopic(); |
| String getTopic(); |
| |
| // required string subscription = 2; |
| boolean hasSubscription(); |
| String getSubscription(); |
| |
| // required .pulsar.proto.CommandSubscribe.SubType subType = 3; |
| boolean hasSubType(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType getSubType(); |
| |
| // required uint64 consumer_id = 4; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // required uint64 request_id = 5; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional string consumer_name = 6; |
| boolean hasConsumerName(); |
| String getConsumerName(); |
| |
| // optional int32 priority_level = 7; |
| boolean hasPriorityLevel(); |
| int getPriorityLevel(); |
| |
| // optional bool durable = 8 [default = true]; |
| boolean hasDurable(); |
| boolean getDurable(); |
| |
| // optional .pulsar.proto.MessageIdData start_message_id = 9; |
| boolean hasStartMessageId(); |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getStartMessageId(); |
| |
| // repeated .pulsar.proto.KeyValue metadata = 10; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> |
| getMetadataList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index); |
| int getMetadataCount(); |
| |
| // optional bool read_compacted = 11; |
| boolean hasReadCompacted(); |
| boolean getReadCompacted(); |
| |
| // optional .pulsar.proto.Schema schema = 12; |
| boolean hasSchema(); |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema(); |
| |
| // optional .pulsar.proto.CommandSubscribe.InitialPosition initialPosition = 13 [default = Latest]; |
| boolean hasInitialPosition(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition getInitialPosition(); |
| } |
| public static final class CommandSubscribe extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandSubscribeOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandSubscribe.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandSubscribe> handle; |
| private CommandSubscribe(io.netty.util.Recycler.Handle<CommandSubscribe> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandSubscribe> RECYCLER = new io.netty.util.Recycler<CommandSubscribe>() { |
| protected CommandSubscribe newObject(Handle<CommandSubscribe> handle) { |
| return new CommandSubscribe(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandSubscribe(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandSubscribe defaultInstance; |
| public static CommandSubscribe getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandSubscribe getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public enum SubType |
| implements com.google.protobuf.Internal.EnumLite { |
| Exclusive(0, 0), |
| Shared(1, 1), |
| Failover(2, 2), |
| ; |
| |
| public static final int Exclusive_VALUE = 0; |
| public static final int Shared_VALUE = 1; |
| public static final int Failover_VALUE = 2; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static SubType valueOf(int value) { |
| switch (value) { |
| case 0: return Exclusive; |
| case 1: return Shared; |
| case 2: return Failover; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<SubType> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<SubType> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<SubType>() { |
| public SubType findValueByNumber(int number) { |
| return SubType.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private SubType(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.CommandSubscribe.SubType) |
| } |
| |
| public enum InitialPosition |
| implements com.google.protobuf.Internal.EnumLite { |
| Latest(0, 0), |
| Earliest(1, 1), |
| ; |
| |
| public static final int Latest_VALUE = 0; |
| public static final int Earliest_VALUE = 1; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static InitialPosition valueOf(int value) { |
| switch (value) { |
| case 0: return Latest; |
| case 1: return Earliest; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<InitialPosition> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<InitialPosition> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<InitialPosition>() { |
| public InitialPosition findValueByNumber(int number) { |
| return InitialPosition.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private InitialPosition(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.CommandSubscribe.InitialPosition) |
| } |
| |
| private int bitField0_; |
| // required string topic = 1; |
| public static final int TOPIC_FIELD_NUMBER = 1; |
| private java.lang.Object topic_; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getTopic() { |
| java.lang.Object ref = topic_; |
| 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)) { |
| topic_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getTopicBytes() { |
| java.lang.Object ref = topic_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| topic_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string subscription = 2; |
| public static final int SUBSCRIPTION_FIELD_NUMBER = 2; |
| private java.lang.Object subscription_; |
| public boolean hasSubscription() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getSubscription() { |
| java.lang.Object ref = subscription_; |
| 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)) { |
| subscription_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getSubscriptionBytes() { |
| java.lang.Object ref = subscription_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| subscription_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required .pulsar.proto.CommandSubscribe.SubType subType = 3; |
| public static final int SUBTYPE_FIELD_NUMBER = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType subType_; |
| public boolean hasSubType() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType getSubType() { |
| return subType_; |
| } |
| |
| // required uint64 consumer_id = 4; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 4; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // required uint64 request_id = 5; |
| public static final int REQUEST_ID_FIELD_NUMBER = 5; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional string consumer_name = 6; |
| public static final int CONSUMER_NAME_FIELD_NUMBER = 6; |
| private java.lang.Object consumerName_; |
| public boolean hasConsumerName() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public String getConsumerName() { |
| java.lang.Object ref = consumerName_; |
| 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)) { |
| consumerName_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getConsumerNameBytes() { |
| java.lang.Object ref = consumerName_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| consumerName_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional int32 priority_level = 7; |
| public static final int PRIORITY_LEVEL_FIELD_NUMBER = 7; |
| private int priorityLevel_; |
| public boolean hasPriorityLevel() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public int getPriorityLevel() { |
| return priorityLevel_; |
| } |
| |
| // optional bool durable = 8 [default = true]; |
| public static final int DURABLE_FIELD_NUMBER = 8; |
| private boolean durable_; |
| public boolean hasDurable() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public boolean getDurable() { |
| return durable_; |
| } |
| |
| // optional .pulsar.proto.MessageIdData start_message_id = 9; |
| public static final int START_MESSAGE_ID_FIELD_NUMBER = 9; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData startMessageId_; |
| public boolean hasStartMessageId() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getStartMessageId() { |
| return startMessageId_; |
| } |
| |
| // repeated .pulsar.proto.KeyValue metadata = 10; |
| public static final int METADATA_FIELD_NUMBER = 10; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> metadata_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getMetadataList() { |
| return metadata_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder> |
| getMetadataOrBuilderList() { |
| return metadata_; |
| } |
| public int getMetadataCount() { |
| return metadata_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index) { |
| return metadata_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder getMetadataOrBuilder( |
| int index) { |
| return metadata_.get(index); |
| } |
| |
| // optional bool read_compacted = 11; |
| public static final int READ_COMPACTED_FIELD_NUMBER = 11; |
| private boolean readCompacted_; |
| public boolean hasReadCompacted() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public boolean getReadCompacted() { |
| return readCompacted_; |
| } |
| |
| // optional .pulsar.proto.Schema schema = 12; |
| public static final int SCHEMA_FIELD_NUMBER = 12; |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema schema_; |
| public boolean hasSchema() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema() { |
| return schema_; |
| } |
| |
| // optional .pulsar.proto.CommandSubscribe.InitialPosition initialPosition = 13 [default = Latest]; |
| public static final int INITIALPOSITION_FIELD_NUMBER = 13; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition initialPosition_; |
| public boolean hasInitialPosition() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition getInitialPosition() { |
| return initialPosition_; |
| } |
| |
| private void initFields() { |
| topic_ = ""; |
| subscription_ = ""; |
| subType_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType.Exclusive; |
| consumerId_ = 0L; |
| requestId_ = 0L; |
| consumerName_ = ""; |
| priorityLevel_ = 0; |
| durable_ = true; |
| startMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| metadata_ = java.util.Collections.emptyList(); |
| readCompacted_ = false; |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| initialPosition_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition.Latest; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasTopic()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSubscription()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSubType()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasStartMessageId()) { |
| if (!getStartMessageId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| for (int i = 0; i < getMetadataCount(); i++) { |
| if (!getMetadata(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSchema()) { |
| if (!getSchema().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getTopicBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getSubscriptionBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeEnum(3, subType_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeUInt64(4, consumerId_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeUInt64(5, requestId_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeBytes(6, getConsumerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeInt32(7, priorityLevel_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeBool(8, durable_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeMessage(9, startMessageId_); |
| } |
| for (int i = 0; i < metadata_.size(); i++) { |
| output.writeMessage(10, metadata_.get(i)); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeBool(11, readCompacted_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeMessage(12, schema_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| output.writeEnum(13, initialPosition_.getNumber()); |
| } |
| } |
| |
| 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, getTopicBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getSubscriptionBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(3, subType_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(4, consumerId_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(5, requestId_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, getConsumerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(7, priorityLevel_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(8, durable_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(9, startMessageId_); |
| } |
| for (int i = 0; i < metadata_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(10, metadata_.get(i)); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(11, readCompacted_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(12, schema_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(13, initialPosition_.getNumber()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandSubscribe parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe 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.pulsar.common.api.proto.PulsarApi.CommandSubscribe 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.pulsar.common.api.proto.PulsarApi.CommandSubscribe parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe 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.pulsar.common.api.proto.PulsarApi.CommandSubscribe prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribeOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| topic_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| subscription_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| subType_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType.Exclusive; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| consumerName_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| priorityLevel_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| durable_ = true; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| startMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000100); |
| metadata_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000200); |
| readCompacted_ = false; |
| bitField0_ = (bitField0_ & ~0x00000400); |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000800); |
| initialPosition_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition.Latest; |
| bitField0_ = (bitField0_ & ~0x00001000); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe result = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.topic_ = topic_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.subscription_ = subscription_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.subType_ = subType_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.consumerName_ = consumerName_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.priorityLevel_ = priorityLevel_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.durable_ = durable_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.startMessageId_ = startMessageId_; |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| metadata_ = java.util.Collections.unmodifiableList(metadata_); |
| bitField0_ = (bitField0_ & ~0x00000200); |
| } |
| result.metadata_ = metadata_; |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| result.readCompacted_ = readCompacted_; |
| if (((from_bitField0_ & 0x00000800) == 0x00000800)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| result.schema_ = schema_; |
| if (((from_bitField0_ & 0x00001000) == 0x00001000)) { |
| to_bitField0_ |= 0x00000800; |
| } |
| result.initialPosition_ = initialPosition_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance()) return this; |
| if (other.hasTopic()) { |
| setTopic(other.getTopic()); |
| } |
| if (other.hasSubscription()) { |
| setSubscription(other.getSubscription()); |
| } |
| if (other.hasSubType()) { |
| setSubType(other.getSubType()); |
| } |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasConsumerName()) { |
| setConsumerName(other.getConsumerName()); |
| } |
| if (other.hasPriorityLevel()) { |
| setPriorityLevel(other.getPriorityLevel()); |
| } |
| if (other.hasDurable()) { |
| setDurable(other.getDurable()); |
| } |
| if (other.hasStartMessageId()) { |
| mergeStartMessageId(other.getStartMessageId()); |
| } |
| if (!other.metadata_.isEmpty()) { |
| if (metadata_.isEmpty()) { |
| metadata_ = other.metadata_; |
| bitField0_ = (bitField0_ & ~0x00000200); |
| } else { |
| ensureMetadataIsMutable(); |
| metadata_.addAll(other.metadata_); |
| } |
| |
| } |
| if (other.hasReadCompacted()) { |
| setReadCompacted(other.getReadCompacted()); |
| } |
| if (other.hasSchema()) { |
| mergeSchema(other.getSchema()); |
| } |
| if (other.hasInitialPosition()) { |
| setInitialPosition(other.getInitialPosition()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasTopic()) { |
| |
| return false; |
| } |
| if (!hasSubscription()) { |
| |
| return false; |
| } |
| if (!hasSubType()) { |
| |
| return false; |
| } |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| if (hasStartMessageId()) { |
| if (!getStartMessageId().isInitialized()) { |
| |
| return false; |
| } |
| } |
| for (int i = 0; i < getMetadataCount(); i++) { |
| if (!getMetadata(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSchema()) { |
| if (!getSchema().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| topic_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| subscription_ = input.readBytes(); |
| break; |
| } |
| case 24: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType value = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000004; |
| subType_ = value; |
| } |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000010; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000020; |
| consumerName_ = input.readBytes(); |
| break; |
| } |
| case 56: { |
| bitField0_ |= 0x00000040; |
| priorityLevel_ = input.readInt32(); |
| break; |
| } |
| case 64: { |
| bitField0_ |= 0x00000080; |
| durable_ = input.readBool(); |
| break; |
| } |
| case 74: { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(); |
| if (hasStartMessageId()) { |
| subBuilder.mergeFrom(getStartMessageId()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setStartMessageId(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 82: { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addMetadata(subBuilder.buildPartial()); |
| break; |
| } |
| case 88: { |
| bitField0_ |= 0x00000400; |
| readCompacted_ = input.readBool(); |
| break; |
| } |
| case 98: { |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.Schema.newBuilder(); |
| if (hasSchema()) { |
| subBuilder.mergeFrom(getSchema()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSchema(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 104: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition value = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00001000; |
| initialPosition_ = value; |
| } |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string topic = 1; |
| private java.lang.Object topic_ = ""; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getTopic() { |
| java.lang.Object ref = topic_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| topic_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setTopic(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| topic_ = value; |
| |
| return this; |
| } |
| public Builder clearTopic() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| topic_ = getDefaultInstance().getTopic(); |
| |
| return this; |
| } |
| void setTopic(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| topic_ = value; |
| |
| } |
| |
| // required string subscription = 2; |
| private java.lang.Object subscription_ = ""; |
| public boolean hasSubscription() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getSubscription() { |
| java.lang.Object ref = subscription_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| subscription_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setSubscription(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| subscription_ = value; |
| |
| return this; |
| } |
| public Builder clearSubscription() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| subscription_ = getDefaultInstance().getSubscription(); |
| |
| return this; |
| } |
| void setSubscription(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000002; |
| subscription_ = value; |
| |
| } |
| |
| // required .pulsar.proto.CommandSubscribe.SubType subType = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType subType_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType.Exclusive; |
| public boolean hasSubType() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType getSubType() { |
| return subType_; |
| } |
| public Builder setSubType(org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| subType_ = value; |
| |
| return this; |
| } |
| public Builder clearSubType() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| subType_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.SubType.Exclusive; |
| |
| return this; |
| } |
| |
| // required uint64 consumer_id = 4; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000008; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 5; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000010; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional string consumer_name = 6; |
| private java.lang.Object consumerName_ = ""; |
| public boolean hasConsumerName() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public String getConsumerName() { |
| java.lang.Object ref = consumerName_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| consumerName_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setConsumerName(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| consumerName_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerName() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| consumerName_ = getDefaultInstance().getConsumerName(); |
| |
| return this; |
| } |
| void setConsumerName(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000020; |
| consumerName_ = value; |
| |
| } |
| |
| // optional int32 priority_level = 7; |
| private int priorityLevel_ ; |
| public boolean hasPriorityLevel() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public int getPriorityLevel() { |
| return priorityLevel_; |
| } |
| public Builder setPriorityLevel(int value) { |
| bitField0_ |= 0x00000040; |
| priorityLevel_ = value; |
| |
| return this; |
| } |
| public Builder clearPriorityLevel() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| priorityLevel_ = 0; |
| |
| return this; |
| } |
| |
| // optional bool durable = 8 [default = true]; |
| private boolean durable_ = true; |
| public boolean hasDurable() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public boolean getDurable() { |
| return durable_; |
| } |
| public Builder setDurable(boolean value) { |
| bitField0_ |= 0x00000080; |
| durable_ = value; |
| |
| return this; |
| } |
| public Builder clearDurable() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| durable_ = true; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.MessageIdData start_message_id = 9; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData startMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| public boolean hasStartMessageId() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getStartMessageId() { |
| return startMessageId_; |
| } |
| public Builder setStartMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| startMessageId_ = value; |
| |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder setStartMessageId( |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| startMessageId_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder mergeStartMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (((bitField0_ & 0x00000100) == 0x00000100) && |
| startMessageId_ != org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance()) { |
| startMessageId_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(startMessageId_).mergeFrom(value).buildPartial(); |
| } else { |
| startMessageId_ = value; |
| } |
| |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder clearStartMessageId() { |
| startMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000100); |
| return this; |
| } |
| |
| // repeated .pulsar.proto.KeyValue metadata = 10; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> metadata_ = |
| java.util.Collections.emptyList(); |
| private void ensureMetadataIsMutable() { |
| if (!((bitField0_ & 0x00000200) == 0x00000200)) { |
| metadata_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue>(metadata_); |
| bitField0_ |= 0x00000200; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getMetadataList() { |
| return java.util.Collections.unmodifiableList(metadata_); |
| } |
| public int getMetadataCount() { |
| return metadata_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index) { |
| return metadata_.get(index); |
| } |
| public Builder setMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.set(index, value); |
| |
| return this; |
| } |
| public Builder setMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMetadata(org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.add(value); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.add(index, value); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllMetadata( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> values) { |
| ensureMetadataIsMutable(); |
| super.addAll(values, metadata_); |
| |
| return this; |
| } |
| public Builder clearMetadata() { |
| metadata_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000200); |
| |
| return this; |
| } |
| public Builder removeMetadata(int index) { |
| ensureMetadataIsMutable(); |
| metadata_.remove(index); |
| |
| return this; |
| } |
| |
| // optional bool read_compacted = 11; |
| private boolean readCompacted_ ; |
| public boolean hasReadCompacted() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public boolean getReadCompacted() { |
| return readCompacted_; |
| } |
| public Builder setReadCompacted(boolean value) { |
| bitField0_ |= 0x00000400; |
| readCompacted_ = value; |
| |
| return this; |
| } |
| public Builder clearReadCompacted() { |
| bitField0_ = (bitField0_ & ~0x00000400); |
| readCompacted_ = false; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.Schema schema = 12; |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| public boolean hasSchema() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema() { |
| return schema_; |
| } |
| public Builder setSchema(org.apache.pulsar.common.api.proto.PulsarApi.Schema value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| schema_ = value; |
| |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder setSchema( |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.Builder builderForValue) { |
| schema_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder mergeSchema(org.apache.pulsar.common.api.proto.PulsarApi.Schema value) { |
| if (((bitField0_ & 0x00000800) == 0x00000800) && |
| schema_ != org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance()) { |
| schema_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); |
| } else { |
| schema_ = value; |
| } |
| |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder clearSchema() { |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000800); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandSubscribe.InitialPosition initialPosition = 13 [default = Latest]; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition initialPosition_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition.Latest; |
| public boolean hasInitialPosition() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition getInitialPosition() { |
| return initialPosition_; |
| } |
| public Builder setInitialPosition(org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00001000; |
| initialPosition_ = value; |
| |
| return this; |
| } |
| public Builder clearInitialPosition() { |
| bitField0_ = (bitField0_ & ~0x00001000); |
| initialPosition_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.InitialPosition.Latest; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandSubscribe) |
| } |
| |
| static { |
| defaultInstance = new CommandSubscribe(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandSubscribe) |
| } |
| |
| public interface CommandPartitionedTopicMetadataOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string topic = 1; |
| boolean hasTopic(); |
| String getTopic(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional string original_principal = 3; |
| boolean hasOriginalPrincipal(); |
| String getOriginalPrincipal(); |
| |
| // optional string original_auth_data = 4; |
| boolean hasOriginalAuthData(); |
| String getOriginalAuthData(); |
| |
| // optional string original_auth_method = 5; |
| boolean hasOriginalAuthMethod(); |
| String getOriginalAuthMethod(); |
| } |
| public static final class CommandPartitionedTopicMetadata extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandPartitionedTopicMetadataOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandPartitionedTopicMetadata.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandPartitionedTopicMetadata> handle; |
| private CommandPartitionedTopicMetadata(io.netty.util.Recycler.Handle<CommandPartitionedTopicMetadata> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandPartitionedTopicMetadata> RECYCLER = new io.netty.util.Recycler<CommandPartitionedTopicMetadata>() { |
| protected CommandPartitionedTopicMetadata newObject(Handle<CommandPartitionedTopicMetadata> handle) { |
| return new CommandPartitionedTopicMetadata(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandPartitionedTopicMetadata(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandPartitionedTopicMetadata defaultInstance; |
| public static CommandPartitionedTopicMetadata getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandPartitionedTopicMetadata getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required string topic = 1; |
| public static final int TOPIC_FIELD_NUMBER = 1; |
| private java.lang.Object topic_; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getTopic() { |
| java.lang.Object ref = topic_; |
| 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)) { |
| topic_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getTopicBytes() { |
| java.lang.Object ref = topic_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| topic_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional string original_principal = 3; |
| public static final int ORIGINAL_PRINCIPAL_FIELD_NUMBER = 3; |
| private java.lang.Object originalPrincipal_; |
| public boolean hasOriginalPrincipal() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getOriginalPrincipal() { |
| java.lang.Object ref = originalPrincipal_; |
| 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)) { |
| originalPrincipal_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalPrincipalBytes() { |
| java.lang.Object ref = originalPrincipal_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalPrincipal_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string original_auth_data = 4; |
| public static final int ORIGINAL_AUTH_DATA_FIELD_NUMBER = 4; |
| private java.lang.Object originalAuthData_; |
| public boolean hasOriginalAuthData() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getOriginalAuthData() { |
| java.lang.Object ref = originalAuthData_; |
| 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)) { |
| originalAuthData_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalAuthDataBytes() { |
| java.lang.Object ref = originalAuthData_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalAuthData_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string original_auth_method = 5; |
| public static final int ORIGINAL_AUTH_METHOD_FIELD_NUMBER = 5; |
| private java.lang.Object originalAuthMethod_; |
| public boolean hasOriginalAuthMethod() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getOriginalAuthMethod() { |
| java.lang.Object ref = originalAuthMethod_; |
| 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)) { |
| originalAuthMethod_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalAuthMethodBytes() { |
| java.lang.Object ref = originalAuthMethod_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalAuthMethod_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| topic_ = ""; |
| requestId_ = 0L; |
| originalPrincipal_ = ""; |
| originalAuthData_ = ""; |
| originalAuthMethod_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasTopic()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getTopicBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(3, getOriginalPrincipalBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(4, getOriginalAuthDataBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBytes(5, getOriginalAuthMethodBytes()); |
| } |
| } |
| |
| 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, getTopicBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, getOriginalPrincipalBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(4, getOriginalAuthDataBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(5, getOriginalAuthMethodBytes()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata 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.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata 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.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata 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.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| topic_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| originalPrincipal_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| originalAuthData_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| originalAuthMethod_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata result = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.topic_ = topic_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.originalPrincipal_ = originalPrincipal_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.originalAuthData_ = originalAuthData_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.originalAuthMethod_ = originalAuthMethod_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.getDefaultInstance()) return this; |
| if (other.hasTopic()) { |
| setTopic(other.getTopic()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasOriginalPrincipal()) { |
| setOriginalPrincipal(other.getOriginalPrincipal()); |
| } |
| if (other.hasOriginalAuthData()) { |
| setOriginalAuthData(other.getOriginalAuthData()); |
| } |
| if (other.hasOriginalAuthMethod()) { |
| setOriginalAuthMethod(other.getOriginalAuthMethod()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasTopic()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| topic_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000004; |
| originalPrincipal_ = input.readBytes(); |
| break; |
| } |
| case 34: { |
| bitField0_ |= 0x00000008; |
| originalAuthData_ = input.readBytes(); |
| break; |
| } |
| case 42: { |
| bitField0_ |= 0x00000010; |
| originalAuthMethod_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string topic = 1; |
| private java.lang.Object topic_ = ""; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getTopic() { |
| java.lang.Object ref = topic_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| topic_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setTopic(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| topic_ = value; |
| |
| return this; |
| } |
| public Builder clearTopic() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| topic_ = getDefaultInstance().getTopic(); |
| |
| return this; |
| } |
| void setTopic(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| topic_ = value; |
| |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional string original_principal = 3; |
| private java.lang.Object originalPrincipal_ = ""; |
| public boolean hasOriginalPrincipal() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getOriginalPrincipal() { |
| java.lang.Object ref = originalPrincipal_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalPrincipal_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalPrincipal(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| originalPrincipal_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalPrincipal() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| originalPrincipal_ = getDefaultInstance().getOriginalPrincipal(); |
| |
| return this; |
| } |
| void setOriginalPrincipal(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000004; |
| originalPrincipal_ = value; |
| |
| } |
| |
| // optional string original_auth_data = 4; |
| private java.lang.Object originalAuthData_ = ""; |
| public boolean hasOriginalAuthData() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getOriginalAuthData() { |
| java.lang.Object ref = originalAuthData_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalAuthData_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalAuthData(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| originalAuthData_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalAuthData() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| originalAuthData_ = getDefaultInstance().getOriginalAuthData(); |
| |
| return this; |
| } |
| void setOriginalAuthData(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000008; |
| originalAuthData_ = value; |
| |
| } |
| |
| // optional string original_auth_method = 5; |
| private java.lang.Object originalAuthMethod_ = ""; |
| public boolean hasOriginalAuthMethod() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getOriginalAuthMethod() { |
| java.lang.Object ref = originalAuthMethod_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalAuthMethod_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalAuthMethod(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| originalAuthMethod_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalAuthMethod() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| originalAuthMethod_ = getDefaultInstance().getOriginalAuthMethod(); |
| |
| return this; |
| } |
| void setOriginalAuthMethod(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000010; |
| originalAuthMethod_ = value; |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandPartitionedTopicMetadata) |
| } |
| |
| static { |
| defaultInstance = new CommandPartitionedTopicMetadata(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandPartitionedTopicMetadata) |
| } |
| |
| public interface CommandPartitionedTopicMetadataResponseOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // optional uint32 partitions = 1; |
| boolean hasPartitions(); |
| int getPartitions(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadataResponse.LookupType response = 3; |
| boolean hasResponse(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType getResponse(); |
| |
| // optional .pulsar.proto.ServerError error = 4; |
| boolean hasError(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError(); |
| |
| // optional string message = 5; |
| boolean hasMessage(); |
| String getMessage(); |
| } |
| public static final class CommandPartitionedTopicMetadataResponse extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandPartitionedTopicMetadataResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandPartitionedTopicMetadataResponse.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandPartitionedTopicMetadataResponse> handle; |
| private CommandPartitionedTopicMetadataResponse(io.netty.util.Recycler.Handle<CommandPartitionedTopicMetadataResponse> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandPartitionedTopicMetadataResponse> RECYCLER = new io.netty.util.Recycler<CommandPartitionedTopicMetadataResponse>() { |
| protected CommandPartitionedTopicMetadataResponse newObject(Handle<CommandPartitionedTopicMetadataResponse> handle) { |
| return new CommandPartitionedTopicMetadataResponse(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandPartitionedTopicMetadataResponse(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandPartitionedTopicMetadataResponse defaultInstance; |
| public static CommandPartitionedTopicMetadataResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandPartitionedTopicMetadataResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public enum LookupType |
| implements com.google.protobuf.Internal.EnumLite { |
| Success(0, 0), |
| Failed(1, 1), |
| ; |
| |
| public static final int Success_VALUE = 0; |
| public static final int Failed_VALUE = 1; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static LookupType valueOf(int value) { |
| switch (value) { |
| case 0: return Success; |
| case 1: return Failed; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<LookupType> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<LookupType> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<LookupType>() { |
| public LookupType findValueByNumber(int number) { |
| return LookupType.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private LookupType(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.CommandPartitionedTopicMetadataResponse.LookupType) |
| } |
| |
| private int bitField0_; |
| // optional uint32 partitions = 1; |
| public static final int PARTITIONS_FIELD_NUMBER = 1; |
| private int partitions_; |
| public boolean hasPartitions() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public int getPartitions() { |
| return partitions_; |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadataResponse.LookupType response = 3; |
| public static final int RESPONSE_FIELD_NUMBER = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType response_; |
| public boolean hasResponse() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType getResponse() { |
| return response_; |
| } |
| |
| // optional .pulsar.proto.ServerError error = 4; |
| public static final int ERROR_FIELD_NUMBER = 4; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError error_; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError() { |
| return error_; |
| } |
| |
| // optional string message = 5; |
| public static final int MESSAGE_FIELD_NUMBER = 5; |
| private java.lang.Object message_; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getMessage() { |
| java.lang.Object ref = message_; |
| 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)) { |
| message_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getMessageBytes() { |
| java.lang.Object ref = message_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| message_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| partitions_ = 0; |
| requestId_ = 0L; |
| response_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType.Success; |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| message_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt32(1, partitions_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeEnum(3, response_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeEnum(4, error_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBytes(5, getMessageBytes()); |
| } |
| } |
| |
| 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 |
| .computeUInt32Size(1, partitions_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(3, response_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(4, error_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(5, getMessageBytes()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse 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.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse 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.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse 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.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| partitions_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| response_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType.Success; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| message_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse result = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.partitions_ = partitions_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.response_ = response_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.error_ = error_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.message_ = message_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.getDefaultInstance()) return this; |
| if (other.hasPartitions()) { |
| setPartitions(other.getPartitions()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasResponse()) { |
| setResponse(other.getResponse()); |
| } |
| if (other.hasError()) { |
| setError(other.getError()); |
| } |
| if (other.hasMessage()) { |
| setMessage(other.getMessage()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| partitions_ = input.readUInt32(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 24: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType value = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000004; |
| response_ = value; |
| } |
| break; |
| } |
| case 32: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError value = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000008; |
| error_ = value; |
| } |
| break; |
| } |
| case 42: { |
| bitField0_ |= 0x00000010; |
| message_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional uint32 partitions = 1; |
| private int partitions_ ; |
| public boolean hasPartitions() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public int getPartitions() { |
| return partitions_; |
| } |
| public Builder setPartitions(int value) { |
| bitField0_ |= 0x00000001; |
| partitions_ = value; |
| |
| return this; |
| } |
| public Builder clearPartitions() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| partitions_ = 0; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadataResponse.LookupType response = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType response_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType.Success; |
| public boolean hasResponse() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType getResponse() { |
| return response_; |
| } |
| public Builder setResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| response_ = value; |
| |
| return this; |
| } |
| public Builder clearResponse() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| response_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.LookupType.Success; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.ServerError error = 4; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError() { |
| return error_; |
| } |
| public Builder setError(org.apache.pulsar.common.api.proto.PulsarApi.ServerError value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| error_ = value; |
| |
| return this; |
| } |
| public Builder clearError() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| |
| return this; |
| } |
| |
| // optional string message = 5; |
| private java.lang.Object message_ = ""; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getMessage() { |
| java.lang.Object ref = message_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| message_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setMessage(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| message_ = value; |
| |
| return this; |
| } |
| public Builder clearMessage() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| message_ = getDefaultInstance().getMessage(); |
| |
| return this; |
| } |
| void setMessage(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000010; |
| message_ = value; |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandPartitionedTopicMetadataResponse) |
| } |
| |
| static { |
| defaultInstance = new CommandPartitionedTopicMetadataResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandPartitionedTopicMetadataResponse) |
| } |
| |
| public interface CommandLookupTopicOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string topic = 1; |
| boolean hasTopic(); |
| String getTopic(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional bool authoritative = 3 [default = false]; |
| boolean hasAuthoritative(); |
| boolean getAuthoritative(); |
| |
| // optional string original_principal = 4; |
| boolean hasOriginalPrincipal(); |
| String getOriginalPrincipal(); |
| |
| // optional string original_auth_data = 5; |
| boolean hasOriginalAuthData(); |
| String getOriginalAuthData(); |
| |
| // optional string original_auth_method = 6; |
| boolean hasOriginalAuthMethod(); |
| String getOriginalAuthMethod(); |
| } |
| public static final class CommandLookupTopic extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandLookupTopicOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandLookupTopic.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandLookupTopic> handle; |
| private CommandLookupTopic(io.netty.util.Recycler.Handle<CommandLookupTopic> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandLookupTopic> RECYCLER = new io.netty.util.Recycler<CommandLookupTopic>() { |
| protected CommandLookupTopic newObject(Handle<CommandLookupTopic> handle) { |
| return new CommandLookupTopic(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandLookupTopic(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandLookupTopic defaultInstance; |
| public static CommandLookupTopic getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandLookupTopic getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required string topic = 1; |
| public static final int TOPIC_FIELD_NUMBER = 1; |
| private java.lang.Object topic_; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getTopic() { |
| java.lang.Object ref = topic_; |
| 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)) { |
| topic_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getTopicBytes() { |
| java.lang.Object ref = topic_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| topic_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional bool authoritative = 3 [default = false]; |
| public static final int AUTHORITATIVE_FIELD_NUMBER = 3; |
| private boolean authoritative_; |
| public boolean hasAuthoritative() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public boolean getAuthoritative() { |
| return authoritative_; |
| } |
| |
| // optional string original_principal = 4; |
| public static final int ORIGINAL_PRINCIPAL_FIELD_NUMBER = 4; |
| private java.lang.Object originalPrincipal_; |
| public boolean hasOriginalPrincipal() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getOriginalPrincipal() { |
| java.lang.Object ref = originalPrincipal_; |
| 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)) { |
| originalPrincipal_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalPrincipalBytes() { |
| java.lang.Object ref = originalPrincipal_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalPrincipal_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string original_auth_data = 5; |
| public static final int ORIGINAL_AUTH_DATA_FIELD_NUMBER = 5; |
| private java.lang.Object originalAuthData_; |
| public boolean hasOriginalAuthData() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getOriginalAuthData() { |
| java.lang.Object ref = originalAuthData_; |
| 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)) { |
| originalAuthData_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalAuthDataBytes() { |
| java.lang.Object ref = originalAuthData_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalAuthData_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string original_auth_method = 6; |
| public static final int ORIGINAL_AUTH_METHOD_FIELD_NUMBER = 6; |
| private java.lang.Object originalAuthMethod_; |
| public boolean hasOriginalAuthMethod() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public String getOriginalAuthMethod() { |
| java.lang.Object ref = originalAuthMethod_; |
| 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)) { |
| originalAuthMethod_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getOriginalAuthMethodBytes() { |
| java.lang.Object ref = originalAuthMethod_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| originalAuthMethod_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| topic_ = ""; |
| requestId_ = 0L; |
| authoritative_ = false; |
| originalPrincipal_ = ""; |
| originalAuthData_ = ""; |
| originalAuthMethod_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasTopic()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getTopicBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBool(3, authoritative_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(4, getOriginalPrincipalBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBytes(5, getOriginalAuthDataBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeBytes(6, getOriginalAuthMethodBytes()); |
| } |
| } |
| |
| 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, getTopicBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(3, authoritative_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(4, getOriginalPrincipalBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(5, getOriginalAuthDataBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, getOriginalAuthMethodBytes()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandLookupTopic parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic 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.pulsar.common.api.proto.PulsarApi.CommandLookupTopic 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.pulsar.common.api.proto.PulsarApi.CommandLookupTopic parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic 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.pulsar.common.api.proto.PulsarApi.CommandLookupTopic prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| topic_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| authoritative_ = false; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| originalPrincipal_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| originalAuthData_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| originalAuthMethod_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic result = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.topic_ = topic_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.authoritative_ = authoritative_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.originalPrincipal_ = originalPrincipal_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.originalAuthData_ = originalAuthData_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.originalAuthMethod_ = originalAuthMethod_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance()) return this; |
| if (other.hasTopic()) { |
| setTopic(other.getTopic()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasAuthoritative()) { |
| setAuthoritative(other.getAuthoritative()); |
| } |
| if (other.hasOriginalPrincipal()) { |
| setOriginalPrincipal(other.getOriginalPrincipal()); |
| } |
| if (other.hasOriginalAuthData()) { |
| setOriginalAuthData(other.getOriginalAuthData()); |
| } |
| if (other.hasOriginalAuthMethod()) { |
| setOriginalAuthMethod(other.getOriginalAuthMethod()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasTopic()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| topic_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| authoritative_ = input.readBool(); |
| break; |
| } |
| case 34: { |
| bitField0_ |= 0x00000008; |
| originalPrincipal_ = input.readBytes(); |
| break; |
| } |
| case 42: { |
| bitField0_ |= 0x00000010; |
| originalAuthData_ = input.readBytes(); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000020; |
| originalAuthMethod_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string topic = 1; |
| private java.lang.Object topic_ = ""; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getTopic() { |
| java.lang.Object ref = topic_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| topic_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setTopic(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| topic_ = value; |
| |
| return this; |
| } |
| public Builder clearTopic() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| topic_ = getDefaultInstance().getTopic(); |
| |
| return this; |
| } |
| void setTopic(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| topic_ = value; |
| |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional bool authoritative = 3 [default = false]; |
| private boolean authoritative_ ; |
| public boolean hasAuthoritative() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public boolean getAuthoritative() { |
| return authoritative_; |
| } |
| public Builder setAuthoritative(boolean value) { |
| bitField0_ |= 0x00000004; |
| authoritative_ = value; |
| |
| return this; |
| } |
| public Builder clearAuthoritative() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| authoritative_ = false; |
| |
| return this; |
| } |
| |
| // optional string original_principal = 4; |
| private java.lang.Object originalPrincipal_ = ""; |
| public boolean hasOriginalPrincipal() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getOriginalPrincipal() { |
| java.lang.Object ref = originalPrincipal_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalPrincipal_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalPrincipal(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| originalPrincipal_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalPrincipal() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| originalPrincipal_ = getDefaultInstance().getOriginalPrincipal(); |
| |
| return this; |
| } |
| void setOriginalPrincipal(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000008; |
| originalPrincipal_ = value; |
| |
| } |
| |
| // optional string original_auth_data = 5; |
| private java.lang.Object originalAuthData_ = ""; |
| public boolean hasOriginalAuthData() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public String getOriginalAuthData() { |
| java.lang.Object ref = originalAuthData_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalAuthData_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalAuthData(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| originalAuthData_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalAuthData() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| originalAuthData_ = getDefaultInstance().getOriginalAuthData(); |
| |
| return this; |
| } |
| void setOriginalAuthData(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000010; |
| originalAuthData_ = value; |
| |
| } |
| |
| // optional string original_auth_method = 6; |
| private java.lang.Object originalAuthMethod_ = ""; |
| public boolean hasOriginalAuthMethod() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public String getOriginalAuthMethod() { |
| java.lang.Object ref = originalAuthMethod_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| originalAuthMethod_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setOriginalAuthMethod(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| originalAuthMethod_ = value; |
| |
| return this; |
| } |
| public Builder clearOriginalAuthMethod() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| originalAuthMethod_ = getDefaultInstance().getOriginalAuthMethod(); |
| |
| return this; |
| } |
| void setOriginalAuthMethod(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000020; |
| originalAuthMethod_ = value; |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandLookupTopic) |
| } |
| |
| static { |
| defaultInstance = new CommandLookupTopic(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandLookupTopic) |
| } |
| |
| public interface CommandLookupTopicResponseOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // optional string brokerServiceUrl = 1; |
| boolean hasBrokerServiceUrl(); |
| String getBrokerServiceUrl(); |
| |
| // optional string brokerServiceUrlTls = 2; |
| boolean hasBrokerServiceUrlTls(); |
| String getBrokerServiceUrlTls(); |
| |
| // optional .pulsar.proto.CommandLookupTopicResponse.LookupType response = 3; |
| boolean hasResponse(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType getResponse(); |
| |
| // required uint64 request_id = 4; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional bool authoritative = 5 [default = false]; |
| boolean hasAuthoritative(); |
| boolean getAuthoritative(); |
| |
| // optional .pulsar.proto.ServerError error = 6; |
| boolean hasError(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError(); |
| |
| // optional string message = 7; |
| boolean hasMessage(); |
| String getMessage(); |
| |
| // optional bool proxy_through_service_url = 8 [default = false]; |
| boolean hasProxyThroughServiceUrl(); |
| boolean getProxyThroughServiceUrl(); |
| } |
| public static final class CommandLookupTopicResponse extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandLookupTopicResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandLookupTopicResponse.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandLookupTopicResponse> handle; |
| private CommandLookupTopicResponse(io.netty.util.Recycler.Handle<CommandLookupTopicResponse> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandLookupTopicResponse> RECYCLER = new io.netty.util.Recycler<CommandLookupTopicResponse>() { |
| protected CommandLookupTopicResponse newObject(Handle<CommandLookupTopicResponse> handle) { |
| return new CommandLookupTopicResponse(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandLookupTopicResponse(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandLookupTopicResponse defaultInstance; |
| public static CommandLookupTopicResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandLookupTopicResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public enum LookupType |
| implements com.google.protobuf.Internal.EnumLite { |
| Redirect(0, 0), |
| Connect(1, 1), |
| Failed(2, 2), |
| ; |
| |
| public static final int Redirect_VALUE = 0; |
| public static final int Connect_VALUE = 1; |
| public static final int Failed_VALUE = 2; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static LookupType valueOf(int value) { |
| switch (value) { |
| case 0: return Redirect; |
| case 1: return Connect; |
| case 2: return Failed; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<LookupType> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<LookupType> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<LookupType>() { |
| public LookupType findValueByNumber(int number) { |
| return LookupType.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private LookupType(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.CommandLookupTopicResponse.LookupType) |
| } |
| |
| private int bitField0_; |
| // optional string brokerServiceUrl = 1; |
| public static final int BROKERSERVICEURL_FIELD_NUMBER = 1; |
| private java.lang.Object brokerServiceUrl_; |
| public boolean hasBrokerServiceUrl() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getBrokerServiceUrl() { |
| java.lang.Object ref = brokerServiceUrl_; |
| 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)) { |
| brokerServiceUrl_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getBrokerServiceUrlBytes() { |
| java.lang.Object ref = brokerServiceUrl_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| brokerServiceUrl_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string brokerServiceUrlTls = 2; |
| public static final int BROKERSERVICEURLTLS_FIELD_NUMBER = 2; |
| private java.lang.Object brokerServiceUrlTls_; |
| public boolean hasBrokerServiceUrlTls() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getBrokerServiceUrlTls() { |
| java.lang.Object ref = brokerServiceUrlTls_; |
| 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)) { |
| brokerServiceUrlTls_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getBrokerServiceUrlTlsBytes() { |
| java.lang.Object ref = brokerServiceUrlTls_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| brokerServiceUrlTls_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional .pulsar.proto.CommandLookupTopicResponse.LookupType response = 3; |
| public static final int RESPONSE_FIELD_NUMBER = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType response_; |
| public boolean hasResponse() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType getResponse() { |
| return response_; |
| } |
| |
| // required uint64 request_id = 4; |
| public static final int REQUEST_ID_FIELD_NUMBER = 4; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional bool authoritative = 5 [default = false]; |
| public static final int AUTHORITATIVE_FIELD_NUMBER = 5; |
| private boolean authoritative_; |
| public boolean hasAuthoritative() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public boolean getAuthoritative() { |
| return authoritative_; |
| } |
| |
| // optional .pulsar.proto.ServerError error = 6; |
| public static final int ERROR_FIELD_NUMBER = 6; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError error_; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError() { |
| return error_; |
| } |
| |
| // optional string message = 7; |
| public static final int MESSAGE_FIELD_NUMBER = 7; |
| private java.lang.Object message_; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public String getMessage() { |
| java.lang.Object ref = message_; |
| 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)) { |
| message_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getMessageBytes() { |
| java.lang.Object ref = message_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| message_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional bool proxy_through_service_url = 8 [default = false]; |
| public static final int PROXY_THROUGH_SERVICE_URL_FIELD_NUMBER = 8; |
| private boolean proxyThroughServiceUrl_; |
| public boolean hasProxyThroughServiceUrl() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public boolean getProxyThroughServiceUrl() { |
| return proxyThroughServiceUrl_; |
| } |
| |
| private void initFields() { |
| brokerServiceUrl_ = ""; |
| brokerServiceUrlTls_ = ""; |
| response_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType.Redirect; |
| requestId_ = 0L; |
| authoritative_ = false; |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| message_ = ""; |
| proxyThroughServiceUrl_ = false; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getBrokerServiceUrlBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getBrokerServiceUrlTlsBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeEnum(3, response_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeUInt64(4, requestId_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBool(5, authoritative_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeEnum(6, error_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeBytes(7, getMessageBytes()); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeBool(8, proxyThroughServiceUrl_); |
| } |
| } |
| |
| 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, getBrokerServiceUrlBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getBrokerServiceUrlTlsBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(3, response_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(4, requestId_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(5, authoritative_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(6, error_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(7, getMessageBytes()); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(8, proxyThroughServiceUrl_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse 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.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse 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.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse 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.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| brokerServiceUrl_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| brokerServiceUrlTls_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| response_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType.Redirect; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| authoritative_ = false; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| message_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| proxyThroughServiceUrl_ = false; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse result = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.brokerServiceUrl_ = brokerServiceUrl_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.brokerServiceUrlTls_ = brokerServiceUrlTls_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.response_ = response_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.authoritative_ = authoritative_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.error_ = error_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.message_ = message_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.proxyThroughServiceUrl_ = proxyThroughServiceUrl_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.getDefaultInstance()) return this; |
| if (other.hasBrokerServiceUrl()) { |
| setBrokerServiceUrl(other.getBrokerServiceUrl()); |
| } |
| if (other.hasBrokerServiceUrlTls()) { |
| setBrokerServiceUrlTls(other.getBrokerServiceUrlTls()); |
| } |
| if (other.hasResponse()) { |
| setResponse(other.getResponse()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasAuthoritative()) { |
| setAuthoritative(other.getAuthoritative()); |
| } |
| if (other.hasError()) { |
| setError(other.getError()); |
| } |
| if (other.hasMessage()) { |
| setMessage(other.getMessage()); |
| } |
| if (other.hasProxyThroughServiceUrl()) { |
| setProxyThroughServiceUrl(other.getProxyThroughServiceUrl()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| brokerServiceUrl_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| brokerServiceUrlTls_ = input.readBytes(); |
| break; |
| } |
| case 24: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType value = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000004; |
| response_ = value; |
| } |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000010; |
| authoritative_ = input.readBool(); |
| break; |
| } |
| case 48: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError value = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000020; |
| error_ = value; |
| } |
| break; |
| } |
| case 58: { |
| bitField0_ |= 0x00000040; |
| message_ = input.readBytes(); |
| break; |
| } |
| case 64: { |
| bitField0_ |= 0x00000080; |
| proxyThroughServiceUrl_ = input.readBool(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // optional string brokerServiceUrl = 1; |
| private java.lang.Object brokerServiceUrl_ = ""; |
| public boolean hasBrokerServiceUrl() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getBrokerServiceUrl() { |
| java.lang.Object ref = brokerServiceUrl_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| brokerServiceUrl_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setBrokerServiceUrl(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| brokerServiceUrl_ = value; |
| |
| return this; |
| } |
| public Builder clearBrokerServiceUrl() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| brokerServiceUrl_ = getDefaultInstance().getBrokerServiceUrl(); |
| |
| return this; |
| } |
| void setBrokerServiceUrl(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| brokerServiceUrl_ = value; |
| |
| } |
| |
| // optional string brokerServiceUrlTls = 2; |
| private java.lang.Object brokerServiceUrlTls_ = ""; |
| public boolean hasBrokerServiceUrlTls() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getBrokerServiceUrlTls() { |
| java.lang.Object ref = brokerServiceUrlTls_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| brokerServiceUrlTls_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setBrokerServiceUrlTls(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| brokerServiceUrlTls_ = value; |
| |
| return this; |
| } |
| public Builder clearBrokerServiceUrlTls() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| brokerServiceUrlTls_ = getDefaultInstance().getBrokerServiceUrlTls(); |
| |
| return this; |
| } |
| void setBrokerServiceUrlTls(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000002; |
| brokerServiceUrlTls_ = value; |
| |
| } |
| |
| // optional .pulsar.proto.CommandLookupTopicResponse.LookupType response = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType response_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType.Redirect; |
| public boolean hasResponse() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType getResponse() { |
| return response_; |
| } |
| public Builder setResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| response_ = value; |
| |
| return this; |
| } |
| public Builder clearResponse() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| response_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.LookupType.Redirect; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 4; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000008; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional bool authoritative = 5 [default = false]; |
| private boolean authoritative_ ; |
| public boolean hasAuthoritative() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public boolean getAuthoritative() { |
| return authoritative_; |
| } |
| public Builder setAuthoritative(boolean value) { |
| bitField0_ |= 0x00000010; |
| authoritative_ = value; |
| |
| return this; |
| } |
| public Builder clearAuthoritative() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| authoritative_ = false; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.ServerError error = 6; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError() { |
| return error_; |
| } |
| public Builder setError(org.apache.pulsar.common.api.proto.PulsarApi.ServerError value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| error_ = value; |
| |
| return this; |
| } |
| public Builder clearError() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| |
| return this; |
| } |
| |
| // optional string message = 7; |
| private java.lang.Object message_ = ""; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public String getMessage() { |
| java.lang.Object ref = message_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| message_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setMessage(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000040; |
| message_ = value; |
| |
| return this; |
| } |
| public Builder clearMessage() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| message_ = getDefaultInstance().getMessage(); |
| |
| return this; |
| } |
| void setMessage(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000040; |
| message_ = value; |
| |
| } |
| |
| // optional bool proxy_through_service_url = 8 [default = false]; |
| private boolean proxyThroughServiceUrl_ ; |
| public boolean hasProxyThroughServiceUrl() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public boolean getProxyThroughServiceUrl() { |
| return proxyThroughServiceUrl_; |
| } |
| public Builder setProxyThroughServiceUrl(boolean value) { |
| bitField0_ |= 0x00000080; |
| proxyThroughServiceUrl_ = value; |
| |
| return this; |
| } |
| public Builder clearProxyThroughServiceUrl() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| proxyThroughServiceUrl_ = false; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandLookupTopicResponse) |
| } |
| |
| static { |
| defaultInstance = new CommandLookupTopicResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandLookupTopicResponse) |
| } |
| |
| public interface CommandProducerOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required string topic = 1; |
| boolean hasTopic(); |
| String getTopic(); |
| |
| // required uint64 producer_id = 2; |
| boolean hasProducerId(); |
| long getProducerId(); |
| |
| // required uint64 request_id = 3; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional string producer_name = 4; |
| boolean hasProducerName(); |
| String getProducerName(); |
| |
| // optional bool encrypted = 5 [default = false]; |
| boolean hasEncrypted(); |
| boolean getEncrypted(); |
| |
| // repeated .pulsar.proto.KeyValue metadata = 6; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> |
| getMetadataList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index); |
| int getMetadataCount(); |
| |
| // optional .pulsar.proto.Schema schema = 7; |
| boolean hasSchema(); |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema(); |
| } |
| public static final class CommandProducer extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandProducerOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandProducer.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandProducer> handle; |
| private CommandProducer(io.netty.util.Recycler.Handle<CommandProducer> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandProducer> RECYCLER = new io.netty.util.Recycler<CommandProducer>() { |
| protected CommandProducer newObject(Handle<CommandProducer> handle) { |
| return new CommandProducer(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandProducer(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandProducer defaultInstance; |
| public static CommandProducer getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandProducer getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required string topic = 1; |
| public static final int TOPIC_FIELD_NUMBER = 1; |
| private java.lang.Object topic_; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getTopic() { |
| java.lang.Object ref = topic_; |
| 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)) { |
| topic_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getTopicBytes() { |
| java.lang.Object ref = topic_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| topic_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required uint64 producer_id = 2; |
| public static final int PRODUCER_ID_FIELD_NUMBER = 2; |
| private long producerId_; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| |
| // required uint64 request_id = 3; |
| public static final int REQUEST_ID_FIELD_NUMBER = 3; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional string producer_name = 4; |
| public static final int PRODUCER_NAME_FIELD_NUMBER = 4; |
| private java.lang.Object producerName_; |
| public boolean hasProducerName() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getProducerName() { |
| java.lang.Object ref = producerName_; |
| 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)) { |
| producerName_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getProducerNameBytes() { |
| java.lang.Object ref = producerName_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| producerName_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional bool encrypted = 5 [default = false]; |
| public static final int ENCRYPTED_FIELD_NUMBER = 5; |
| private boolean encrypted_; |
| public boolean hasEncrypted() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public boolean getEncrypted() { |
| return encrypted_; |
| } |
| |
| // repeated .pulsar.proto.KeyValue metadata = 6; |
| public static final int METADATA_FIELD_NUMBER = 6; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> metadata_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getMetadataList() { |
| return metadata_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder> |
| getMetadataOrBuilderList() { |
| return metadata_; |
| } |
| public int getMetadataCount() { |
| return metadata_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index) { |
| return metadata_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValueOrBuilder getMetadataOrBuilder( |
| int index) { |
| return metadata_.get(index); |
| } |
| |
| // optional .pulsar.proto.Schema schema = 7; |
| public static final int SCHEMA_FIELD_NUMBER = 7; |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema schema_; |
| public boolean hasSchema() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema() { |
| return schema_; |
| } |
| |
| private void initFields() { |
| topic_ = ""; |
| producerId_ = 0L; |
| requestId_ = 0L; |
| producerName_ = ""; |
| encrypted_ = false; |
| metadata_ = java.util.Collections.emptyList(); |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasTopic()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasProducerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| for (int i = 0; i < getMetadataCount(); i++) { |
| if (!getMetadata(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSchema()) { |
| if (!getSchema().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getTopicBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, producerId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeUInt64(3, requestId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(4, getProducerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBool(5, encrypted_); |
| } |
| for (int i = 0; i < metadata_.size(); i++) { |
| output.writeMessage(6, metadata_.get(i)); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeMessage(7, schema_); |
| } |
| } |
| |
| 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, getTopicBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, producerId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(3, requestId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(4, getProducerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(5, encrypted_); |
| } |
| for (int i = 0; i < metadata_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(6, metadata_.get(i)); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(7, schema_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandProducer parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer 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.pulsar.common.api.proto.PulsarApi.CommandProducer 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.pulsar.common.api.proto.PulsarApi.CommandProducer parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer 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.pulsar.common.api.proto.PulsarApi.CommandProducer prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| topic_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| producerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| producerName_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| encrypted_ = false; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| metadata_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000020); |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000040); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer result = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.topic_ = topic_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.producerId_ = producerId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.producerName_ = producerName_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.encrypted_ = encrypted_; |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| metadata_ = java.util.Collections.unmodifiableList(metadata_); |
| bitField0_ = (bitField0_ & ~0x00000020); |
| } |
| result.metadata_ = metadata_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.schema_ = schema_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.getDefaultInstance()) return this; |
| if (other.hasTopic()) { |
| setTopic(other.getTopic()); |
| } |
| if (other.hasProducerId()) { |
| setProducerId(other.getProducerId()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasProducerName()) { |
| setProducerName(other.getProducerName()); |
| } |
| if (other.hasEncrypted()) { |
| setEncrypted(other.getEncrypted()); |
| } |
| if (!other.metadata_.isEmpty()) { |
| if (metadata_.isEmpty()) { |
| metadata_ = other.metadata_; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| } else { |
| ensureMetadataIsMutable(); |
| metadata_.addAll(other.metadata_); |
| } |
| |
| } |
| if (other.hasSchema()) { |
| mergeSchema(other.getSchema()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasTopic()) { |
| |
| return false; |
| } |
| if (!hasProducerId()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| for (int i = 0; i < getMetadataCount(); i++) { |
| if (!getMetadata(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSchema()) { |
| if (!getSchema().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| topic_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| producerId_ = input.readUInt64(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 34: { |
| bitField0_ |= 0x00000008; |
| producerName_ = input.readBytes(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000010; |
| encrypted_ = input.readBool(); |
| break; |
| } |
| case 50: { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addMetadata(subBuilder.buildPartial()); |
| break; |
| } |
| case 58: { |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.Schema.newBuilder(); |
| if (hasSchema()) { |
| subBuilder.mergeFrom(getSchema()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSchema(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required string topic = 1; |
| private java.lang.Object topic_ = ""; |
| public boolean hasTopic() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public String getTopic() { |
| java.lang.Object ref = topic_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| topic_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setTopic(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| topic_ = value; |
| |
| return this; |
| } |
| public Builder clearTopic() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| topic_ = getDefaultInstance().getTopic(); |
| |
| return this; |
| } |
| void setTopic(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000001; |
| topic_ = value; |
| |
| } |
| |
| // required uint64 producer_id = 2; |
| private long producerId_ ; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| public Builder setProducerId(long value) { |
| bitField0_ |= 0x00000002; |
| producerId_ = value; |
| |
| return this; |
| } |
| public Builder clearProducerId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| producerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 3; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000004; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional string producer_name = 4; |
| private java.lang.Object producerName_ = ""; |
| public boolean hasProducerName() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getProducerName() { |
| java.lang.Object ref = producerName_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| producerName_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setProducerName(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| producerName_ = value; |
| |
| return this; |
| } |
| public Builder clearProducerName() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| producerName_ = getDefaultInstance().getProducerName(); |
| |
| return this; |
| } |
| void setProducerName(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000008; |
| producerName_ = value; |
| |
| } |
| |
| // optional bool encrypted = 5 [default = false]; |
| private boolean encrypted_ ; |
| public boolean hasEncrypted() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public boolean getEncrypted() { |
| return encrypted_; |
| } |
| public Builder setEncrypted(boolean value) { |
| bitField0_ |= 0x00000010; |
| encrypted_ = value; |
| |
| return this; |
| } |
| public Builder clearEncrypted() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| encrypted_ = false; |
| |
| return this; |
| } |
| |
| // repeated .pulsar.proto.KeyValue metadata = 6; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> metadata_ = |
| java.util.Collections.emptyList(); |
| private void ensureMetadataIsMutable() { |
| if (!((bitField0_ & 0x00000020) == 0x00000020)) { |
| metadata_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue>(metadata_); |
| bitField0_ |= 0x00000020; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> getMetadataList() { |
| return java.util.Collections.unmodifiableList(metadata_); |
| } |
| public int getMetadataCount() { |
| return metadata_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyValue getMetadata(int index) { |
| return metadata_.get(index); |
| } |
| public Builder setMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.set(index, value); |
| |
| return this; |
| } |
| public Builder setMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMetadata(org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.add(value); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMetadataIsMutable(); |
| metadata_.add(index, value); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMetadata( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyValue.Builder builderForValue) { |
| ensureMetadataIsMutable(); |
| metadata_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllMetadata( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyValue> values) { |
| ensureMetadataIsMutable(); |
| super.addAll(values, metadata_); |
| |
| return this; |
| } |
| public Builder clearMetadata() { |
| metadata_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000020); |
| |
| return this; |
| } |
| public Builder removeMetadata(int index) { |
| ensureMetadataIsMutable(); |
| metadata_.remove(index); |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.Schema schema = 7; |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| public boolean hasSchema() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema() { |
| return schema_; |
| } |
| public Builder setSchema(org.apache.pulsar.common.api.proto.PulsarApi.Schema value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| schema_ = value; |
| |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder setSchema( |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.Builder builderForValue) { |
| schema_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder mergeSchema(org.apache.pulsar.common.api.proto.PulsarApi.Schema value) { |
| if (((bitField0_ & 0x00000040) == 0x00000040) && |
| schema_ != org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance()) { |
| schema_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); |
| } else { |
| schema_ = value; |
| } |
| |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder clearSchema() { |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000040); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandProducer) |
| } |
| |
| static { |
| defaultInstance = new CommandProducer(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandProducer) |
| } |
| |
| public interface CommandSendOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 producer_id = 1; |
| boolean hasProducerId(); |
| long getProducerId(); |
| |
| // required uint64 sequence_id = 2; |
| boolean hasSequenceId(); |
| long getSequenceId(); |
| |
| // optional int32 num_messages = 3 [default = 1]; |
| boolean hasNumMessages(); |
| int getNumMessages(); |
| } |
| public static final class CommandSend extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandSendOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandSend.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandSend> handle; |
| private CommandSend(io.netty.util.Recycler.Handle<CommandSend> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandSend> RECYCLER = new io.netty.util.Recycler<CommandSend>() { |
| protected CommandSend newObject(Handle<CommandSend> handle) { |
| return new CommandSend(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandSend(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandSend defaultInstance; |
| public static CommandSend getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandSend getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 producer_id = 1; |
| public static final int PRODUCER_ID_FIELD_NUMBER = 1; |
| private long producerId_; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| |
| // required uint64 sequence_id = 2; |
| public static final int SEQUENCE_ID_FIELD_NUMBER = 2; |
| private long sequenceId_; |
| public boolean hasSequenceId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSequenceId() { |
| return sequenceId_; |
| } |
| |
| // optional int32 num_messages = 3 [default = 1]; |
| public static final int NUM_MESSAGES_FIELD_NUMBER = 3; |
| private int numMessages_; |
| public boolean hasNumMessages() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public int getNumMessages() { |
| return numMessages_; |
| } |
| |
| private void initFields() { |
| producerId_ = 0L; |
| sequenceId_ = 0L; |
| numMessages_ = 1; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasProducerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSequenceId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, producerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, sequenceId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeInt32(3, numMessages_); |
| } |
| } |
| |
| 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, producerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, sequenceId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(3, numMessages_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandSend parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSend parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSend parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSend parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSend parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSend parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSend 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.pulsar.common.api.proto.PulsarApi.CommandSend 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.pulsar.common.api.proto.PulsarApi.CommandSend parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSend 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.pulsar.common.api.proto.PulsarApi.CommandSend prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSend, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandSendOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| producerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| sequenceId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| numMessages_ = 1; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSend getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSend build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSend result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSend buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSend result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSend buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSend result = org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.producerId_ = producerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.sequenceId_ = sequenceId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.numMessages_ = numMessages_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandSend other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.getDefaultInstance()) return this; |
| if (other.hasProducerId()) { |
| setProducerId(other.getProducerId()); |
| } |
| if (other.hasSequenceId()) { |
| setSequenceId(other.getSequenceId()); |
| } |
| if (other.hasNumMessages()) { |
| setNumMessages(other.getNumMessages()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasProducerId()) { |
| |
| return false; |
| } |
| if (!hasSequenceId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| producerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| sequenceId_ = input.readUInt64(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| numMessages_ = input.readInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 producer_id = 1; |
| private long producerId_ ; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| public Builder setProducerId(long value) { |
| bitField0_ |= 0x00000001; |
| producerId_ = value; |
| |
| return this; |
| } |
| public Builder clearProducerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| producerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 sequence_id = 2; |
| private long sequenceId_ ; |
| public boolean hasSequenceId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSequenceId() { |
| return sequenceId_; |
| } |
| public Builder setSequenceId(long value) { |
| bitField0_ |= 0x00000002; |
| sequenceId_ = value; |
| |
| return this; |
| } |
| public Builder clearSequenceId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| sequenceId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional int32 num_messages = 3 [default = 1]; |
| private int numMessages_ = 1; |
| public boolean hasNumMessages() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public int getNumMessages() { |
| return numMessages_; |
| } |
| public Builder setNumMessages(int value) { |
| bitField0_ |= 0x00000004; |
| numMessages_ = value; |
| |
| return this; |
| } |
| public Builder clearNumMessages() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| numMessages_ = 1; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandSend) |
| } |
| |
| static { |
| defaultInstance = new CommandSend(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandSend) |
| } |
| |
| public interface CommandSendReceiptOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 producer_id = 1; |
| boolean hasProducerId(); |
| long getProducerId(); |
| |
| // required uint64 sequence_id = 2; |
| boolean hasSequenceId(); |
| long getSequenceId(); |
| |
| // optional .pulsar.proto.MessageIdData message_id = 3; |
| boolean hasMessageId(); |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId(); |
| } |
| public static final class CommandSendReceipt extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandSendReceiptOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandSendReceipt.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandSendReceipt> handle; |
| private CommandSendReceipt(io.netty.util.Recycler.Handle<CommandSendReceipt> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandSendReceipt> RECYCLER = new io.netty.util.Recycler<CommandSendReceipt>() { |
| protected CommandSendReceipt newObject(Handle<CommandSendReceipt> handle) { |
| return new CommandSendReceipt(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandSendReceipt(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandSendReceipt defaultInstance; |
| public static CommandSendReceipt getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandSendReceipt getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 producer_id = 1; |
| public static final int PRODUCER_ID_FIELD_NUMBER = 1; |
| private long producerId_; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| |
| // required uint64 sequence_id = 2; |
| public static final int SEQUENCE_ID_FIELD_NUMBER = 2; |
| private long sequenceId_; |
| public boolean hasSequenceId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSequenceId() { |
| return sequenceId_; |
| } |
| |
| // optional .pulsar.proto.MessageIdData message_id = 3; |
| public static final int MESSAGE_ID_FIELD_NUMBER = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData messageId_; |
| public boolean hasMessageId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId() { |
| return messageId_; |
| } |
| |
| private void initFields() { |
| producerId_ = 0L; |
| sequenceId_ = 0L; |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasProducerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSequenceId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasMessageId()) { |
| if (!getMessageId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, producerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, sequenceId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeMessage(3, messageId_); |
| } |
| } |
| |
| 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, producerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, sequenceId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, messageId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandSendReceipt parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt 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.pulsar.common.api.proto.PulsarApi.CommandSendReceipt 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.pulsar.common.api.proto.PulsarApi.CommandSendReceipt parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt 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.pulsar.common.api.proto.PulsarApi.CommandSendReceipt prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceiptOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| producerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| sequenceId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt result = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.producerId_ = producerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.sequenceId_ = sequenceId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.messageId_ = messageId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.getDefaultInstance()) return this; |
| if (other.hasProducerId()) { |
| setProducerId(other.getProducerId()); |
| } |
| if (other.hasSequenceId()) { |
| setSequenceId(other.getSequenceId()); |
| } |
| if (other.hasMessageId()) { |
| mergeMessageId(other.getMessageId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasProducerId()) { |
| |
| return false; |
| } |
| if (!hasSequenceId()) { |
| |
| return false; |
| } |
| if (hasMessageId()) { |
| if (!getMessageId().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| producerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| sequenceId_ = input.readUInt64(); |
| break; |
| } |
| case 26: { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(); |
| if (hasMessageId()) { |
| subBuilder.mergeFrom(getMessageId()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setMessageId(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 producer_id = 1; |
| private long producerId_ ; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| public Builder setProducerId(long value) { |
| bitField0_ |= 0x00000001; |
| producerId_ = value; |
| |
| return this; |
| } |
| public Builder clearProducerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| producerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 sequence_id = 2; |
| private long sequenceId_ ; |
| public boolean hasSequenceId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSequenceId() { |
| return sequenceId_; |
| } |
| public Builder setSequenceId(long value) { |
| bitField0_ |= 0x00000002; |
| sequenceId_ = value; |
| |
| return this; |
| } |
| public Builder clearSequenceId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| sequenceId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.MessageIdData message_id = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| public boolean hasMessageId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId() { |
| return messageId_; |
| } |
| public Builder setMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| messageId_ = value; |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder setMessageId( |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| messageId_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder mergeMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (((bitField0_ & 0x00000004) == 0x00000004) && |
| messageId_ != org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance()) { |
| messageId_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(messageId_).mergeFrom(value).buildPartial(); |
| } else { |
| messageId_ = value; |
| } |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder clearMessageId() { |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandSendReceipt) |
| } |
| |
| static { |
| defaultInstance = new CommandSendReceipt(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandSendReceipt) |
| } |
| |
| public interface CommandSendErrorOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 producer_id = 1; |
| boolean hasProducerId(); |
| long getProducerId(); |
| |
| // required uint64 sequence_id = 2; |
| boolean hasSequenceId(); |
| long getSequenceId(); |
| |
| // required .pulsar.proto.ServerError error = 3; |
| boolean hasError(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError(); |
| |
| // required string message = 4; |
| boolean hasMessage(); |
| String getMessage(); |
| } |
| public static final class CommandSendError extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandSendErrorOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandSendError.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandSendError> handle; |
| private CommandSendError(io.netty.util.Recycler.Handle<CommandSendError> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandSendError> RECYCLER = new io.netty.util.Recycler<CommandSendError>() { |
| protected CommandSendError newObject(Handle<CommandSendError> handle) { |
| return new CommandSendError(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandSendError(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandSendError defaultInstance; |
| public static CommandSendError getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandSendError getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 producer_id = 1; |
| public static final int PRODUCER_ID_FIELD_NUMBER = 1; |
| private long producerId_; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| |
| // required uint64 sequence_id = 2; |
| public static final int SEQUENCE_ID_FIELD_NUMBER = 2; |
| private long sequenceId_; |
| public boolean hasSequenceId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSequenceId() { |
| return sequenceId_; |
| } |
| |
| // required .pulsar.proto.ServerError error = 3; |
| public static final int ERROR_FIELD_NUMBER = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError error_; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError() { |
| return error_; |
| } |
| |
| // required string message = 4; |
| public static final int MESSAGE_FIELD_NUMBER = 4; |
| private java.lang.Object message_; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getMessage() { |
| java.lang.Object ref = message_; |
| 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)) { |
| message_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getMessageBytes() { |
| java.lang.Object ref = message_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| message_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| producerId_ = 0L; |
| sequenceId_ = 0L; |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| message_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasProducerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSequenceId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasError()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasMessage()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, producerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, sequenceId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeEnum(3, error_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(4, getMessageBytes()); |
| } |
| } |
| |
| 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, producerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, sequenceId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(3, error_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(4, getMessageBytes()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandSendError parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError 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.pulsar.common.api.proto.PulsarApi.CommandSendError 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.pulsar.common.api.proto.PulsarApi.CommandSendError parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError 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.pulsar.common.api.proto.PulsarApi.CommandSendError prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandSendErrorOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| producerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| sequenceId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| message_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError result = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.producerId_ = producerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.sequenceId_ = sequenceId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.error_ = error_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.message_ = message_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.getDefaultInstance()) return this; |
| if (other.hasProducerId()) { |
| setProducerId(other.getProducerId()); |
| } |
| if (other.hasSequenceId()) { |
| setSequenceId(other.getSequenceId()); |
| } |
| if (other.hasError()) { |
| setError(other.getError()); |
| } |
| if (other.hasMessage()) { |
| setMessage(other.getMessage()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasProducerId()) { |
| |
| return false; |
| } |
| if (!hasSequenceId()) { |
| |
| return false; |
| } |
| if (!hasError()) { |
| |
| return false; |
| } |
| if (!hasMessage()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| producerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| sequenceId_ = input.readUInt64(); |
| break; |
| } |
| case 24: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError value = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000004; |
| error_ = value; |
| } |
| break; |
| } |
| case 34: { |
| bitField0_ |= 0x00000008; |
| message_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 producer_id = 1; |
| private long producerId_ ; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| public Builder setProducerId(long value) { |
| bitField0_ |= 0x00000001; |
| producerId_ = value; |
| |
| return this; |
| } |
| public Builder clearProducerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| producerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 sequence_id = 2; |
| private long sequenceId_ ; |
| public boolean hasSequenceId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getSequenceId() { |
| return sequenceId_; |
| } |
| public Builder setSequenceId(long value) { |
| bitField0_ |= 0x00000002; |
| sequenceId_ = value; |
| |
| return this; |
| } |
| public Builder clearSequenceId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| sequenceId_ = 0L; |
| |
| return this; |
| } |
| |
| // required .pulsar.proto.ServerError error = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError() { |
| return error_; |
| } |
| public Builder setError(org.apache.pulsar.common.api.proto.PulsarApi.ServerError value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| error_ = value; |
| |
| return this; |
| } |
| public Builder clearError() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| |
| return this; |
| } |
| |
| // required string message = 4; |
| private java.lang.Object message_ = ""; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public String getMessage() { |
| java.lang.Object ref = message_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| message_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setMessage(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| message_ = value; |
| |
| return this; |
| } |
| public Builder clearMessage() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| message_ = getDefaultInstance().getMessage(); |
| |
| return this; |
| } |
| void setMessage(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000008; |
| message_ = value; |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandSendError) |
| } |
| |
| static { |
| defaultInstance = new CommandSendError(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandSendError) |
| } |
| |
| public interface CommandMessageOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // required .pulsar.proto.MessageIdData message_id = 2; |
| boolean hasMessageId(); |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId(); |
| } |
| public static final class CommandMessage extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandMessageOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandMessage.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandMessage> handle; |
| private CommandMessage(io.netty.util.Recycler.Handle<CommandMessage> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandMessage> RECYCLER = new io.netty.util.Recycler<CommandMessage>() { |
| protected CommandMessage newObject(Handle<CommandMessage> handle) { |
| return new CommandMessage(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandMessage(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandMessage defaultInstance; |
| public static CommandMessage getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandMessage getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // required .pulsar.proto.MessageIdData message_id = 2; |
| public static final int MESSAGE_ID_FIELD_NUMBER = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData messageId_; |
| public boolean hasMessageId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId() { |
| return messageId_; |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasMessageId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!getMessageId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeMessage(2, messageId_); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, messageId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandMessage parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage 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.pulsar.common.api.proto.PulsarApi.CommandMessage 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.pulsar.common.api.proto.PulsarApi.CommandMessage parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage 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.pulsar.common.api.proto.PulsarApi.CommandMessage prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandMessageOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage result = org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.messageId_ = messageId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasMessageId()) { |
| mergeMessageId(other.getMessageId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| if (!hasMessageId()) { |
| |
| return false; |
| } |
| if (!getMessageId().isInitialized()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 18: { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(); |
| if (hasMessageId()) { |
| subBuilder.mergeFrom(getMessageId()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setMessageId(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required .pulsar.proto.MessageIdData message_id = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| public boolean hasMessageId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId() { |
| return messageId_; |
| } |
| public Builder setMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| messageId_ = value; |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder setMessageId( |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| messageId_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder mergeMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (((bitField0_ & 0x00000002) == 0x00000002) && |
| messageId_ != org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance()) { |
| messageId_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(messageId_).mergeFrom(value).buildPartial(); |
| } else { |
| messageId_ = value; |
| } |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder clearMessageId() { |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandMessage) |
| } |
| |
| static { |
| defaultInstance = new CommandMessage(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandMessage) |
| } |
| |
| public interface CommandAckOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // required .pulsar.proto.CommandAck.AckType ack_type = 2; |
| boolean hasAckType(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType getAckType(); |
| |
| // repeated .pulsar.proto.MessageIdData message_id = 3; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> |
| getMessageIdList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId(int index); |
| int getMessageIdCount(); |
| |
| // optional .pulsar.proto.CommandAck.ValidationError validation_error = 4; |
| boolean hasValidationError(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError getValidationError(); |
| |
| // repeated .pulsar.proto.KeyLongValue properties = 5; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue> |
| getPropertiesList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue getProperties(int index); |
| int getPropertiesCount(); |
| } |
| public static final class CommandAck extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandAckOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandAck.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandAck> handle; |
| private CommandAck(io.netty.util.Recycler.Handle<CommandAck> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandAck> RECYCLER = new io.netty.util.Recycler<CommandAck>() { |
| protected CommandAck newObject(Handle<CommandAck> handle) { |
| return new CommandAck(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandAck(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandAck defaultInstance; |
| public static CommandAck getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandAck getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public enum AckType |
| implements com.google.protobuf.Internal.EnumLite { |
| Individual(0, 0), |
| Cumulative(1, 1), |
| ; |
| |
| public static final int Individual_VALUE = 0; |
| public static final int Cumulative_VALUE = 1; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static AckType valueOf(int value) { |
| switch (value) { |
| case 0: return Individual; |
| case 1: return Cumulative; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<AckType> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<AckType> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<AckType>() { |
| public AckType findValueByNumber(int number) { |
| return AckType.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private AckType(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.CommandAck.AckType) |
| } |
| |
| public enum ValidationError |
| implements com.google.protobuf.Internal.EnumLite { |
| UncompressedSizeCorruption(0, 0), |
| DecompressionError(1, 1), |
| ChecksumMismatch(2, 2), |
| BatchDeSerializeError(3, 3), |
| DecryptionError(4, 4), |
| ; |
| |
| public static final int UncompressedSizeCorruption_VALUE = 0; |
| public static final int DecompressionError_VALUE = 1; |
| public static final int ChecksumMismatch_VALUE = 2; |
| public static final int BatchDeSerializeError_VALUE = 3; |
| public static final int DecryptionError_VALUE = 4; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static ValidationError valueOf(int value) { |
| switch (value) { |
| case 0: return UncompressedSizeCorruption; |
| case 1: return DecompressionError; |
| case 2: return ChecksumMismatch; |
| case 3: return BatchDeSerializeError; |
| case 4: return DecryptionError; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<ValidationError> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<ValidationError> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<ValidationError>() { |
| public ValidationError findValueByNumber(int number) { |
| return ValidationError.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private ValidationError(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.CommandAck.ValidationError) |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // required .pulsar.proto.CommandAck.AckType ack_type = 2; |
| public static final int ACK_TYPE_FIELD_NUMBER = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType ackType_; |
| public boolean hasAckType() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType getAckType() { |
| return ackType_; |
| } |
| |
| // repeated .pulsar.proto.MessageIdData message_id = 3; |
| public static final int MESSAGE_ID_FIELD_NUMBER = 3; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> messageId_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> getMessageIdList() { |
| return messageId_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.MessageIdDataOrBuilder> |
| getMessageIdOrBuilderList() { |
| return messageId_; |
| } |
| public int getMessageIdCount() { |
| return messageId_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId(int index) { |
| return messageId_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdDataOrBuilder getMessageIdOrBuilder( |
| int index) { |
| return messageId_.get(index); |
| } |
| |
| // optional .pulsar.proto.CommandAck.ValidationError validation_error = 4; |
| public static final int VALIDATION_ERROR_FIELD_NUMBER = 4; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError validationError_; |
| public boolean hasValidationError() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError getValidationError() { |
| return validationError_; |
| } |
| |
| // repeated .pulsar.proto.KeyLongValue properties = 5; |
| public static final int PROPERTIES_FIELD_NUMBER = 5; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue> properties_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue> getPropertiesList() { |
| return properties_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValueOrBuilder> |
| getPropertiesOrBuilderList() { |
| return properties_; |
| } |
| public int getPropertiesCount() { |
| return properties_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue getProperties(int index) { |
| return properties_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValueOrBuilder getPropertiesOrBuilder( |
| int index) { |
| return properties_.get(index); |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| ackType_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType.Individual; |
| messageId_ = java.util.Collections.emptyList(); |
| validationError_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError.UncompressedSizeCorruption; |
| properties_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasAckType()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| for (int i = 0; i < getMessageIdCount(); i++) { |
| if (!getMessageId(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| for (int i = 0; i < getPropertiesCount(); i++) { |
| if (!getProperties(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeEnum(2, ackType_.getNumber()); |
| } |
| for (int i = 0; i < messageId_.size(); i++) { |
| output.writeMessage(3, messageId_.get(i)); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeEnum(4, validationError_.getNumber()); |
| } |
| for (int i = 0; i < properties_.size(); i++) { |
| output.writeMessage(5, properties_.get(i)); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(2, ackType_.getNumber()); |
| } |
| for (int i = 0; i < messageId_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, messageId_.get(i)); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(4, validationError_.getNumber()); |
| } |
| for (int i = 0; i < properties_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(5, properties_.get(i)); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandAck parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandAck parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandAck parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandAck parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandAck parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandAck parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandAck 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.pulsar.common.api.proto.PulsarApi.CommandAck 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.pulsar.common.api.proto.PulsarApi.CommandAck parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandAck 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.pulsar.common.api.proto.PulsarApi.CommandAck prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandAckOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| ackType_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType.Individual; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messageId_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| validationError_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError.UncompressedSizeCorruption; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| properties_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000010); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandAck buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck result = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.ackType_ = ackType_; |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| messageId_ = java.util.Collections.unmodifiableList(messageId_); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| } |
| result.messageId_ = messageId_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.validationError_ = validationError_; |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| properties_ = java.util.Collections.unmodifiableList(properties_); |
| bitField0_ = (bitField0_ & ~0x00000010); |
| } |
| result.properties_ = properties_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandAck other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasAckType()) { |
| setAckType(other.getAckType()); |
| } |
| if (!other.messageId_.isEmpty()) { |
| if (messageId_.isEmpty()) { |
| messageId_ = other.messageId_; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| } else { |
| ensureMessageIdIsMutable(); |
| messageId_.addAll(other.messageId_); |
| } |
| |
| } |
| if (other.hasValidationError()) { |
| setValidationError(other.getValidationError()); |
| } |
| if (!other.properties_.isEmpty()) { |
| if (properties_.isEmpty()) { |
| properties_ = other.properties_; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| } else { |
| ensurePropertiesIsMutable(); |
| properties_.addAll(other.properties_); |
| } |
| |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| if (!hasAckType()) { |
| |
| return false; |
| } |
| for (int i = 0; i < getMessageIdCount(); i++) { |
| if (!getMessageId(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| for (int i = 0; i < getPropertiesCount(); i++) { |
| if (!getProperties(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType value = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000002; |
| ackType_ = value; |
| } |
| break; |
| } |
| case 26: { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addMessageId(subBuilder.buildPartial()); |
| break; |
| } |
| case 32: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError value = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000008; |
| validationError_ = value; |
| } |
| break; |
| } |
| case 42: { |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addProperties(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required .pulsar.proto.CommandAck.AckType ack_type = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType ackType_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType.Individual; |
| public boolean hasAckType() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType getAckType() { |
| return ackType_; |
| } |
| public Builder setAckType(org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| ackType_ = value; |
| |
| return this; |
| } |
| public Builder clearAckType() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| ackType_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.AckType.Individual; |
| |
| return this; |
| } |
| |
| // repeated .pulsar.proto.MessageIdData message_id = 3; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> messageId_ = |
| java.util.Collections.emptyList(); |
| private void ensureMessageIdIsMutable() { |
| if (!((bitField0_ & 0x00000004) == 0x00000004)) { |
| messageId_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData>(messageId_); |
| bitField0_ |= 0x00000004; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> getMessageIdList() { |
| return java.util.Collections.unmodifiableList(messageId_); |
| } |
| public int getMessageIdCount() { |
| return messageId_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId(int index) { |
| return messageId_.get(index); |
| } |
| public Builder setMessageId( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMessageIdIsMutable(); |
| messageId_.set(index, value); |
| |
| return this; |
| } |
| public Builder setMessageId( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| ensureMessageIdIsMutable(); |
| messageId_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMessageIdIsMutable(); |
| messageId_.add(value); |
| |
| return this; |
| } |
| public Builder addMessageId( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMessageIdIsMutable(); |
| messageId_.add(index, value); |
| |
| return this; |
| } |
| public Builder addMessageId( |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| ensureMessageIdIsMutable(); |
| messageId_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMessageId( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| ensureMessageIdIsMutable(); |
| messageId_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllMessageId( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> values) { |
| ensureMessageIdIsMutable(); |
| super.addAll(values, messageId_); |
| |
| return this; |
| } |
| public Builder clearMessageId() { |
| messageId_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| |
| return this; |
| } |
| public Builder removeMessageId(int index) { |
| ensureMessageIdIsMutable(); |
| messageId_.remove(index); |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandAck.ValidationError validation_error = 4; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError validationError_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError.UncompressedSizeCorruption; |
| public boolean hasValidationError() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError getValidationError() { |
| return validationError_; |
| } |
| public Builder setValidationError(org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| validationError_ = value; |
| |
| return this; |
| } |
| public Builder clearValidationError() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| validationError_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.ValidationError.UncompressedSizeCorruption; |
| |
| return this; |
| } |
| |
| // repeated .pulsar.proto.KeyLongValue properties = 5; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue> properties_ = |
| java.util.Collections.emptyList(); |
| private void ensurePropertiesIsMutable() { |
| if (!((bitField0_ & 0x00000010) == 0x00000010)) { |
| properties_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue>(properties_); |
| bitField0_ |= 0x00000010; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue> getPropertiesList() { |
| return java.util.Collections.unmodifiableList(properties_); |
| } |
| public int getPropertiesCount() { |
| return properties_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue getProperties(int index) { |
| return properties_.get(index); |
| } |
| public Builder setProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.set(index, value); |
| |
| return this; |
| } |
| public Builder setProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addProperties(org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.add(value); |
| |
| return this; |
| } |
| public Builder addProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensurePropertiesIsMutable(); |
| properties_.add(index, value); |
| |
| return this; |
| } |
| public Builder addProperties( |
| org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addProperties( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue.Builder builderForValue) { |
| ensurePropertiesIsMutable(); |
| properties_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllProperties( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.KeyLongValue> values) { |
| ensurePropertiesIsMutable(); |
| super.addAll(values, properties_); |
| |
| return this; |
| } |
| public Builder clearProperties() { |
| properties_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000010); |
| |
| return this; |
| } |
| public Builder removeProperties(int index) { |
| ensurePropertiesIsMutable(); |
| properties_.remove(index); |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandAck) |
| } |
| |
| static { |
| defaultInstance = new CommandAck(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandAck) |
| } |
| |
| public interface CommandActiveConsumerChangeOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // optional bool is_active = 2 [default = false]; |
| boolean hasIsActive(); |
| boolean getIsActive(); |
| } |
| public static final class CommandActiveConsumerChange extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandActiveConsumerChangeOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandActiveConsumerChange.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandActiveConsumerChange> handle; |
| private CommandActiveConsumerChange(io.netty.util.Recycler.Handle<CommandActiveConsumerChange> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandActiveConsumerChange> RECYCLER = new io.netty.util.Recycler<CommandActiveConsumerChange>() { |
| protected CommandActiveConsumerChange newObject(Handle<CommandActiveConsumerChange> handle) { |
| return new CommandActiveConsumerChange(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandActiveConsumerChange(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandActiveConsumerChange defaultInstance; |
| public static CommandActiveConsumerChange getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandActiveConsumerChange getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // optional bool is_active = 2 [default = false]; |
| public static final int IS_ACTIVE_FIELD_NUMBER = 2; |
| private boolean isActive_; |
| public boolean hasIsActive() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public boolean getIsActive() { |
| return isActive_; |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| isActive_ = false; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBool(2, isActive_); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(2, isActive_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange 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.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange 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.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange 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.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChangeOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| isActive_ = false; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange result = org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.isActive_ = isActive_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasIsActive()) { |
| setIsActive(other.getIsActive()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| isActive_ = input.readBool(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional bool is_active = 2 [default = false]; |
| private boolean isActive_ ; |
| public boolean hasIsActive() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public boolean getIsActive() { |
| return isActive_; |
| } |
| public Builder setIsActive(boolean value) { |
| bitField0_ |= 0x00000002; |
| isActive_ = value; |
| |
| return this; |
| } |
| public Builder clearIsActive() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| isActive_ = false; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandActiveConsumerChange) |
| } |
| |
| static { |
| defaultInstance = new CommandActiveConsumerChange(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandActiveConsumerChange) |
| } |
| |
| public interface CommandFlowOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // required uint32 messagePermits = 2; |
| boolean hasMessagePermits(); |
| int getMessagePermits(); |
| } |
| public static final class CommandFlow extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandFlowOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandFlow.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandFlow> handle; |
| private CommandFlow(io.netty.util.Recycler.Handle<CommandFlow> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandFlow> RECYCLER = new io.netty.util.Recycler<CommandFlow>() { |
| protected CommandFlow newObject(Handle<CommandFlow> handle) { |
| return new CommandFlow(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandFlow(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandFlow defaultInstance; |
| public static CommandFlow getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandFlow getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // required uint32 messagePermits = 2; |
| public static final int MESSAGEPERMITS_FIELD_NUMBER = 2; |
| private int messagePermits_; |
| public boolean hasMessagePermits() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getMessagePermits() { |
| return messagePermits_; |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| messagePermits_ = 0; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasMessagePermits()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt32(2, messagePermits_); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(2, messagePermits_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandFlow parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow 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.pulsar.common.api.proto.PulsarApi.CommandFlow 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.pulsar.common.api.proto.PulsarApi.CommandFlow parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow 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.pulsar.common.api.proto.PulsarApi.CommandFlow prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandFlowOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| messagePermits_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow result = org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.messagePermits_ = messagePermits_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasMessagePermits()) { |
| setMessagePermits(other.getMessagePermits()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| if (!hasMessagePermits()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| messagePermits_ = input.readUInt32(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint32 messagePermits = 2; |
| private int messagePermits_ ; |
| public boolean hasMessagePermits() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public int getMessagePermits() { |
| return messagePermits_; |
| } |
| public Builder setMessagePermits(int value) { |
| bitField0_ |= 0x00000002; |
| messagePermits_ = value; |
| |
| return this; |
| } |
| public Builder clearMessagePermits() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messagePermits_ = 0; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandFlow) |
| } |
| |
| static { |
| defaultInstance = new CommandFlow(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandFlow) |
| } |
| |
| public interface CommandUnsubscribeOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| } |
| public static final class CommandUnsubscribe extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandUnsubscribeOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandUnsubscribe.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandUnsubscribe> handle; |
| private CommandUnsubscribe(io.netty.util.Recycler.Handle<CommandUnsubscribe> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandUnsubscribe> RECYCLER = new io.netty.util.Recycler<CommandUnsubscribe>() { |
| protected CommandUnsubscribe newObject(Handle<CommandUnsubscribe> handle) { |
| return new CommandUnsubscribe(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandUnsubscribe(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandUnsubscribe defaultInstance; |
| public static CommandUnsubscribe getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandUnsubscribe getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| requestId_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe 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.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe 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.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe 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.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribeOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe result = org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandUnsubscribe) |
| } |
| |
| static { |
| defaultInstance = new CommandUnsubscribe(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandUnsubscribe) |
| } |
| |
| public interface CommandSeekOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional .pulsar.proto.MessageIdData message_id = 3; |
| boolean hasMessageId(); |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId(); |
| } |
| public static final class CommandSeek extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandSeekOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandSeek.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandSeek> handle; |
| private CommandSeek(io.netty.util.Recycler.Handle<CommandSeek> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandSeek> RECYCLER = new io.netty.util.Recycler<CommandSeek>() { |
| protected CommandSeek newObject(Handle<CommandSeek> handle) { |
| return new CommandSeek(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandSeek(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandSeek defaultInstance; |
| public static CommandSeek getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandSeek getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional .pulsar.proto.MessageIdData message_id = 3; |
| public static final int MESSAGE_ID_FIELD_NUMBER = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData messageId_; |
| public boolean hasMessageId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId() { |
| return messageId_; |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| requestId_ = 0L; |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasMessageId()) { |
| if (!getMessageId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeMessage(3, messageId_); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, messageId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandSeek parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek 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.pulsar.common.api.proto.PulsarApi.CommandSeek 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.pulsar.common.api.proto.PulsarApi.CommandSeek parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek 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.pulsar.common.api.proto.PulsarApi.CommandSeek prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandSeekOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek result = org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.messageId_ = messageId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasMessageId()) { |
| mergeMessageId(other.getMessageId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| if (hasMessageId()) { |
| if (!getMessageId().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 26: { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(); |
| if (hasMessageId()) { |
| subBuilder.mergeFrom(getMessageId()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setMessageId(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.MessageIdData message_id = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| public boolean hasMessageId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageId() { |
| return messageId_; |
| } |
| public Builder setMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| messageId_ = value; |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder setMessageId( |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| messageId_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder mergeMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (((bitField0_ & 0x00000004) == 0x00000004) && |
| messageId_ != org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance()) { |
| messageId_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(messageId_).mergeFrom(value).buildPartial(); |
| } else { |
| messageId_ = value; |
| } |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder clearMessageId() { |
| messageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandSeek) |
| } |
| |
| static { |
| defaultInstance = new CommandSeek(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandSeek) |
| } |
| |
| public interface CommandReachedEndOfTopicOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| } |
| public static final class CommandReachedEndOfTopic extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandReachedEndOfTopicOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandReachedEndOfTopic.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandReachedEndOfTopic> handle; |
| private CommandReachedEndOfTopic(io.netty.util.Recycler.Handle<CommandReachedEndOfTopic> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandReachedEndOfTopic> RECYCLER = new io.netty.util.Recycler<CommandReachedEndOfTopic>() { |
| protected CommandReachedEndOfTopic newObject(Handle<CommandReachedEndOfTopic> handle) { |
| return new CommandReachedEndOfTopic(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandReachedEndOfTopic(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandReachedEndOfTopic defaultInstance; |
| public static CommandReachedEndOfTopic getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandReachedEndOfTopic getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic 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.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic 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.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic 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.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopicOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic result = org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandReachedEndOfTopic) |
| } |
| |
| static { |
| defaultInstance = new CommandReachedEndOfTopic(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandReachedEndOfTopic) |
| } |
| |
| public interface CommandCloseProducerOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 producer_id = 1; |
| boolean hasProducerId(); |
| long getProducerId(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| } |
| public static final class CommandCloseProducer extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandCloseProducerOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandCloseProducer.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandCloseProducer> handle; |
| private CommandCloseProducer(io.netty.util.Recycler.Handle<CommandCloseProducer> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandCloseProducer> RECYCLER = new io.netty.util.Recycler<CommandCloseProducer>() { |
| protected CommandCloseProducer newObject(Handle<CommandCloseProducer> handle) { |
| return new CommandCloseProducer(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandCloseProducer(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandCloseProducer defaultInstance; |
| public static CommandCloseProducer getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandCloseProducer getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 producer_id = 1; |
| public static final int PRODUCER_ID_FIELD_NUMBER = 1; |
| private long producerId_; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| private void initFields() { |
| producerId_ = 0L; |
| requestId_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasProducerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, producerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| } |
| |
| 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, producerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandCloseProducer parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer 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.pulsar.common.api.proto.PulsarApi.CommandCloseProducer 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.pulsar.common.api.proto.PulsarApi.CommandCloseProducer parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer 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.pulsar.common.api.proto.PulsarApi.CommandCloseProducer prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducerOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| producerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer result = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.producerId_ = producerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance()) return this; |
| if (other.hasProducerId()) { |
| setProducerId(other.getProducerId()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasProducerId()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| producerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 producer_id = 1; |
| private long producerId_ ; |
| public boolean hasProducerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getProducerId() { |
| return producerId_; |
| } |
| public Builder setProducerId(long value) { |
| bitField0_ |= 0x00000001; |
| producerId_ = value; |
| |
| return this; |
| } |
| public Builder clearProducerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| producerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandCloseProducer) |
| } |
| |
| static { |
| defaultInstance = new CommandCloseProducer(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandCloseProducer) |
| } |
| |
| public interface CommandCloseConsumerOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| } |
| public static final class CommandCloseConsumer extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandCloseConsumerOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandCloseConsumer.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandCloseConsumer> handle; |
| private CommandCloseConsumer(io.netty.util.Recycler.Handle<CommandCloseConsumer> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandCloseConsumer> RECYCLER = new io.netty.util.Recycler<CommandCloseConsumer>() { |
| protected CommandCloseConsumer newObject(Handle<CommandCloseConsumer> handle) { |
| return new CommandCloseConsumer(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandCloseConsumer(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandCloseConsumer defaultInstance; |
| public static CommandCloseConsumer getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandCloseConsumer getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| requestId_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer 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.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer 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.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer 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.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumerOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer result = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandCloseConsumer) |
| } |
| |
| static { |
| defaultInstance = new CommandCloseConsumer(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandCloseConsumer) |
| } |
| |
| public interface CommandRedeliverUnacknowledgedMessagesOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // repeated .pulsar.proto.MessageIdData message_ids = 2; |
| java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> |
| getMessageIdsList(); |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageIds(int index); |
| int getMessageIdsCount(); |
| } |
| public static final class CommandRedeliverUnacknowledgedMessages extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandRedeliverUnacknowledgedMessagesOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandRedeliverUnacknowledgedMessages.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandRedeliverUnacknowledgedMessages> handle; |
| private CommandRedeliverUnacknowledgedMessages(io.netty.util.Recycler.Handle<CommandRedeliverUnacknowledgedMessages> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandRedeliverUnacknowledgedMessages> RECYCLER = new io.netty.util.Recycler<CommandRedeliverUnacknowledgedMessages>() { |
| protected CommandRedeliverUnacknowledgedMessages newObject(Handle<CommandRedeliverUnacknowledgedMessages> handle) { |
| return new CommandRedeliverUnacknowledgedMessages(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandRedeliverUnacknowledgedMessages(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandRedeliverUnacknowledgedMessages defaultInstance; |
| public static CommandRedeliverUnacknowledgedMessages getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandRedeliverUnacknowledgedMessages getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // repeated .pulsar.proto.MessageIdData message_ids = 2; |
| public static final int MESSAGE_IDS_FIELD_NUMBER = 2; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> messageIds_; |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> getMessageIdsList() { |
| return messageIds_; |
| } |
| public java.util.List<? extends org.apache.pulsar.common.api.proto.PulsarApi.MessageIdDataOrBuilder> |
| getMessageIdsOrBuilderList() { |
| return messageIds_; |
| } |
| public int getMessageIdsCount() { |
| return messageIds_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageIds(int index) { |
| return messageIds_.get(index); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdDataOrBuilder getMessageIdsOrBuilder( |
| int index) { |
| return messageIds_.get(index); |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| messageIds_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| for (int i = 0; i < getMessageIdsCount(); i++) { |
| if (!getMessageIds(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| for (int i = 0; i < messageIds_.size(); i++) { |
| output.writeMessage(2, messageIds_.get(i)); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| for (int i = 0; i < messageIds_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, messageIds_.get(i)); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages 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.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages 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.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages 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.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessagesOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| messageIds_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages result = org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| messageIds_ = java.util.Collections.unmodifiableList(messageIds_); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } |
| result.messageIds_ = messageIds_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (!other.messageIds_.isEmpty()) { |
| if (messageIds_.isEmpty()) { |
| messageIds_ = other.messageIds_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| ensureMessageIdsIsMutable(); |
| messageIds_.addAll(other.messageIds_); |
| } |
| |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| for (int i = 0; i < getMessageIdsCount(); i++) { |
| if (!getMessageIds(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 18: { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(); |
| input.readMessage(subBuilder, extensionRegistry); |
| addMessageIds(subBuilder.buildPartial()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // repeated .pulsar.proto.MessageIdData message_ids = 2; |
| private java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> messageIds_ = |
| java.util.Collections.emptyList(); |
| private void ensureMessageIdsIsMutable() { |
| if (!((bitField0_ & 0x00000002) == 0x00000002)) { |
| messageIds_ = new java.util.ArrayList<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData>(messageIds_); |
| bitField0_ |= 0x00000002; |
| } |
| } |
| |
| public java.util.List<org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> getMessageIdsList() { |
| return java.util.Collections.unmodifiableList(messageIds_); |
| } |
| public int getMessageIdsCount() { |
| return messageIds_.size(); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getMessageIds(int index) { |
| return messageIds_.get(index); |
| } |
| public Builder setMessageIds( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMessageIdsIsMutable(); |
| messageIds_.set(index, value); |
| |
| return this; |
| } |
| public Builder setMessageIds( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| ensureMessageIdsIsMutable(); |
| messageIds_.set(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMessageIds(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMessageIdsIsMutable(); |
| messageIds_.add(value); |
| |
| return this; |
| } |
| public Builder addMessageIds( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureMessageIdsIsMutable(); |
| messageIds_.add(index, value); |
| |
| return this; |
| } |
| public Builder addMessageIds( |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| ensureMessageIdsIsMutable(); |
| messageIds_.add(builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addMessageIds( |
| int index, org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| ensureMessageIdsIsMutable(); |
| messageIds_.add(index, builderForValue.build()); |
| |
| return this; |
| } |
| public Builder addAllMessageIds( |
| java.lang.Iterable<? extends org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData> values) { |
| ensureMessageIdsIsMutable(); |
| super.addAll(values, messageIds_); |
| |
| return this; |
| } |
| public Builder clearMessageIds() { |
| messageIds_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| |
| return this; |
| } |
| public Builder removeMessageIds(int index) { |
| ensureMessageIdsIsMutable(); |
| messageIds_.remove(index); |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandRedeliverUnacknowledgedMessages) |
| } |
| |
| static { |
| defaultInstance = new CommandRedeliverUnacknowledgedMessages(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandRedeliverUnacknowledgedMessages) |
| } |
| |
| public interface CommandSuccessOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 request_id = 1; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional .pulsar.proto.Schema schema = 2; |
| boolean hasSchema(); |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema(); |
| } |
| public static final class CommandSuccess extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandSuccessOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandSuccess.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandSuccess> handle; |
| private CommandSuccess(io.netty.util.Recycler.Handle<CommandSuccess> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandSuccess> RECYCLER = new io.netty.util.Recycler<CommandSuccess>() { |
| protected CommandSuccess newObject(Handle<CommandSuccess> handle) { |
| return new CommandSuccess(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandSuccess(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandSuccess defaultInstance; |
| public static CommandSuccess getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandSuccess getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 request_id = 1; |
| public static final int REQUEST_ID_FIELD_NUMBER = 1; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional .pulsar.proto.Schema schema = 2; |
| public static final int SCHEMA_FIELD_NUMBER = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema schema_; |
| public boolean hasSchema() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema() { |
| return schema_; |
| } |
| |
| private void initFields() { |
| requestId_ = 0L; |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasSchema()) { |
| if (!getSchema().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeMessage(2, schema_); |
| } |
| } |
| |
| 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, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, schema_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandSuccess parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess 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.pulsar.common.api.proto.PulsarApi.CommandSuccess 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.pulsar.common.api.proto.PulsarApi.CommandSuccess parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess 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.pulsar.common.api.proto.PulsarApi.CommandSuccess prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccessOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess result = org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.schema_ = schema_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.getDefaultInstance()) return this; |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasSchema()) { |
| mergeSchema(other.getSchema()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| if (hasSchema()) { |
| if (!getSchema().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 18: { |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.Schema.newBuilder(); |
| if (hasSchema()) { |
| subBuilder.mergeFrom(getSchema()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSchema(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 request_id = 1; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000001; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.Schema schema = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.Schema schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| public boolean hasSchema() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.Schema getSchema() { |
| return schema_; |
| } |
| public Builder setSchema(org.apache.pulsar.common.api.proto.PulsarApi.Schema value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| schema_ = value; |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder setSchema( |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.Builder builderForValue) { |
| schema_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder mergeSchema(org.apache.pulsar.common.api.proto.PulsarApi.Schema value) { |
| if (((bitField0_ & 0x00000002) == 0x00000002) && |
| schema_ != org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance()) { |
| schema_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); |
| } else { |
| schema_ = value; |
| } |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder clearSchema() { |
| schema_ = org.apache.pulsar.common.api.proto.PulsarApi.Schema.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandSuccess) |
| } |
| |
| static { |
| defaultInstance = new CommandSuccess(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandSuccess) |
| } |
| |
| public interface CommandProducerSuccessOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 request_id = 1; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // required string producer_name = 2; |
| boolean hasProducerName(); |
| String getProducerName(); |
| |
| // optional int64 last_sequence_id = 3 [default = -1]; |
| boolean hasLastSequenceId(); |
| long getLastSequenceId(); |
| |
| // optional bytes schema_version = 4; |
| boolean hasSchemaVersion(); |
| com.google.protobuf.ByteString getSchemaVersion(); |
| } |
| public static final class CommandProducerSuccess extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandProducerSuccessOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandProducerSuccess.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandProducerSuccess> handle; |
| private CommandProducerSuccess(io.netty.util.Recycler.Handle<CommandProducerSuccess> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandProducerSuccess> RECYCLER = new io.netty.util.Recycler<CommandProducerSuccess>() { |
| protected CommandProducerSuccess newObject(Handle<CommandProducerSuccess> handle) { |
| return new CommandProducerSuccess(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandProducerSuccess(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandProducerSuccess defaultInstance; |
| public static CommandProducerSuccess getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandProducerSuccess getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 request_id = 1; |
| public static final int REQUEST_ID_FIELD_NUMBER = 1; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // required string producer_name = 2; |
| public static final int PRODUCER_NAME_FIELD_NUMBER = 2; |
| private java.lang.Object producerName_; |
| public boolean hasProducerName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getProducerName() { |
| java.lang.Object ref = producerName_; |
| 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)) { |
| producerName_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getProducerNameBytes() { |
| java.lang.Object ref = producerName_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| producerName_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional int64 last_sequence_id = 3 [default = -1]; |
| public static final int LAST_SEQUENCE_ID_FIELD_NUMBER = 3; |
| private long lastSequenceId_; |
| public boolean hasLastSequenceId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getLastSequenceId() { |
| return lastSequenceId_; |
| } |
| |
| // optional bytes schema_version = 4; |
| public static final int SCHEMA_VERSION_FIELD_NUMBER = 4; |
| private com.google.protobuf.ByteString schemaVersion_; |
| public boolean hasSchemaVersion() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public com.google.protobuf.ByteString getSchemaVersion() { |
| return schemaVersion_; |
| } |
| |
| private void initFields() { |
| requestId_ = 0L; |
| producerName_ = ""; |
| lastSequenceId_ = -1L; |
| schemaVersion_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasProducerName()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getProducerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeInt64(3, lastSequenceId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(4, schemaVersion_); |
| } |
| } |
| |
| 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, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getProducerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(3, lastSequenceId_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(4, schemaVersion_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess 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.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess 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.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess 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.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccessOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| producerName_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| lastSequenceId_ = -1L; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| schemaVersion_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess result = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.producerName_ = producerName_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.lastSequenceId_ = lastSequenceId_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.schemaVersion_ = schemaVersion_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance()) return this; |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasProducerName()) { |
| setProducerName(other.getProducerName()); |
| } |
| if (other.hasLastSequenceId()) { |
| setLastSequenceId(other.getLastSequenceId()); |
| } |
| if (other.hasSchemaVersion()) { |
| setSchemaVersion(other.getSchemaVersion()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| if (!hasProducerName()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| producerName_ = input.readBytes(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| lastSequenceId_ = input.readInt64(); |
| break; |
| } |
| case 34: { |
| bitField0_ |= 0x00000008; |
| schemaVersion_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 request_id = 1; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000001; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // required string producer_name = 2; |
| private java.lang.Object producerName_ = ""; |
| public boolean hasProducerName() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getProducerName() { |
| java.lang.Object ref = producerName_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| producerName_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setProducerName(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| producerName_ = value; |
| |
| return this; |
| } |
| public Builder clearProducerName() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| producerName_ = getDefaultInstance().getProducerName(); |
| |
| return this; |
| } |
| void setProducerName(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000002; |
| producerName_ = value; |
| |
| } |
| |
| // optional int64 last_sequence_id = 3 [default = -1]; |
| private long lastSequenceId_ = -1L; |
| public boolean hasLastSequenceId() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public long getLastSequenceId() { |
| return lastSequenceId_; |
| } |
| public Builder setLastSequenceId(long value) { |
| bitField0_ |= 0x00000004; |
| lastSequenceId_ = value; |
| |
| return this; |
| } |
| public Builder clearLastSequenceId() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| lastSequenceId_ = -1L; |
| |
| return this; |
| } |
| |
| // optional bytes schema_version = 4; |
| private com.google.protobuf.ByteString schemaVersion_ = com.google.protobuf.ByteString.EMPTY; |
| public boolean hasSchemaVersion() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public com.google.protobuf.ByteString getSchemaVersion() { |
| return schemaVersion_; |
| } |
| public Builder setSchemaVersion(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| schemaVersion_ = value; |
| |
| return this; |
| } |
| public Builder clearSchemaVersion() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| schemaVersion_ = getDefaultInstance().getSchemaVersion(); |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandProducerSuccess) |
| } |
| |
| static { |
| defaultInstance = new CommandProducerSuccess(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandProducerSuccess) |
| } |
| |
| public interface CommandErrorOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 request_id = 1; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // required .pulsar.proto.ServerError error = 2; |
| boolean hasError(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError(); |
| |
| // required string message = 3; |
| boolean hasMessage(); |
| String getMessage(); |
| } |
| public static final class CommandError extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandErrorOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandError.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandError> handle; |
| private CommandError(io.netty.util.Recycler.Handle<CommandError> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandError> RECYCLER = new io.netty.util.Recycler<CommandError>() { |
| protected CommandError newObject(Handle<CommandError> handle) { |
| return new CommandError(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandError(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandError defaultInstance; |
| public static CommandError getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandError getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 request_id = 1; |
| public static final int REQUEST_ID_FIELD_NUMBER = 1; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // required .pulsar.proto.ServerError error = 2; |
| public static final int ERROR_FIELD_NUMBER = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError error_; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError() { |
| return error_; |
| } |
| |
| // required string message = 3; |
| public static final int MESSAGE_FIELD_NUMBER = 3; |
| private java.lang.Object message_; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getMessage() { |
| java.lang.Object ref = message_; |
| 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)) { |
| message_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getMessageBytes() { |
| java.lang.Object ref = message_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| message_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| requestId_ = 0L; |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| message_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasError()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasMessage()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeEnum(2, error_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(3, getMessageBytes()); |
| } |
| } |
| |
| 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, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(2, error_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, getMessageBytes()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandError parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandError parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandError parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandError parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandError parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandError parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandError 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.pulsar.common.api.proto.PulsarApi.CommandError 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.pulsar.common.api.proto.PulsarApi.CommandError parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandError 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.pulsar.common.api.proto.PulsarApi.CommandError prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandError, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandErrorOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandError.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| message_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandError getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandError.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandError build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandError result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandError buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandError result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandError buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandError result = org.apache.pulsar.common.api.proto.PulsarApi.CommandError.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.error_ = error_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.message_ = message_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandError other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandError.getDefaultInstance()) return this; |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasError()) { |
| setError(other.getError()); |
| } |
| if (other.hasMessage()) { |
| setMessage(other.getMessage()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| if (!hasError()) { |
| |
| return false; |
| } |
| if (!hasMessage()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError value = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000002; |
| error_ = value; |
| } |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000004; |
| message_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 request_id = 1; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000001; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // required .pulsar.proto.ServerError error = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getError() { |
| return error_; |
| } |
| public Builder setError(org.apache.pulsar.common.api.proto.PulsarApi.ServerError value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| error_ = value; |
| |
| return this; |
| } |
| public Builder clearError() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| |
| return this; |
| } |
| |
| // required string message = 3; |
| private java.lang.Object message_ = ""; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getMessage() { |
| java.lang.Object ref = message_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| message_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setMessage(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| message_ = value; |
| |
| return this; |
| } |
| public Builder clearMessage() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| message_ = getDefaultInstance().getMessage(); |
| |
| return this; |
| } |
| void setMessage(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000004; |
| message_ = value; |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandError) |
| } |
| |
| static { |
| defaultInstance = new CommandError(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandError) |
| } |
| |
| public interface CommandPingOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| } |
| public static final class CommandPing extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandPingOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandPing.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandPing> handle; |
| private CommandPing(io.netty.util.Recycler.Handle<CommandPing> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandPing> RECYCLER = new io.netty.util.Recycler<CommandPing>() { |
| protected CommandPing newObject(Handle<CommandPing> handle) { |
| return new CommandPing(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandPing(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandPing defaultInstance; |
| public static CommandPing getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandPing getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private void initFields() { |
| } |
| 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 { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| 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.pulsar.common.api.proto.PulsarApi.CommandPing parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPing parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPing parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPing parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPing parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPing parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPing 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.pulsar.common.api.proto.PulsarApi.CommandPing 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.pulsar.common.api.proto.PulsarApi.CommandPing parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPing 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.pulsar.common.api.proto.PulsarApi.CommandPing prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPing, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandPingOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPing getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPing build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPing result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPing buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPing result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPing buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPing result = org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.RECYCLER.get(); |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandPing other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.getDefaultInstance()) return this; |
| 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 { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandPing) |
| } |
| |
| static { |
| defaultInstance = new CommandPing(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandPing) |
| } |
| |
| public interface CommandPongOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| } |
| public static final class CommandPong extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandPongOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandPong.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandPong> handle; |
| private CommandPong(io.netty.util.Recycler.Handle<CommandPong> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandPong> RECYCLER = new io.netty.util.Recycler<CommandPong>() { |
| protected CommandPong newObject(Handle<CommandPong> handle) { |
| return new CommandPong(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandPong(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandPong defaultInstance; |
| public static CommandPong getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandPong getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private void initFields() { |
| } |
| 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 { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| 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.pulsar.common.api.proto.PulsarApi.CommandPong parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPong parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPong parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPong parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPong parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPong parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPong 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.pulsar.common.api.proto.PulsarApi.CommandPong 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.pulsar.common.api.proto.PulsarApi.CommandPong parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandPong 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.pulsar.common.api.proto.PulsarApi.CommandPong prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPong, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandPongOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPong getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPong build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPong result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPong buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPong result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPong buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPong result = org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.RECYCLER.get(); |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandPong other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.getDefaultInstance()) return this; |
| 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 { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| } |
| } |
| } |
| |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandPong) |
| } |
| |
| static { |
| defaultInstance = new CommandPong(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandPong) |
| } |
| |
| public interface CommandConsumerStatsOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 request_id = 1; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // required uint64 consumer_id = 4; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| } |
| public static final class CommandConsumerStats extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandConsumerStatsOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandConsumerStats.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandConsumerStats> handle; |
| private CommandConsumerStats(io.netty.util.Recycler.Handle<CommandConsumerStats> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandConsumerStats> RECYCLER = new io.netty.util.Recycler<CommandConsumerStats>() { |
| protected CommandConsumerStats newObject(Handle<CommandConsumerStats> handle) { |
| return new CommandConsumerStats(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandConsumerStats(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandConsumerStats defaultInstance; |
| public static CommandConsumerStats getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandConsumerStats getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 request_id = 1; |
| public static final int REQUEST_ID_FIELD_NUMBER = 1; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // required uint64 consumer_id = 4; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 4; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| private void initFields() { |
| requestId_ = 0L; |
| consumerId_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(4, consumerId_); |
| } |
| } |
| |
| 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, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(4, consumerId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandConsumerStats parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats 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.pulsar.common.api.proto.PulsarApi.CommandConsumerStats 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.pulsar.common.api.proto.PulsarApi.CommandConsumerStats parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats 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.pulsar.common.api.proto.PulsarApi.CommandConsumerStats prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats result = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.consumerId_ = consumerId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.getDefaultInstance()) return this; |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000002; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 request_id = 1; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000001; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 consumer_id = 4; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000002; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandConsumerStats) |
| } |
| |
| static { |
| defaultInstance = new CommandConsumerStats(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandConsumerStats) |
| } |
| |
| public interface CommandConsumerStatsResponseOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 request_id = 1; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // optional .pulsar.proto.ServerError error_code = 2; |
| boolean hasErrorCode(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError getErrorCode(); |
| |
| // optional string error_message = 3; |
| boolean hasErrorMessage(); |
| String getErrorMessage(); |
| |
| // optional double msgRateOut = 4; |
| boolean hasMsgRateOut(); |
| double getMsgRateOut(); |
| |
| // optional double msgThroughputOut = 5; |
| boolean hasMsgThroughputOut(); |
| double getMsgThroughputOut(); |
| |
| // optional double msgRateRedeliver = 6; |
| boolean hasMsgRateRedeliver(); |
| double getMsgRateRedeliver(); |
| |
| // optional string consumerName = 7; |
| boolean hasConsumerName(); |
| String getConsumerName(); |
| |
| // optional uint64 availablePermits = 8; |
| boolean hasAvailablePermits(); |
| long getAvailablePermits(); |
| |
| // optional uint64 unackedMessages = 9; |
| boolean hasUnackedMessages(); |
| long getUnackedMessages(); |
| |
| // optional bool blockedConsumerOnUnackedMsgs = 10; |
| boolean hasBlockedConsumerOnUnackedMsgs(); |
| boolean getBlockedConsumerOnUnackedMsgs(); |
| |
| // optional string address = 11; |
| boolean hasAddress(); |
| String getAddress(); |
| |
| // optional string connectedSince = 12; |
| boolean hasConnectedSince(); |
| String getConnectedSince(); |
| |
| // optional string type = 13; |
| boolean hasType(); |
| String getType(); |
| |
| // optional double msgRateExpired = 14; |
| boolean hasMsgRateExpired(); |
| double getMsgRateExpired(); |
| |
| // optional uint64 msgBacklog = 15; |
| boolean hasMsgBacklog(); |
| long getMsgBacklog(); |
| } |
| public static final class CommandConsumerStatsResponse extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandConsumerStatsResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandConsumerStatsResponse.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandConsumerStatsResponse> handle; |
| private CommandConsumerStatsResponse(io.netty.util.Recycler.Handle<CommandConsumerStatsResponse> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandConsumerStatsResponse> RECYCLER = new io.netty.util.Recycler<CommandConsumerStatsResponse>() { |
| protected CommandConsumerStatsResponse newObject(Handle<CommandConsumerStatsResponse> handle) { |
| return new CommandConsumerStatsResponse(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandConsumerStatsResponse(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandConsumerStatsResponse defaultInstance; |
| public static CommandConsumerStatsResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandConsumerStatsResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 request_id = 1; |
| public static final int REQUEST_ID_FIELD_NUMBER = 1; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // optional .pulsar.proto.ServerError error_code = 2; |
| public static final int ERROR_CODE_FIELD_NUMBER = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError errorCode_; |
| public boolean hasErrorCode() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getErrorCode() { |
| return errorCode_; |
| } |
| |
| // optional string error_message = 3; |
| public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; |
| private java.lang.Object errorMessage_; |
| public boolean hasErrorMessage() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getErrorMessage() { |
| java.lang.Object ref = errorMessage_; |
| 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)) { |
| errorMessage_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getErrorMessageBytes() { |
| java.lang.Object ref = errorMessage_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| errorMessage_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional double msgRateOut = 4; |
| public static final int MSGRATEOUT_FIELD_NUMBER = 4; |
| private double msgRateOut_; |
| public boolean hasMsgRateOut() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public double getMsgRateOut() { |
| return msgRateOut_; |
| } |
| |
| // optional double msgThroughputOut = 5; |
| public static final int MSGTHROUGHPUTOUT_FIELD_NUMBER = 5; |
| private double msgThroughputOut_; |
| public boolean hasMsgThroughputOut() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public double getMsgThroughputOut() { |
| return msgThroughputOut_; |
| } |
| |
| // optional double msgRateRedeliver = 6; |
| public static final int MSGRATEREDELIVER_FIELD_NUMBER = 6; |
| private double msgRateRedeliver_; |
| public boolean hasMsgRateRedeliver() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public double getMsgRateRedeliver() { |
| return msgRateRedeliver_; |
| } |
| |
| // optional string consumerName = 7; |
| public static final int CONSUMERNAME_FIELD_NUMBER = 7; |
| private java.lang.Object consumerName_; |
| public boolean hasConsumerName() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public String getConsumerName() { |
| java.lang.Object ref = consumerName_; |
| 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)) { |
| consumerName_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getConsumerNameBytes() { |
| java.lang.Object ref = consumerName_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| consumerName_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional uint64 availablePermits = 8; |
| public static final int AVAILABLEPERMITS_FIELD_NUMBER = 8; |
| private long availablePermits_; |
| public boolean hasAvailablePermits() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public long getAvailablePermits() { |
| return availablePermits_; |
| } |
| |
| // optional uint64 unackedMessages = 9; |
| public static final int UNACKEDMESSAGES_FIELD_NUMBER = 9; |
| private long unackedMessages_; |
| public boolean hasUnackedMessages() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public long getUnackedMessages() { |
| return unackedMessages_; |
| } |
| |
| // optional bool blockedConsumerOnUnackedMsgs = 10; |
| public static final int BLOCKEDCONSUMERONUNACKEDMSGS_FIELD_NUMBER = 10; |
| private boolean blockedConsumerOnUnackedMsgs_; |
| public boolean hasBlockedConsumerOnUnackedMsgs() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public boolean getBlockedConsumerOnUnackedMsgs() { |
| return blockedConsumerOnUnackedMsgs_; |
| } |
| |
| // optional string address = 11; |
| public static final int ADDRESS_FIELD_NUMBER = 11; |
| private java.lang.Object address_; |
| public boolean hasAddress() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public String getAddress() { |
| java.lang.Object ref = address_; |
| 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)) { |
| address_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getAddressBytes() { |
| java.lang.Object ref = address_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| address_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string connectedSince = 12; |
| public static final int CONNECTEDSINCE_FIELD_NUMBER = 12; |
| private java.lang.Object connectedSince_; |
| public boolean hasConnectedSince() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public String getConnectedSince() { |
| java.lang.Object ref = connectedSince_; |
| 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)) { |
| connectedSince_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getConnectedSinceBytes() { |
| java.lang.Object ref = connectedSince_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| connectedSince_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string type = 13; |
| public static final int TYPE_FIELD_NUMBER = 13; |
| private java.lang.Object type_; |
| public boolean hasType() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| public String getType() { |
| java.lang.Object ref = type_; |
| 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)) { |
| type_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getTypeBytes() { |
| java.lang.Object ref = type_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| type_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional double msgRateExpired = 14; |
| public static final int MSGRATEEXPIRED_FIELD_NUMBER = 14; |
| private double msgRateExpired_; |
| public boolean hasMsgRateExpired() { |
| return ((bitField0_ & 0x00002000) == 0x00002000); |
| } |
| public double getMsgRateExpired() { |
| return msgRateExpired_; |
| } |
| |
| // optional uint64 msgBacklog = 15; |
| public static final int MSGBACKLOG_FIELD_NUMBER = 15; |
| private long msgBacklog_; |
| public boolean hasMsgBacklog() { |
| return ((bitField0_ & 0x00004000) == 0x00004000); |
| } |
| public long getMsgBacklog() { |
| return msgBacklog_; |
| } |
| |
| private void initFields() { |
| requestId_ = 0L; |
| errorCode_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| errorMessage_ = ""; |
| msgRateOut_ = 0D; |
| msgThroughputOut_ = 0D; |
| msgRateRedeliver_ = 0D; |
| consumerName_ = ""; |
| availablePermits_ = 0L; |
| unackedMessages_ = 0L; |
| blockedConsumerOnUnackedMsgs_ = false; |
| address_ = ""; |
| connectedSince_ = ""; |
| type_ = ""; |
| msgRateExpired_ = 0D; |
| msgBacklog_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeEnum(2, errorCode_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(3, getErrorMessageBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeDouble(4, msgRateOut_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeDouble(5, msgThroughputOut_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeDouble(6, msgRateRedeliver_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeBytes(7, getConsumerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeUInt64(8, availablePermits_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeUInt64(9, unackedMessages_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeBool(10, blockedConsumerOnUnackedMsgs_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeBytes(11, getAddressBytes()); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| output.writeBytes(12, getConnectedSinceBytes()); |
| } |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| output.writeBytes(13, getTypeBytes()); |
| } |
| if (((bitField0_ & 0x00002000) == 0x00002000)) { |
| output.writeDouble(14, msgRateExpired_); |
| } |
| if (((bitField0_ & 0x00004000) == 0x00004000)) { |
| output.writeUInt64(15, msgBacklog_); |
| } |
| } |
| |
| 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, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeEnumSize(2, errorCode_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, getErrorMessageBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeDoubleSize(4, msgRateOut_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeDoubleSize(5, msgThroughputOut_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeDoubleSize(6, msgRateRedeliver_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(7, getConsumerNameBytes()); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(8, availablePermits_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(9, unackedMessages_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(10, blockedConsumerOnUnackedMsgs_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(11, getAddressBytes()); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(12, getConnectedSinceBytes()); |
| } |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(13, getTypeBytes()); |
| } |
| if (((bitField0_ & 0x00002000) == 0x00002000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeDoubleSize(14, msgRateExpired_); |
| } |
| if (((bitField0_ & 0x00004000) == 0x00004000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(15, msgBacklog_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse 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.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse 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.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse 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.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| errorCode_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| errorMessage_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| msgRateOut_ = 0D; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| msgThroughputOut_ = 0D; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| msgRateRedeliver_ = 0D; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| consumerName_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| availablePermits_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| unackedMessages_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| blockedConsumerOnUnackedMsgs_ = false; |
| bitField0_ = (bitField0_ & ~0x00000200); |
| address_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000400); |
| connectedSince_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000800); |
| type_ = ""; |
| bitField0_ = (bitField0_ & ~0x00001000); |
| msgRateExpired_ = 0D; |
| bitField0_ = (bitField0_ & ~0x00002000); |
| msgBacklog_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00004000); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse result = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.errorCode_ = errorCode_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.errorMessage_ = errorMessage_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.msgRateOut_ = msgRateOut_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.msgThroughputOut_ = msgThroughputOut_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.msgRateRedeliver_ = msgRateRedeliver_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.consumerName_ = consumerName_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.availablePermits_ = availablePermits_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.unackedMessages_ = unackedMessages_; |
| if (((from_bitField0_ & 0x00000200) == 0x00000200)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| result.blockedConsumerOnUnackedMsgs_ = blockedConsumerOnUnackedMsgs_; |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| result.address_ = address_; |
| if (((from_bitField0_ & 0x00000800) == 0x00000800)) { |
| to_bitField0_ |= 0x00000800; |
| } |
| result.connectedSince_ = connectedSince_; |
| if (((from_bitField0_ & 0x00001000) == 0x00001000)) { |
| to_bitField0_ |= 0x00001000; |
| } |
| result.type_ = type_; |
| if (((from_bitField0_ & 0x00002000) == 0x00002000)) { |
| to_bitField0_ |= 0x00002000; |
| } |
| result.msgRateExpired_ = msgRateExpired_; |
| if (((from_bitField0_ & 0x00004000) == 0x00004000)) { |
| to_bitField0_ |= 0x00004000; |
| } |
| result.msgBacklog_ = msgBacklog_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.getDefaultInstance()) return this; |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasErrorCode()) { |
| setErrorCode(other.getErrorCode()); |
| } |
| if (other.hasErrorMessage()) { |
| setErrorMessage(other.getErrorMessage()); |
| } |
| if (other.hasMsgRateOut()) { |
| setMsgRateOut(other.getMsgRateOut()); |
| } |
| if (other.hasMsgThroughputOut()) { |
| setMsgThroughputOut(other.getMsgThroughputOut()); |
| } |
| if (other.hasMsgRateRedeliver()) { |
| setMsgRateRedeliver(other.getMsgRateRedeliver()); |
| } |
| if (other.hasConsumerName()) { |
| setConsumerName(other.getConsumerName()); |
| } |
| if (other.hasAvailablePermits()) { |
| setAvailablePermits(other.getAvailablePermits()); |
| } |
| if (other.hasUnackedMessages()) { |
| setUnackedMessages(other.getUnackedMessages()); |
| } |
| if (other.hasBlockedConsumerOnUnackedMsgs()) { |
| setBlockedConsumerOnUnackedMsgs(other.getBlockedConsumerOnUnackedMsgs()); |
| } |
| if (other.hasAddress()) { |
| setAddress(other.getAddress()); |
| } |
| if (other.hasConnectedSince()) { |
| setConnectedSince(other.getConnectedSince()); |
| } |
| if (other.hasType()) { |
| setType(other.getType()); |
| } |
| if (other.hasMsgRateExpired()) { |
| setMsgRateExpired(other.getMsgRateExpired()); |
| } |
| if (other.hasMsgBacklog()) { |
| setMsgBacklog(other.getMsgBacklog()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.ServerError value = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000002; |
| errorCode_ = value; |
| } |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000004; |
| errorMessage_ = input.readBytes(); |
| break; |
| } |
| case 33: { |
| bitField0_ |= 0x00000008; |
| msgRateOut_ = input.readDouble(); |
| break; |
| } |
| case 41: { |
| bitField0_ |= 0x00000010; |
| msgThroughputOut_ = input.readDouble(); |
| break; |
| } |
| case 49: { |
| bitField0_ |= 0x00000020; |
| msgRateRedeliver_ = input.readDouble(); |
| break; |
| } |
| case 58: { |
| bitField0_ |= 0x00000040; |
| consumerName_ = input.readBytes(); |
| break; |
| } |
| case 64: { |
| bitField0_ |= 0x00000080; |
| availablePermits_ = input.readUInt64(); |
| break; |
| } |
| case 72: { |
| bitField0_ |= 0x00000100; |
| unackedMessages_ = input.readUInt64(); |
| break; |
| } |
| case 80: { |
| bitField0_ |= 0x00000200; |
| blockedConsumerOnUnackedMsgs_ = input.readBool(); |
| break; |
| } |
| case 90: { |
| bitField0_ |= 0x00000400; |
| address_ = input.readBytes(); |
| break; |
| } |
| case 98: { |
| bitField0_ |= 0x00000800; |
| connectedSince_ = input.readBytes(); |
| break; |
| } |
| case 106: { |
| bitField0_ |= 0x00001000; |
| type_ = input.readBytes(); |
| break; |
| } |
| case 113: { |
| bitField0_ |= 0x00002000; |
| msgRateExpired_ = input.readDouble(); |
| break; |
| } |
| case 120: { |
| bitField0_ |= 0x00004000; |
| msgBacklog_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 request_id = 1; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000001; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.ServerError error_code = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.ServerError errorCode_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| public boolean hasErrorCode() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.ServerError getErrorCode() { |
| return errorCode_; |
| } |
| public Builder setErrorCode(org.apache.pulsar.common.api.proto.PulsarApi.ServerError value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| errorCode_ = value; |
| |
| return this; |
| } |
| public Builder clearErrorCode() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| errorCode_ = org.apache.pulsar.common.api.proto.PulsarApi.ServerError.UnknownError; |
| |
| return this; |
| } |
| |
| // optional string error_message = 3; |
| private java.lang.Object errorMessage_ = ""; |
| public boolean hasErrorMessage() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public String getErrorMessage() { |
| java.lang.Object ref = errorMessage_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| errorMessage_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setErrorMessage(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| errorMessage_ = value; |
| |
| return this; |
| } |
| public Builder clearErrorMessage() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| errorMessage_ = getDefaultInstance().getErrorMessage(); |
| |
| return this; |
| } |
| void setErrorMessage(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000004; |
| errorMessage_ = value; |
| |
| } |
| |
| // optional double msgRateOut = 4; |
| private double msgRateOut_ ; |
| public boolean hasMsgRateOut() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public double getMsgRateOut() { |
| return msgRateOut_; |
| } |
| public Builder setMsgRateOut(double value) { |
| bitField0_ |= 0x00000008; |
| msgRateOut_ = value; |
| |
| return this; |
| } |
| public Builder clearMsgRateOut() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| msgRateOut_ = 0D; |
| |
| return this; |
| } |
| |
| // optional double msgThroughputOut = 5; |
| private double msgThroughputOut_ ; |
| public boolean hasMsgThroughputOut() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public double getMsgThroughputOut() { |
| return msgThroughputOut_; |
| } |
| public Builder setMsgThroughputOut(double value) { |
| bitField0_ |= 0x00000010; |
| msgThroughputOut_ = value; |
| |
| return this; |
| } |
| public Builder clearMsgThroughputOut() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| msgThroughputOut_ = 0D; |
| |
| return this; |
| } |
| |
| // optional double msgRateRedeliver = 6; |
| private double msgRateRedeliver_ ; |
| public boolean hasMsgRateRedeliver() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public double getMsgRateRedeliver() { |
| return msgRateRedeliver_; |
| } |
| public Builder setMsgRateRedeliver(double value) { |
| bitField0_ |= 0x00000020; |
| msgRateRedeliver_ = value; |
| |
| return this; |
| } |
| public Builder clearMsgRateRedeliver() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| msgRateRedeliver_ = 0D; |
| |
| return this; |
| } |
| |
| // optional string consumerName = 7; |
| private java.lang.Object consumerName_ = ""; |
| public boolean hasConsumerName() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public String getConsumerName() { |
| java.lang.Object ref = consumerName_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| consumerName_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setConsumerName(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000040; |
| consumerName_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerName() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| consumerName_ = getDefaultInstance().getConsumerName(); |
| |
| return this; |
| } |
| void setConsumerName(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000040; |
| consumerName_ = value; |
| |
| } |
| |
| // optional uint64 availablePermits = 8; |
| private long availablePermits_ ; |
| public boolean hasAvailablePermits() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public long getAvailablePermits() { |
| return availablePermits_; |
| } |
| public Builder setAvailablePermits(long value) { |
| bitField0_ |= 0x00000080; |
| availablePermits_ = value; |
| |
| return this; |
| } |
| public Builder clearAvailablePermits() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| availablePermits_ = 0L; |
| |
| return this; |
| } |
| |
| // optional uint64 unackedMessages = 9; |
| private long unackedMessages_ ; |
| public boolean hasUnackedMessages() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public long getUnackedMessages() { |
| return unackedMessages_; |
| } |
| public Builder setUnackedMessages(long value) { |
| bitField0_ |= 0x00000100; |
| unackedMessages_ = value; |
| |
| return this; |
| } |
| public Builder clearUnackedMessages() { |
| bitField0_ = (bitField0_ & ~0x00000100); |
| unackedMessages_ = 0L; |
| |
| return this; |
| } |
| |
| // optional bool blockedConsumerOnUnackedMsgs = 10; |
| private boolean blockedConsumerOnUnackedMsgs_ ; |
| public boolean hasBlockedConsumerOnUnackedMsgs() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public boolean getBlockedConsumerOnUnackedMsgs() { |
| return blockedConsumerOnUnackedMsgs_; |
| } |
| public Builder setBlockedConsumerOnUnackedMsgs(boolean value) { |
| bitField0_ |= 0x00000200; |
| blockedConsumerOnUnackedMsgs_ = value; |
| |
| return this; |
| } |
| public Builder clearBlockedConsumerOnUnackedMsgs() { |
| bitField0_ = (bitField0_ & ~0x00000200); |
| blockedConsumerOnUnackedMsgs_ = false; |
| |
| return this; |
| } |
| |
| // optional string address = 11; |
| private java.lang.Object address_ = ""; |
| public boolean hasAddress() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public String getAddress() { |
| java.lang.Object ref = address_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| address_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setAddress(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000400; |
| address_ = value; |
| |
| return this; |
| } |
| public Builder clearAddress() { |
| bitField0_ = (bitField0_ & ~0x00000400); |
| address_ = getDefaultInstance().getAddress(); |
| |
| return this; |
| } |
| void setAddress(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000400; |
| address_ = value; |
| |
| } |
| |
| // optional string connectedSince = 12; |
| private java.lang.Object connectedSince_ = ""; |
| public boolean hasConnectedSince() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public String getConnectedSince() { |
| java.lang.Object ref = connectedSince_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| connectedSince_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setConnectedSince(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000800; |
| connectedSince_ = value; |
| |
| return this; |
| } |
| public Builder clearConnectedSince() { |
| bitField0_ = (bitField0_ & ~0x00000800); |
| connectedSince_ = getDefaultInstance().getConnectedSince(); |
| |
| return this; |
| } |
| void setConnectedSince(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000800; |
| connectedSince_ = value; |
| |
| } |
| |
| // optional string type = 13; |
| private java.lang.Object type_ = ""; |
| public boolean hasType() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| public String getType() { |
| java.lang.Object ref = type_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| type_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setType(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00001000; |
| type_ = value; |
| |
| return this; |
| } |
| public Builder clearType() { |
| bitField0_ = (bitField0_ & ~0x00001000); |
| type_ = getDefaultInstance().getType(); |
| |
| return this; |
| } |
| void setType(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00001000; |
| type_ = value; |
| |
| } |
| |
| // optional double msgRateExpired = 14; |
| private double msgRateExpired_ ; |
| public boolean hasMsgRateExpired() { |
| return ((bitField0_ & 0x00002000) == 0x00002000); |
| } |
| public double getMsgRateExpired() { |
| return msgRateExpired_; |
| } |
| public Builder setMsgRateExpired(double value) { |
| bitField0_ |= 0x00002000; |
| msgRateExpired_ = value; |
| |
| return this; |
| } |
| public Builder clearMsgRateExpired() { |
| bitField0_ = (bitField0_ & ~0x00002000); |
| msgRateExpired_ = 0D; |
| |
| return this; |
| } |
| |
| // optional uint64 msgBacklog = 15; |
| private long msgBacklog_ ; |
| public boolean hasMsgBacklog() { |
| return ((bitField0_ & 0x00004000) == 0x00004000); |
| } |
| public long getMsgBacklog() { |
| return msgBacklog_; |
| } |
| public Builder setMsgBacklog(long value) { |
| bitField0_ |= 0x00004000; |
| msgBacklog_ = value; |
| |
| return this; |
| } |
| public Builder clearMsgBacklog() { |
| bitField0_ = (bitField0_ & ~0x00004000); |
| msgBacklog_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandConsumerStatsResponse) |
| } |
| |
| static { |
| defaultInstance = new CommandConsumerStatsResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandConsumerStatsResponse) |
| } |
| |
| public interface CommandGetLastMessageIdOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 consumer_id = 1; |
| boolean hasConsumerId(); |
| long getConsumerId(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| } |
| public static final class CommandGetLastMessageId extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandGetLastMessageIdOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandGetLastMessageId.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandGetLastMessageId> handle; |
| private CommandGetLastMessageId(io.netty.util.Recycler.Handle<CommandGetLastMessageId> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandGetLastMessageId> RECYCLER = new io.netty.util.Recycler<CommandGetLastMessageId>() { |
| protected CommandGetLastMessageId newObject(Handle<CommandGetLastMessageId> handle) { |
| return new CommandGetLastMessageId(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandGetLastMessageId(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandGetLastMessageId defaultInstance; |
| public static CommandGetLastMessageId getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandGetLastMessageId getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 consumer_id = 1; |
| public static final int CONSUMER_ID_FIELD_NUMBER = 1; |
| private long consumerId_; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| private void initFields() { |
| consumerId_ = 0L; |
| requestId_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasConsumerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| } |
| |
| 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, consumerId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId 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.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId 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.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId 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.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| consumerId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId result = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.consumerId_ = consumerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.getDefaultInstance()) return this; |
| if (other.hasConsumerId()) { |
| setConsumerId(other.getConsumerId()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasConsumerId()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| consumerId_ = input.readUInt64(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 consumer_id = 1; |
| private long consumerId_ ; |
| public boolean hasConsumerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getConsumerId() { |
| return consumerId_; |
| } |
| public Builder setConsumerId(long value) { |
| bitField0_ |= 0x00000001; |
| consumerId_ = value; |
| |
| return this; |
| } |
| public Builder clearConsumerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| consumerId_ = 0L; |
| |
| return this; |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandGetLastMessageId) |
| } |
| |
| static { |
| defaultInstance = new CommandGetLastMessageId(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandGetLastMessageId) |
| } |
| |
| public interface CommandGetLastMessageIdResponseOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required .pulsar.proto.MessageIdData last_message_id = 1; |
| boolean hasLastMessageId(); |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getLastMessageId(); |
| |
| // required uint64 request_id = 2; |
| boolean hasRequestId(); |
| long getRequestId(); |
| } |
| public static final class CommandGetLastMessageIdResponse extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandGetLastMessageIdResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandGetLastMessageIdResponse.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandGetLastMessageIdResponse> handle; |
| private CommandGetLastMessageIdResponse(io.netty.util.Recycler.Handle<CommandGetLastMessageIdResponse> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandGetLastMessageIdResponse> RECYCLER = new io.netty.util.Recycler<CommandGetLastMessageIdResponse>() { |
| protected CommandGetLastMessageIdResponse newObject(Handle<CommandGetLastMessageIdResponse> handle) { |
| return new CommandGetLastMessageIdResponse(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandGetLastMessageIdResponse(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandGetLastMessageIdResponse defaultInstance; |
| public static CommandGetLastMessageIdResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandGetLastMessageIdResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required .pulsar.proto.MessageIdData last_message_id = 1; |
| public static final int LAST_MESSAGE_ID_FIELD_NUMBER = 1; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData lastMessageId_; |
| public boolean hasLastMessageId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getLastMessageId() { |
| return lastMessageId_; |
| } |
| |
| // required uint64 request_id = 2; |
| public static final int REQUEST_ID_FIELD_NUMBER = 2; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| private void initFields() { |
| lastMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| requestId_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasLastMessageId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!getLastMessageId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(1, lastMessageId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeUInt64(2, requestId_); |
| } |
| } |
| |
| 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, lastMessageId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt64Size(2, requestId_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse 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.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse 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.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse 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.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| lastMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse result = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.lastMessageId_ = lastMessageId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestId_ = requestId_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.getDefaultInstance()) return this; |
| if (other.hasLastMessageId()) { |
| mergeLastMessageId(other.getLastMessageId()); |
| } |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasLastMessageId()) { |
| |
| return false; |
| } |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| if (!getLastMessageId().isInitialized()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(); |
| if (hasLastMessageId()) { |
| subBuilder.mergeFrom(getLastMessageId()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setLastMessageId(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required .pulsar.proto.MessageIdData last_message_id = 1; |
| private org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData lastMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| public boolean hasLastMessageId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData getLastMessageId() { |
| return lastMessageId_; |
| } |
| public Builder setLastMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| lastMessageId_ = value; |
| |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder setLastMessageId( |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.Builder builderForValue) { |
| lastMessageId_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergeLastMessageId(org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData value) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| lastMessageId_ != org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance()) { |
| lastMessageId_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.newBuilder(lastMessageId_).mergeFrom(value).buildPartial(); |
| } else { |
| lastMessageId_ = value; |
| } |
| |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearLastMessageId() { |
| lastMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.MessageIdData.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| // required uint64 request_id = 2; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000002; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandGetLastMessageIdResponse) |
| } |
| |
| static { |
| defaultInstance = new CommandGetLastMessageIdResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandGetLastMessageIdResponse) |
| } |
| |
| public interface CommandGetTopicsOfNamespaceOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 request_id = 1; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // required string namespace = 2; |
| boolean hasNamespace(); |
| String getNamespace(); |
| } |
| public static final class CommandGetTopicsOfNamespace extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandGetTopicsOfNamespaceOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandGetTopicsOfNamespace.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandGetTopicsOfNamespace> handle; |
| private CommandGetTopicsOfNamespace(io.netty.util.Recycler.Handle<CommandGetTopicsOfNamespace> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandGetTopicsOfNamespace> RECYCLER = new io.netty.util.Recycler<CommandGetTopicsOfNamespace>() { |
| protected CommandGetTopicsOfNamespace newObject(Handle<CommandGetTopicsOfNamespace> handle) { |
| return new CommandGetTopicsOfNamespace(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandGetTopicsOfNamespace(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandGetTopicsOfNamespace defaultInstance; |
| public static CommandGetTopicsOfNamespace getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandGetTopicsOfNamespace getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 request_id = 1; |
| public static final int REQUEST_ID_FIELD_NUMBER = 1; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // required string namespace = 2; |
| public static final int NAMESPACE_FIELD_NUMBER = 2; |
| private java.lang.Object namespace_; |
| public boolean hasNamespace() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getNamespace() { |
| java.lang.Object ref = namespace_; |
| 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)) { |
| namespace_ = s; |
| } |
| return s; |
| } |
| } |
| private com.google.protobuf.ByteString getNamespaceBytes() { |
| java.lang.Object ref = namespace_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8((String) ref); |
| namespace_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| requestId_ = 0L; |
| namespace_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasNamespace()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getNamespaceBytes()); |
| } |
| } |
| |
| 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, requestId_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getNamespaceBytes()); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace 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.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace 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.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace 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.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| namespace_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace result = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.requestId_ = requestId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.namespace_ = namespace_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.getDefaultInstance()) return this; |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (other.hasNamespace()) { |
| setNamespace(other.getNamespace()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| if (!hasNamespace()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| namespace_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 request_id = 1; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000001; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // required string namespace = 2; |
| private java.lang.Object namespace_ = ""; |
| public boolean hasNamespace() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public String getNamespace() { |
| java.lang.Object ref = namespace_; |
| if (!(ref instanceof String)) { |
| String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); |
| namespace_ = s; |
| return s; |
| } else { |
| return (String) ref; |
| } |
| } |
| public Builder setNamespace(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| namespace_ = value; |
| |
| return this; |
| } |
| public Builder clearNamespace() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| namespace_ = getDefaultInstance().getNamespace(); |
| |
| return this; |
| } |
| void setNamespace(com.google.protobuf.ByteString value) { |
| bitField0_ |= 0x00000002; |
| namespace_ = value; |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandGetTopicsOfNamespace) |
| } |
| |
| static { |
| defaultInstance = new CommandGetTopicsOfNamespace(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandGetTopicsOfNamespace) |
| } |
| |
| public interface CommandGetTopicsOfNamespaceResponseOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required uint64 request_id = 1; |
| boolean hasRequestId(); |
| long getRequestId(); |
| |
| // repeated string topics = 2; |
| java.util.List<String> getTopicsList(); |
| int getTopicsCount(); |
| String getTopics(int index); |
| } |
| public static final class CommandGetTopicsOfNamespaceResponse extends |
| com.google.protobuf.GeneratedMessageLite |
| implements CommandGetTopicsOfNamespaceResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use CommandGetTopicsOfNamespaceResponse.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<CommandGetTopicsOfNamespaceResponse> handle; |
| private CommandGetTopicsOfNamespaceResponse(io.netty.util.Recycler.Handle<CommandGetTopicsOfNamespaceResponse> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<CommandGetTopicsOfNamespaceResponse> RECYCLER = new io.netty.util.Recycler<CommandGetTopicsOfNamespaceResponse>() { |
| protected CommandGetTopicsOfNamespaceResponse newObject(Handle<CommandGetTopicsOfNamespaceResponse> handle) { |
| return new CommandGetTopicsOfNamespaceResponse(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private CommandGetTopicsOfNamespaceResponse(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final CommandGetTopicsOfNamespaceResponse defaultInstance; |
| public static CommandGetTopicsOfNamespaceResponse getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public CommandGetTopicsOfNamespaceResponse getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private int bitField0_; |
| // required uint64 request_id = 1; |
| public static final int REQUEST_ID_FIELD_NUMBER = 1; |
| private long requestId_; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| |
| // repeated string topics = 2; |
| public static final int TOPICS_FIELD_NUMBER = 2; |
| private com.google.protobuf.LazyStringList topics_; |
| public java.util.List<String> |
| getTopicsList() { |
| return topics_; |
| } |
| public int getTopicsCount() { |
| return topics_.size(); |
| } |
| public String getTopics(int index) { |
| return topics_.get(index); |
| } |
| |
| private void initFields() { |
| requestId_ = 0L; |
| topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequestId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeUInt64(1, requestId_); |
| } |
| for (int i = 0; i < topics_.size(); i++) { |
| output.writeBytes(2, topics_.getByteString(i)); |
| } |
| } |
| |
| 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, requestId_); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < topics_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(topics_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getTopicsList().size(); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse 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.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse 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.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse 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.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponseOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| requestId_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse result = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.requestId_ = requestId_; |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| topics_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| topics_); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } |
| result.topics_ = topics_; |
| result.bitField0_ = to_bitField0_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance()) return this; |
| if (other.hasRequestId()) { |
| setRequestId(other.getRequestId()); |
| } |
| if (!other.topics_.isEmpty()) { |
| if (topics_.isEmpty()) { |
| topics_ = other.topics_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| ensureTopicsIsMutable(); |
| topics_.addAll(other.topics_); |
| } |
| |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequestId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| requestId_ = input.readUInt64(); |
| break; |
| } |
| case 18: { |
| ensureTopicsIsMutable(); |
| topics_.add(input.readBytes()); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| |
| // required uint64 request_id = 1; |
| private long requestId_ ; |
| public boolean hasRequestId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public long getRequestId() { |
| return requestId_; |
| } |
| public Builder setRequestId(long value) { |
| bitField0_ |= 0x00000001; |
| requestId_ = value; |
| |
| return this; |
| } |
| public Builder clearRequestId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestId_ = 0L; |
| |
| return this; |
| } |
| |
| // repeated string topics = 2; |
| private com.google.protobuf.LazyStringList topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureTopicsIsMutable() { |
| if (!((bitField0_ & 0x00000002) == 0x00000002)) { |
| topics_ = new com.google.protobuf.LazyStringArrayList(topics_); |
| bitField0_ |= 0x00000002; |
| } |
| } |
| public java.util.List<String> |
| getTopicsList() { |
| return java.util.Collections.unmodifiableList(topics_); |
| } |
| public int getTopicsCount() { |
| return topics_.size(); |
| } |
| public String getTopics(int index) { |
| return topics_.get(index); |
| } |
| public Builder setTopics( |
| int index, String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTopicsIsMutable(); |
| topics_.set(index, value); |
| |
| return this; |
| } |
| public Builder addTopics(String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureTopicsIsMutable(); |
| topics_.add(value); |
| |
| return this; |
| } |
| public Builder addAllTopics( |
| java.lang.Iterable<String> values) { |
| ensureTopicsIsMutable(); |
| super.addAll(values, topics_); |
| |
| return this; |
| } |
| public Builder clearTopics() { |
| topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| |
| return this; |
| } |
| void addTopics(com.google.protobuf.ByteString value) { |
| ensureTopicsIsMutable(); |
| topics_.add(value); |
| |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.CommandGetTopicsOfNamespaceResponse) |
| } |
| |
| static { |
| defaultInstance = new CommandGetTopicsOfNamespaceResponse(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.CommandGetTopicsOfNamespaceResponse) |
| } |
| |
| public interface BaseCommandOrBuilder |
| extends com.google.protobuf.MessageLiteOrBuilder { |
| |
| // required .pulsar.proto.BaseCommand.Type type = 1; |
| boolean hasType(); |
| org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type getType(); |
| |
| // optional .pulsar.proto.CommandConnect connect = 2; |
| boolean hasConnect(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect getConnect(); |
| |
| // optional .pulsar.proto.CommandConnected connected = 3; |
| boolean hasConnected(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected getConnected(); |
| |
| // optional .pulsar.proto.CommandSubscribe subscribe = 4; |
| boolean hasSubscribe(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe getSubscribe(); |
| |
| // optional .pulsar.proto.CommandProducer producer = 5; |
| boolean hasProducer(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer getProducer(); |
| |
| // optional .pulsar.proto.CommandSend send = 6; |
| boolean hasSend(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSend getSend(); |
| |
| // optional .pulsar.proto.CommandSendReceipt send_receipt = 7; |
| boolean hasSendReceipt(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt getSendReceipt(); |
| |
| // optional .pulsar.proto.CommandSendError send_error = 8; |
| boolean hasSendError(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError getSendError(); |
| |
| // optional .pulsar.proto.CommandMessage message = 9; |
| boolean hasMessage(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage getMessage(); |
| |
| // optional .pulsar.proto.CommandAck ack = 10; |
| boolean hasAck(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck getAck(); |
| |
| // optional .pulsar.proto.CommandFlow flow = 11; |
| boolean hasFlow(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow getFlow(); |
| |
| // optional .pulsar.proto.CommandUnsubscribe unsubscribe = 12; |
| boolean hasUnsubscribe(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe getUnsubscribe(); |
| |
| // optional .pulsar.proto.CommandSuccess success = 13; |
| boolean hasSuccess(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess getSuccess(); |
| |
| // optional .pulsar.proto.CommandError error = 14; |
| boolean hasError(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandError getError(); |
| |
| // optional .pulsar.proto.CommandCloseProducer close_producer = 15; |
| boolean hasCloseProducer(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer getCloseProducer(); |
| |
| // optional .pulsar.proto.CommandCloseConsumer close_consumer = 16; |
| boolean hasCloseConsumer(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer getCloseConsumer(); |
| |
| // optional .pulsar.proto.CommandProducerSuccess producer_success = 17; |
| boolean hasProducerSuccess(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess getProducerSuccess(); |
| |
| // optional .pulsar.proto.CommandPing ping = 18; |
| boolean hasPing(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPing getPing(); |
| |
| // optional .pulsar.proto.CommandPong pong = 19; |
| boolean hasPong(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPong getPong(); |
| |
| // optional .pulsar.proto.CommandRedeliverUnacknowledgedMessages redeliverUnacknowledgedMessages = 20; |
| boolean hasRedeliverUnacknowledgedMessages(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages getRedeliverUnacknowledgedMessages(); |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadata partitionMetadata = 21; |
| boolean hasPartitionMetadata(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata getPartitionMetadata(); |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadataResponse partitionMetadataResponse = 22; |
| boolean hasPartitionMetadataResponse(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse getPartitionMetadataResponse(); |
| |
| // optional .pulsar.proto.CommandLookupTopic lookupTopic = 23; |
| boolean hasLookupTopic(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic getLookupTopic(); |
| |
| // optional .pulsar.proto.CommandLookupTopicResponse lookupTopicResponse = 24; |
| boolean hasLookupTopicResponse(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse getLookupTopicResponse(); |
| |
| // optional .pulsar.proto.CommandConsumerStats consumerStats = 25; |
| boolean hasConsumerStats(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats getConsumerStats(); |
| |
| // optional .pulsar.proto.CommandConsumerStatsResponse consumerStatsResponse = 26; |
| boolean hasConsumerStatsResponse(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse getConsumerStatsResponse(); |
| |
| // optional .pulsar.proto.CommandReachedEndOfTopic reachedEndOfTopic = 27; |
| boolean hasReachedEndOfTopic(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic getReachedEndOfTopic(); |
| |
| // optional .pulsar.proto.CommandSeek seek = 28; |
| boolean hasSeek(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek getSeek(); |
| |
| // optional .pulsar.proto.CommandGetLastMessageId getLastMessageId = 29; |
| boolean hasGetLastMessageId(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId getGetLastMessageId(); |
| |
| // optional .pulsar.proto.CommandGetLastMessageIdResponse getLastMessageIdResponse = 30; |
| boolean hasGetLastMessageIdResponse(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse getGetLastMessageIdResponse(); |
| |
| // optional .pulsar.proto.CommandActiveConsumerChange active_consumer_change = 31; |
| boolean hasActiveConsumerChange(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange getActiveConsumerChange(); |
| |
| // optional .pulsar.proto.CommandGetTopicsOfNamespace getTopicsOfNamespace = 32; |
| boolean hasGetTopicsOfNamespace(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace getGetTopicsOfNamespace(); |
| |
| // optional .pulsar.proto.CommandGetTopicsOfNamespaceResponse getTopicsOfNamespaceResponse = 33; |
| boolean hasGetTopicsOfNamespaceResponse(); |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse getGetTopicsOfNamespaceResponse(); |
| } |
| public static final class BaseCommand extends |
| com.google.protobuf.GeneratedMessageLite |
| implements BaseCommandOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream.ByteBufGeneratedMessage { |
| // Use BaseCommand.newBuilder() to construct. |
| private final io.netty.util.Recycler.Handle<BaseCommand> handle; |
| private BaseCommand(io.netty.util.Recycler.Handle<BaseCommand> handle) { |
| this.handle = handle; |
| } |
| |
| private static final io.netty.util.Recycler<BaseCommand> RECYCLER = new io.netty.util.Recycler<BaseCommand>() { |
| protected BaseCommand newObject(Handle<BaseCommand> handle) { |
| return new BaseCommand(handle); |
| } |
| }; |
| |
| public void recycle() { |
| this.initFields(); |
| this.memoizedIsInitialized = -1; |
| this.bitField0_ = 0; |
| this.bitField1_ = 0; |
| this.memoizedSerializedSize = -1; |
| handle.recycle(this); |
| } |
| |
| private BaseCommand(boolean noInit) { |
| this.handle = null; |
| } |
| |
| private static final BaseCommand defaultInstance; |
| public static BaseCommand getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public BaseCommand getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| public enum Type |
| implements com.google.protobuf.Internal.EnumLite { |
| CONNECT(0, 2), |
| CONNECTED(1, 3), |
| SUBSCRIBE(2, 4), |
| PRODUCER(3, 5), |
| SEND(4, 6), |
| SEND_RECEIPT(5, 7), |
| SEND_ERROR(6, 8), |
| MESSAGE(7, 9), |
| ACK(8, 10), |
| FLOW(9, 11), |
| UNSUBSCRIBE(10, 12), |
| SUCCESS(11, 13), |
| ERROR(12, 14), |
| CLOSE_PRODUCER(13, 15), |
| CLOSE_CONSUMER(14, 16), |
| PRODUCER_SUCCESS(15, 17), |
| PING(16, 18), |
| PONG(17, 19), |
| REDELIVER_UNACKNOWLEDGED_MESSAGES(18, 20), |
| PARTITIONED_METADATA(19, 21), |
| PARTITIONED_METADATA_RESPONSE(20, 22), |
| LOOKUP(21, 23), |
| LOOKUP_RESPONSE(22, 24), |
| CONSUMER_STATS(23, 25), |
| CONSUMER_STATS_RESPONSE(24, 26), |
| REACHED_END_OF_TOPIC(25, 27), |
| SEEK(26, 28), |
| GET_LAST_MESSAGE_ID(27, 29), |
| GET_LAST_MESSAGE_ID_RESPONSE(28, 30), |
| ACTIVE_CONSUMER_CHANGE(29, 31), |
| GET_TOPICS_OF_NAMESPACE(30, 32), |
| GET_TOPICS_OF_NAMESPACE_RESPONSE(31, 33), |
| ; |
| |
| public static final int CONNECT_VALUE = 2; |
| public static final int CONNECTED_VALUE = 3; |
| public static final int SUBSCRIBE_VALUE = 4; |
| public static final int PRODUCER_VALUE = 5; |
| public static final int SEND_VALUE = 6; |
| public static final int SEND_RECEIPT_VALUE = 7; |
| public static final int SEND_ERROR_VALUE = 8; |
| public static final int MESSAGE_VALUE = 9; |
| public static final int ACK_VALUE = 10; |
| public static final int FLOW_VALUE = 11; |
| public static final int UNSUBSCRIBE_VALUE = 12; |
| public static final int SUCCESS_VALUE = 13; |
| public static final int ERROR_VALUE = 14; |
| public static final int CLOSE_PRODUCER_VALUE = 15; |
| public static final int CLOSE_CONSUMER_VALUE = 16; |
| public static final int PRODUCER_SUCCESS_VALUE = 17; |
| public static final int PING_VALUE = 18; |
| public static final int PONG_VALUE = 19; |
| public static final int REDELIVER_UNACKNOWLEDGED_MESSAGES_VALUE = 20; |
| public static final int PARTITIONED_METADATA_VALUE = 21; |
| public static final int PARTITIONED_METADATA_RESPONSE_VALUE = 22; |
| public static final int LOOKUP_VALUE = 23; |
| public static final int LOOKUP_RESPONSE_VALUE = 24; |
| public static final int CONSUMER_STATS_VALUE = 25; |
| public static final int CONSUMER_STATS_RESPONSE_VALUE = 26; |
| public static final int REACHED_END_OF_TOPIC_VALUE = 27; |
| public static final int SEEK_VALUE = 28; |
| public static final int GET_LAST_MESSAGE_ID_VALUE = 29; |
| public static final int GET_LAST_MESSAGE_ID_RESPONSE_VALUE = 30; |
| public static final int ACTIVE_CONSUMER_CHANGE_VALUE = 31; |
| public static final int GET_TOPICS_OF_NAMESPACE_VALUE = 32; |
| public static final int GET_TOPICS_OF_NAMESPACE_RESPONSE_VALUE = 33; |
| |
| |
| public final int getNumber() { return value; } |
| |
| public static Type valueOf(int value) { |
| switch (value) { |
| case 2: return CONNECT; |
| case 3: return CONNECTED; |
| case 4: return SUBSCRIBE; |
| case 5: return PRODUCER; |
| case 6: return SEND; |
| case 7: return SEND_RECEIPT; |
| case 8: return SEND_ERROR; |
| case 9: return MESSAGE; |
| case 10: return ACK; |
| case 11: return FLOW; |
| case 12: return UNSUBSCRIBE; |
| case 13: return SUCCESS; |
| case 14: return ERROR; |
| case 15: return CLOSE_PRODUCER; |
| case 16: return CLOSE_CONSUMER; |
| case 17: return PRODUCER_SUCCESS; |
| case 18: return PING; |
| case 19: return PONG; |
| case 20: return REDELIVER_UNACKNOWLEDGED_MESSAGES; |
| case 21: return PARTITIONED_METADATA; |
| case 22: return PARTITIONED_METADATA_RESPONSE; |
| case 23: return LOOKUP; |
| case 24: return LOOKUP_RESPONSE; |
| case 25: return CONSUMER_STATS; |
| case 26: return CONSUMER_STATS_RESPONSE; |
| case 27: return REACHED_END_OF_TOPIC; |
| case 28: return SEEK; |
| case 29: return GET_LAST_MESSAGE_ID; |
| case 30: return GET_LAST_MESSAGE_ID_RESPONSE; |
| case 31: return ACTIVE_CONSUMER_CHANGE; |
| case 32: return GET_TOPICS_OF_NAMESPACE; |
| case 33: return GET_TOPICS_OF_NAMESPACE_RESPONSE; |
| default: return null; |
| } |
| } |
| |
| public static com.google.protobuf.Internal.EnumLiteMap<Type> |
| internalGetValueMap() { |
| return internalValueMap; |
| } |
| private static com.google.protobuf.Internal.EnumLiteMap<Type> |
| internalValueMap = |
| new com.google.protobuf.Internal.EnumLiteMap<Type>() { |
| public Type findValueByNumber(int number) { |
| return Type.valueOf(number); |
| } |
| }; |
| |
| private final int value; |
| |
| private Type(int index, int value) { |
| this.value = value; |
| } |
| |
| // @@protoc_insertion_point(enum_scope:pulsar.proto.BaseCommand.Type) |
| } |
| |
| private int bitField0_; |
| private int bitField1_; |
| // required .pulsar.proto.BaseCommand.Type type = 1; |
| public static final int TYPE_FIELD_NUMBER = 1; |
| private org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type type_; |
| public boolean hasType() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type getType() { |
| return type_; |
| } |
| |
| // optional .pulsar.proto.CommandConnect connect = 2; |
| public static final int CONNECT_FIELD_NUMBER = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect connect_; |
| public boolean hasConnect() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect getConnect() { |
| return connect_; |
| } |
| |
| // optional .pulsar.proto.CommandConnected connected = 3; |
| public static final int CONNECTED_FIELD_NUMBER = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected connected_; |
| public boolean hasConnected() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected getConnected() { |
| return connected_; |
| } |
| |
| // optional .pulsar.proto.CommandSubscribe subscribe = 4; |
| public static final int SUBSCRIBE_FIELD_NUMBER = 4; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe subscribe_; |
| public boolean hasSubscribe() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe getSubscribe() { |
| return subscribe_; |
| } |
| |
| // optional .pulsar.proto.CommandProducer producer = 5; |
| public static final int PRODUCER_FIELD_NUMBER = 5; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer producer_; |
| public boolean hasProducer() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer getProducer() { |
| return producer_; |
| } |
| |
| // optional .pulsar.proto.CommandSend send = 6; |
| public static final int SEND_FIELD_NUMBER = 6; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSend send_; |
| public boolean hasSend() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSend getSend() { |
| return send_; |
| } |
| |
| // optional .pulsar.proto.CommandSendReceipt send_receipt = 7; |
| public static final int SEND_RECEIPT_FIELD_NUMBER = 7; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt sendReceipt_; |
| public boolean hasSendReceipt() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt getSendReceipt() { |
| return sendReceipt_; |
| } |
| |
| // optional .pulsar.proto.CommandSendError send_error = 8; |
| public static final int SEND_ERROR_FIELD_NUMBER = 8; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError sendError_; |
| public boolean hasSendError() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError getSendError() { |
| return sendError_; |
| } |
| |
| // optional .pulsar.proto.CommandMessage message = 9; |
| public static final int MESSAGE_FIELD_NUMBER = 9; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage message_; |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage getMessage() { |
| return message_; |
| } |
| |
| // optional .pulsar.proto.CommandAck ack = 10; |
| public static final int ACK_FIELD_NUMBER = 10; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandAck ack_; |
| public boolean hasAck() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck getAck() { |
| return ack_; |
| } |
| |
| // optional .pulsar.proto.CommandFlow flow = 11; |
| public static final int FLOW_FIELD_NUMBER = 11; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow flow_; |
| public boolean hasFlow() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow getFlow() { |
| return flow_; |
| } |
| |
| // optional .pulsar.proto.CommandUnsubscribe unsubscribe = 12; |
| public static final int UNSUBSCRIBE_FIELD_NUMBER = 12; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe unsubscribe_; |
| public boolean hasUnsubscribe() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe getUnsubscribe() { |
| return unsubscribe_; |
| } |
| |
| // optional .pulsar.proto.CommandSuccess success = 13; |
| public static final int SUCCESS_FIELD_NUMBER = 13; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess success_; |
| public boolean hasSuccess() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess getSuccess() { |
| return success_; |
| } |
| |
| // optional .pulsar.proto.CommandError error = 14; |
| public static final int ERROR_FIELD_NUMBER = 14; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandError error_; |
| public boolean hasError() { |
| return ((bitField0_ & 0x00002000) == 0x00002000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandError getError() { |
| return error_; |
| } |
| |
| // optional .pulsar.proto.CommandCloseProducer close_producer = 15; |
| public static final int CLOSE_PRODUCER_FIELD_NUMBER = 15; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer closeProducer_; |
| public boolean hasCloseProducer() { |
| return ((bitField0_ & 0x00004000) == 0x00004000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer getCloseProducer() { |
| return closeProducer_; |
| } |
| |
| // optional .pulsar.proto.CommandCloseConsumer close_consumer = 16; |
| public static final int CLOSE_CONSUMER_FIELD_NUMBER = 16; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer closeConsumer_; |
| public boolean hasCloseConsumer() { |
| return ((bitField0_ & 0x00008000) == 0x00008000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer getCloseConsumer() { |
| return closeConsumer_; |
| } |
| |
| // optional .pulsar.proto.CommandProducerSuccess producer_success = 17; |
| public static final int PRODUCER_SUCCESS_FIELD_NUMBER = 17; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess producerSuccess_; |
| public boolean hasProducerSuccess() { |
| return ((bitField0_ & 0x00010000) == 0x00010000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess getProducerSuccess() { |
| return producerSuccess_; |
| } |
| |
| // optional .pulsar.proto.CommandPing ping = 18; |
| public static final int PING_FIELD_NUMBER = 18; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPing ping_; |
| public boolean hasPing() { |
| return ((bitField0_ & 0x00020000) == 0x00020000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPing getPing() { |
| return ping_; |
| } |
| |
| // optional .pulsar.proto.CommandPong pong = 19; |
| public static final int PONG_FIELD_NUMBER = 19; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPong pong_; |
| public boolean hasPong() { |
| return ((bitField0_ & 0x00040000) == 0x00040000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPong getPong() { |
| return pong_; |
| } |
| |
| // optional .pulsar.proto.CommandRedeliverUnacknowledgedMessages redeliverUnacknowledgedMessages = 20; |
| public static final int REDELIVERUNACKNOWLEDGEDMESSAGES_FIELD_NUMBER = 20; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages redeliverUnacknowledgedMessages_; |
| public boolean hasRedeliverUnacknowledgedMessages() { |
| return ((bitField0_ & 0x00080000) == 0x00080000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages getRedeliverUnacknowledgedMessages() { |
| return redeliverUnacknowledgedMessages_; |
| } |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadata partitionMetadata = 21; |
| public static final int PARTITIONMETADATA_FIELD_NUMBER = 21; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata partitionMetadata_; |
| public boolean hasPartitionMetadata() { |
| return ((bitField0_ & 0x00100000) == 0x00100000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata getPartitionMetadata() { |
| return partitionMetadata_; |
| } |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadataResponse partitionMetadataResponse = 22; |
| public static final int PARTITIONMETADATARESPONSE_FIELD_NUMBER = 22; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse partitionMetadataResponse_; |
| public boolean hasPartitionMetadataResponse() { |
| return ((bitField0_ & 0x00200000) == 0x00200000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse getPartitionMetadataResponse() { |
| return partitionMetadataResponse_; |
| } |
| |
| // optional .pulsar.proto.CommandLookupTopic lookupTopic = 23; |
| public static final int LOOKUPTOPIC_FIELD_NUMBER = 23; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic lookupTopic_; |
| public boolean hasLookupTopic() { |
| return ((bitField0_ & 0x00400000) == 0x00400000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic getLookupTopic() { |
| return lookupTopic_; |
| } |
| |
| // optional .pulsar.proto.CommandLookupTopicResponse lookupTopicResponse = 24; |
| public static final int LOOKUPTOPICRESPONSE_FIELD_NUMBER = 24; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse lookupTopicResponse_; |
| public boolean hasLookupTopicResponse() { |
| return ((bitField0_ & 0x00800000) == 0x00800000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse getLookupTopicResponse() { |
| return lookupTopicResponse_; |
| } |
| |
| // optional .pulsar.proto.CommandConsumerStats consumerStats = 25; |
| public static final int CONSUMERSTATS_FIELD_NUMBER = 25; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats consumerStats_; |
| public boolean hasConsumerStats() { |
| return ((bitField0_ & 0x01000000) == 0x01000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats getConsumerStats() { |
| return consumerStats_; |
| } |
| |
| // optional .pulsar.proto.CommandConsumerStatsResponse consumerStatsResponse = 26; |
| public static final int CONSUMERSTATSRESPONSE_FIELD_NUMBER = 26; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse consumerStatsResponse_; |
| public boolean hasConsumerStatsResponse() { |
| return ((bitField0_ & 0x02000000) == 0x02000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse getConsumerStatsResponse() { |
| return consumerStatsResponse_; |
| } |
| |
| // optional .pulsar.proto.CommandReachedEndOfTopic reachedEndOfTopic = 27; |
| public static final int REACHEDENDOFTOPIC_FIELD_NUMBER = 27; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic reachedEndOfTopic_; |
| public boolean hasReachedEndOfTopic() { |
| return ((bitField0_ & 0x04000000) == 0x04000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic getReachedEndOfTopic() { |
| return reachedEndOfTopic_; |
| } |
| |
| // optional .pulsar.proto.CommandSeek seek = 28; |
| public static final int SEEK_FIELD_NUMBER = 28; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek seek_; |
| public boolean hasSeek() { |
| return ((bitField0_ & 0x08000000) == 0x08000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek getSeek() { |
| return seek_; |
| } |
| |
| // optional .pulsar.proto.CommandGetLastMessageId getLastMessageId = 29; |
| public static final int GETLASTMESSAGEID_FIELD_NUMBER = 29; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId getLastMessageId_; |
| public boolean hasGetLastMessageId() { |
| return ((bitField0_ & 0x10000000) == 0x10000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId getGetLastMessageId() { |
| return getLastMessageId_; |
| } |
| |
| // optional .pulsar.proto.CommandGetLastMessageIdResponse getLastMessageIdResponse = 30; |
| public static final int GETLASTMESSAGEIDRESPONSE_FIELD_NUMBER = 30; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse getLastMessageIdResponse_; |
| public boolean hasGetLastMessageIdResponse() { |
| return ((bitField0_ & 0x20000000) == 0x20000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse getGetLastMessageIdResponse() { |
| return getLastMessageIdResponse_; |
| } |
| |
| // optional .pulsar.proto.CommandActiveConsumerChange active_consumer_change = 31; |
| public static final int ACTIVE_CONSUMER_CHANGE_FIELD_NUMBER = 31; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange activeConsumerChange_; |
| public boolean hasActiveConsumerChange() { |
| return ((bitField0_ & 0x40000000) == 0x40000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange getActiveConsumerChange() { |
| return activeConsumerChange_; |
| } |
| |
| // optional .pulsar.proto.CommandGetTopicsOfNamespace getTopicsOfNamespace = 32; |
| public static final int GETTOPICSOFNAMESPACE_FIELD_NUMBER = 32; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace getTopicsOfNamespace_; |
| public boolean hasGetTopicsOfNamespace() { |
| return ((bitField0_ & 0x80000000) == 0x80000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace getGetTopicsOfNamespace() { |
| return getTopicsOfNamespace_; |
| } |
| |
| // optional .pulsar.proto.CommandGetTopicsOfNamespaceResponse getTopicsOfNamespaceResponse = 33; |
| public static final int GETTOPICSOFNAMESPACERESPONSE_FIELD_NUMBER = 33; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse getTopicsOfNamespaceResponse_; |
| public boolean hasGetTopicsOfNamespaceResponse() { |
| return ((bitField1_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse getGetTopicsOfNamespaceResponse() { |
| return getTopicsOfNamespaceResponse_; |
| } |
| |
| private void initFields() { |
| type_ = org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type.CONNECT; |
| connect_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.getDefaultInstance(); |
| connected_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.getDefaultInstance(); |
| subscribe_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance(); |
| producer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.getDefaultInstance(); |
| send_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.getDefaultInstance(); |
| sendReceipt_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.getDefaultInstance(); |
| sendError_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.getDefaultInstance(); |
| message_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.getDefaultInstance(); |
| ack_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.getDefaultInstance(); |
| flow_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.getDefaultInstance(); |
| unsubscribe_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.getDefaultInstance(); |
| success_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.getDefaultInstance(); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandError.getDefaultInstance(); |
| closeProducer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance(); |
| closeConsumer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance(); |
| producerSuccess_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance(); |
| ping_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.getDefaultInstance(); |
| pong_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.getDefaultInstance(); |
| redeliverUnacknowledgedMessages_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.getDefaultInstance(); |
| partitionMetadata_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.getDefaultInstance(); |
| partitionMetadataResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.getDefaultInstance(); |
| lookupTopic_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance(); |
| lookupTopicResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.getDefaultInstance(); |
| consumerStats_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.getDefaultInstance(); |
| consumerStatsResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.getDefaultInstance(); |
| reachedEndOfTopic_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.getDefaultInstance(); |
| seek_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.getDefaultInstance(); |
| getLastMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.getDefaultInstance(); |
| getLastMessageIdResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.getDefaultInstance(); |
| activeConsumerChange_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.getDefaultInstance(); |
| getTopicsOfNamespace_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.getDefaultInstance(); |
| getTopicsOfNamespaceResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasType()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (hasConnect()) { |
| if (!getConnect().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasConnected()) { |
| if (!getConnected().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSubscribe()) { |
| if (!getSubscribe().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasProducer()) { |
| if (!getProducer().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSend()) { |
| if (!getSend().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSendReceipt()) { |
| if (!getSendReceipt().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSendError()) { |
| if (!getSendError().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasMessage()) { |
| if (!getMessage().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasAck()) { |
| if (!getAck().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasFlow()) { |
| if (!getFlow().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasUnsubscribe()) { |
| if (!getUnsubscribe().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSuccess()) { |
| if (!getSuccess().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasError()) { |
| if (!getError().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasCloseProducer()) { |
| if (!getCloseProducer().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasCloseConsumer()) { |
| if (!getCloseConsumer().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasProducerSuccess()) { |
| if (!getProducerSuccess().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasRedeliverUnacknowledgedMessages()) { |
| if (!getRedeliverUnacknowledgedMessages().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasPartitionMetadata()) { |
| if (!getPartitionMetadata().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasPartitionMetadataResponse()) { |
| if (!getPartitionMetadataResponse().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasLookupTopic()) { |
| if (!getLookupTopic().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasLookupTopicResponse()) { |
| if (!getLookupTopicResponse().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasConsumerStats()) { |
| if (!getConsumerStats().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasConsumerStatsResponse()) { |
| if (!getConsumerStatsResponse().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasReachedEndOfTopic()) { |
| if (!getReachedEndOfTopic().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasSeek()) { |
| if (!getSeek().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasGetLastMessageId()) { |
| if (!getGetLastMessageId().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasGetLastMessageIdResponse()) { |
| if (!getGetLastMessageIdResponse().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasActiveConsumerChange()) { |
| if (!getActiveConsumerChange().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasGetTopicsOfNamespace()) { |
| if (!getGetTopicsOfNamespace().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| if (hasGetTopicsOfNamespaceResponse()) { |
| if (!getGetTopicsOfNamespaceResponse().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| throw new RuntimeException("Cannot use CodedOutputStream"); |
| } |
| |
| public void writeTo(org.apache.pulsar.common.util.protobuf.ByteBufCodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeEnum(1, type_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeMessage(2, connect_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeMessage(3, connected_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeMessage(4, subscribe_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeMessage(5, producer_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeMessage(6, send_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeMessage(7, sendReceipt_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeMessage(8, sendError_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeMessage(9, message_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeMessage(10, ack_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeMessage(11, flow_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| output.writeMessage(12, unsubscribe_); |
| } |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| output.writeMessage(13, success_); |
| } |
| if (((bitField0_ & 0x00002000) == 0x00002000)) { |
| output.writeMessage(14, error_); |
| } |
| if (((bitField0_ & 0x00004000) == 0x00004000)) { |
| output.writeMessage(15, closeProducer_); |
| } |
| if (((bitField0_ & 0x00008000) == 0x00008000)) { |
| output.writeMessage(16, closeConsumer_); |
| } |
| if (((bitField0_ & 0x00010000) == 0x00010000)) { |
| output.writeMessage(17, producerSuccess_); |
| } |
| if (((bitField0_ & 0x00020000) == 0x00020000)) { |
| output.writeMessage(18, ping_); |
| } |
| if (((bitField0_ & 0x00040000) == 0x00040000)) { |
| output.writeMessage(19, pong_); |
| } |
| if (((bitField0_ & 0x00080000) == 0x00080000)) { |
| output.writeMessage(20, redeliverUnacknowledgedMessages_); |
| } |
| if (((bitField0_ & 0x00100000) == 0x00100000)) { |
| output.writeMessage(21, partitionMetadata_); |
| } |
| if (((bitField0_ & 0x00200000) == 0x00200000)) { |
| output.writeMessage(22, partitionMetadataResponse_); |
| } |
| if (((bitField0_ & 0x00400000) == 0x00400000)) { |
| output.writeMessage(23, lookupTopic_); |
| } |
| if (((bitField0_ & 0x00800000) == 0x00800000)) { |
| output.writeMessage(24, lookupTopicResponse_); |
| } |
| if (((bitField0_ & 0x01000000) == 0x01000000)) { |
| output.writeMessage(25, consumerStats_); |
| } |
| if (((bitField0_ & 0x02000000) == 0x02000000)) { |
| output.writeMessage(26, consumerStatsResponse_); |
| } |
| if (((bitField0_ & 0x04000000) == 0x04000000)) { |
| output.writeMessage(27, reachedEndOfTopic_); |
| } |
| if (((bitField0_ & 0x08000000) == 0x08000000)) { |
| output.writeMessage(28, seek_); |
| } |
| if (((bitField0_ & 0x10000000) == 0x10000000)) { |
| output.writeMessage(29, getLastMessageId_); |
| } |
| if (((bitField0_ & 0x20000000) == 0x20000000)) { |
| output.writeMessage(30, getLastMessageIdResponse_); |
| } |
| if (((bitField0_ & 0x40000000) == 0x40000000)) { |
| output.writeMessage(31, activeConsumerChange_); |
| } |
| if (((bitField0_ & 0x80000000) == 0x80000000)) { |
| output.writeMessage(32, getTopicsOfNamespace_); |
| } |
| if (((bitField1_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(33, getTopicsOfNamespaceResponse_); |
| } |
| } |
| |
| 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, type_.getNumber()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, connect_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(3, connected_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(4, subscribe_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(5, producer_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(6, send_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(7, sendReceipt_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(8, sendError_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(9, message_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(10, ack_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(11, flow_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(12, unsubscribe_); |
| } |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(13, success_); |
| } |
| if (((bitField0_ & 0x00002000) == 0x00002000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(14, error_); |
| } |
| if (((bitField0_ & 0x00004000) == 0x00004000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(15, closeProducer_); |
| } |
| if (((bitField0_ & 0x00008000) == 0x00008000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(16, closeConsumer_); |
| } |
| if (((bitField0_ & 0x00010000) == 0x00010000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(17, producerSuccess_); |
| } |
| if (((bitField0_ & 0x00020000) == 0x00020000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(18, ping_); |
| } |
| if (((bitField0_ & 0x00040000) == 0x00040000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(19, pong_); |
| } |
| if (((bitField0_ & 0x00080000) == 0x00080000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(20, redeliverUnacknowledgedMessages_); |
| } |
| if (((bitField0_ & 0x00100000) == 0x00100000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(21, partitionMetadata_); |
| } |
| if (((bitField0_ & 0x00200000) == 0x00200000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(22, partitionMetadataResponse_); |
| } |
| if (((bitField0_ & 0x00400000) == 0x00400000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(23, lookupTopic_); |
| } |
| if (((bitField0_ & 0x00800000) == 0x00800000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(24, lookupTopicResponse_); |
| } |
| if (((bitField0_ & 0x01000000) == 0x01000000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(25, consumerStats_); |
| } |
| if (((bitField0_ & 0x02000000) == 0x02000000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(26, consumerStatsResponse_); |
| } |
| if (((bitField0_ & 0x04000000) == 0x04000000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(27, reachedEndOfTopic_); |
| } |
| if (((bitField0_ & 0x08000000) == 0x08000000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(28, seek_); |
| } |
| if (((bitField0_ & 0x10000000) == 0x10000000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(29, getLastMessageId_); |
| } |
| if (((bitField0_ & 0x20000000) == 0x20000000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(30, getLastMessageIdResponse_); |
| } |
| if (((bitField0_ & 0x40000000) == 0x40000000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(31, activeConsumerChange_); |
| } |
| if (((bitField0_ & 0x80000000) == 0x80000000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(32, getTopicsOfNamespace_); |
| } |
| if (((bitField1_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(33, getTopicsOfNamespaceResponse_); |
| } |
| 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.pulsar.common.api.proto.PulsarApi.BaseCommand parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| throw new RuntimeException("Disabled"); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return newBuilder().mergeFrom(data, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input, extensionRegistry) |
| .buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand 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.pulsar.common.api.proto.PulsarApi.BaseCommand 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.pulsar.common.api.proto.PulsarApi.BaseCommand parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return newBuilder().mergeFrom(input).buildParsed(); |
| } |
| public static org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand 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.pulsar.common.api.proto.PulsarApi.BaseCommand prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessageLite.Builder< |
| org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand, Builder> |
| implements org.apache.pulsar.common.api.proto.PulsarApi.BaseCommandOrBuilder, org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream.ByteBufMessageBuilder { |
| // Construct using org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.newBuilder() |
| private final io.netty.util.Recycler.Handle<Builder> handle; |
| private Builder(io.netty.util.Recycler.Handle<Builder> handle) { |
| this.handle = handle; |
| maybeForceBuilderInitialization(); |
| } |
| private final static io.netty.util.Recycler<Builder> RECYCLER = new io.netty.util.Recycler<Builder>() { |
| protected Builder newObject(io.netty.util.Recycler.Handle<Builder> handle) { |
| return new Builder(handle); |
| } |
| }; |
| |
| public void recycle() { |
| clear(); |
| handle.recycle(this); |
| } |
| |
| private void maybeForceBuilderInitialization() { |
| } |
| private static Builder create() { |
| return RECYCLER.get(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| type_ = org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type.CONNECT; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| connect_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| connected_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| subscribe_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000008); |
| producer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000010); |
| send_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000020); |
| sendReceipt_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000040); |
| sendError_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000080); |
| message_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000100); |
| ack_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000200); |
| flow_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000400); |
| unsubscribe_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00000800); |
| success_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00001000); |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandError.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00002000); |
| closeProducer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00004000); |
| closeConsumer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00008000); |
| producerSuccess_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00010000); |
| ping_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00020000); |
| pong_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00040000); |
| redeliverUnacknowledgedMessages_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00080000); |
| partitionMetadata_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00100000); |
| partitionMetadataResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00200000); |
| lookupTopic_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00400000); |
| lookupTopicResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x00800000); |
| consumerStats_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x01000000); |
| consumerStatsResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x02000000); |
| reachedEndOfTopic_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x04000000); |
| seek_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x08000000); |
| getLastMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x10000000); |
| getLastMessageIdResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x20000000); |
| activeConsumerChange_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x40000000); |
| getTopicsOfNamespace_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.getDefaultInstance(); |
| bitField0_ = (bitField0_ & ~0x80000000); |
| getTopicsOfNamespaceResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance(); |
| bitField1_ = (bitField1_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand getDefaultInstanceForType() { |
| return org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.getDefaultInstance(); |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand build() { |
| org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| private org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand buildParsed() |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException( |
| result).asInvalidProtocolBufferException(); |
| } |
| return result; |
| } |
| |
| public org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand buildPartial() { |
| org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand result = org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.RECYCLER.get(); |
| int from_bitField0_ = bitField0_; |
| int from_bitField1_ = bitField1_; |
| int to_bitField0_ = 0; |
| int to_bitField1_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.type_ = type_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.connect_ = connect_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.connected_ = connected_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.subscribe_ = subscribe_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.producer_ = producer_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.send_ = send_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.sendReceipt_ = sendReceipt_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.sendError_ = sendError_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.message_ = message_; |
| if (((from_bitField0_ & 0x00000200) == 0x00000200)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| result.ack_ = ack_; |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| result.flow_ = flow_; |
| if (((from_bitField0_ & 0x00000800) == 0x00000800)) { |
| to_bitField0_ |= 0x00000800; |
| } |
| result.unsubscribe_ = unsubscribe_; |
| if (((from_bitField0_ & 0x00001000) == 0x00001000)) { |
| to_bitField0_ |= 0x00001000; |
| } |
| result.success_ = success_; |
| if (((from_bitField0_ & 0x00002000) == 0x00002000)) { |
| to_bitField0_ |= 0x00002000; |
| } |
| result.error_ = error_; |
| if (((from_bitField0_ & 0x00004000) == 0x00004000)) { |
| to_bitField0_ |= 0x00004000; |
| } |
| result.closeProducer_ = closeProducer_; |
| if (((from_bitField0_ & 0x00008000) == 0x00008000)) { |
| to_bitField0_ |= 0x00008000; |
| } |
| result.closeConsumer_ = closeConsumer_; |
| if (((from_bitField0_ & 0x00010000) == 0x00010000)) { |
| to_bitField0_ |= 0x00010000; |
| } |
| result.producerSuccess_ = producerSuccess_; |
| if (((from_bitField0_ & 0x00020000) == 0x00020000)) { |
| to_bitField0_ |= 0x00020000; |
| } |
| result.ping_ = ping_; |
| if (((from_bitField0_ & 0x00040000) == 0x00040000)) { |
| to_bitField0_ |= 0x00040000; |
| } |
| result.pong_ = pong_; |
| if (((from_bitField0_ & 0x00080000) == 0x00080000)) { |
| to_bitField0_ |= 0x00080000; |
| } |
| result.redeliverUnacknowledgedMessages_ = redeliverUnacknowledgedMessages_; |
| if (((from_bitField0_ & 0x00100000) == 0x00100000)) { |
| to_bitField0_ |= 0x00100000; |
| } |
| result.partitionMetadata_ = partitionMetadata_; |
| if (((from_bitField0_ & 0x00200000) == 0x00200000)) { |
| to_bitField0_ |= 0x00200000; |
| } |
| result.partitionMetadataResponse_ = partitionMetadataResponse_; |
| if (((from_bitField0_ & 0x00400000) == 0x00400000)) { |
| to_bitField0_ |= 0x00400000; |
| } |
| result.lookupTopic_ = lookupTopic_; |
| if (((from_bitField0_ & 0x00800000) == 0x00800000)) { |
| to_bitField0_ |= 0x00800000; |
| } |
| result.lookupTopicResponse_ = lookupTopicResponse_; |
| if (((from_bitField0_ & 0x01000000) == 0x01000000)) { |
| to_bitField0_ |= 0x01000000; |
| } |
| result.consumerStats_ = consumerStats_; |
| if (((from_bitField0_ & 0x02000000) == 0x02000000)) { |
| to_bitField0_ |= 0x02000000; |
| } |
| result.consumerStatsResponse_ = consumerStatsResponse_; |
| if (((from_bitField0_ & 0x04000000) == 0x04000000)) { |
| to_bitField0_ |= 0x04000000; |
| } |
| result.reachedEndOfTopic_ = reachedEndOfTopic_; |
| if (((from_bitField0_ & 0x08000000) == 0x08000000)) { |
| to_bitField0_ |= 0x08000000; |
| } |
| result.seek_ = seek_; |
| if (((from_bitField0_ & 0x10000000) == 0x10000000)) { |
| to_bitField0_ |= 0x10000000; |
| } |
| result.getLastMessageId_ = getLastMessageId_; |
| if (((from_bitField0_ & 0x20000000) == 0x20000000)) { |
| to_bitField0_ |= 0x20000000; |
| } |
| result.getLastMessageIdResponse_ = getLastMessageIdResponse_; |
| if (((from_bitField0_ & 0x40000000) == 0x40000000)) { |
| to_bitField0_ |= 0x40000000; |
| } |
| result.activeConsumerChange_ = activeConsumerChange_; |
| if (((from_bitField0_ & 0x80000000) == 0x80000000)) { |
| to_bitField0_ |= 0x80000000; |
| } |
| result.getTopicsOfNamespace_ = getTopicsOfNamespace_; |
| if (((from_bitField1_ & 0x00000001) == 0x00000001)) { |
| to_bitField1_ |= 0x00000001; |
| } |
| result.getTopicsOfNamespaceResponse_ = getTopicsOfNamespaceResponse_; |
| result.bitField0_ = to_bitField0_; |
| result.bitField1_ = to_bitField1_; |
| return result; |
| } |
| |
| public Builder mergeFrom(org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand other) { |
| if (other == org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.getDefaultInstance()) return this; |
| if (other.hasType()) { |
| setType(other.getType()); |
| } |
| if (other.hasConnect()) { |
| mergeConnect(other.getConnect()); |
| } |
| if (other.hasConnected()) { |
| mergeConnected(other.getConnected()); |
| } |
| if (other.hasSubscribe()) { |
| mergeSubscribe(other.getSubscribe()); |
| } |
| if (other.hasProducer()) { |
| mergeProducer(other.getProducer()); |
| } |
| if (other.hasSend()) { |
| mergeSend(other.getSend()); |
| } |
| if (other.hasSendReceipt()) { |
| mergeSendReceipt(other.getSendReceipt()); |
| } |
| if (other.hasSendError()) { |
| mergeSendError(other.getSendError()); |
| } |
| if (other.hasMessage()) { |
| mergeMessage(other.getMessage()); |
| } |
| if (other.hasAck()) { |
| mergeAck(other.getAck()); |
| } |
| if (other.hasFlow()) { |
| mergeFlow(other.getFlow()); |
| } |
| if (other.hasUnsubscribe()) { |
| mergeUnsubscribe(other.getUnsubscribe()); |
| } |
| if (other.hasSuccess()) { |
| mergeSuccess(other.getSuccess()); |
| } |
| if (other.hasError()) { |
| mergeError(other.getError()); |
| } |
| if (other.hasCloseProducer()) { |
| mergeCloseProducer(other.getCloseProducer()); |
| } |
| if (other.hasCloseConsumer()) { |
| mergeCloseConsumer(other.getCloseConsumer()); |
| } |
| if (other.hasProducerSuccess()) { |
| mergeProducerSuccess(other.getProducerSuccess()); |
| } |
| if (other.hasPing()) { |
| mergePing(other.getPing()); |
| } |
| if (other.hasPong()) { |
| mergePong(other.getPong()); |
| } |
| if (other.hasRedeliverUnacknowledgedMessages()) { |
| mergeRedeliverUnacknowledgedMessages(other.getRedeliverUnacknowledgedMessages()); |
| } |
| if (other.hasPartitionMetadata()) { |
| mergePartitionMetadata(other.getPartitionMetadata()); |
| } |
| if (other.hasPartitionMetadataResponse()) { |
| mergePartitionMetadataResponse(other.getPartitionMetadataResponse()); |
| } |
| if (other.hasLookupTopic()) { |
| mergeLookupTopic(other.getLookupTopic()); |
| } |
| if (other.hasLookupTopicResponse()) { |
| mergeLookupTopicResponse(other.getLookupTopicResponse()); |
| } |
| if (other.hasConsumerStats()) { |
| mergeConsumerStats(other.getConsumerStats()); |
| } |
| if (other.hasConsumerStatsResponse()) { |
| mergeConsumerStatsResponse(other.getConsumerStatsResponse()); |
| } |
| if (other.hasReachedEndOfTopic()) { |
| mergeReachedEndOfTopic(other.getReachedEndOfTopic()); |
| } |
| if (other.hasSeek()) { |
| mergeSeek(other.getSeek()); |
| } |
| if (other.hasGetLastMessageId()) { |
| mergeGetLastMessageId(other.getGetLastMessageId()); |
| } |
| if (other.hasGetLastMessageIdResponse()) { |
| mergeGetLastMessageIdResponse(other.getGetLastMessageIdResponse()); |
| } |
| if (other.hasActiveConsumerChange()) { |
| mergeActiveConsumerChange(other.getActiveConsumerChange()); |
| } |
| if (other.hasGetTopicsOfNamespace()) { |
| mergeGetTopicsOfNamespace(other.getGetTopicsOfNamespace()); |
| } |
| if (other.hasGetTopicsOfNamespaceResponse()) { |
| mergeGetTopicsOfNamespaceResponse(other.getGetTopicsOfNamespaceResponse()); |
| } |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasType()) { |
| |
| return false; |
| } |
| if (hasConnect()) { |
| if (!getConnect().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasConnected()) { |
| if (!getConnected().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSubscribe()) { |
| if (!getSubscribe().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasProducer()) { |
| if (!getProducer().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSend()) { |
| if (!getSend().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSendReceipt()) { |
| if (!getSendReceipt().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSendError()) { |
| if (!getSendError().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasMessage()) { |
| if (!getMessage().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasAck()) { |
| if (!getAck().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasFlow()) { |
| if (!getFlow().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasUnsubscribe()) { |
| if (!getUnsubscribe().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSuccess()) { |
| if (!getSuccess().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasError()) { |
| if (!getError().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasCloseProducer()) { |
| if (!getCloseProducer().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasCloseConsumer()) { |
| if (!getCloseConsumer().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasProducerSuccess()) { |
| if (!getProducerSuccess().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasRedeliverUnacknowledgedMessages()) { |
| if (!getRedeliverUnacknowledgedMessages().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasPartitionMetadata()) { |
| if (!getPartitionMetadata().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasPartitionMetadataResponse()) { |
| if (!getPartitionMetadataResponse().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasLookupTopic()) { |
| if (!getLookupTopic().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasLookupTopicResponse()) { |
| if (!getLookupTopicResponse().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasConsumerStats()) { |
| if (!getConsumerStats().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasConsumerStatsResponse()) { |
| if (!getConsumerStatsResponse().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasReachedEndOfTopic()) { |
| if (!getReachedEndOfTopic().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasSeek()) { |
| if (!getSeek().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasGetLastMessageId()) { |
| if (!getGetLastMessageId().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasGetLastMessageIdResponse()) { |
| if (!getGetLastMessageIdResponse().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasActiveConsumerChange()) { |
| if (!getActiveConsumerChange().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasGetTopicsOfNamespace()) { |
| if (!getGetTopicsOfNamespace().isInitialized()) { |
| |
| return false; |
| } |
| } |
| if (hasGetTopicsOfNamespaceResponse()) { |
| if (!getGetTopicsOfNamespaceResponse().isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| throw new java.io.IOException("Merge from CodedInputStream is disabled"); |
| } |
| public Builder mergeFrom( |
| org.apache.pulsar.common.util.protobuf.ByteBufCodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| while (true) { |
| int tag = input.readTag(); |
| switch (tag) { |
| case 0: |
| |
| return this; |
| default: { |
| if (!input.skipField(tag)) { |
| |
| return this; |
| } |
| break; |
| } |
| case 8: { |
| int rawValue = input.readEnum(); |
| org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type value = org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type.valueOf(rawValue); |
| if (value != null) { |
| bitField0_ |= 0x00000001; |
| type_ = value; |
| } |
| break; |
| } |
| case 18: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.newBuilder(); |
| if (hasConnect()) { |
| subBuilder.mergeFrom(getConnect()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setConnect(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 26: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.newBuilder(); |
| if (hasConnected()) { |
| subBuilder.mergeFrom(getConnected()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setConnected(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 34: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.newBuilder(); |
| if (hasSubscribe()) { |
| subBuilder.mergeFrom(getSubscribe()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSubscribe(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 42: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.newBuilder(); |
| if (hasProducer()) { |
| subBuilder.mergeFrom(getProducer()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setProducer(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 50: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.newBuilder(); |
| if (hasSend()) { |
| subBuilder.mergeFrom(getSend()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSend(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 58: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.newBuilder(); |
| if (hasSendReceipt()) { |
| subBuilder.mergeFrom(getSendReceipt()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSendReceipt(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 66: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.newBuilder(); |
| if (hasSendError()) { |
| subBuilder.mergeFrom(getSendError()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSendError(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 74: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.newBuilder(); |
| if (hasMessage()) { |
| subBuilder.mergeFrom(getMessage()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setMessage(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 82: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.newBuilder(); |
| if (hasAck()) { |
| subBuilder.mergeFrom(getAck()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setAck(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 90: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.newBuilder(); |
| if (hasFlow()) { |
| subBuilder.mergeFrom(getFlow()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setFlow(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 98: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.newBuilder(); |
| if (hasUnsubscribe()) { |
| subBuilder.mergeFrom(getUnsubscribe()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setUnsubscribe(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 106: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.newBuilder(); |
| if (hasSuccess()) { |
| subBuilder.mergeFrom(getSuccess()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSuccess(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 114: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandError.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandError.newBuilder(); |
| if (hasError()) { |
| subBuilder.mergeFrom(getError()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setError(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 122: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.newBuilder(); |
| if (hasCloseProducer()) { |
| subBuilder.mergeFrom(getCloseProducer()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setCloseProducer(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 130: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.newBuilder(); |
| if (hasCloseConsumer()) { |
| subBuilder.mergeFrom(getCloseConsumer()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setCloseConsumer(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 138: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.newBuilder(); |
| if (hasProducerSuccess()) { |
| subBuilder.mergeFrom(getProducerSuccess()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setProducerSuccess(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 146: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.newBuilder(); |
| if (hasPing()) { |
| subBuilder.mergeFrom(getPing()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPing(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 154: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.newBuilder(); |
| if (hasPong()) { |
| subBuilder.mergeFrom(getPong()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPong(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 162: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.newBuilder(); |
| if (hasRedeliverUnacknowledgedMessages()) { |
| subBuilder.mergeFrom(getRedeliverUnacknowledgedMessages()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setRedeliverUnacknowledgedMessages(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 170: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.newBuilder(); |
| if (hasPartitionMetadata()) { |
| subBuilder.mergeFrom(getPartitionMetadata()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPartitionMetadata(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 178: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.newBuilder(); |
| if (hasPartitionMetadataResponse()) { |
| subBuilder.mergeFrom(getPartitionMetadataResponse()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setPartitionMetadataResponse(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 186: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.newBuilder(); |
| if (hasLookupTopic()) { |
| subBuilder.mergeFrom(getLookupTopic()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setLookupTopic(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 194: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.newBuilder(); |
| if (hasLookupTopicResponse()) { |
| subBuilder.mergeFrom(getLookupTopicResponse()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setLookupTopicResponse(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 202: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.newBuilder(); |
| if (hasConsumerStats()) { |
| subBuilder.mergeFrom(getConsumerStats()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setConsumerStats(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 210: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.newBuilder(); |
| if (hasConsumerStatsResponse()) { |
| subBuilder.mergeFrom(getConsumerStatsResponse()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setConsumerStatsResponse(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 218: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.newBuilder(); |
| if (hasReachedEndOfTopic()) { |
| subBuilder.mergeFrom(getReachedEndOfTopic()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setReachedEndOfTopic(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 226: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.newBuilder(); |
| if (hasSeek()) { |
| subBuilder.mergeFrom(getSeek()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setSeek(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 234: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.newBuilder(); |
| if (hasGetLastMessageId()) { |
| subBuilder.mergeFrom(getGetLastMessageId()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setGetLastMessageId(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 242: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.newBuilder(); |
| if (hasGetLastMessageIdResponse()) { |
| subBuilder.mergeFrom(getGetLastMessageIdResponse()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setGetLastMessageIdResponse(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 250: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.newBuilder(); |
| if (hasActiveConsumerChange()) { |
| subBuilder.mergeFrom(getActiveConsumerChange()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setActiveConsumerChange(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 258: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.newBuilder(); |
| if (hasGetTopicsOfNamespace()) { |
| subBuilder.mergeFrom(getGetTopicsOfNamespace()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setGetTopicsOfNamespace(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| case 266: { |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.Builder subBuilder = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.newBuilder(); |
| if (hasGetTopicsOfNamespaceResponse()) { |
| subBuilder.mergeFrom(getGetTopicsOfNamespaceResponse()); |
| } |
| input.readMessage(subBuilder, extensionRegistry); |
| setGetTopicsOfNamespaceResponse(subBuilder.buildPartial()); |
| subBuilder.recycle(); |
| break; |
| } |
| } |
| } |
| } |
| |
| private int bitField0_; |
| private int bitField1_; |
| |
| // required .pulsar.proto.BaseCommand.Type type = 1; |
| private org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type type_ = org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type.CONNECT; |
| public boolean hasType() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type getType() { |
| return type_; |
| } |
| public Builder setType(org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| type_ = value; |
| |
| return this; |
| } |
| public Builder clearType() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| type_ = org.apache.pulsar.common.api.proto.PulsarApi.BaseCommand.Type.CONNECT; |
| |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandConnect connect = 2; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect connect_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.getDefaultInstance(); |
| public boolean hasConnect() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect getConnect() { |
| return connect_; |
| } |
| public Builder setConnect(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| connect_ = value; |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder setConnect( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.Builder builderForValue) { |
| connect_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder mergeConnect(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect value) { |
| if (((bitField0_ & 0x00000002) == 0x00000002) && |
| connect_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.getDefaultInstance()) { |
| connect_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.newBuilder(connect_).mergeFrom(value).buildPartial(); |
| } else { |
| connect_ = value; |
| } |
| |
| bitField0_ |= 0x00000002; |
| return this; |
| } |
| public Builder clearConnect() { |
| connect_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnect.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandConnected connected = 3; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected connected_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.getDefaultInstance(); |
| public boolean hasConnected() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected getConnected() { |
| return connected_; |
| } |
| public Builder setConnected(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| connected_ = value; |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder setConnected( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.Builder builderForValue) { |
| connected_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder mergeConnected(org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected value) { |
| if (((bitField0_ & 0x00000004) == 0x00000004) && |
| connected_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.getDefaultInstance()) { |
| connected_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.newBuilder(connected_).mergeFrom(value).buildPartial(); |
| } else { |
| connected_ = value; |
| } |
| |
| bitField0_ |= 0x00000004; |
| return this; |
| } |
| public Builder clearConnected() { |
| connected_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConnected.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandSubscribe subscribe = 4; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe subscribe_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance(); |
| public boolean hasSubscribe() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe getSubscribe() { |
| return subscribe_; |
| } |
| public Builder setSubscribe(org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| subscribe_ = value; |
| |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder setSubscribe( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.Builder builderForValue) { |
| subscribe_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder mergeSubscribe(org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe value) { |
| if (((bitField0_ & 0x00000008) == 0x00000008) && |
| subscribe_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance()) { |
| subscribe_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.newBuilder(subscribe_).mergeFrom(value).buildPartial(); |
| } else { |
| subscribe_ = value; |
| } |
| |
| bitField0_ |= 0x00000008; |
| return this; |
| } |
| public Builder clearSubscribe() { |
| subscribe_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSubscribe.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandProducer producer = 5; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer producer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.getDefaultInstance(); |
| public boolean hasProducer() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer getProducer() { |
| return producer_; |
| } |
| public Builder setProducer(org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| producer_ = value; |
| |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder setProducer( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.Builder builderForValue) { |
| producer_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder mergeProducer(org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer value) { |
| if (((bitField0_ & 0x00000010) == 0x00000010) && |
| producer_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.getDefaultInstance()) { |
| producer_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.newBuilder(producer_).mergeFrom(value).buildPartial(); |
| } else { |
| producer_ = value; |
| } |
| |
| bitField0_ |= 0x00000010; |
| return this; |
| } |
| public Builder clearProducer() { |
| producer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducer.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000010); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandSend send = 6; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSend send_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.getDefaultInstance(); |
| public boolean hasSend() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSend getSend() { |
| return send_; |
| } |
| public Builder setSend(org.apache.pulsar.common.api.proto.PulsarApi.CommandSend value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| send_ = value; |
| |
| bitField0_ |= 0x00000020; |
| return this; |
| } |
| public Builder setSend( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.Builder builderForValue) { |
| send_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000020; |
| return this; |
| } |
| public Builder mergeSend(org.apache.pulsar.common.api.proto.PulsarApi.CommandSend value) { |
| if (((bitField0_ & 0x00000020) == 0x00000020) && |
| send_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.getDefaultInstance()) { |
| send_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.newBuilder(send_).mergeFrom(value).buildPartial(); |
| } else { |
| send_ = value; |
| } |
| |
| bitField0_ |= 0x00000020; |
| return this; |
| } |
| public Builder clearSend() { |
| send_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSend.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000020); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandSendReceipt send_receipt = 7; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt sendReceipt_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.getDefaultInstance(); |
| public boolean hasSendReceipt() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt getSendReceipt() { |
| return sendReceipt_; |
| } |
| public Builder setSendReceipt(org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| sendReceipt_ = value; |
| |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder setSendReceipt( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.Builder builderForValue) { |
| sendReceipt_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder mergeSendReceipt(org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt value) { |
| if (((bitField0_ & 0x00000040) == 0x00000040) && |
| sendReceipt_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.getDefaultInstance()) { |
| sendReceipt_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.newBuilder(sendReceipt_).mergeFrom(value).buildPartial(); |
| } else { |
| sendReceipt_ = value; |
| } |
| |
| bitField0_ |= 0x00000040; |
| return this; |
| } |
| public Builder clearSendReceipt() { |
| sendReceipt_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendReceipt.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000040); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandSendError send_error = 8; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError sendError_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.getDefaultInstance(); |
| public boolean hasSendError() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError getSendError() { |
| return sendError_; |
| } |
| public Builder setSendError(org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| sendError_ = value; |
| |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder setSendError( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.Builder builderForValue) { |
| sendError_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder mergeSendError(org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError value) { |
| if (((bitField0_ & 0x00000080) == 0x00000080) && |
| sendError_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.getDefaultInstance()) { |
| sendError_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.newBuilder(sendError_).mergeFrom(value).buildPartial(); |
| } else { |
| sendError_ = value; |
| } |
| |
| bitField0_ |= 0x00000080; |
| return this; |
| } |
| public Builder clearSendError() { |
| sendError_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSendError.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000080); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandMessage message = 9; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage message_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.getDefaultInstance(); |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage getMessage() { |
| return message_; |
| } |
| public Builder setMessage(org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| message_ = value; |
| |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder setMessage( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.Builder builderForValue) { |
| message_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder mergeMessage(org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage value) { |
| if (((bitField0_ & 0x00000100) == 0x00000100) && |
| message_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.getDefaultInstance()) { |
| message_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.newBuilder(message_).mergeFrom(value).buildPartial(); |
| } else { |
| message_ = value; |
| } |
| |
| bitField0_ |= 0x00000100; |
| return this; |
| } |
| public Builder clearMessage() { |
| message_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandMessage.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000100); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandAck ack = 10; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandAck ack_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.getDefaultInstance(); |
| public boolean hasAck() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandAck getAck() { |
| return ack_; |
| } |
| public Builder setAck(org.apache.pulsar.common.api.proto.PulsarApi.CommandAck value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ack_ = value; |
| |
| bitField0_ |= 0x00000200; |
| return this; |
| } |
| public Builder setAck( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.Builder builderForValue) { |
| ack_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000200; |
| return this; |
| } |
| public Builder mergeAck(org.apache.pulsar.common.api.proto.PulsarApi.CommandAck value) { |
| if (((bitField0_ & 0x00000200) == 0x00000200) && |
| ack_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.getDefaultInstance()) { |
| ack_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.newBuilder(ack_).mergeFrom(value).buildPartial(); |
| } else { |
| ack_ = value; |
| } |
| |
| bitField0_ |= 0x00000200; |
| return this; |
| } |
| public Builder clearAck() { |
| ack_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandAck.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000200); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandFlow flow = 11; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow flow_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.getDefaultInstance(); |
| public boolean hasFlow() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow getFlow() { |
| return flow_; |
| } |
| public Builder setFlow(org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| flow_ = value; |
| |
| bitField0_ |= 0x00000400; |
| return this; |
| } |
| public Builder setFlow( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.Builder builderForValue) { |
| flow_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000400; |
| return this; |
| } |
| public Builder mergeFlow(org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow value) { |
| if (((bitField0_ & 0x00000400) == 0x00000400) && |
| flow_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.getDefaultInstance()) { |
| flow_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.newBuilder(flow_).mergeFrom(value).buildPartial(); |
| } else { |
| flow_ = value; |
| } |
| |
| bitField0_ |= 0x00000400; |
| return this; |
| } |
| public Builder clearFlow() { |
| flow_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandFlow.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000400); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandUnsubscribe unsubscribe = 12; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe unsubscribe_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.getDefaultInstance(); |
| public boolean hasUnsubscribe() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe getUnsubscribe() { |
| return unsubscribe_; |
| } |
| public Builder setUnsubscribe(org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| unsubscribe_ = value; |
| |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder setUnsubscribe( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.Builder builderForValue) { |
| unsubscribe_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder mergeUnsubscribe(org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe value) { |
| if (((bitField0_ & 0x00000800) == 0x00000800) && |
| unsubscribe_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.getDefaultInstance()) { |
| unsubscribe_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.newBuilder(unsubscribe_).mergeFrom(value).buildPartial(); |
| } else { |
| unsubscribe_ = value; |
| } |
| |
| bitField0_ |= 0x00000800; |
| return this; |
| } |
| public Builder clearUnsubscribe() { |
| unsubscribe_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandUnsubscribe.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00000800); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandSuccess success = 13; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess success_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.getDefaultInstance(); |
| public boolean hasSuccess() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess getSuccess() { |
| return success_; |
| } |
| public Builder setSuccess(org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| success_ = value; |
| |
| bitField0_ |= 0x00001000; |
| return this; |
| } |
| public Builder setSuccess( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.Builder builderForValue) { |
| success_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00001000; |
| return this; |
| } |
| public Builder mergeSuccess(org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess value) { |
| if (((bitField0_ & 0x00001000) == 0x00001000) && |
| success_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.getDefaultInstance()) { |
| success_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.newBuilder(success_).mergeFrom(value).buildPartial(); |
| } else { |
| success_ = value; |
| } |
| |
| bitField0_ |= 0x00001000; |
| return this; |
| } |
| public Builder clearSuccess() { |
| success_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSuccess.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00001000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandError error = 14; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandError error_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandError.getDefaultInstance(); |
| public boolean hasError() { |
| return ((bitField0_ & 0x00002000) == 0x00002000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandError getError() { |
| return error_; |
| } |
| public Builder setError(org.apache.pulsar.common.api.proto.PulsarApi.CommandError value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| error_ = value; |
| |
| bitField0_ |= 0x00002000; |
| return this; |
| } |
| public Builder setError( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandError.Builder builderForValue) { |
| error_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00002000; |
| return this; |
| } |
| public Builder mergeError(org.apache.pulsar.common.api.proto.PulsarApi.CommandError value) { |
| if (((bitField0_ & 0x00002000) == 0x00002000) && |
| error_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandError.getDefaultInstance()) { |
| error_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandError.newBuilder(error_).mergeFrom(value).buildPartial(); |
| } else { |
| error_ = value; |
| } |
| |
| bitField0_ |= 0x00002000; |
| return this; |
| } |
| public Builder clearError() { |
| error_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandError.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00002000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandCloseProducer close_producer = 15; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer closeProducer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance(); |
| public boolean hasCloseProducer() { |
| return ((bitField0_ & 0x00004000) == 0x00004000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer getCloseProducer() { |
| return closeProducer_; |
| } |
| public Builder setCloseProducer(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| closeProducer_ = value; |
| |
| bitField0_ |= 0x00004000; |
| return this; |
| } |
| public Builder setCloseProducer( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.Builder builderForValue) { |
| closeProducer_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00004000; |
| return this; |
| } |
| public Builder mergeCloseProducer(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer value) { |
| if (((bitField0_ & 0x00004000) == 0x00004000) && |
| closeProducer_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance()) { |
| closeProducer_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.newBuilder(closeProducer_).mergeFrom(value).buildPartial(); |
| } else { |
| closeProducer_ = value; |
| } |
| |
| bitField0_ |= 0x00004000; |
| return this; |
| } |
| public Builder clearCloseProducer() { |
| closeProducer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseProducer.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00004000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandCloseConsumer close_consumer = 16; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer closeConsumer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance(); |
| public boolean hasCloseConsumer() { |
| return ((bitField0_ & 0x00008000) == 0x00008000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer getCloseConsumer() { |
| return closeConsumer_; |
| } |
| public Builder setCloseConsumer(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| closeConsumer_ = value; |
| |
| bitField0_ |= 0x00008000; |
| return this; |
| } |
| public Builder setCloseConsumer( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.Builder builderForValue) { |
| closeConsumer_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00008000; |
| return this; |
| } |
| public Builder mergeCloseConsumer(org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer value) { |
| if (((bitField0_ & 0x00008000) == 0x00008000) && |
| closeConsumer_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance()) { |
| closeConsumer_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.newBuilder(closeConsumer_).mergeFrom(value).buildPartial(); |
| } else { |
| closeConsumer_ = value; |
| } |
| |
| bitField0_ |= 0x00008000; |
| return this; |
| } |
| public Builder clearCloseConsumer() { |
| closeConsumer_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandCloseConsumer.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00008000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandProducerSuccess producer_success = 17; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess producerSuccess_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance(); |
| public boolean hasProducerSuccess() { |
| return ((bitField0_ & 0x00010000) == 0x00010000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess getProducerSuccess() { |
| return producerSuccess_; |
| } |
| public Builder setProducerSuccess(org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| producerSuccess_ = value; |
| |
| bitField0_ |= 0x00010000; |
| return this; |
| } |
| public Builder setProducerSuccess( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.Builder builderForValue) { |
| producerSuccess_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00010000; |
| return this; |
| } |
| public Builder mergeProducerSuccess(org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess value) { |
| if (((bitField0_ & 0x00010000) == 0x00010000) && |
| producerSuccess_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance()) { |
| producerSuccess_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.newBuilder(producerSuccess_).mergeFrom(value).buildPartial(); |
| } else { |
| producerSuccess_ = value; |
| } |
| |
| bitField0_ |= 0x00010000; |
| return this; |
| } |
| public Builder clearProducerSuccess() { |
| producerSuccess_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandProducerSuccess.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00010000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandPing ping = 18; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPing ping_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.getDefaultInstance(); |
| public boolean hasPing() { |
| return ((bitField0_ & 0x00020000) == 0x00020000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPing getPing() { |
| return ping_; |
| } |
| public Builder setPing(org.apache.pulsar.common.api.proto.PulsarApi.CommandPing value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ping_ = value; |
| |
| bitField0_ |= 0x00020000; |
| return this; |
| } |
| public Builder setPing( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.Builder builderForValue) { |
| ping_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00020000; |
| return this; |
| } |
| public Builder mergePing(org.apache.pulsar.common.api.proto.PulsarApi.CommandPing value) { |
| if (((bitField0_ & 0x00020000) == 0x00020000) && |
| ping_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.getDefaultInstance()) { |
| ping_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.newBuilder(ping_).mergeFrom(value).buildPartial(); |
| } else { |
| ping_ = value; |
| } |
| |
| bitField0_ |= 0x00020000; |
| return this; |
| } |
| public Builder clearPing() { |
| ping_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPing.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00020000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandPong pong = 19; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPong pong_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.getDefaultInstance(); |
| public boolean hasPong() { |
| return ((bitField0_ & 0x00040000) == 0x00040000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPong getPong() { |
| return pong_; |
| } |
| public Builder setPong(org.apache.pulsar.common.api.proto.PulsarApi.CommandPong value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| pong_ = value; |
| |
| bitField0_ |= 0x00040000; |
| return this; |
| } |
| public Builder setPong( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.Builder builderForValue) { |
| pong_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00040000; |
| return this; |
| } |
| public Builder mergePong(org.apache.pulsar.common.api.proto.PulsarApi.CommandPong value) { |
| if (((bitField0_ & 0x00040000) == 0x00040000) && |
| pong_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.getDefaultInstance()) { |
| pong_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.newBuilder(pong_).mergeFrom(value).buildPartial(); |
| } else { |
| pong_ = value; |
| } |
| |
| bitField0_ |= 0x00040000; |
| return this; |
| } |
| public Builder clearPong() { |
| pong_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPong.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00040000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandRedeliverUnacknowledgedMessages redeliverUnacknowledgedMessages = 20; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages redeliverUnacknowledgedMessages_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.getDefaultInstance(); |
| public boolean hasRedeliverUnacknowledgedMessages() { |
| return ((bitField0_ & 0x00080000) == 0x00080000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages getRedeliverUnacknowledgedMessages() { |
| return redeliverUnacknowledgedMessages_; |
| } |
| public Builder setRedeliverUnacknowledgedMessages(org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| redeliverUnacknowledgedMessages_ = value; |
| |
| bitField0_ |= 0x00080000; |
| return this; |
| } |
| public Builder setRedeliverUnacknowledgedMessages( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.Builder builderForValue) { |
| redeliverUnacknowledgedMessages_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00080000; |
| return this; |
| } |
| public Builder mergeRedeliverUnacknowledgedMessages(org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages value) { |
| if (((bitField0_ & 0x00080000) == 0x00080000) && |
| redeliverUnacknowledgedMessages_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.getDefaultInstance()) { |
| redeliverUnacknowledgedMessages_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.newBuilder(redeliverUnacknowledgedMessages_).mergeFrom(value).buildPartial(); |
| } else { |
| redeliverUnacknowledgedMessages_ = value; |
| } |
| |
| bitField0_ |= 0x00080000; |
| return this; |
| } |
| public Builder clearRedeliverUnacknowledgedMessages() { |
| redeliverUnacknowledgedMessages_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandRedeliverUnacknowledgedMessages.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00080000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadata partitionMetadata = 21; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata partitionMetadata_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.getDefaultInstance(); |
| public boolean hasPartitionMetadata() { |
| return ((bitField0_ & 0x00100000) == 0x00100000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata getPartitionMetadata() { |
| return partitionMetadata_; |
| } |
| public Builder setPartitionMetadata(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| partitionMetadata_ = value; |
| |
| bitField0_ |= 0x00100000; |
| return this; |
| } |
| public Builder setPartitionMetadata( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.Builder builderForValue) { |
| partitionMetadata_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00100000; |
| return this; |
| } |
| public Builder mergePartitionMetadata(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata value) { |
| if (((bitField0_ & 0x00100000) == 0x00100000) && |
| partitionMetadata_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.getDefaultInstance()) { |
| partitionMetadata_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.newBuilder(partitionMetadata_).mergeFrom(value).buildPartial(); |
| } else { |
| partitionMetadata_ = value; |
| } |
| |
| bitField0_ |= 0x00100000; |
| return this; |
| } |
| public Builder clearPartitionMetadata() { |
| partitionMetadata_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadata.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00100000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandPartitionedTopicMetadataResponse partitionMetadataResponse = 22; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse partitionMetadataResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.getDefaultInstance(); |
| public boolean hasPartitionMetadataResponse() { |
| return ((bitField0_ & 0x00200000) == 0x00200000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse getPartitionMetadataResponse() { |
| return partitionMetadataResponse_; |
| } |
| public Builder setPartitionMetadataResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| partitionMetadataResponse_ = value; |
| |
| bitField0_ |= 0x00200000; |
| return this; |
| } |
| public Builder setPartitionMetadataResponse( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.Builder builderForValue) { |
| partitionMetadataResponse_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00200000; |
| return this; |
| } |
| public Builder mergePartitionMetadataResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse value) { |
| if (((bitField0_ & 0x00200000) == 0x00200000) && |
| partitionMetadataResponse_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.getDefaultInstance()) { |
| partitionMetadataResponse_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.newBuilder(partitionMetadataResponse_).mergeFrom(value).buildPartial(); |
| } else { |
| partitionMetadataResponse_ = value; |
| } |
| |
| bitField0_ |= 0x00200000; |
| return this; |
| } |
| public Builder clearPartitionMetadataResponse() { |
| partitionMetadataResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandPartitionedTopicMetadataResponse.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00200000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandLookupTopic lookupTopic = 23; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic lookupTopic_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance(); |
| public boolean hasLookupTopic() { |
| return ((bitField0_ & 0x00400000) == 0x00400000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic getLookupTopic() { |
| return lookupTopic_; |
| } |
| public Builder setLookupTopic(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| lookupTopic_ = value; |
| |
| bitField0_ |= 0x00400000; |
| return this; |
| } |
| public Builder setLookupTopic( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.Builder builderForValue) { |
| lookupTopic_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00400000; |
| return this; |
| } |
| public Builder mergeLookupTopic(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic value) { |
| if (((bitField0_ & 0x00400000) == 0x00400000) && |
| lookupTopic_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance()) { |
| lookupTopic_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.newBuilder(lookupTopic_).mergeFrom(value).buildPartial(); |
| } else { |
| lookupTopic_ = value; |
| } |
| |
| bitField0_ |= 0x00400000; |
| return this; |
| } |
| public Builder clearLookupTopic() { |
| lookupTopic_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopic.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00400000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandLookupTopicResponse lookupTopicResponse = 24; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse lookupTopicResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.getDefaultInstance(); |
| public boolean hasLookupTopicResponse() { |
| return ((bitField0_ & 0x00800000) == 0x00800000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse getLookupTopicResponse() { |
| return lookupTopicResponse_; |
| } |
| public Builder setLookupTopicResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| lookupTopicResponse_ = value; |
| |
| bitField0_ |= 0x00800000; |
| return this; |
| } |
| public Builder setLookupTopicResponse( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.Builder builderForValue) { |
| lookupTopicResponse_ = builderForValue.build(); |
| |
| bitField0_ |= 0x00800000; |
| return this; |
| } |
| public Builder mergeLookupTopicResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse value) { |
| if (((bitField0_ & 0x00800000) == 0x00800000) && |
| lookupTopicResponse_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.getDefaultInstance()) { |
| lookupTopicResponse_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.newBuilder(lookupTopicResponse_).mergeFrom(value).buildPartial(); |
| } else { |
| lookupTopicResponse_ = value; |
| } |
| |
| bitField0_ |= 0x00800000; |
| return this; |
| } |
| public Builder clearLookupTopicResponse() { |
| lookupTopicResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandLookupTopicResponse.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x00800000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandConsumerStats consumerStats = 25; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats consumerStats_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.getDefaultInstance(); |
| public boolean hasConsumerStats() { |
| return ((bitField0_ & 0x01000000) == 0x01000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats getConsumerStats() { |
| return consumerStats_; |
| } |
| public Builder setConsumerStats(org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| consumerStats_ = value; |
| |
| bitField0_ |= 0x01000000; |
| return this; |
| } |
| public Builder setConsumerStats( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.Builder builderForValue) { |
| consumerStats_ = builderForValue.build(); |
| |
| bitField0_ |= 0x01000000; |
| return this; |
| } |
| public Builder mergeConsumerStats(org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats value) { |
| if (((bitField0_ & 0x01000000) == 0x01000000) && |
| consumerStats_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.getDefaultInstance()) { |
| consumerStats_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.newBuilder(consumerStats_).mergeFrom(value).buildPartial(); |
| } else { |
| consumerStats_ = value; |
| } |
| |
| bitField0_ |= 0x01000000; |
| return this; |
| } |
| public Builder clearConsumerStats() { |
| consumerStats_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStats.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x01000000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandConsumerStatsResponse consumerStatsResponse = 26; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse consumerStatsResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.getDefaultInstance(); |
| public boolean hasConsumerStatsResponse() { |
| return ((bitField0_ & 0x02000000) == 0x02000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse getConsumerStatsResponse() { |
| return consumerStatsResponse_; |
| } |
| public Builder setConsumerStatsResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| consumerStatsResponse_ = value; |
| |
| bitField0_ |= 0x02000000; |
| return this; |
| } |
| public Builder setConsumerStatsResponse( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.Builder builderForValue) { |
| consumerStatsResponse_ = builderForValue.build(); |
| |
| bitField0_ |= 0x02000000; |
| return this; |
| } |
| public Builder mergeConsumerStatsResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse value) { |
| if (((bitField0_ & 0x02000000) == 0x02000000) && |
| consumerStatsResponse_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.getDefaultInstance()) { |
| consumerStatsResponse_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.newBuilder(consumerStatsResponse_).mergeFrom(value).buildPartial(); |
| } else { |
| consumerStatsResponse_ = value; |
| } |
| |
| bitField0_ |= 0x02000000; |
| return this; |
| } |
| public Builder clearConsumerStatsResponse() { |
| consumerStatsResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandConsumerStatsResponse.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x02000000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandReachedEndOfTopic reachedEndOfTopic = 27; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic reachedEndOfTopic_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.getDefaultInstance(); |
| public boolean hasReachedEndOfTopic() { |
| return ((bitField0_ & 0x04000000) == 0x04000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic getReachedEndOfTopic() { |
| return reachedEndOfTopic_; |
| } |
| public Builder setReachedEndOfTopic(org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| reachedEndOfTopic_ = value; |
| |
| bitField0_ |= 0x04000000; |
| return this; |
| } |
| public Builder setReachedEndOfTopic( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.Builder builderForValue) { |
| reachedEndOfTopic_ = builderForValue.build(); |
| |
| bitField0_ |= 0x04000000; |
| return this; |
| } |
| public Builder mergeReachedEndOfTopic(org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic value) { |
| if (((bitField0_ & 0x04000000) == 0x04000000) && |
| reachedEndOfTopic_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.getDefaultInstance()) { |
| reachedEndOfTopic_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.newBuilder(reachedEndOfTopic_).mergeFrom(value).buildPartial(); |
| } else { |
| reachedEndOfTopic_ = value; |
| } |
| |
| bitField0_ |= 0x04000000; |
| return this; |
| } |
| public Builder clearReachedEndOfTopic() { |
| reachedEndOfTopic_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandReachedEndOfTopic.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x04000000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandSeek seek = 28; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek seek_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.getDefaultInstance(); |
| public boolean hasSeek() { |
| return ((bitField0_ & 0x08000000) == 0x08000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek getSeek() { |
| return seek_; |
| } |
| public Builder setSeek(org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| seek_ = value; |
| |
| bitField0_ |= 0x08000000; |
| return this; |
| } |
| public Builder setSeek( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.Builder builderForValue) { |
| seek_ = builderForValue.build(); |
| |
| bitField0_ |= 0x08000000; |
| return this; |
| } |
| public Builder mergeSeek(org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek value) { |
| if (((bitField0_ & 0x08000000) == 0x08000000) && |
| seek_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.getDefaultInstance()) { |
| seek_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.newBuilder(seek_).mergeFrom(value).buildPartial(); |
| } else { |
| seek_ = value; |
| } |
| |
| bitField0_ |= 0x08000000; |
| return this; |
| } |
| public Builder clearSeek() { |
| seek_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandSeek.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x08000000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandGetLastMessageId getLastMessageId = 29; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId getLastMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.getDefaultInstance(); |
| public boolean hasGetLastMessageId() { |
| return ((bitField0_ & 0x10000000) == 0x10000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId getGetLastMessageId() { |
| return getLastMessageId_; |
| } |
| public Builder setGetLastMessageId(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| getLastMessageId_ = value; |
| |
| bitField0_ |= 0x10000000; |
| return this; |
| } |
| public Builder setGetLastMessageId( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.Builder builderForValue) { |
| getLastMessageId_ = builderForValue.build(); |
| |
| bitField0_ |= 0x10000000; |
| return this; |
| } |
| public Builder mergeGetLastMessageId(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId value) { |
| if (((bitField0_ & 0x10000000) == 0x10000000) && |
| getLastMessageId_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.getDefaultInstance()) { |
| getLastMessageId_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.newBuilder(getLastMessageId_).mergeFrom(value).buildPartial(); |
| } else { |
| getLastMessageId_ = value; |
| } |
| |
| bitField0_ |= 0x10000000; |
| return this; |
| } |
| public Builder clearGetLastMessageId() { |
| getLastMessageId_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageId.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x10000000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandGetLastMessageIdResponse getLastMessageIdResponse = 30; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse getLastMessageIdResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.getDefaultInstance(); |
| public boolean hasGetLastMessageIdResponse() { |
| return ((bitField0_ & 0x20000000) == 0x20000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse getGetLastMessageIdResponse() { |
| return getLastMessageIdResponse_; |
| } |
| public Builder setGetLastMessageIdResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| getLastMessageIdResponse_ = value; |
| |
| bitField0_ |= 0x20000000; |
| return this; |
| } |
| public Builder setGetLastMessageIdResponse( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.Builder builderForValue) { |
| getLastMessageIdResponse_ = builderForValue.build(); |
| |
| bitField0_ |= 0x20000000; |
| return this; |
| } |
| public Builder mergeGetLastMessageIdResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse value) { |
| if (((bitField0_ & 0x20000000) == 0x20000000) && |
| getLastMessageIdResponse_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.getDefaultInstance()) { |
| getLastMessageIdResponse_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.newBuilder(getLastMessageIdResponse_).mergeFrom(value).buildPartial(); |
| } else { |
| getLastMessageIdResponse_ = value; |
| } |
| |
| bitField0_ |= 0x20000000; |
| return this; |
| } |
| public Builder clearGetLastMessageIdResponse() { |
| getLastMessageIdResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetLastMessageIdResponse.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x20000000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandActiveConsumerChange active_consumer_change = 31; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange activeConsumerChange_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.getDefaultInstance(); |
| public boolean hasActiveConsumerChange() { |
| return ((bitField0_ & 0x40000000) == 0x40000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange getActiveConsumerChange() { |
| return activeConsumerChange_; |
| } |
| public Builder setActiveConsumerChange(org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| activeConsumerChange_ = value; |
| |
| bitField0_ |= 0x40000000; |
| return this; |
| } |
| public Builder setActiveConsumerChange( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.Builder builderForValue) { |
| activeConsumerChange_ = builderForValue.build(); |
| |
| bitField0_ |= 0x40000000; |
| return this; |
| } |
| public Builder mergeActiveConsumerChange(org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange value) { |
| if (((bitField0_ & 0x40000000) == 0x40000000) && |
| activeConsumerChange_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.getDefaultInstance()) { |
| activeConsumerChange_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.newBuilder(activeConsumerChange_).mergeFrom(value).buildPartial(); |
| } else { |
| activeConsumerChange_ = value; |
| } |
| |
| bitField0_ |= 0x40000000; |
| return this; |
| } |
| public Builder clearActiveConsumerChange() { |
| activeConsumerChange_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandActiveConsumerChange.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x40000000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandGetTopicsOfNamespace getTopicsOfNamespace = 32; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace getTopicsOfNamespace_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.getDefaultInstance(); |
| public boolean hasGetTopicsOfNamespace() { |
| return ((bitField0_ & 0x80000000) == 0x80000000); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace getGetTopicsOfNamespace() { |
| return getTopicsOfNamespace_; |
| } |
| public Builder setGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| getTopicsOfNamespace_ = value; |
| |
| bitField0_ |= 0x80000000; |
| return this; |
| } |
| public Builder setGetTopicsOfNamespace( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.Builder builderForValue) { |
| getTopicsOfNamespace_ = builderForValue.build(); |
| |
| bitField0_ |= 0x80000000; |
| return this; |
| } |
| public Builder mergeGetTopicsOfNamespace(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace value) { |
| if (((bitField0_ & 0x80000000) == 0x80000000) && |
| getTopicsOfNamespace_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.getDefaultInstance()) { |
| getTopicsOfNamespace_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.newBuilder(getTopicsOfNamespace_).mergeFrom(value).buildPartial(); |
| } else { |
| getTopicsOfNamespace_ = value; |
| } |
| |
| bitField0_ |= 0x80000000; |
| return this; |
| } |
| public Builder clearGetTopicsOfNamespace() { |
| getTopicsOfNamespace_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespace.getDefaultInstance(); |
| |
| bitField0_ = (bitField0_ & ~0x80000000); |
| return this; |
| } |
| |
| // optional .pulsar.proto.CommandGetTopicsOfNamespaceResponse getTopicsOfNamespaceResponse = 33; |
| private org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse getTopicsOfNamespaceResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance(); |
| public boolean hasGetTopicsOfNamespaceResponse() { |
| return ((bitField1_ & 0x00000001) == 0x00000001); |
| } |
| public org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse getGetTopicsOfNamespaceResponse() { |
| return getTopicsOfNamespaceResponse_; |
| } |
| public Builder setGetTopicsOfNamespaceResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| getTopicsOfNamespaceResponse_ = value; |
| |
| bitField1_ |= 0x00000001; |
| return this; |
| } |
| public Builder setGetTopicsOfNamespaceResponse( |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.Builder builderForValue) { |
| getTopicsOfNamespaceResponse_ = builderForValue.build(); |
| |
| bitField1_ |= 0x00000001; |
| return this; |
| } |
| public Builder mergeGetTopicsOfNamespaceResponse(org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse value) { |
| if (((bitField1_ & 0x00000001) == 0x00000001) && |
| getTopicsOfNamespaceResponse_ != org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance()) { |
| getTopicsOfNamespaceResponse_ = |
| org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.newBuilder(getTopicsOfNamespaceResponse_).mergeFrom(value).buildPartial(); |
| } else { |
| getTopicsOfNamespaceResponse_ = value; |
| } |
| |
| bitField1_ |= 0x00000001; |
| return this; |
| } |
| public Builder clearGetTopicsOfNamespaceResponse() { |
| getTopicsOfNamespaceResponse_ = org.apache.pulsar.common.api.proto.PulsarApi.CommandGetTopicsOfNamespaceResponse.getDefaultInstance(); |
| |
| bitField1_ = (bitField1_ & ~0x00000001); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:pulsar.proto.BaseCommand) |
| } |
| |
| static { |
| defaultInstance = new BaseCommand(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:pulsar.proto.BaseCommand) |
| } |
| |
| |
| static { |
| } |
| |
| // @@protoc_insertion_point(outer_class_scope) |
| } |