All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.ydb.Validation Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ydb/public/api/protos/annotations/validation.proto

package com.yandex.ydb;

public final class Validation {
  private Validation() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(com.yandex.ydb.Validation.required);
    registry.add(com.yandex.ydb.Validation.size);
    registry.add(com.yandex.ydb.Validation.length);
    registry.add(com.yandex.ydb.Validation.mapKey);
    registry.add(com.yandex.ydb.Validation.value);
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface LimitOrBuilder extends
      // @@protoc_insertion_point(interface_extends:Ydb.Limit)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .Ydb.Limit.Range range = 1;
     * @return Whether the range field is set.
     */
    boolean hasRange();
    /**
     * .Ydb.Limit.Range range = 1;
     * @return The range.
     */
    com.yandex.ydb.Validation.Limit.Range getRange();
    /**
     * .Ydb.Limit.Range range = 1;
     */
    com.yandex.ydb.Validation.Limit.RangeOrBuilder getRangeOrBuilder();

    /**
     * uint32 lt = 2;
     * @return Whether the lt field is set.
     */
    boolean hasLt();
    /**
     * uint32 lt = 2;
     * @return The lt.
     */
    int getLt();

    /**
     * uint32 le = 3;
     * @return Whether the le field is set.
     */
    boolean hasLe();
    /**
     * uint32 le = 3;
     * @return The le.
     */
    int getLe();

    /**
     * uint32 eq = 4;
     * @return Whether the eq field is set.
     */
    boolean hasEq();
    /**
     * uint32 eq = 4;
     * @return The eq.
     */
    int getEq();

    /**
     * uint32 ge = 5;
     * @return Whether the ge field is set.
     */
    boolean hasGe();
    /**
     * uint32 ge = 5;
     * @return The ge.
     */
    int getGe();

    /**
     * uint32 gt = 6;
     * @return Whether the gt field is set.
     */
    boolean hasGt();
    /**
     * uint32 gt = 6;
     * @return The gt.
     */
    int getGt();

    public com.yandex.ydb.Validation.Limit.KindCase getKindCase();
  }
  /**
   * Protobuf type {@code Ydb.Limit}
   */
  public static final class Limit extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:Ydb.Limit)
      LimitOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Limit.newBuilder() to construct.
    private Limit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Limit() {
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Limit();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Limit(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              com.yandex.ydb.Validation.Limit.Range.Builder subBuilder = null;
              if (kindCase_ == 1) {
                subBuilder = ((com.yandex.ydb.Validation.Limit.Range) kind_).toBuilder();
              }
              kind_ =
                  input.readMessage(com.yandex.ydb.Validation.Limit.Range.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((com.yandex.ydb.Validation.Limit.Range) kind_);
                kind_ = subBuilder.buildPartial();
              }
              kindCase_ = 1;
              break;
            }
            case 16: {
              kindCase_ = 2;
              kind_ = input.readUInt32();
              break;
            }
            case 24: {
              kindCase_ = 3;
              kind_ = input.readUInt32();
              break;
            }
            case 32: {
              kindCase_ = 4;
              kind_ = input.readUInt32();
              break;
            }
            case 40: {
              kindCase_ = 5;
              kind_ = input.readUInt32();
              break;
            }
            case 48: {
              kindCase_ = 6;
              kind_ = input.readUInt32();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.yandex.ydb.Validation.internal_static_Ydb_Limit_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.yandex.ydb.Validation.internal_static_Ydb_Limit_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.yandex.ydb.Validation.Limit.class, com.yandex.ydb.Validation.Limit.Builder.class);
    }

    public interface RangeOrBuilder extends
        // @@protoc_insertion_point(interface_extends:Ydb.Limit.Range)
        com.google.protobuf.MessageOrBuilder {

      /**
       * uint32 min = 1;
       * @return The min.
       */
      int getMin();

      /**
       * uint32 max = 2;
       * @return The max.
       */
      int getMax();
    }
    /**
     * Protobuf type {@code Ydb.Limit.Range}
     */
    public static final class Range extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:Ydb.Limit.Range)
        RangeOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Range.newBuilder() to construct.
      private Range(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private Range() {
      }

      @java.lang.Override
      @SuppressWarnings({"unused"})
      protected java.lang.Object newInstance(
          UnusedPrivateParameter unused) {
        return new Range();
      }

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private Range(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {

                min_ = input.readUInt32();
                break;
              }
              case 16: {

                max_ = input.readUInt32();
                break;
              }
              default: {
                if (!parseUnknownField(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                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 {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.yandex.ydb.Validation.internal_static_Ydb_Limit_Range_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.yandex.ydb.Validation.internal_static_Ydb_Limit_Range_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.yandex.ydb.Validation.Limit.Range.class, com.yandex.ydb.Validation.Limit.Range.Builder.class);
      }

      public static final int MIN_FIELD_NUMBER = 1;
      private int min_;
      /**
       * uint32 min = 1;
       * @return The min.
       */
      @java.lang.Override
      public int getMin() {
        return min_;
      }

      public static final int MAX_FIELD_NUMBER = 2;
      private int max_;
      /**
       * uint32 max = 2;
       * @return The max.
       */
      @java.lang.Override
      public int getMax() {
        return max_;
      }

      private byte memoizedIsInitialized = -1;
      @java.lang.Override
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1) return true;
        if (isInitialized == 0) return false;

        memoizedIsInitialized = 1;
        return true;
      }

      @java.lang.Override
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        if (min_ != 0) {
          output.writeUInt32(1, min_);
        }
        if (max_ != 0) {
          output.writeUInt32(2, max_);
        }
        unknownFields.writeTo(output);
      }

      @java.lang.Override
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;

        size = 0;
        if (min_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(1, min_);
        }
        if (max_ != 0) {
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32Size(2, max_);
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
      }

      @java.lang.Override
      public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
         return true;
        }
        if (!(obj instanceof com.yandex.ydb.Validation.Limit.Range)) {
          return super.equals(obj);
        }
        com.yandex.ydb.Validation.Limit.Range other = (com.yandex.ydb.Validation.Limit.Range) obj;

        if (getMin()
            != other.getMin()) return false;
        if (getMax()
            != other.getMax()) return false;
        if (!unknownFields.equals(other.unknownFields)) return false;
        return true;
      }

      @java.lang.Override
      public int hashCode() {
        if (memoizedHashCode != 0) {
          return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + MIN_FIELD_NUMBER;
        hash = (53 * hash) + getMin();
        hash = (37 * hash) + MAX_FIELD_NUMBER;
        hash = (53 * hash) + getMax();
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
      }

      public static com.yandex.ydb.Validation.Limit.Range parseFrom(
          java.nio.ByteBuffer data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.yandex.ydb.Validation.Limit.Range parseFrom(
          java.nio.ByteBuffer data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.yandex.ydb.Validation.Limit.Range parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.yandex.ydb.Validation.Limit.Range parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.yandex.ydb.Validation.Limit.Range parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.yandex.ydb.Validation.Limit.Range parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.yandex.ydb.Validation.Limit.Range parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.yandex.ydb.Validation.Limit.Range 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.yandex.ydb.Validation.Limit.Range parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseDelimitedWithIOException(PARSER, input);
      }
      public static com.yandex.ydb.Validation.Limit.Range 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.yandex.ydb.Validation.Limit.Range parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input);
      }
      public static com.yandex.ydb.Validation.Limit.Range parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3
            .parseWithIOException(PARSER, input, extensionRegistry);
      }

      @java.lang.Override
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
      }
      public static Builder newBuilder(com.yandex.ydb.Validation.Limit.Range prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
      }
      @java.lang.Override
      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 Ydb.Limit.Range}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessageV3.Builder implements
          // @@protoc_insertion_point(builder_implements:Ydb.Limit.Range)
          com.yandex.ydb.Validation.Limit.RangeOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.yandex.ydb.Validation.internal_static_Ydb_Limit_Range_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.yandex.ydb.Validation.internal_static_Ydb_Limit_Range_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.yandex.ydb.Validation.Limit.Range.class, com.yandex.ydb.Validation.Limit.Range.Builder.class);
        }

        // Construct using com.yandex.ydb.Validation.Limit.Range.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

        private Builder(
            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessageV3
                  .alwaysUseFieldBuilders) {
          }
        }
        @java.lang.Override
        public Builder clear() {
          super.clear();
          min_ = 0;

          max_ = 0;

          return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.yandex.ydb.Validation.internal_static_Ydb_Limit_Range_descriptor;
        }

        @java.lang.Override
        public com.yandex.ydb.Validation.Limit.Range getDefaultInstanceForType() {
          return com.yandex.ydb.Validation.Limit.Range.getDefaultInstance();
        }

        @java.lang.Override
        public com.yandex.ydb.Validation.Limit.Range build() {
          com.yandex.ydb.Validation.Limit.Range result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        @java.lang.Override
        public com.yandex.ydb.Validation.Limit.Range buildPartial() {
          com.yandex.ydb.Validation.Limit.Range result = new com.yandex.ydb.Validation.Limit.Range(this);
          result.min_ = min_;
          result.max_ = max_;
          onBuilt();
          return result;
        }

        @java.lang.Override
        public Builder clone() {
          return super.clone();
        }
        @java.lang.Override
        public Builder setField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            java.lang.Object value) {
          return super.setField(field, value);
        }
        @java.lang.Override
        public Builder clearField(
            com.google.protobuf.Descriptors.FieldDescriptor field) {
          return super.clearField(field);
        }
        @java.lang.Override
        public Builder clearOneof(
            com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          return super.clearOneof(oneof);
        }
        @java.lang.Override
        public Builder setRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            int index, java.lang.Object value) {
          return super.setRepeatedField(field, index, value);
        }
        @java.lang.Override
        public Builder addRepeatedField(
            com.google.protobuf.Descriptors.FieldDescriptor field,
            java.lang.Object value) {
          return super.addRepeatedField(field, value);
        }
        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof com.yandex.ydb.Validation.Limit.Range) {
            return mergeFrom((com.yandex.ydb.Validation.Limit.Range)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(com.yandex.ydb.Validation.Limit.Range other) {
          if (other == com.yandex.ydb.Validation.Limit.Range.getDefaultInstance()) return this;
          if (other.getMin() != 0) {
            setMin(other.getMin());
          }
          if (other.getMax() != 0) {
            setMax(other.getMax());
          }
          this.mergeUnknownFields(other.unknownFields);
          onChanged();
          return this;
        }

        @java.lang.Override
        public final boolean isInitialized() {
          return true;
        }

        @java.lang.Override
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.yandex.ydb.Validation.Limit.Range parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.yandex.ydb.Validation.Limit.Range) e.getUnfinishedMessage();
            throw e.unwrapIOException();
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }

        private int min_ ;
        /**
         * uint32 min = 1;
         * @return The min.
         */
        @java.lang.Override
        public int getMin() {
          return min_;
        }
        /**
         * uint32 min = 1;
         * @param value The min to set.
         * @return This builder for chaining.
         */
        public Builder setMin(int value) {
          
          min_ = value;
          onChanged();
          return this;
        }
        /**
         * uint32 min = 1;
         * @return This builder for chaining.
         */
        public Builder clearMin() {
          
          min_ = 0;
          onChanged();
          return this;
        }

        private int max_ ;
        /**
         * uint32 max = 2;
         * @return The max.
         */
        @java.lang.Override
        public int getMax() {
          return max_;
        }
        /**
         * uint32 max = 2;
         * @param value The max to set.
         * @return This builder for chaining.
         */
        public Builder setMax(int value) {
          
          max_ = value;
          onChanged();
          return this;
        }
        /**
         * uint32 max = 2;
         * @return This builder for chaining.
         */
        public Builder clearMax() {
          
          max_ = 0;
          onChanged();
          return this;
        }
        @java.lang.Override
        public final Builder setUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.setUnknownFields(unknownFields);
        }

        @java.lang.Override
        public final Builder mergeUnknownFields(
            final com.google.protobuf.UnknownFieldSet unknownFields) {
          return super.mergeUnknownFields(unknownFields);
        }


        // @@protoc_insertion_point(builder_scope:Ydb.Limit.Range)
      }

      // @@protoc_insertion_point(class_scope:Ydb.Limit.Range)
      private static final com.yandex.ydb.Validation.Limit.Range DEFAULT_INSTANCE;
      static {
        DEFAULT_INSTANCE = new com.yandex.ydb.Validation.Limit.Range();
      }

      public static com.yandex.ydb.Validation.Limit.Range getDefaultInstance() {
        return DEFAULT_INSTANCE;
      }

      private static final com.google.protobuf.Parser
          PARSER = new com.google.protobuf.AbstractParser() {
        @java.lang.Override
        public Range parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new Range(input, extensionRegistry);
        }
      };

      public static com.google.protobuf.Parser parser() {
        return PARSER;
      }

      @java.lang.Override
      public com.google.protobuf.Parser getParserForType() {
        return PARSER;
      }

      @java.lang.Override
      public com.yandex.ydb.Validation.Limit.Range getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
      }

    }

    private int kindCase_ = 0;
    private java.lang.Object kind_;
    public enum KindCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      RANGE(1),
      LT(2),
      LE(3),
      EQ(4),
      GE(5),
      GT(6),
      KIND_NOT_SET(0);
      private final int value;
      private KindCase(int value) {
        this.value = value;
      }
      /**
       * @param value The number of the enum to look for.
       * @return The enum associated with the given number.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static KindCase valueOf(int value) {
        return forNumber(value);
      }

      public static KindCase forNumber(int value) {
        switch (value) {
          case 1: return RANGE;
          case 2: return LT;
          case 3: return LE;
          case 4: return EQ;
          case 5: return GE;
          case 6: return GT;
          case 0: return KIND_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public KindCase
    getKindCase() {
      return KindCase.forNumber(
          kindCase_);
    }

    public static final int RANGE_FIELD_NUMBER = 1;
    /**
     * .Ydb.Limit.Range range = 1;
     * @return Whether the range field is set.
     */
    @java.lang.Override
    public boolean hasRange() {
      return kindCase_ == 1;
    }
    /**
     * .Ydb.Limit.Range range = 1;
     * @return The range.
     */
    @java.lang.Override
    public com.yandex.ydb.Validation.Limit.Range getRange() {
      if (kindCase_ == 1) {
         return (com.yandex.ydb.Validation.Limit.Range) kind_;
      }
      return com.yandex.ydb.Validation.Limit.Range.getDefaultInstance();
    }
    /**
     * .Ydb.Limit.Range range = 1;
     */
    @java.lang.Override
    public com.yandex.ydb.Validation.Limit.RangeOrBuilder getRangeOrBuilder() {
      if (kindCase_ == 1) {
         return (com.yandex.ydb.Validation.Limit.Range) kind_;
      }
      return com.yandex.ydb.Validation.Limit.Range.getDefaultInstance();
    }

    public static final int LT_FIELD_NUMBER = 2;
    /**
     * uint32 lt = 2;
     * @return Whether the lt field is set.
     */
    @java.lang.Override
    public boolean hasLt() {
      return kindCase_ == 2;
    }
    /**
     * uint32 lt = 2;
     * @return The lt.
     */
    @java.lang.Override
    public int getLt() {
      if (kindCase_ == 2) {
        return (java.lang.Integer) kind_;
      }
      return 0;
    }

    public static final int LE_FIELD_NUMBER = 3;
    /**
     * uint32 le = 3;
     * @return Whether the le field is set.
     */
    @java.lang.Override
    public boolean hasLe() {
      return kindCase_ == 3;
    }
    /**
     * uint32 le = 3;
     * @return The le.
     */
    @java.lang.Override
    public int getLe() {
      if (kindCase_ == 3) {
        return (java.lang.Integer) kind_;
      }
      return 0;
    }

    public static final int EQ_FIELD_NUMBER = 4;
    /**
     * uint32 eq = 4;
     * @return Whether the eq field is set.
     */
    @java.lang.Override
    public boolean hasEq() {
      return kindCase_ == 4;
    }
    /**
     * uint32 eq = 4;
     * @return The eq.
     */
    @java.lang.Override
    public int getEq() {
      if (kindCase_ == 4) {
        return (java.lang.Integer) kind_;
      }
      return 0;
    }

    public static final int GE_FIELD_NUMBER = 5;
    /**
     * uint32 ge = 5;
     * @return Whether the ge field is set.
     */
    @java.lang.Override
    public boolean hasGe() {
      return kindCase_ == 5;
    }
    /**
     * uint32 ge = 5;
     * @return The ge.
     */
    @java.lang.Override
    public int getGe() {
      if (kindCase_ == 5) {
        return (java.lang.Integer) kind_;
      }
      return 0;
    }

    public static final int GT_FIELD_NUMBER = 6;
    /**
     * uint32 gt = 6;
     * @return Whether the gt field is set.
     */
    @java.lang.Override
    public boolean hasGt() {
      return kindCase_ == 6;
    }
    /**
     * uint32 gt = 6;
     * @return The gt.
     */
    @java.lang.Override
    public int getGt() {
      if (kindCase_ == 6) {
        return (java.lang.Integer) kind_;
      }
      return 0;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (kindCase_ == 1) {
        output.writeMessage(1, (com.yandex.ydb.Validation.Limit.Range) kind_);
      }
      if (kindCase_ == 2) {
        output.writeUInt32(
            2, (int)((java.lang.Integer) kind_));
      }
      if (kindCase_ == 3) {
        output.writeUInt32(
            3, (int)((java.lang.Integer) kind_));
      }
      if (kindCase_ == 4) {
        output.writeUInt32(
            4, (int)((java.lang.Integer) kind_));
      }
      if (kindCase_ == 5) {
        output.writeUInt32(
            5, (int)((java.lang.Integer) kind_));
      }
      if (kindCase_ == 6) {
        output.writeUInt32(
            6, (int)((java.lang.Integer) kind_));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (kindCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, (com.yandex.ydb.Validation.Limit.Range) kind_);
      }
      if (kindCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              2, (int)((java.lang.Integer) kind_));
      }
      if (kindCase_ == 3) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              3, (int)((java.lang.Integer) kind_));
      }
      if (kindCase_ == 4) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              4, (int)((java.lang.Integer) kind_));
      }
      if (kindCase_ == 5) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              5, (int)((java.lang.Integer) kind_));
      }
      if (kindCase_ == 6) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              6, (int)((java.lang.Integer) kind_));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.yandex.ydb.Validation.Limit)) {
        return super.equals(obj);
      }
      com.yandex.ydb.Validation.Limit other = (com.yandex.ydb.Validation.Limit) obj;

      if (!getKindCase().equals(other.getKindCase())) return false;
      switch (kindCase_) {
        case 1:
          if (!getRange()
              .equals(other.getRange())) return false;
          break;
        case 2:
          if (getLt()
              != other.getLt()) return false;
          break;
        case 3:
          if (getLe()
              != other.getLe()) return false;
          break;
        case 4:
          if (getEq()
              != other.getEq()) return false;
          break;
        case 5:
          if (getGe()
              != other.getGe()) return false;
          break;
        case 6:
          if (getGt()
              != other.getGt()) return false;
          break;
        case 0:
        default:
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      switch (kindCase_) {
        case 1:
          hash = (37 * hash) + RANGE_FIELD_NUMBER;
          hash = (53 * hash) + getRange().hashCode();
          break;
        case 2:
          hash = (37 * hash) + LT_FIELD_NUMBER;
          hash = (53 * hash) + getLt();
          break;
        case 3:
          hash = (37 * hash) + LE_FIELD_NUMBER;
          hash = (53 * hash) + getLe();
          break;
        case 4:
          hash = (37 * hash) + EQ_FIELD_NUMBER;
          hash = (53 * hash) + getEq();
          break;
        case 5:
          hash = (37 * hash) + GE_FIELD_NUMBER;
          hash = (53 * hash) + getGe();
          break;
        case 6:
          hash = (37 * hash) + GT_FIELD_NUMBER;
          hash = (53 * hash) + getGt();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.yandex.ydb.Validation.Limit parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yandex.ydb.Validation.Limit parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yandex.ydb.Validation.Limit parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yandex.ydb.Validation.Limit parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yandex.ydb.Validation.Limit parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yandex.ydb.Validation.Limit parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yandex.ydb.Validation.Limit parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.yandex.ydb.Validation.Limit 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.yandex.ydb.Validation.Limit parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.yandex.ydb.Validation.Limit 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.yandex.ydb.Validation.Limit parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.yandex.ydb.Validation.Limit parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.yandex.ydb.Validation.Limit prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    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 Ydb.Limit}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:Ydb.Limit)
        com.yandex.ydb.Validation.LimitOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.yandex.ydb.Validation.internal_static_Ydb_Limit_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.yandex.ydb.Validation.internal_static_Ydb_Limit_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.yandex.ydb.Validation.Limit.class, com.yandex.ydb.Validation.Limit.Builder.class);
      }

      // Construct using com.yandex.ydb.Validation.Limit.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        kindCase_ = 0;
        kind_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.yandex.ydb.Validation.internal_static_Ydb_Limit_descriptor;
      }

      @java.lang.Override
      public com.yandex.ydb.Validation.Limit getDefaultInstanceForType() {
        return com.yandex.ydb.Validation.Limit.getDefaultInstance();
      }

      @java.lang.Override
      public com.yandex.ydb.Validation.Limit build() {
        com.yandex.ydb.Validation.Limit result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.yandex.ydb.Validation.Limit buildPartial() {
        com.yandex.ydb.Validation.Limit result = new com.yandex.ydb.Validation.Limit(this);
        if (kindCase_ == 1) {
          if (rangeBuilder_ == null) {
            result.kind_ = kind_;
          } else {
            result.kind_ = rangeBuilder_.build();
          }
        }
        if (kindCase_ == 2) {
          result.kind_ = kind_;
        }
        if (kindCase_ == 3) {
          result.kind_ = kind_;
        }
        if (kindCase_ == 4) {
          result.kind_ = kind_;
        }
        if (kindCase_ == 5) {
          result.kind_ = kind_;
        }
        if (kindCase_ == 6) {
          result.kind_ = kind_;
        }
        result.kindCase_ = kindCase_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.yandex.ydb.Validation.Limit) {
          return mergeFrom((com.yandex.ydb.Validation.Limit)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.yandex.ydb.Validation.Limit other) {
        if (other == com.yandex.ydb.Validation.Limit.getDefaultInstance()) return this;
        switch (other.getKindCase()) {
          case RANGE: {
            mergeRange(other.getRange());
            break;
          }
          case LT: {
            setLt(other.getLt());
            break;
          }
          case LE: {
            setLe(other.getLe());
            break;
          }
          case EQ: {
            setEq(other.getEq());
            break;
          }
          case GE: {
            setGe(other.getGe());
            break;
          }
          case GT: {
            setGt(other.getGt());
            break;
          }
          case KIND_NOT_SET: {
            break;
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.yandex.ydb.Validation.Limit parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.yandex.ydb.Validation.Limit) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int kindCase_ = 0;
      private java.lang.Object kind_;
      public KindCase
          getKindCase() {
        return KindCase.forNumber(
            kindCase_);
      }

      public Builder clearKind() {
        kindCase_ = 0;
        kind_ = null;
        onChanged();
        return this;
      }


      private com.google.protobuf.SingleFieldBuilderV3<
          com.yandex.ydb.Validation.Limit.Range, com.yandex.ydb.Validation.Limit.Range.Builder, com.yandex.ydb.Validation.Limit.RangeOrBuilder> rangeBuilder_;
      /**
       * .Ydb.Limit.Range range = 1;
       * @return Whether the range field is set.
       */
      @java.lang.Override
      public boolean hasRange() {
        return kindCase_ == 1;
      }
      /**
       * .Ydb.Limit.Range range = 1;
       * @return The range.
       */
      @java.lang.Override
      public com.yandex.ydb.Validation.Limit.Range getRange() {
        if (rangeBuilder_ == null) {
          if (kindCase_ == 1) {
            return (com.yandex.ydb.Validation.Limit.Range) kind_;
          }
          return com.yandex.ydb.Validation.Limit.Range.getDefaultInstance();
        } else {
          if (kindCase_ == 1) {
            return rangeBuilder_.getMessage();
          }
          return com.yandex.ydb.Validation.Limit.Range.getDefaultInstance();
        }
      }
      /**
       * .Ydb.Limit.Range range = 1;
       */
      public Builder setRange(com.yandex.ydb.Validation.Limit.Range value) {
        if (rangeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          kind_ = value;
          onChanged();
        } else {
          rangeBuilder_.setMessage(value);
        }
        kindCase_ = 1;
        return this;
      }
      /**
       * .Ydb.Limit.Range range = 1;
       */
      public Builder setRange(
          com.yandex.ydb.Validation.Limit.Range.Builder builderForValue) {
        if (rangeBuilder_ == null) {
          kind_ = builderForValue.build();
          onChanged();
        } else {
          rangeBuilder_.setMessage(builderForValue.build());
        }
        kindCase_ = 1;
        return this;
      }
      /**
       * .Ydb.Limit.Range range = 1;
       */
      public Builder mergeRange(com.yandex.ydb.Validation.Limit.Range value) {
        if (rangeBuilder_ == null) {
          if (kindCase_ == 1 &&
              kind_ != com.yandex.ydb.Validation.Limit.Range.getDefaultInstance()) {
            kind_ = com.yandex.ydb.Validation.Limit.Range.newBuilder((com.yandex.ydb.Validation.Limit.Range) kind_)
                .mergeFrom(value).buildPartial();
          } else {
            kind_ = value;
          }
          onChanged();
        } else {
          if (kindCase_ == 1) {
            rangeBuilder_.mergeFrom(value);
          }
          rangeBuilder_.setMessage(value);
        }
        kindCase_ = 1;
        return this;
      }
      /**
       * .Ydb.Limit.Range range = 1;
       */
      public Builder clearRange() {
        if (rangeBuilder_ == null) {
          if (kindCase_ == 1) {
            kindCase_ = 0;
            kind_ = null;
            onChanged();
          }
        } else {
          if (kindCase_ == 1) {
            kindCase_ = 0;
            kind_ = null;
          }
          rangeBuilder_.clear();
        }
        return this;
      }
      /**
       * .Ydb.Limit.Range range = 1;
       */
      public com.yandex.ydb.Validation.Limit.Range.Builder getRangeBuilder() {
        return getRangeFieldBuilder().getBuilder();
      }
      /**
       * .Ydb.Limit.Range range = 1;
       */
      @java.lang.Override
      public com.yandex.ydb.Validation.Limit.RangeOrBuilder getRangeOrBuilder() {
        if ((kindCase_ == 1) && (rangeBuilder_ != null)) {
          return rangeBuilder_.getMessageOrBuilder();
        } else {
          if (kindCase_ == 1) {
            return (com.yandex.ydb.Validation.Limit.Range) kind_;
          }
          return com.yandex.ydb.Validation.Limit.Range.getDefaultInstance();
        }
      }
      /**
       * .Ydb.Limit.Range range = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.yandex.ydb.Validation.Limit.Range, com.yandex.ydb.Validation.Limit.Range.Builder, com.yandex.ydb.Validation.Limit.RangeOrBuilder> 
          getRangeFieldBuilder() {
        if (rangeBuilder_ == null) {
          if (!(kindCase_ == 1)) {
            kind_ = com.yandex.ydb.Validation.Limit.Range.getDefaultInstance();
          }
          rangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.yandex.ydb.Validation.Limit.Range, com.yandex.ydb.Validation.Limit.Range.Builder, com.yandex.ydb.Validation.Limit.RangeOrBuilder>(
                  (com.yandex.ydb.Validation.Limit.Range) kind_,
                  getParentForChildren(),
                  isClean());
          kind_ = null;
        }
        kindCase_ = 1;
        onChanged();;
        return rangeBuilder_;
      }

      /**
       * uint32 lt = 2;
       * @return Whether the lt field is set.
       */
      public boolean hasLt() {
        return kindCase_ == 2;
      }
      /**
       * uint32 lt = 2;
       * @return The lt.
       */
      public int getLt() {
        if (kindCase_ == 2) {
          return (java.lang.Integer) kind_;
        }
        return 0;
      }
      /**
       * uint32 lt = 2;
       * @param value The lt to set.
       * @return This builder for chaining.
       */
      public Builder setLt(int value) {
        kindCase_ = 2;
        kind_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 lt = 2;
       * @return This builder for chaining.
       */
      public Builder clearLt() {
        if (kindCase_ == 2) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
        return this;
      }

      /**
       * uint32 le = 3;
       * @return Whether the le field is set.
       */
      public boolean hasLe() {
        return kindCase_ == 3;
      }
      /**
       * uint32 le = 3;
       * @return The le.
       */
      public int getLe() {
        if (kindCase_ == 3) {
          return (java.lang.Integer) kind_;
        }
        return 0;
      }
      /**
       * uint32 le = 3;
       * @param value The le to set.
       * @return This builder for chaining.
       */
      public Builder setLe(int value) {
        kindCase_ = 3;
        kind_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 le = 3;
       * @return This builder for chaining.
       */
      public Builder clearLe() {
        if (kindCase_ == 3) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
        return this;
      }

      /**
       * uint32 eq = 4;
       * @return Whether the eq field is set.
       */
      public boolean hasEq() {
        return kindCase_ == 4;
      }
      /**
       * uint32 eq = 4;
       * @return The eq.
       */
      public int getEq() {
        if (kindCase_ == 4) {
          return (java.lang.Integer) kind_;
        }
        return 0;
      }
      /**
       * uint32 eq = 4;
       * @param value The eq to set.
       * @return This builder for chaining.
       */
      public Builder setEq(int value) {
        kindCase_ = 4;
        kind_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 eq = 4;
       * @return This builder for chaining.
       */
      public Builder clearEq() {
        if (kindCase_ == 4) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
        return this;
      }

      /**
       * uint32 ge = 5;
       * @return Whether the ge field is set.
       */
      public boolean hasGe() {
        return kindCase_ == 5;
      }
      /**
       * uint32 ge = 5;
       * @return The ge.
       */
      public int getGe() {
        if (kindCase_ == 5) {
          return (java.lang.Integer) kind_;
        }
        return 0;
      }
      /**
       * uint32 ge = 5;
       * @param value The ge to set.
       * @return This builder for chaining.
       */
      public Builder setGe(int value) {
        kindCase_ = 5;
        kind_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 ge = 5;
       * @return This builder for chaining.
       */
      public Builder clearGe() {
        if (kindCase_ == 5) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
        return this;
      }

      /**
       * uint32 gt = 6;
       * @return Whether the gt field is set.
       */
      public boolean hasGt() {
        return kindCase_ == 6;
      }
      /**
       * uint32 gt = 6;
       * @return The gt.
       */
      public int getGt() {
        if (kindCase_ == 6) {
          return (java.lang.Integer) kind_;
        }
        return 0;
      }
      /**
       * uint32 gt = 6;
       * @param value The gt to set.
       * @return This builder for chaining.
       */
      public Builder setGt(int value) {
        kindCase_ = 6;
        kind_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 gt = 6;
       * @return This builder for chaining.
       */
      public Builder clearGt() {
        if (kindCase_ == 6) {
          kindCase_ = 0;
          kind_ = null;
          onChanged();
        }
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:Ydb.Limit)
    }

    // @@protoc_insertion_point(class_scope:Ydb.Limit)
    private static final com.yandex.ydb.Validation.Limit DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.yandex.ydb.Validation.Limit();
    }

    public static com.yandex.ydb.Validation.Limit getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Limit parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Limit(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.yandex.ydb.Validation.Limit getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MapKeyOrBuilder extends
      // @@protoc_insertion_point(interface_extends:Ydb.MapKey)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .Ydb.Limit length = 1;
     * @return Whether the length field is set.
     */
    boolean hasLength();
    /**
     * .Ydb.Limit length = 1;
     * @return The length.
     */
    com.yandex.ydb.Validation.Limit getLength();
    /**
     * .Ydb.Limit length = 1;
     */
    com.yandex.ydb.Validation.LimitOrBuilder getLengthOrBuilder();

    /**
     * string value = 2;
     * @return The value.
     */
    java.lang.String getValue();
    /**
     * string value = 2;
     * @return The bytes for value.
     */
    com.google.protobuf.ByteString
        getValueBytes();
  }
  /**
   * Protobuf type {@code Ydb.MapKey}
   */
  public static final class MapKey extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:Ydb.MapKey)
      MapKeyOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MapKey.newBuilder() to construct.
    private MapKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private MapKey() {
      value_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new MapKey();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MapKey(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              com.yandex.ydb.Validation.Limit.Builder subBuilder = null;
              if (length_ != null) {
                subBuilder = length_.toBuilder();
              }
              length_ = input.readMessage(com.yandex.ydb.Validation.Limit.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(length_);
                length_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              value_ = s;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.yandex.ydb.Validation.internal_static_Ydb_MapKey_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.yandex.ydb.Validation.internal_static_Ydb_MapKey_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.yandex.ydb.Validation.MapKey.class, com.yandex.ydb.Validation.MapKey.Builder.class);
    }

    public static final int LENGTH_FIELD_NUMBER = 1;
    private com.yandex.ydb.Validation.Limit length_;
    /**
     * .Ydb.Limit length = 1;
     * @return Whether the length field is set.
     */
    @java.lang.Override
    public boolean hasLength() {
      return length_ != null;
    }
    /**
     * .Ydb.Limit length = 1;
     * @return The length.
     */
    @java.lang.Override
    public com.yandex.ydb.Validation.Limit getLength() {
      return length_ == null ? com.yandex.ydb.Validation.Limit.getDefaultInstance() : length_;
    }
    /**
     * .Ydb.Limit length = 1;
     */
    @java.lang.Override
    public com.yandex.ydb.Validation.LimitOrBuilder getLengthOrBuilder() {
      return getLength();
    }

    public static final int VALUE_FIELD_NUMBER = 2;
    private volatile java.lang.Object value_;
    /**
     * string value = 2;
     * @return The value.
     */
    @java.lang.Override
    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;
     * @return The bytes for value.
     */
    @java.lang.Override
    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;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (length_ != null) {
        output.writeMessage(1, getLength());
      }
      if (!getValueBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (length_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getLength());
      }
      if (!getValueBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.yandex.ydb.Validation.MapKey)) {
        return super.equals(obj);
      }
      com.yandex.ydb.Validation.MapKey other = (com.yandex.ydb.Validation.MapKey) obj;

      if (hasLength() != other.hasLength()) return false;
      if (hasLength()) {
        if (!getLength()
            .equals(other.getLength())) return false;
      }
      if (!getValue()
          .equals(other.getValue())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasLength()) {
        hash = (37 * hash) + LENGTH_FIELD_NUMBER;
        hash = (53 * hash) + getLength().hashCode();
      }
      hash = (37 * hash) + VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getValue().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.yandex.ydb.Validation.MapKey parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yandex.ydb.Validation.MapKey parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yandex.ydb.Validation.MapKey parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yandex.ydb.Validation.MapKey parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yandex.ydb.Validation.MapKey parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.yandex.ydb.Validation.MapKey parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.yandex.ydb.Validation.MapKey parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.yandex.ydb.Validation.MapKey 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.yandex.ydb.Validation.MapKey parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.yandex.ydb.Validation.MapKey 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.yandex.ydb.Validation.MapKey parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.yandex.ydb.Validation.MapKey parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.yandex.ydb.Validation.MapKey prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    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 Ydb.MapKey}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:Ydb.MapKey)
        com.yandex.ydb.Validation.MapKeyOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.yandex.ydb.Validation.internal_static_Ydb_MapKey_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.yandex.ydb.Validation.internal_static_Ydb_MapKey_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.yandex.ydb.Validation.MapKey.class, com.yandex.ydb.Validation.MapKey.Builder.class);
      }

      // Construct using com.yandex.ydb.Validation.MapKey.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (lengthBuilder_ == null) {
          length_ = null;
        } else {
          length_ = null;
          lengthBuilder_ = null;
        }
        value_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.yandex.ydb.Validation.internal_static_Ydb_MapKey_descriptor;
      }

      @java.lang.Override
      public com.yandex.ydb.Validation.MapKey getDefaultInstanceForType() {
        return com.yandex.ydb.Validation.MapKey.getDefaultInstance();
      }

      @java.lang.Override
      public com.yandex.ydb.Validation.MapKey build() {
        com.yandex.ydb.Validation.MapKey result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.yandex.ydb.Validation.MapKey buildPartial() {
        com.yandex.ydb.Validation.MapKey result = new com.yandex.ydb.Validation.MapKey(this);
        if (lengthBuilder_ == null) {
          result.length_ = length_;
        } else {
          result.length_ = lengthBuilder_.build();
        }
        result.value_ = value_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.yandex.ydb.Validation.MapKey) {
          return mergeFrom((com.yandex.ydb.Validation.MapKey)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.yandex.ydb.Validation.MapKey other) {
        if (other == com.yandex.ydb.Validation.MapKey.getDefaultInstance()) return this;
        if (other.hasLength()) {
          mergeLength(other.getLength());
        }
        if (!other.getValue().isEmpty()) {
          value_ = other.value_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.yandex.ydb.Validation.MapKey parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.yandex.ydb.Validation.MapKey) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.yandex.ydb.Validation.Limit length_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.yandex.ydb.Validation.Limit, com.yandex.ydb.Validation.Limit.Builder, com.yandex.ydb.Validation.LimitOrBuilder> lengthBuilder_;
      /**
       * .Ydb.Limit length = 1;
       * @return Whether the length field is set.
       */
      public boolean hasLength() {
        return lengthBuilder_ != null || length_ != null;
      }
      /**
       * .Ydb.Limit length = 1;
       * @return The length.
       */
      public com.yandex.ydb.Validation.Limit getLength() {
        if (lengthBuilder_ == null) {
          return length_ == null ? com.yandex.ydb.Validation.Limit.getDefaultInstance() : length_;
        } else {
          return lengthBuilder_.getMessage();
        }
      }
      /**
       * .Ydb.Limit length = 1;
       */
      public Builder setLength(com.yandex.ydb.Validation.Limit value) {
        if (lengthBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          length_ = value;
          onChanged();
        } else {
          lengthBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .Ydb.Limit length = 1;
       */
      public Builder setLength(
          com.yandex.ydb.Validation.Limit.Builder builderForValue) {
        if (lengthBuilder_ == null) {
          length_ = builderForValue.build();
          onChanged();
        } else {
          lengthBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .Ydb.Limit length = 1;
       */
      public Builder mergeLength(com.yandex.ydb.Validation.Limit value) {
        if (lengthBuilder_ == null) {
          if (length_ != null) {
            length_ =
              com.yandex.ydb.Validation.Limit.newBuilder(length_).mergeFrom(value).buildPartial();
          } else {
            length_ = value;
          }
          onChanged();
        } else {
          lengthBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .Ydb.Limit length = 1;
       */
      public Builder clearLength() {
        if (lengthBuilder_ == null) {
          length_ = null;
          onChanged();
        } else {
          length_ = null;
          lengthBuilder_ = null;
        }

        return this;
      }
      /**
       * .Ydb.Limit length = 1;
       */
      public com.yandex.ydb.Validation.Limit.Builder getLengthBuilder() {
        
        onChanged();
        return getLengthFieldBuilder().getBuilder();
      }
      /**
       * .Ydb.Limit length = 1;
       */
      public com.yandex.ydb.Validation.LimitOrBuilder getLengthOrBuilder() {
        if (lengthBuilder_ != null) {
          return lengthBuilder_.getMessageOrBuilder();
        } else {
          return length_ == null ?
              com.yandex.ydb.Validation.Limit.getDefaultInstance() : length_;
        }
      }
      /**
       * .Ydb.Limit length = 1;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.yandex.ydb.Validation.Limit, com.yandex.ydb.Validation.Limit.Builder, com.yandex.ydb.Validation.LimitOrBuilder> 
          getLengthFieldBuilder() {
        if (lengthBuilder_ == null) {
          lengthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.yandex.ydb.Validation.Limit, com.yandex.ydb.Validation.Limit.Builder, com.yandex.ydb.Validation.LimitOrBuilder>(
                  getLength(),
                  getParentForChildren(),
                  isClean());
          length_ = null;
        }
        return lengthBuilder_;
      }

      private java.lang.Object value_ = "";
      /**
       * string value = 2;
       * @return The value.
       */
      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;
       * @return The bytes for value.
       */
      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;
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * string value = 2;
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        
        value_ = getDefaultInstance().getValue();
        onChanged();
        return this;
      }
      /**
       * string value = 2;
       * @param value The bytes for value to set.
       * @return This builder for chaining.
       */
      public Builder setValueBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        value_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:Ydb.MapKey)
    }

    // @@protoc_insertion_point(class_scope:Ydb.MapKey)
    private static final com.yandex.ydb.Validation.MapKey DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.yandex.ydb.Validation.MapKey();
    }

    public static com.yandex.ydb.Validation.MapKey getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public MapKey parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MapKey(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.yandex.ydb.Validation.MapKey getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public static final int REQUIRED_FIELD_NUMBER = 87650;
  /**
   * extend .google.protobuf.FieldOptions { ... }
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.protobuf.DescriptorProtos.FieldOptions,
      java.lang.Boolean> required = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        java.lang.Boolean.class,
        null);
  public static final int SIZE_FIELD_NUMBER = 87651;
  /**
   * extend .google.protobuf.FieldOptions { ... }
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.protobuf.DescriptorProtos.FieldOptions,
      com.yandex.ydb.Validation.Limit> size = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        com.yandex.ydb.Validation.Limit.class,
        com.yandex.ydb.Validation.Limit.getDefaultInstance());
  public static final int LENGTH_FIELD_NUMBER = 87652;
  /**
   * extend .google.protobuf.FieldOptions { ... }
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.protobuf.DescriptorProtos.FieldOptions,
      com.yandex.ydb.Validation.Limit> length = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        com.yandex.ydb.Validation.Limit.class,
        com.yandex.ydb.Validation.Limit.getDefaultInstance());
  public static final int MAP_KEY_FIELD_NUMBER = 87653;
  /**
   * extend .google.protobuf.FieldOptions { ... }
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.protobuf.DescriptorProtos.FieldOptions,
      com.yandex.ydb.Validation.MapKey> mapKey = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        com.yandex.ydb.Validation.MapKey.class,
        com.yandex.ydb.Validation.MapKey.getDefaultInstance());
  public static final int VALUE_FIELD_NUMBER = 87654;
  /**
   * extend .google.protobuf.FieldOptions { ... }
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.protobuf.DescriptorProtos.FieldOptions,
      java.lang.String> value = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        java.lang.String.class,
        null);
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_Ydb_Limit_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_Ydb_Limit_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_Ydb_Limit_Range_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_Ydb_Limit_Range_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_Ydb_MapKey_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_Ydb_MapKey_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n2ydb/public/api/protos/annotations/vali" +
      "dation.proto\022\003Ydb\032 google/protobuf/descr" +
      "iptor.proto\"\233\001\n\005Limit\022!\n\005range\030\001 \001(\0132\020.Y" +
      "db.Limit.RangeH\000\022\014\n\002lt\030\002 \001(\rH\000\022\014\n\002le\030\003 \001" +
      "(\rH\000\022\014\n\002eq\030\004 \001(\rH\000\022\014\n\002ge\030\005 \001(\rH\000\022\014\n\002gt\030\006" +
      " \001(\rH\000\032!\n\005Range\022\013\n\003min\030\001 \001(\r\022\013\n\003max\030\002 \001(" +
      "\rB\006\n\004kind\"3\n\006MapKey\022\032\n\006length\030\001 \001(\0132\n.Yd" +
      "b.Limit\022\r\n\005value\030\002 \001(\t:1\n\010required\022\035.goo" +
      "gle.protobuf.FieldOptions\030\342\254\005 \001(\010:9\n\004siz" +
      "e\022\035.google.protobuf.FieldOptions\030\343\254\005 \001(\013" +
      "2\n.Ydb.Limit:;\n\006length\022\035.google.protobuf" +
      ".FieldOptions\030\344\254\005 \001(\0132\n.Ydb.Limit:=\n\007map" +
      "_key\022\035.google.protobuf.FieldOptions\030\345\254\005 " +
      "\001(\0132\013.Ydb.MapKey:.\n\005value\022\035.google.proto" +
      "buf.FieldOptions\030\346\254\005 \001(\tB\023\n\016com.yandex.y" +
      "db\370\001\001b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.DescriptorProtos.getDescriptor(),
        });
    internal_static_Ydb_Limit_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_Ydb_Limit_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_Ydb_Limit_descriptor,
        new java.lang.String[] { "Range", "Lt", "Le", "Eq", "Ge", "Gt", "Kind", });
    internal_static_Ydb_Limit_Range_descriptor =
      internal_static_Ydb_Limit_descriptor.getNestedTypes().get(0);
    internal_static_Ydb_Limit_Range_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_Ydb_Limit_Range_descriptor,
        new java.lang.String[] { "Min", "Max", });
    internal_static_Ydb_MapKey_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_Ydb_MapKey_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_Ydb_MapKey_descriptor,
        new java.lang.String[] { "Length", "Value", });
    required.internalInit(descriptor.getExtensions().get(0));
    size.internalInit(descriptor.getExtensions().get(1));
    length.internalInit(descriptor.getExtensions().get(2));
    mapKey.internalInit(descriptor.getExtensions().get(3));
    value.internalInit(descriptor.getExtensions().get(4));
    com.google.protobuf.DescriptorProtos.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy