+ * NOTICE: the lock should only influences it self,the child path should be available to other DbleServer to write + * + * @param path + * @param value + * @return + * @throws Exception + */ + String lock(String path, String value) throws Exception; + + + /** + * use the locked path and sessionId to unlock a path + * and the KV of the lock should be removed + * + * @param key + * @param sessionId + */ + void unlockKey(String key, String sessionId); + + /** + * put KV into cluster + * + * @param path + * @param value + * @throws Exception + */ + void setKV(String path, String value) throws Exception; + + /** + * get KV from cluster + * + * @param path + * @return + */ + KvBean getKV(String path); + + /** + * return all the KV under the path + *
+ * NOTICE: the KV in result list should be full path
+ *
+ * @param path
+ * @return
+ */
+ Liststring Key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string Key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * string Value = 2;
+ */
+ java.lang.String getValue();
+ /**
+ * string Value = 2;
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.PutKvInput}
+ */
+ public static final class PutKvInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.PutKvInput)
+ PutKvInputOrBuilder {
+ // Use PutKvInput.newBuilder() to construct.
+ private PutKvInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private PutKvInput() {
+ key_ = "";
+ value_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private PutKvInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ value_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_PutKvInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_PutKvInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * string Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object value_;
+ /**
+ * string Value = 2;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Value = 2;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ if (!getValueBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ if (!getValueBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput) obj;
+
+ boolean result = true;
+ result = result && getKey()
+ .equals(other.getKey());
+ result = result && getValue()
+ .equals(other.getValue());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.PutKvInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+ /**
+ * string Value = 2;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Value = 2;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Value = 2;
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Value = 2;
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Value = 2;
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.PutKvInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.PutKvInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.PutKvInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring Key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string Key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.GetKvInput}
+ */
+ public static final class GetKvInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.GetKvInput)
+ GetKvInputOrBuilder {
+ // Use GetKvInput.newBuilder() to construct.
+ private GetKvInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetKvInput() {
+ key_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private GetKvInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_GetKvInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_GetKvInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * string Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput) obj;
+
+ boolean result = true;
+ result = result && getKey()
+ .equals(other.getKey());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.GetKvInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.GetKvInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.GetKvInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring Value = 1;
+ */
+ java.lang.String getValue();
+ /**
+ * string Value = 1;
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.GetKvOutput}
+ */
+ public static final class GetKvOutput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.GetKvOutput)
+ GetKvOutputOrBuilder {
+ // Use GetKvOutput.newBuilder() to construct.
+ private GetKvOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetKvOutput() {
+ value_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private GetKvOutput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ value_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_GetKvOutput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_GetKvOutput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object value_;
+ /**
+ * string Value = 1;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Value = 1;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getValueBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getValueBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput) obj;
+
+ boolean result = true;
+ result = result && getValue()
+ .equals(other.getValue());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.GetKvOutput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring Value = 1;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Value = 1;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Value = 1;
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Value = 1;
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Value = 1;
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.GetKvOutput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.GetKvOutput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvOutput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring Key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string Key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.DeleteKvInput}
+ */
+ public static final class DeleteKvInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.DeleteKvInput)
+ DeleteKvInputOrBuilder {
+ // Use DeleteKvInput.newBuilder() to construct.
+ private DeleteKvInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DeleteKvInput() {
+ key_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private DeleteKvInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_DeleteKvInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_DeleteKvInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * string Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput) obj;
+
+ boolean result = true;
+ result = result && getKey()
+ .equals(other.getKey());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.DeleteKvInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.DeleteKvInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.DeleteKvInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring Key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string Key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.DeleteKvTreeInput}
+ */
+ public static final class DeleteKvTreeInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.DeleteKvTreeInput)
+ DeleteKvTreeInputOrBuilder {
+ // Use DeleteKvTreeInput.newBuilder() to construct.
+ private DeleteKvTreeInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DeleteKvTreeInput() {
+ key_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private DeleteKvTreeInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_DeleteKvTreeInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_DeleteKvTreeInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * string Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput) obj;
+
+ boolean result = true;
+ result = result && getKey()
+ .equals(other.getKey());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.DeleteKvTreeInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.DeleteKvTreeInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.DeleteKvTreeInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.DeleteKvTreeInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring KeyPrefix = 1;
+ */
+ java.lang.String getKeyPrefix();
+ /**
+ * string KeyPrefix = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyPrefixBytes();
+
+ /**
+ * uint64 Index = 2;
+ */
+ long getIndex();
+
+ /**
+ * uint32 Duration = 3;
+ */
+ int getDuration();
+ }
+ /**
+ * Protobuf type {@code ushard.SubscribeKvPrefixInput}
+ */
+ public static final class SubscribeKvPrefixInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.SubscribeKvPrefixInput)
+ SubscribeKvPrefixInputOrBuilder {
+ // Use SubscribeKvPrefixInput.newBuilder() to construct.
+ private SubscribeKvPrefixInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private SubscribeKvPrefixInput() {
+ keyPrefix_ = "";
+ index_ = 0L;
+ duration_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private SubscribeKvPrefixInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ keyPrefix_ = s;
+ break;
+ }
+ case 16: {
+
+ index_ = input.readUInt64();
+ break;
+ }
+ case 24: {
+
+ duration_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_SubscribeKvPrefixInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_SubscribeKvPrefixInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput.Builder.class);
+ }
+
+ public static final int KEYPREFIX_FIELD_NUMBER = 1;
+ private volatile java.lang.Object keyPrefix_;
+ /**
+ * string KeyPrefix = 1;
+ */
+ public java.lang.String getKeyPrefix() {
+ java.lang.Object ref = keyPrefix_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keyPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ * string KeyPrefix = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyPrefixBytes() {
+ java.lang.Object ref = keyPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ keyPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INDEX_FIELD_NUMBER = 2;
+ private long index_;
+ /**
+ * uint64 Index = 2;
+ */
+ public long getIndex() {
+ return index_;
+ }
+
+ public static final int DURATION_FIELD_NUMBER = 3;
+ private int duration_;
+ /**
+ * uint32 Duration = 3;
+ */
+ public int getDuration() {
+ return duration_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyPrefixBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyPrefix_);
+ }
+ if (index_ != 0L) {
+ output.writeUInt64(2, index_);
+ }
+ if (duration_ != 0) {
+ output.writeUInt32(3, duration_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyPrefixBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyPrefix_);
+ }
+ if (index_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(2, index_);
+ }
+ if (duration_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, duration_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput) obj;
+
+ boolean result = true;
+ result = result && getKeyPrefix()
+ .equals(other.getKeyPrefix());
+ result = result && (getIndex()
+ == other.getIndex());
+ result = result && (getDuration()
+ == other.getDuration());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEYPREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getKeyPrefix().hashCode();
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getIndex());
+ hash = (37 * hash) + DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getDuration();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.SubscribeKvPrefixInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring KeyPrefix = 1;
+ */
+ public java.lang.String getKeyPrefix() {
+ java.lang.Object ref = keyPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keyPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string KeyPrefix = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyPrefixBytes() {
+ java.lang.Object ref = keyPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ keyPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string KeyPrefix = 1;
+ */
+ public Builder setKeyPrefix(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ keyPrefix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string KeyPrefix = 1;
+ */
+ public Builder clearKeyPrefix() {
+
+ keyPrefix_ = getDefaultInstance().getKeyPrefix();
+ onChanged();
+ return this;
+ }
+ /**
+ * string KeyPrefix = 1;
+ */
+ public Builder setKeyPrefixBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ keyPrefix_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long index_ ;
+ /**
+ * uint64 Index = 2;
+ */
+ public long getIndex() {
+ return index_;
+ }
+ /**
+ * uint64 Index = 2;
+ */
+ public Builder setIndex(long value) {
+
+ index_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 Index = 2;
+ */
+ public Builder clearIndex() {
+
+ index_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int duration_ ;
+ /**
+ * uint32 Duration = 3;
+ */
+ public int getDuration() {
+ return duration_;
+ }
+ /**
+ * uint32 Duration = 3;
+ */
+ public Builder setDuration(int value) {
+
+ duration_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 Duration = 3;
+ */
+ public Builder clearDuration() {
+
+ duration_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.SubscribeKvPrefixInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.SubscribeKvPrefixInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint64 Index = 1;
+ */
+ long getIndex();
+
+ /**
+ * repeated string Keys = 2;
+ */
+ java.util.Listrepeated string Keys = 2;
+ */
+ int getKeysCount();
+ /**
+ * repeated string Keys = 2;
+ */
+ java.lang.String getKeys(int index);
+ /**
+ * repeated string Keys = 2;
+ */
+ com.google.protobuf.ByteString
+ getKeysBytes(int index);
+
+ /**
+ * repeated string Values = 3;
+ */
+ java.util.Listrepeated string Values = 3;
+ */
+ int getValuesCount();
+ /**
+ * repeated string Values = 3;
+ */
+ java.lang.String getValues(int index);
+ /**
+ * repeated string Values = 3;
+ */
+ com.google.protobuf.ByteString
+ getValuesBytes(int index);
+ }
+ /**
+ * Protobuf type {@code ushard.SubscribeKvPrefixOutput}
+ */
+ public static final class SubscribeKvPrefixOutput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.SubscribeKvPrefixOutput)
+ SubscribeKvPrefixOutputOrBuilder {
+ // Use SubscribeKvPrefixOutput.newBuilder() to construct.
+ private SubscribeKvPrefixOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private SubscribeKvPrefixOutput() {
+ index_ = 0L;
+ keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private SubscribeKvPrefixOutput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ index_ = input.readUInt64();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ keys_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ keys_.add(s);
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ values_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ values_.add(s);
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ keys_ = keys_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ values_ = values_.getUnmodifiableView();
+ }
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_SubscribeKvPrefixOutput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_SubscribeKvPrefixOutput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int INDEX_FIELD_NUMBER = 1;
+ private long index_;
+ /**
+ * uint64 Index = 1;
+ */
+ public long getIndex() {
+ return index_;
+ }
+
+ public static final int KEYS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList keys_;
+ /**
+ * repeated string Keys = 2;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getKeysList() {
+ return keys_;
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public int getKeysCount() {
+ return keys_.size();
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public java.lang.String getKeys(int index) {
+ return keys_.get(index);
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public com.google.protobuf.ByteString
+ getKeysBytes(int index) {
+ return keys_.getByteString(index);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 3;
+ private com.google.protobuf.LazyStringList values_;
+ /**
+ * repeated string Values = 3;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getValuesList() {
+ return values_;
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public com.google.protobuf.ByteString
+ getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (index_ != 0L) {
+ output.writeUInt64(1, index_);
+ }
+ for (int i = 0; i < keys_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keys_.getRaw(i));
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i));
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (index_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, index_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < keys_.size(); i++) {
+ dataSize += computeStringSizeNoTag(keys_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getKeysList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput) obj;
+
+ boolean result = true;
+ result = result && (getIndex()
+ == other.getIndex());
+ result = result && getKeysList()
+ .equals(other.getKeysList());
+ result = result && getValuesList()
+ .equals(other.getValuesList());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getIndex());
+ if (getKeysCount() > 0) {
+ hash = (37 * hash) + KEYS_FIELD_NUMBER;
+ hash = (53 * hash) + getKeysList().hashCode();
+ }
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.SubscribeKvPrefixOutput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderuint64 Index = 1;
+ */
+ public long getIndex() {
+ return index_;
+ }
+ /**
+ * uint64 Index = 1;
+ */
+ public Builder setIndex(long value) {
+
+ index_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 Index = 1;
+ */
+ public Builder clearIndex() {
+
+ index_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureKeysIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ keys_ = new com.google.protobuf.LazyStringArrayList(keys_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getKeysList() {
+ return keys_.getUnmodifiableView();
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public int getKeysCount() {
+ return keys_.size();
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public java.lang.String getKeys(int index) {
+ return keys_.get(index);
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public com.google.protobuf.ByteString
+ getKeysBytes(int index) {
+ return keys_.getByteString(index);
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public Builder setKeys(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKeysIsMutable();
+ keys_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public Builder addKeys(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKeysIsMutable();
+ keys_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public Builder addAllKeys(
+ java.lang.Iterablerepeated string Keys = 2;
+ */
+ public Builder clearKeys() {
+ keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public Builder addKeysBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKeysIsMutable();
+ keys_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureValuesIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ values_ = new com.google.protobuf.LazyStringArrayList(values_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getValuesList() {
+ return values_.getUnmodifiableView();
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public com.google.protobuf.ByteString
+ getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public Builder setValues(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public Builder addValues(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public Builder addAllValues(
+ java.lang.Iterablerepeated string Values = 3;
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public Builder addValuesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.SubscribeKvPrefixOutput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.SubscribeKvPrefixOutput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.SubscribeKvPrefixOutput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring Key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string Key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.GetKvTreeInput}
+ */
+ public static final class GetKvTreeInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.GetKvTreeInput)
+ GetKvTreeInputOrBuilder {
+ // Use GetKvTreeInput.newBuilder() to construct.
+ private GetKvTreeInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetKvTreeInput() {
+ key_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private GetKvTreeInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_GetKvTreeInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_GetKvTreeInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * string Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput) obj;
+
+ boolean result = true;
+ result = result && getKey()
+ .equals(other.getKey());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.GetKvTreeInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.GetKvTreeInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.GetKvTreeInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint64 Index = 1;
+ */
+ long getIndex();
+
+ /**
+ * repeated string Keys = 2;
+ */
+ java.util.Listrepeated string Keys = 2;
+ */
+ int getKeysCount();
+ /**
+ * repeated string Keys = 2;
+ */
+ java.lang.String getKeys(int index);
+ /**
+ * repeated string Keys = 2;
+ */
+ com.google.protobuf.ByteString
+ getKeysBytes(int index);
+
+ /**
+ * repeated string Values = 3;
+ */
+ java.util.Listrepeated string Values = 3;
+ */
+ int getValuesCount();
+ /**
+ * repeated string Values = 3;
+ */
+ java.lang.String getValues(int index);
+ /**
+ * repeated string Values = 3;
+ */
+ com.google.protobuf.ByteString
+ getValuesBytes(int index);
+ }
+ /**
+ * Protobuf type {@code ushard.GetKvTreeOutput}
+ */
+ public static final class GetKvTreeOutput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.GetKvTreeOutput)
+ GetKvTreeOutputOrBuilder {
+ // Use GetKvTreeOutput.newBuilder() to construct.
+ private GetKvTreeOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetKvTreeOutput() {
+ index_ = 0L;
+ keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private GetKvTreeOutput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ index_ = input.readUInt64();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ keys_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ keys_.add(s);
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ values_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ values_.add(s);
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
+ keys_ = keys_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ values_ = values_.getUnmodifiableView();
+ }
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_GetKvTreeOutput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_GetKvTreeOutput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int INDEX_FIELD_NUMBER = 1;
+ private long index_;
+ /**
+ * uint64 Index = 1;
+ */
+ public long getIndex() {
+ return index_;
+ }
+
+ public static final int KEYS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList keys_;
+ /**
+ * repeated string Keys = 2;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getKeysList() {
+ return keys_;
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public int getKeysCount() {
+ return keys_.size();
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public java.lang.String getKeys(int index) {
+ return keys_.get(index);
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public com.google.protobuf.ByteString
+ getKeysBytes(int index) {
+ return keys_.getByteString(index);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 3;
+ private com.google.protobuf.LazyStringList values_;
+ /**
+ * repeated string Values = 3;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getValuesList() {
+ return values_;
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public com.google.protobuf.ByteString
+ getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (index_ != 0L) {
+ output.writeUInt64(1, index_);
+ }
+ for (int i = 0; i < keys_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keys_.getRaw(i));
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i));
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (index_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, index_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < keys_.size(); i++) {
+ dataSize += computeStringSizeNoTag(keys_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getKeysList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput) obj;
+
+ boolean result = true;
+ result = result && (getIndex()
+ == other.getIndex());
+ result = result && getKeysList()
+ .equals(other.getKeysList());
+ result = result && getValuesList()
+ .equals(other.getValuesList());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getIndex());
+ if (getKeysCount() > 0) {
+ hash = (37 * hash) + KEYS_FIELD_NUMBER;
+ hash = (53 * hash) + getKeysList().hashCode();
+ }
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.GetKvTreeOutput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderuint64 Index = 1;
+ */
+ public long getIndex() {
+ return index_;
+ }
+ /**
+ * uint64 Index = 1;
+ */
+ public Builder setIndex(long value) {
+
+ index_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 Index = 1;
+ */
+ public Builder clearIndex() {
+
+ index_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureKeysIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ keys_ = new com.google.protobuf.LazyStringArrayList(keys_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getKeysList() {
+ return keys_.getUnmodifiableView();
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public int getKeysCount() {
+ return keys_.size();
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public java.lang.String getKeys(int index) {
+ return keys_.get(index);
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public com.google.protobuf.ByteString
+ getKeysBytes(int index) {
+ return keys_.getByteString(index);
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public Builder setKeys(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKeysIsMutable();
+ keys_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public Builder addKeys(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKeysIsMutable();
+ keys_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public Builder addAllKeys(
+ java.lang.Iterablerepeated string Keys = 2;
+ */
+ public Builder clearKeys() {
+ keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Keys = 2;
+ */
+ public Builder addKeysBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKeysIsMutable();
+ keys_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureValuesIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ values_ = new com.google.protobuf.LazyStringArrayList(values_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getValuesList() {
+ return values_.getUnmodifiableView();
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public com.google.protobuf.ByteString
+ getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public Builder setValues(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public Builder addValues(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public Builder addAllValues(
+ java.lang.Iterablerepeated string Values = 3;
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string Values = 3;
+ */
+ public Builder addValuesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.GetKvTreeOutput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.GetKvTreeOutput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.GetKvTreeOutput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring Code = 1;
+ */
+ java.lang.String getCode();
+ /**
+ * string Code = 1;
+ */
+ com.google.protobuf.ByteString
+ getCodeBytes();
+
+ /**
+ * string Level = 2;
+ */
+ java.lang.String getLevel();
+ /**
+ * string Level = 2;
+ */
+ com.google.protobuf.ByteString
+ getLevelBytes();
+
+ /**
+ * string Desc = 3;
+ */
+ java.lang.String getDesc();
+ /**
+ * string Desc = 3;
+ */
+ com.google.protobuf.ByteString
+ getDescBytes();
+
+ /**
+ * string SourceComponentType = 4;
+ */
+ java.lang.String getSourceComponentType();
+ /**
+ * string SourceComponentType = 4;
+ */
+ com.google.protobuf.ByteString
+ getSourceComponentTypeBytes();
+
+ /**
+ * string SourceComponentId = 5;
+ */
+ java.lang.String getSourceComponentId();
+ /**
+ * string SourceComponentId = 5;
+ */
+ com.google.protobuf.ByteString
+ getSourceComponentIdBytes();
+
+ /**
+ * string AlertComponentType = 6;
+ */
+ java.lang.String getAlertComponentType();
+ /**
+ * string AlertComponentType = 6;
+ */
+ com.google.protobuf.ByteString
+ getAlertComponentTypeBytes();
+
+ /**
+ * string AlertComponentId = 7;
+ */
+ java.lang.String getAlertComponentId();
+ /**
+ * string AlertComponentId = 7;
+ */
+ com.google.protobuf.ByteString
+ getAlertComponentIdBytes();
+
+ /**
+ * string ServerId = 8;
+ */
+ java.lang.String getServerId();
+ /**
+ * string ServerId = 8;
+ */
+ com.google.protobuf.ByteString
+ getServerIdBytes();
+
+ /**
+ * map<string, string> Labels = 9;
+ */
+ int getLabelsCount();
+ /**
+ * map<string, string> Labels = 9;
+ */
+ boolean containsLabels(
+ java.lang.String key);
+ /**
+ * Use {@link #getLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> Labels = 9;
+ */
+ java.util.Mapmap<string, string> Labels = 9;
+ */
+
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> Labels = 9;
+ */
+
+ java.lang.String getLabelsOrThrow(
+ java.lang.String key);
+
+ /**
+ * map<string, string> Annotations = 10;
+ */
+ int getAnnotationsCount();
+ /**
+ * map<string, string> Annotations = 10;
+ */
+ boolean containsAnnotations(
+ java.lang.String key);
+ /**
+ * Use {@link #getAnnotationsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> Annotations = 10;
+ */
+ java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ java.lang.String getAnnotationsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> Annotations = 10;
+ */
+
+ java.lang.String getAnnotationsOrThrow(
+ java.lang.String key);
+
+ /**
+ * int64 TimestampUnix = 11;
+ */
+ long getTimestampUnix();
+
+ /**
+ * int64 ResolveTimestampUnix = 12;
+ */
+ long getResolveTimestampUnix();
+ }
+ /**
+ * Protobuf type {@code ushard.AlertInput}
+ */
+ public static final class AlertInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.AlertInput)
+ AlertInputOrBuilder {
+ // Use AlertInput.newBuilder() to construct.
+ private AlertInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AlertInput() {
+ code_ = "";
+ level_ = "";
+ desc_ = "";
+ sourceComponentType_ = "";
+ sourceComponentId_ = "";
+ alertComponentType_ = "";
+ alertComponentId_ = "";
+ serverId_ = "";
+ timestampUnix_ = 0L;
+ resolveTimestampUnix_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private AlertInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ code_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ level_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ desc_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sourceComponentType_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sourceComponentId_ = s;
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ alertComponentType_ = s;
+ break;
+ }
+ case 58: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ alertComponentId_ = s;
+ break;
+ }
+ case 66: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serverId_ = s;
+ break;
+ }
+ case 74: {
+ if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
+ labels_ = com.google.protobuf.MapField.newMapField(
+ LabelsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000100;
+ }
+ com.google.protobuf.MapEntrystring Code = 1;
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Code = 1;
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LEVEL_FIELD_NUMBER = 2;
+ private volatile java.lang.Object level_;
+ /**
+ * string Level = 2;
+ */
+ public java.lang.String getLevel() {
+ java.lang.Object ref = level_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ level_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Level = 2;
+ */
+ public com.google.protobuf.ByteString
+ getLevelBytes() {
+ java.lang.Object ref = level_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ level_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESC_FIELD_NUMBER = 3;
+ private volatile java.lang.Object desc_;
+ /**
+ * string Desc = 3;
+ */
+ public java.lang.String getDesc() {
+ java.lang.Object ref = desc_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ desc_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Desc = 3;
+ */
+ public com.google.protobuf.ByteString
+ getDescBytes() {
+ java.lang.Object ref = desc_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ desc_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCECOMPONENTTYPE_FIELD_NUMBER = 4;
+ private volatile java.lang.Object sourceComponentType_;
+ /**
+ * string SourceComponentType = 4;
+ */
+ public java.lang.String getSourceComponentType() {
+ java.lang.Object ref = sourceComponentType_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceComponentType_ = s;
+ return s;
+ }
+ }
+ /**
+ * string SourceComponentType = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSourceComponentTypeBytes() {
+ java.lang.Object ref = sourceComponentType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sourceComponentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCECOMPONENTID_FIELD_NUMBER = 5;
+ private volatile java.lang.Object sourceComponentId_;
+ /**
+ * string SourceComponentId = 5;
+ */
+ public java.lang.String getSourceComponentId() {
+ java.lang.Object ref = sourceComponentId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceComponentId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string SourceComponentId = 5;
+ */
+ public com.google.protobuf.ByteString
+ getSourceComponentIdBytes() {
+ java.lang.Object ref = sourceComponentId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sourceComponentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ALERTCOMPONENTTYPE_FIELD_NUMBER = 6;
+ private volatile java.lang.Object alertComponentType_;
+ /**
+ * string AlertComponentType = 6;
+ */
+ public java.lang.String getAlertComponentType() {
+ java.lang.Object ref = alertComponentType_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ alertComponentType_ = s;
+ return s;
+ }
+ }
+ /**
+ * string AlertComponentType = 6;
+ */
+ public com.google.protobuf.ByteString
+ getAlertComponentTypeBytes() {
+ java.lang.Object ref = alertComponentType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ alertComponentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ALERTCOMPONENTID_FIELD_NUMBER = 7;
+ private volatile java.lang.Object alertComponentId_;
+ /**
+ * string AlertComponentId = 7;
+ */
+ public java.lang.String getAlertComponentId() {
+ java.lang.Object ref = alertComponentId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ alertComponentId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string AlertComponentId = 7;
+ */
+ public com.google.protobuf.ByteString
+ getAlertComponentIdBytes() {
+ java.lang.Object ref = alertComponentId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ alertComponentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVERID_FIELD_NUMBER = 8;
+ private volatile java.lang.Object serverId_;
+ /**
+ * string ServerId = 8;
+ */
+ public java.lang.String getServerId() {
+ java.lang.Object ref = serverId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serverId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string ServerId = 8;
+ */
+ public com.google.protobuf.ByteString
+ getServerIdBytes() {
+ java.lang.Object ref = serverId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serverId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LABELS_FIELD_NUMBER = 9;
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> Labels = 9;
+ */
+
+ public boolean containsLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> Labels = 9;
+ */
+
+ public java.util.Mapmap<string, string> Labels = 9;
+ */
+
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> Labels = 9;
+ */
+
+ public java.lang.String getLabelsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public boolean containsAnnotations(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAnnotations().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAnnotationsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public java.lang.String getAnnotationsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public java.lang.String getAnnotationsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapint64 TimestampUnix = 11;
+ */
+ public long getTimestampUnix() {
+ return timestampUnix_;
+ }
+
+ public static final int RESOLVETIMESTAMPUNIX_FIELD_NUMBER = 12;
+ private long resolveTimestampUnix_;
+ /**
+ * int64 ResolveTimestampUnix = 12;
+ */
+ public long getResolveTimestampUnix() {
+ return resolveTimestampUnix_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getCodeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
+ }
+ if (!getLevelBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, level_);
+ }
+ if (!getDescBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, desc_);
+ }
+ if (!getSourceComponentTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceComponentType_);
+ }
+ if (!getSourceComponentIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceComponentId_);
+ }
+ if (!getAlertComponentTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, alertComponentType_);
+ }
+ if (!getAlertComponentIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, alertComponentId_);
+ }
+ if (!getServerIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serverId_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetLabels(),
+ LabelsDefaultEntryHolder.defaultEntry,
+ 9);
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAnnotations(),
+ AnnotationsDefaultEntryHolder.defaultEntry,
+ 10);
+ if (timestampUnix_ != 0L) {
+ output.writeInt64(11, timestampUnix_);
+ }
+ if (resolveTimestampUnix_ != 0L) {
+ output.writeInt64(12, resolveTimestampUnix_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getCodeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
+ }
+ if (!getLevelBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, level_);
+ }
+ if (!getDescBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, desc_);
+ }
+ if (!getSourceComponentTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceComponentType_);
+ }
+ if (!getSourceComponentIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceComponentId_);
+ }
+ if (!getAlertComponentTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, alertComponentType_);
+ }
+ if (!getAlertComponentIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, alertComponentId_);
+ }
+ if (!getServerIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serverId_);
+ }
+ for (java.util.Map.Entrystring Code = 1;
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Code = 1;
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Code = 1;
+ */
+ public Builder setCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Code = 1;
+ */
+ public Builder clearCode() {
+
+ code_ = getDefaultInstance().getCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Code = 1;
+ */
+ public Builder setCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object level_ = "";
+ /**
+ * string Level = 2;
+ */
+ public java.lang.String getLevel() {
+ java.lang.Object ref = level_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ level_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Level = 2;
+ */
+ public com.google.protobuf.ByteString
+ getLevelBytes() {
+ java.lang.Object ref = level_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ level_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Level = 2;
+ */
+ public Builder setLevel(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ level_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Level = 2;
+ */
+ public Builder clearLevel() {
+
+ level_ = getDefaultInstance().getLevel();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Level = 2;
+ */
+ public Builder setLevelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ level_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object desc_ = "";
+ /**
+ * string Desc = 3;
+ */
+ public java.lang.String getDesc() {
+ java.lang.Object ref = desc_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ desc_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Desc = 3;
+ */
+ public com.google.protobuf.ByteString
+ getDescBytes() {
+ java.lang.Object ref = desc_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ desc_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Desc = 3;
+ */
+ public Builder setDesc(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ desc_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Desc = 3;
+ */
+ public Builder clearDesc() {
+
+ desc_ = getDefaultInstance().getDesc();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Desc = 3;
+ */
+ public Builder setDescBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ desc_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sourceComponentType_ = "";
+ /**
+ * string SourceComponentType = 4;
+ */
+ public java.lang.String getSourceComponentType() {
+ java.lang.Object ref = sourceComponentType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceComponentType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string SourceComponentType = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSourceComponentTypeBytes() {
+ java.lang.Object ref = sourceComponentType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sourceComponentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string SourceComponentType = 4;
+ */
+ public Builder setSourceComponentType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sourceComponentType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string SourceComponentType = 4;
+ */
+ public Builder clearSourceComponentType() {
+
+ sourceComponentType_ = getDefaultInstance().getSourceComponentType();
+ onChanged();
+ return this;
+ }
+ /**
+ * string SourceComponentType = 4;
+ */
+ public Builder setSourceComponentTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sourceComponentType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sourceComponentId_ = "";
+ /**
+ * string SourceComponentId = 5;
+ */
+ public java.lang.String getSourceComponentId() {
+ java.lang.Object ref = sourceComponentId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceComponentId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string SourceComponentId = 5;
+ */
+ public com.google.protobuf.ByteString
+ getSourceComponentIdBytes() {
+ java.lang.Object ref = sourceComponentId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sourceComponentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string SourceComponentId = 5;
+ */
+ public Builder setSourceComponentId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sourceComponentId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string SourceComponentId = 5;
+ */
+ public Builder clearSourceComponentId() {
+
+ sourceComponentId_ = getDefaultInstance().getSourceComponentId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string SourceComponentId = 5;
+ */
+ public Builder setSourceComponentIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sourceComponentId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object alertComponentType_ = "";
+ /**
+ * string AlertComponentType = 6;
+ */
+ public java.lang.String getAlertComponentType() {
+ java.lang.Object ref = alertComponentType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ alertComponentType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string AlertComponentType = 6;
+ */
+ public com.google.protobuf.ByteString
+ getAlertComponentTypeBytes() {
+ java.lang.Object ref = alertComponentType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ alertComponentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string AlertComponentType = 6;
+ */
+ public Builder setAlertComponentType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ alertComponentType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string AlertComponentType = 6;
+ */
+ public Builder clearAlertComponentType() {
+
+ alertComponentType_ = getDefaultInstance().getAlertComponentType();
+ onChanged();
+ return this;
+ }
+ /**
+ * string AlertComponentType = 6;
+ */
+ public Builder setAlertComponentTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ alertComponentType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object alertComponentId_ = "";
+ /**
+ * string AlertComponentId = 7;
+ */
+ public java.lang.String getAlertComponentId() {
+ java.lang.Object ref = alertComponentId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ alertComponentId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string AlertComponentId = 7;
+ */
+ public com.google.protobuf.ByteString
+ getAlertComponentIdBytes() {
+ java.lang.Object ref = alertComponentId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ alertComponentId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string AlertComponentId = 7;
+ */
+ public Builder setAlertComponentId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ alertComponentId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string AlertComponentId = 7;
+ */
+ public Builder clearAlertComponentId() {
+
+ alertComponentId_ = getDefaultInstance().getAlertComponentId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string AlertComponentId = 7;
+ */
+ public Builder setAlertComponentIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ alertComponentId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serverId_ = "";
+ /**
+ * string ServerId = 8;
+ */
+ public java.lang.String getServerId() {
+ java.lang.Object ref = serverId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serverId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string ServerId = 8;
+ */
+ public com.google.protobuf.ByteString
+ getServerIdBytes() {
+ java.lang.Object ref = serverId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serverId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string ServerId = 8;
+ */
+ public Builder setServerId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serverId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string ServerId = 8;
+ */
+ public Builder clearServerId() {
+
+ serverId_ = getDefaultInstance().getServerId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string ServerId = 8;
+ */
+ public Builder setServerIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serverId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> labels_;
+ private com.google.protobuf.MapFieldmap<string, string> Labels = 9;
+ */
+
+ public boolean containsLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> Labels = 9;
+ */
+
+ public java.util.Mapmap<string, string> Labels = 9;
+ */
+
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> Labels = 9;
+ */
+
+ public java.lang.String getLabelsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> Labels = 9;
+ */
+
+ public Builder removeLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableLabels().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> Labels = 9;
+ */
+ public Builder putLabels(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableLabels().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> Labels = 9;
+ */
+
+ public Builder putAllLabels(
+ java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public boolean containsAnnotations(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAnnotations().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAnnotationsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public java.lang.String getAnnotationsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public java.lang.String getAnnotationsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> Annotations = 10;
+ */
+
+ public Builder removeAnnotations(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAnnotations().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> Annotations = 10;
+ */
+ public Builder putAnnotations(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAnnotations().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> Annotations = 10;
+ */
+
+ public Builder putAllAnnotations(
+ java.util.Mapint64 TimestampUnix = 11;
+ */
+ public long getTimestampUnix() {
+ return timestampUnix_;
+ }
+ /**
+ * int64 TimestampUnix = 11;
+ */
+ public Builder setTimestampUnix(long value) {
+
+ timestampUnix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 TimestampUnix = 11;
+ */
+ public Builder clearTimestampUnix() {
+
+ timestampUnix_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long resolveTimestampUnix_ ;
+ /**
+ * int64 ResolveTimestampUnix = 12;
+ */
+ public long getResolveTimestampUnix() {
+ return resolveTimestampUnix_;
+ }
+ /**
+ * int64 ResolveTimestampUnix = 12;
+ */
+ public Builder setResolveTimestampUnix(long value) {
+
+ resolveTimestampUnix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 ResolveTimestampUnix = 12;
+ */
+ public Builder clearResolveTimestampUnix() {
+
+ resolveTimestampUnix_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.AlertInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.AlertInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.AlertInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.AlertInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.AlertInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring Key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string Key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * string Value = 2;
+ */
+ java.lang.String getValue();
+ /**
+ * string Value = 2;
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+
+ /**
+ * uint64 TTLSeconds = 3;
+ */
+ long getTTLSeconds();
+ }
+ /**
+ * Protobuf type {@code ushard.LockOnSessionInput}
+ */
+ public static final class LockOnSessionInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.LockOnSessionInput)
+ LockOnSessionInputOrBuilder {
+ // Use LockOnSessionInput.newBuilder() to construct.
+ private LockOnSessionInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private LockOnSessionInput() {
+ key_ = "";
+ value_ = "";
+ tTLSeconds_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private LockOnSessionInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ value_ = s;
+ break;
+ }
+ case 24: {
+
+ tTLSeconds_ = input.readUInt64();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_LockOnSessionInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_LockOnSessionInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * string Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object value_;
+ /**
+ * string Value = 2;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Value = 2;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TTLSECONDS_FIELD_NUMBER = 3;
+ private long tTLSeconds_;
+ /**
+ * uint64 TTLSeconds = 3;
+ */
+ public long getTTLSeconds() {
+ return tTLSeconds_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ if (!getValueBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
+ }
+ if (tTLSeconds_ != 0L) {
+ output.writeUInt64(3, tTLSeconds_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ if (!getValueBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
+ }
+ if (tTLSeconds_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(3, tTLSeconds_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput) obj;
+
+ boolean result = true;
+ result = result && getKey()
+ .equals(other.getKey());
+ result = result && getValue()
+ .equals(other.getValue());
+ result = result && (getTTLSeconds()
+ == other.getTTLSeconds());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (37 * hash) + TTLSECONDS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTTLSeconds());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.LockOnSessionInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+ /**
+ * string Value = 2;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Value = 2;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Value = 2;
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Value = 2;
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Value = 2;
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long tTLSeconds_ ;
+ /**
+ * uint64 TTLSeconds = 3;
+ */
+ public long getTTLSeconds() {
+ return tTLSeconds_;
+ }
+ /**
+ * uint64 TTLSeconds = 3;
+ */
+ public Builder setTTLSeconds(long value) {
+
+ tTLSeconds_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 TTLSeconds = 3;
+ */
+ public Builder clearTTLSeconds() {
+
+ tTLSeconds_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.LockOnSessionInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.LockOnSessionInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserbool Locked = 1;
+ */
+ boolean getLocked();
+
+ /**
+ * string SessionId = 2;
+ */
+ java.lang.String getSessionId();
+ /**
+ * string SessionId = 2;
+ */
+ com.google.protobuf.ByteString
+ getSessionIdBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.LockOnSessionOutput}
+ */
+ public static final class LockOnSessionOutput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.LockOnSessionOutput)
+ LockOnSessionOutputOrBuilder {
+ // Use LockOnSessionOutput.newBuilder() to construct.
+ private LockOnSessionOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private LockOnSessionOutput() {
+ locked_ = false;
+ sessionId_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private LockOnSessionOutput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ locked_ = input.readBool();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sessionId_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_LockOnSessionOutput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_LockOnSessionOutput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput.Builder.class);
+ }
+
+ public static final int LOCKED_FIELD_NUMBER = 1;
+ private boolean locked_;
+ /**
+ * bool Locked = 1;
+ */
+ public boolean getLocked() {
+ return locked_;
+ }
+
+ public static final int SESSIONID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object sessionId_;
+ /**
+ * string SessionId = 2;
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (locked_ != false) {
+ output.writeBool(1, locked_);
+ }
+ if (!getSessionIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sessionId_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (locked_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, locked_);
+ }
+ if (!getSessionIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sessionId_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput) obj;
+
+ boolean result = true;
+ result = result && (getLocked()
+ == other.getLocked());
+ result = result && getSessionId()
+ .equals(other.getSessionId());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LOCKED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLocked());
+ hash = (37 * hash) + SESSIONID_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.LockOnSessionOutput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderbool Locked = 1;
+ */
+ public boolean getLocked() {
+ return locked_;
+ }
+ /**
+ * bool Locked = 1;
+ */
+ public Builder setLocked(boolean value) {
+
+ locked_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool Locked = 1;
+ */
+ public Builder clearLocked() {
+
+ locked_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sessionId_ = "";
+ /**
+ * string SessionId = 2;
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public Builder setSessionId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sessionId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public Builder clearSessionId() {
+
+ sessionId_ = getDefaultInstance().getSessionId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public Builder setSessionIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sessionId_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.LockOnSessionOutput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.LockOnSessionOutput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.LockOnSessionOutput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring SessionId = 1;
+ */
+ java.lang.String getSessionId();
+ /**
+ * string SessionId = 1;
+ */
+ com.google.protobuf.ByteString
+ getSessionIdBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.RenewSessionInput}
+ */
+ public static final class RenewSessionInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.RenewSessionInput)
+ RenewSessionInputOrBuilder {
+ // Use RenewSessionInput.newBuilder() to construct.
+ private RenewSessionInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private RenewSessionInput() {
+ sessionId_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private RenewSessionInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sessionId_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_RenewSessionInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_RenewSessionInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput.Builder.class);
+ }
+
+ public static final int SESSIONID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object sessionId_;
+ /**
+ * string SessionId = 1;
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string SessionId = 1;
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getSessionIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getSessionIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput) obj;
+
+ boolean result = true;
+ result = result && getSessionId()
+ .equals(other.getSessionId());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SESSIONID_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.RenewSessionInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring SessionId = 1;
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string SessionId = 1;
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string SessionId = 1;
+ */
+ public Builder setSessionId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sessionId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string SessionId = 1;
+ */
+ public Builder clearSessionId() {
+
+ sessionId_ = getDefaultInstance().getSessionId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string SessionId = 1;
+ */
+ public Builder setSessionIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sessionId_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.RenewSessionInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.RenewSessionInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.RenewSessionInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring Key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * string Key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * string SessionId = 2;
+ */
+ java.lang.String getSessionId();
+ /**
+ * string SessionId = 2;
+ */
+ com.google.protobuf.ByteString
+ getSessionIdBytes();
+ }
+ /**
+ * Protobuf type {@code ushard.UnlockOnSessionInput}
+ */
+ public static final class UnlockOnSessionInput extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ushard.UnlockOnSessionInput)
+ UnlockOnSessionInputOrBuilder {
+ // Use UnlockOnSessionInput.newBuilder() to construct.
+ private UnlockOnSessionInput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private UnlockOnSessionInput() {
+ key_ = "";
+ sessionId_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
+ private UnlockOnSessionInput(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!input.skipField(tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sessionId_ = s;
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_UnlockOnSessionInput_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.actiontech.dble.cluster.impl.ushard.UshardInterface.internal_static_ushard_UnlockOnSessionInput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput.class, com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * string Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SESSIONID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object sessionId_;
+ /**
+ * string SessionId = 2;
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ if (!getSessionIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sessionId_);
+ }
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ if (!getSessionIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sessionId_);
+ }
+ memoizedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput)) {
+ return super.equals(obj);
+ }
+ com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput other = (com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput) obj;
+
+ boolean result = true;
+ result = result && getKey()
+ .equals(other.getKey());
+ result = result && getSessionId()
+ .equals(other.getSessionId());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (37 * hash) + SESSIONID_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ushard.UnlockOnSessionInput}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring Key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string Key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sessionId_ = "";
+ /**
+ * string SessionId = 2;
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public Builder setSessionId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sessionId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public Builder clearSessionId() {
+
+ sessionId_ = getDefaultInstance().getSessionId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string SessionId = 2;
+ */
+ public Builder setSessionIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sessionId_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return this;
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ushard.UnlockOnSessionInput)
+ }
+
+ // @@protoc_insertion_point(class_scope:ushard.UnlockOnSessionInput)
+ private static final com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput();
+ }
+
+ public static com.actiontech.dble.cluster.impl.ushard.UshardInterface.UnlockOnSessionInput getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser