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

grpc.vectorindex._Metadata Maven / Gradle / Ivy

There is a newer version: 0.119.5
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: vectorindex.proto

package grpc.vectorindex;

/**
 * Protobuf type {@code vectorindex._Metadata}
 */
public final class _Metadata extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:vectorindex._Metadata)
    _MetadataOrBuilder {
private static final long serialVersionUID = 0L;
  // Use _Metadata.newBuilder() to construct.
  private _Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private _Metadata() {
    field_ = "";
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            grpc.vectorindex._Metadata.class, grpc.vectorindex._Metadata.Builder.class);
  }

  public interface _ListOfStringsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:vectorindex._Metadata._ListOfStrings)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated string values = 1;
     * @return A list containing the values.
     */
    java.util.List
        getValuesList();
    /**
     * repeated string values = 1;
     * @return The count of values.
     */
    int getValuesCount();
    /**
     * repeated string values = 1;
     * @param index The index of the element to return.
     * @return The values at the given index.
     */
    java.lang.String getValues(int index);
    /**
     * repeated string values = 1;
     * @param index The index of the value to return.
     * @return The bytes of the values at the given index.
     */
    com.google.protobuf.ByteString
        getValuesBytes(int index);
  }
  /**
   * Protobuf type {@code vectorindex._Metadata._ListOfStrings}
   */
  public static final class _ListOfStrings extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:vectorindex._Metadata._ListOfStrings)
      _ListOfStringsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use _ListOfStrings.newBuilder() to construct.
    private _ListOfStrings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private _ListOfStrings() {
      values_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata__ListOfStrings_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata__ListOfStrings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              grpc.vectorindex._Metadata._ListOfStrings.class, grpc.vectorindex._Metadata._ListOfStrings.Builder.class);
    }

    public static final int VALUES_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList values_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    /**
     * repeated string values = 1;
     * @return A list containing the values.
     */
    public com.google.protobuf.ProtocolStringList
        getValuesList() {
      return values_;
    }
    /**
     * repeated string values = 1;
     * @return The count of values.
     */
    public int getValuesCount() {
      return values_.size();
    }
    /**
     * repeated string values = 1;
     * @param index The index of the element to return.
     * @return The values at the given index.
     */
    public java.lang.String getValues(int index) {
      return values_.get(index);
    }
    /**
     * repeated string values = 1;
     * @param index The index of the value to return.
     * @return The bytes of the values at the given index.
     */
    public com.google.protobuf.ByteString
        getValuesBytes(int index) {
      return values_.getByteString(index);
    }

    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 {
      for (int i = 0; i < values_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < values_.size(); i++) {
          dataSize += computeStringSizeNoTag(values_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getValuesList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof grpc.vectorindex._Metadata._ListOfStrings)) {
        return super.equals(obj);
      }
      grpc.vectorindex._Metadata._ListOfStrings other = (grpc.vectorindex._Metadata._ListOfStrings) obj;

      if (!getValuesList()
          .equals(other.getValuesList())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getValuesCount() > 0) {
        hash = (37 * hash) + VALUES_FIELD_NUMBER;
        hash = (53 * hash) + getValuesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static grpc.vectorindex._Metadata._ListOfStrings 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 grpc.vectorindex._Metadata._ListOfStrings parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static grpc.vectorindex._Metadata._ListOfStrings 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(grpc.vectorindex._Metadata._ListOfStrings 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 vectorindex._Metadata._ListOfStrings}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:vectorindex._Metadata._ListOfStrings)
        grpc.vectorindex._Metadata._ListOfStringsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata__ListOfStrings_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata__ListOfStrings_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                grpc.vectorindex._Metadata._ListOfStrings.class, grpc.vectorindex._Metadata._ListOfStrings.Builder.class);
      }

      // Construct using grpc.vectorindex._Metadata._ListOfStrings.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        values_ =
            com.google.protobuf.LazyStringArrayList.emptyList();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata__ListOfStrings_descriptor;
      }

      @java.lang.Override
      public grpc.vectorindex._Metadata._ListOfStrings getDefaultInstanceForType() {
        return grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance();
      }

      @java.lang.Override
      public grpc.vectorindex._Metadata._ListOfStrings build() {
        grpc.vectorindex._Metadata._ListOfStrings result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public grpc.vectorindex._Metadata._ListOfStrings buildPartial() {
        grpc.vectorindex._Metadata._ListOfStrings result = new grpc.vectorindex._Metadata._ListOfStrings(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(grpc.vectorindex._Metadata._ListOfStrings result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          values_.makeImmutable();
          result.values_ = values_;
        }
      }

      @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 grpc.vectorindex._Metadata._ListOfStrings) {
          return mergeFrom((grpc.vectorindex._Metadata._ListOfStrings)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(grpc.vectorindex._Metadata._ListOfStrings other) {
        if (other == grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance()) return this;
        if (!other.values_.isEmpty()) {
          if (values_.isEmpty()) {
            values_ = other.values_;
            bitField0_ |= 0x00000001;
          } else {
            ensureValuesIsMutable();
            values_.addAll(other.values_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                java.lang.String s = input.readStringRequireUtf8();
                ensureValuesIsMutable();
                values_.add(s);
                break;
              } // case 10
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.LazyStringArrayList values_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      private void ensureValuesIsMutable() {
        if (!values_.isModifiable()) {
          values_ = new com.google.protobuf.LazyStringArrayList(values_);
        }
        bitField0_ |= 0x00000001;
      }
      /**
       * repeated string values = 1;
       * @return A list containing the values.
       */
      public com.google.protobuf.ProtocolStringList
          getValuesList() {
        values_.makeImmutable();
        return values_;
      }
      /**
       * repeated string values = 1;
       * @return The count of values.
       */
      public int getValuesCount() {
        return values_.size();
      }
      /**
       * repeated string values = 1;
       * @param index The index of the element to return.
       * @return The values at the given index.
       */
      public java.lang.String getValues(int index) {
        return values_.get(index);
      }
      /**
       * repeated string values = 1;
       * @param index The index of the value to return.
       * @return The bytes of the values at the given index.
       */
      public com.google.protobuf.ByteString
          getValuesBytes(int index) {
        return values_.getByteString(index);
      }
      /**
       * repeated string values = 1;
       * @param index The index to set the value at.
       * @param value The values to set.
       * @return This builder for chaining.
       */
      public Builder setValues(
          int index, java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        ensureValuesIsMutable();
        values_.set(index, value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * repeated string values = 1;
       * @param value The values to add.
       * @return This builder for chaining.
       */
      public Builder addValues(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        ensureValuesIsMutable();
        values_.add(value);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * repeated string values = 1;
       * @param values The values to add.
       * @return This builder for chaining.
       */
      public Builder addAllValues(
          java.lang.Iterable values) {
        ensureValuesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, values_);
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * repeated string values = 1;
       * @return This builder for chaining.
       */
      public Builder clearValues() {
        values_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);;
        onChanged();
        return this;
      }
      /**
       * repeated string values = 1;
       * @param value The bytes of the values to add.
       * @return This builder for chaining.
       */
      public Builder addValuesBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        ensureValuesIsMutable();
        values_.add(value);
        bitField0_ |= 0x00000001;
        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:vectorindex._Metadata._ListOfStrings)
    }

    // @@protoc_insertion_point(class_scope:vectorindex._Metadata._ListOfStrings)
    private static final grpc.vectorindex._Metadata._ListOfStrings DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new grpc.vectorindex._Metadata._ListOfStrings();
    }

    public static grpc.vectorindex._Metadata._ListOfStrings getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<_ListOfStrings>
        PARSER = new com.google.protobuf.AbstractParser<_ListOfStrings>() {
      @java.lang.Override
      public _ListOfStrings parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public grpc.vectorindex._Metadata._ListOfStrings getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int valueCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object value_;
  public enum ValueCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    STRING_VALUE(2),
    INTEGER_VALUE(3),
    DOUBLE_VALUE(4),
    BOOLEAN_VALUE(5),
    LIST_OF_STRINGS_VALUE(6),
    VALUE_NOT_SET(0);
    private final int value;
    private ValueCase(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 ValueCase valueOf(int value) {
      return forNumber(value);
    }

    public static ValueCase forNumber(int value) {
      switch (value) {
        case 2: return STRING_VALUE;
        case 3: return INTEGER_VALUE;
        case 4: return DOUBLE_VALUE;
        case 5: return BOOLEAN_VALUE;
        case 6: return LIST_OF_STRINGS_VALUE;
        case 0: return VALUE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ValueCase
  getValueCase() {
    return ValueCase.forNumber(
        valueCase_);
  }

  public static final int FIELD_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object field_ = "";
  /**
   * string field = 1;
   * @return The field.
   */
  @java.lang.Override
  public java.lang.String getField() {
    java.lang.Object ref = field_;
    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();
      field_ = s;
      return s;
    }
  }
  /**
   * string field = 1;
   * @return The bytes for field.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFieldBytes() {
    java.lang.Object ref = field_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      field_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STRING_VALUE_FIELD_NUMBER = 2;
  /**
   * string string_value = 2;
   * @return Whether the stringValue field is set.
   */
  public boolean hasStringValue() {
    return valueCase_ == 2;
  }
  /**
   * string string_value = 2;
   * @return The stringValue.
   */
  public java.lang.String getStringValue() {
    java.lang.Object ref = "";
    if (valueCase_ == 2) {
      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();
      if (valueCase_ == 2) {
        value_ = s;
      }
      return s;
    }
  }
  /**
   * string string_value = 2;
   * @return The bytes for stringValue.
   */
  public com.google.protobuf.ByteString
      getStringValueBytes() {
    java.lang.Object ref = "";
    if (valueCase_ == 2) {
      ref = value_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (valueCase_ == 2) {
        value_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INTEGER_VALUE_FIELD_NUMBER = 3;
  /**
   * int64 integer_value = 3;
   * @return Whether the integerValue field is set.
   */
  @java.lang.Override
  public boolean hasIntegerValue() {
    return valueCase_ == 3;
  }
  /**
   * int64 integer_value = 3;
   * @return The integerValue.
   */
  @java.lang.Override
  public long getIntegerValue() {
    if (valueCase_ == 3) {
      return (java.lang.Long) value_;
    }
    return 0L;
  }

  public static final int DOUBLE_VALUE_FIELD_NUMBER = 4;
  /**
   * double double_value = 4;
   * @return Whether the doubleValue field is set.
   */
  @java.lang.Override
  public boolean hasDoubleValue() {
    return valueCase_ == 4;
  }
  /**
   * double double_value = 4;
   * @return The doubleValue.
   */
  @java.lang.Override
  public double getDoubleValue() {
    if (valueCase_ == 4) {
      return (java.lang.Double) value_;
    }
    return 0D;
  }

  public static final int BOOLEAN_VALUE_FIELD_NUMBER = 5;
  /**
   * bool boolean_value = 5;
   * @return Whether the booleanValue field is set.
   */
  @java.lang.Override
  public boolean hasBooleanValue() {
    return valueCase_ == 5;
  }
  /**
   * bool boolean_value = 5;
   * @return The booleanValue.
   */
  @java.lang.Override
  public boolean getBooleanValue() {
    if (valueCase_ == 5) {
      return (java.lang.Boolean) value_;
    }
    return false;
  }

  public static final int LIST_OF_STRINGS_VALUE_FIELD_NUMBER = 6;
  /**
   * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
   * @return Whether the listOfStringsValue field is set.
   */
  @java.lang.Override
  public boolean hasListOfStringsValue() {
    return valueCase_ == 6;
  }
  /**
   * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
   * @return The listOfStringsValue.
   */
  @java.lang.Override
  public grpc.vectorindex._Metadata._ListOfStrings getListOfStringsValue() {
    if (valueCase_ == 6) {
       return (grpc.vectorindex._Metadata._ListOfStrings) value_;
    }
    return grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance();
  }
  /**
   * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
   */
  @java.lang.Override
  public grpc.vectorindex._Metadata._ListOfStringsOrBuilder getListOfStringsValueOrBuilder() {
    if (valueCase_ == 6) {
       return (grpc.vectorindex._Metadata._ListOfStrings) value_;
    }
    return grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance();
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
    }
    if (valueCase_ == 2) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
    }
    if (valueCase_ == 3) {
      output.writeInt64(
          3, (long)((java.lang.Long) value_));
    }
    if (valueCase_ == 4) {
      output.writeDouble(
          4, (double)((java.lang.Double) value_));
    }
    if (valueCase_ == 5) {
      output.writeBool(
          5, (boolean)((java.lang.Boolean) value_));
    }
    if (valueCase_ == 6) {
      output.writeMessage(6, (grpc.vectorindex._Metadata._ListOfStrings) value_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_);
    }
    if (valueCase_ == 2) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
    }
    if (valueCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(
            3, (long)((java.lang.Long) value_));
    }
    if (valueCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(
            4, (double)((java.lang.Double) value_));
    }
    if (valueCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(
            5, (boolean)((java.lang.Boolean) value_));
    }
    if (valueCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (grpc.vectorindex._Metadata._ListOfStrings) value_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof grpc.vectorindex._Metadata)) {
      return super.equals(obj);
    }
    grpc.vectorindex._Metadata other = (grpc.vectorindex._Metadata) obj;

    if (!getField()
        .equals(other.getField())) return false;
    if (!getValueCase().equals(other.getValueCase())) return false;
    switch (valueCase_) {
      case 2:
        if (!getStringValue()
            .equals(other.getStringValue())) return false;
        break;
      case 3:
        if (getIntegerValue()
            != other.getIntegerValue()) return false;
        break;
      case 4:
        if (java.lang.Double.doubleToLongBits(getDoubleValue())
            != java.lang.Double.doubleToLongBits(
                other.getDoubleValue())) return false;
        break;
      case 5:
        if (getBooleanValue()
            != other.getBooleanValue()) return false;
        break;
      case 6:
        if (!getListOfStringsValue()
            .equals(other.getListOfStringsValue())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FIELD_FIELD_NUMBER;
    hash = (53 * hash) + getField().hashCode();
    switch (valueCase_) {
      case 2:
        hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getStringValue().hashCode();
        break;
      case 3:
        hash = (37 * hash) + INTEGER_VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getIntegerValue());
        break;
      case 4:
        hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getDoubleValue()));
        break;
      case 5:
        hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            getBooleanValue());
        break;
      case 6:
        hash = (37 * hash) + LIST_OF_STRINGS_VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getListOfStringsValue().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static grpc.vectorindex._Metadata 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 grpc.vectorindex._Metadata parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static grpc.vectorindex._Metadata 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(grpc.vectorindex._Metadata 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 vectorindex._Metadata}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:vectorindex._Metadata)
      grpc.vectorindex._MetadataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              grpc.vectorindex._Metadata.class, grpc.vectorindex._Metadata.Builder.class);
    }

    // Construct using grpc.vectorindex._Metadata.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      field_ = "";
      if (listOfStringsValueBuilder_ != null) {
        listOfStringsValueBuilder_.clear();
      }
      valueCase_ = 0;
      value_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return grpc.vectorindex.Vectorindex.internal_static_vectorindex__Metadata_descriptor;
    }

    @java.lang.Override
    public grpc.vectorindex._Metadata getDefaultInstanceForType() {
      return grpc.vectorindex._Metadata.getDefaultInstance();
    }

    @java.lang.Override
    public grpc.vectorindex._Metadata build() {
      grpc.vectorindex._Metadata result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public grpc.vectorindex._Metadata buildPartial() {
      grpc.vectorindex._Metadata result = new grpc.vectorindex._Metadata(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(grpc.vectorindex._Metadata result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.field_ = field_;
      }
    }

    private void buildPartialOneofs(grpc.vectorindex._Metadata result) {
      result.valueCase_ = valueCase_;
      result.value_ = this.value_;
      if (valueCase_ == 6 &&
          listOfStringsValueBuilder_ != null) {
        result.value_ = listOfStringsValueBuilder_.build();
      }
    }

    @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 grpc.vectorindex._Metadata) {
        return mergeFrom((grpc.vectorindex._Metadata)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(grpc.vectorindex._Metadata other) {
      if (other == grpc.vectorindex._Metadata.getDefaultInstance()) return this;
      if (!other.getField().isEmpty()) {
        field_ = other.field_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      switch (other.getValueCase()) {
        case STRING_VALUE: {
          valueCase_ = 2;
          value_ = other.value_;
          onChanged();
          break;
        }
        case INTEGER_VALUE: {
          setIntegerValue(other.getIntegerValue());
          break;
        }
        case DOUBLE_VALUE: {
          setDoubleValue(other.getDoubleValue());
          break;
        }
        case BOOLEAN_VALUE: {
          setBooleanValue(other.getBooleanValue());
          break;
        }
        case LIST_OF_STRINGS_VALUE: {
          mergeListOfStringsValue(other.getListOfStringsValue());
          break;
        }
        case VALUE_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              field_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();
              valueCase_ = 2;
              value_ = s;
              break;
            } // case 18
            case 24: {
              value_ = input.readInt64();
              valueCase_ = 3;
              break;
            } // case 24
            case 33: {
              value_ = input.readDouble();
              valueCase_ = 4;
              break;
            } // case 33
            case 40: {
              value_ = input.readBool();
              valueCase_ = 5;
              break;
            } // case 40
            case 50: {
              input.readMessage(
                  getListOfStringsValueFieldBuilder().getBuilder(),
                  extensionRegistry);
              valueCase_ = 6;
              break;
            } // case 50
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int valueCase_ = 0;
    private java.lang.Object value_;
    public ValueCase
        getValueCase() {
      return ValueCase.forNumber(
          valueCase_);
    }

    public Builder clearValue() {
      valueCase_ = 0;
      value_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object field_ = "";
    /**
     * string field = 1;
     * @return The field.
     */
    public java.lang.String getField() {
      java.lang.Object ref = field_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        field_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string field = 1;
     * @return The bytes for field.
     */
    public com.google.protobuf.ByteString
        getFieldBytes() {
      java.lang.Object ref = field_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        field_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string field = 1;
     * @param value The field to set.
     * @return This builder for chaining.
     */
    public Builder setField(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      field_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string field = 1;
     * @return This builder for chaining.
     */
    public Builder clearField() {
      field_ = getDefaultInstance().getField();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string field = 1;
     * @param value The bytes for field to set.
     * @return This builder for chaining.
     */
    public Builder setFieldBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      field_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     * string string_value = 2;
     * @return Whether the stringValue field is set.
     */
    @java.lang.Override
    public boolean hasStringValue() {
      return valueCase_ == 2;
    }
    /**
     * string string_value = 2;
     * @return The stringValue.
     */
    @java.lang.Override
    public java.lang.String getStringValue() {
      java.lang.Object ref = "";
      if (valueCase_ == 2) {
        ref = value_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (valueCase_ == 2) {
          value_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string string_value = 2;
     * @return The bytes for stringValue.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getStringValueBytes() {
      java.lang.Object ref = "";
      if (valueCase_ == 2) {
        ref = value_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (valueCase_ == 2) {
          value_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string string_value = 2;
     * @param value The stringValue to set.
     * @return This builder for chaining.
     */
    public Builder setStringValue(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      valueCase_ = 2;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * string string_value = 2;
     * @return This builder for chaining.
     */
    public Builder clearStringValue() {
      if (valueCase_ == 2) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * string string_value = 2;
     * @param value The bytes for stringValue to set.
     * @return This builder for chaining.
     */
    public Builder setStringValueBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      valueCase_ = 2;
      value_ = value;
      onChanged();
      return this;
    }

    /**
     * int64 integer_value = 3;
     * @return Whether the integerValue field is set.
     */
    public boolean hasIntegerValue() {
      return valueCase_ == 3;
    }
    /**
     * int64 integer_value = 3;
     * @return The integerValue.
     */
    public long getIntegerValue() {
      if (valueCase_ == 3) {
        return (java.lang.Long) value_;
      }
      return 0L;
    }
    /**
     * int64 integer_value = 3;
     * @param value The integerValue to set.
     * @return This builder for chaining.
     */
    public Builder setIntegerValue(long value) {

      valueCase_ = 3;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 integer_value = 3;
     * @return This builder for chaining.
     */
    public Builder clearIntegerValue() {
      if (valueCase_ == 3) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * double double_value = 4;
     * @return Whether the doubleValue field is set.
     */
    public boolean hasDoubleValue() {
      return valueCase_ == 4;
    }
    /**
     * double double_value = 4;
     * @return The doubleValue.
     */
    public double getDoubleValue() {
      if (valueCase_ == 4) {
        return (java.lang.Double) value_;
      }
      return 0D;
    }
    /**
     * double double_value = 4;
     * @param value The doubleValue to set.
     * @return This builder for chaining.
     */
    public Builder setDoubleValue(double value) {

      valueCase_ = 4;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * double double_value = 4;
     * @return This builder for chaining.
     */
    public Builder clearDoubleValue() {
      if (valueCase_ == 4) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * bool boolean_value = 5;
     * @return Whether the booleanValue field is set.
     */
    public boolean hasBooleanValue() {
      return valueCase_ == 5;
    }
    /**
     * bool boolean_value = 5;
     * @return The booleanValue.
     */
    public boolean getBooleanValue() {
      if (valueCase_ == 5) {
        return (java.lang.Boolean) value_;
      }
      return false;
    }
    /**
     * bool boolean_value = 5;
     * @param value The booleanValue to set.
     * @return This builder for chaining.
     */
    public Builder setBooleanValue(boolean value) {

      valueCase_ = 5;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * bool boolean_value = 5;
     * @return This builder for chaining.
     */
    public Builder clearBooleanValue() {
      if (valueCase_ == 5) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._Metadata._ListOfStrings, grpc.vectorindex._Metadata._ListOfStrings.Builder, grpc.vectorindex._Metadata._ListOfStringsOrBuilder> listOfStringsValueBuilder_;
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     * @return Whether the listOfStringsValue field is set.
     */
    @java.lang.Override
    public boolean hasListOfStringsValue() {
      return valueCase_ == 6;
    }
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     * @return The listOfStringsValue.
     */
    @java.lang.Override
    public grpc.vectorindex._Metadata._ListOfStrings getListOfStringsValue() {
      if (listOfStringsValueBuilder_ == null) {
        if (valueCase_ == 6) {
          return (grpc.vectorindex._Metadata._ListOfStrings) value_;
        }
        return grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance();
      } else {
        if (valueCase_ == 6) {
          return listOfStringsValueBuilder_.getMessage();
        }
        return grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance();
      }
    }
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     */
    public Builder setListOfStringsValue(grpc.vectorindex._Metadata._ListOfStrings value) {
      if (listOfStringsValueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        value_ = value;
        onChanged();
      } else {
        listOfStringsValueBuilder_.setMessage(value);
      }
      valueCase_ = 6;
      return this;
    }
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     */
    public Builder setListOfStringsValue(
        grpc.vectorindex._Metadata._ListOfStrings.Builder builderForValue) {
      if (listOfStringsValueBuilder_ == null) {
        value_ = builderForValue.build();
        onChanged();
      } else {
        listOfStringsValueBuilder_.setMessage(builderForValue.build());
      }
      valueCase_ = 6;
      return this;
    }
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     */
    public Builder mergeListOfStringsValue(grpc.vectorindex._Metadata._ListOfStrings value) {
      if (listOfStringsValueBuilder_ == null) {
        if (valueCase_ == 6 &&
            value_ != grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance()) {
          value_ = grpc.vectorindex._Metadata._ListOfStrings.newBuilder((grpc.vectorindex._Metadata._ListOfStrings) value_)
              .mergeFrom(value).buildPartial();
        } else {
          value_ = value;
        }
        onChanged();
      } else {
        if (valueCase_ == 6) {
          listOfStringsValueBuilder_.mergeFrom(value);
        } else {
          listOfStringsValueBuilder_.setMessage(value);
        }
      }
      valueCase_ = 6;
      return this;
    }
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     */
    public Builder clearListOfStringsValue() {
      if (listOfStringsValueBuilder_ == null) {
        if (valueCase_ == 6) {
          valueCase_ = 0;
          value_ = null;
          onChanged();
        }
      } else {
        if (valueCase_ == 6) {
          valueCase_ = 0;
          value_ = null;
        }
        listOfStringsValueBuilder_.clear();
      }
      return this;
    }
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     */
    public grpc.vectorindex._Metadata._ListOfStrings.Builder getListOfStringsValueBuilder() {
      return getListOfStringsValueFieldBuilder().getBuilder();
    }
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     */
    @java.lang.Override
    public grpc.vectorindex._Metadata._ListOfStringsOrBuilder getListOfStringsValueOrBuilder() {
      if ((valueCase_ == 6) && (listOfStringsValueBuilder_ != null)) {
        return listOfStringsValueBuilder_.getMessageOrBuilder();
      } else {
        if (valueCase_ == 6) {
          return (grpc.vectorindex._Metadata._ListOfStrings) value_;
        }
        return grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance();
      }
    }
    /**
     * .vectorindex._Metadata._ListOfStrings list_of_strings_value = 6;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        grpc.vectorindex._Metadata._ListOfStrings, grpc.vectorindex._Metadata._ListOfStrings.Builder, grpc.vectorindex._Metadata._ListOfStringsOrBuilder> 
        getListOfStringsValueFieldBuilder() {
      if (listOfStringsValueBuilder_ == null) {
        if (!(valueCase_ == 6)) {
          value_ = grpc.vectorindex._Metadata._ListOfStrings.getDefaultInstance();
        }
        listOfStringsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            grpc.vectorindex._Metadata._ListOfStrings, grpc.vectorindex._Metadata._ListOfStrings.Builder, grpc.vectorindex._Metadata._ListOfStringsOrBuilder>(
                (grpc.vectorindex._Metadata._ListOfStrings) value_,
                getParentForChildren(),
                isClean());
        value_ = null;
      }
      valueCase_ = 6;
      onChanged();
      return listOfStringsValueBuilder_;
    }
    @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:vectorindex._Metadata)
  }

  // @@protoc_insertion_point(class_scope:vectorindex._Metadata)
  private static final grpc.vectorindex._Metadata DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new grpc.vectorindex._Metadata();
  }

  public static grpc.vectorindex._Metadata getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<_Metadata>
      PARSER = new com.google.protobuf.AbstractParser<_Metadata>() {
    @java.lang.Override
    public _Metadata parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public grpc.vectorindex._Metadata getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy