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

io.milvus.grpc.ScalarField Maven / Gradle / Ivy

Go to download

Java SDK for Milvus, a distributed high-performance vector search engine. update grpc to 1.42.1 update protobuf to 3.19.1

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

package io.milvus.grpc;

/**
 * Protobuf type {@code milvus.proto.schema.ScalarField}
 */
public final class ScalarField extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.schema.ScalarField)
    ScalarFieldOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ScalarField.newBuilder() to construct.
  private ScalarField(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ScalarField() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ScalarField(
      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: {
            io.milvus.grpc.BoolArray.Builder subBuilder = null;
            if (dataCase_ == 1) {
              subBuilder = ((io.milvus.grpc.BoolArray) data_).toBuilder();
            }
            data_ =
                input.readMessage(io.milvus.grpc.BoolArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.BoolArray) data_);
              data_ = subBuilder.buildPartial();
            }
            dataCase_ = 1;
            break;
          }
          case 18: {
            io.milvus.grpc.IntArray.Builder subBuilder = null;
            if (dataCase_ == 2) {
              subBuilder = ((io.milvus.grpc.IntArray) data_).toBuilder();
            }
            data_ =
                input.readMessage(io.milvus.grpc.IntArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.IntArray) data_);
              data_ = subBuilder.buildPartial();
            }
            dataCase_ = 2;
            break;
          }
          case 26: {
            io.milvus.grpc.LongArray.Builder subBuilder = null;
            if (dataCase_ == 3) {
              subBuilder = ((io.milvus.grpc.LongArray) data_).toBuilder();
            }
            data_ =
                input.readMessage(io.milvus.grpc.LongArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.LongArray) data_);
              data_ = subBuilder.buildPartial();
            }
            dataCase_ = 3;
            break;
          }
          case 34: {
            io.milvus.grpc.FloatArray.Builder subBuilder = null;
            if (dataCase_ == 4) {
              subBuilder = ((io.milvus.grpc.FloatArray) data_).toBuilder();
            }
            data_ =
                input.readMessage(io.milvus.grpc.FloatArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.FloatArray) data_);
              data_ = subBuilder.buildPartial();
            }
            dataCase_ = 4;
            break;
          }
          case 42: {
            io.milvus.grpc.DoubleArray.Builder subBuilder = null;
            if (dataCase_ == 5) {
              subBuilder = ((io.milvus.grpc.DoubleArray) data_).toBuilder();
            }
            data_ =
                input.readMessage(io.milvus.grpc.DoubleArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.DoubleArray) data_);
              data_ = subBuilder.buildPartial();
            }
            dataCase_ = 5;
            break;
          }
          case 50: {
            io.milvus.grpc.StringArray.Builder subBuilder = null;
            if (dataCase_ == 6) {
              subBuilder = ((io.milvus.grpc.StringArray) data_).toBuilder();
            }
            data_ =
                input.readMessage(io.milvus.grpc.StringArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.StringArray) data_);
              data_ = subBuilder.buildPartial();
            }
            dataCase_ = 6;
            break;
          }
          case 58: {
            io.milvus.grpc.BytesArray.Builder subBuilder = null;
            if (dataCase_ == 7) {
              subBuilder = ((io.milvus.grpc.BytesArray) data_).toBuilder();
            }
            data_ =
                input.readMessage(io.milvus.grpc.BytesArray.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.BytesArray) data_);
              data_ = subBuilder.buildPartial();
            }
            dataCase_ = 7;
            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 io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_ScalarField_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_ScalarField_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.milvus.grpc.ScalarField.class, io.milvus.grpc.ScalarField.Builder.class);
  }

  private int dataCase_ = 0;
  private java.lang.Object data_;
  public enum DataCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    BOOL_DATA(1),
    INT_DATA(2),
    LONG_DATA(3),
    FLOAT_DATA(4),
    DOUBLE_DATA(5),
    STRING_DATA(6),
    BYTES_DATA(7),
    DATA_NOT_SET(0);
    private final int value;
    private DataCase(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 DataCase valueOf(int value) {
      return forNumber(value);
    }

    public static DataCase forNumber(int value) {
      switch (value) {
        case 1: return BOOL_DATA;
        case 2: return INT_DATA;
        case 3: return LONG_DATA;
        case 4: return FLOAT_DATA;
        case 5: return DOUBLE_DATA;
        case 6: return STRING_DATA;
        case 7: return BYTES_DATA;
        case 0: return DATA_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public DataCase
  getDataCase() {
    return DataCase.forNumber(
        dataCase_);
  }

  public static final int BOOL_DATA_FIELD_NUMBER = 1;
  /**
   * .milvus.proto.schema.BoolArray bool_data = 1;
   * @return Whether the boolData field is set.
   */
  @java.lang.Override
  public boolean hasBoolData() {
    return dataCase_ == 1;
  }
  /**
   * .milvus.proto.schema.BoolArray bool_data = 1;
   * @return The boolData.
   */
  @java.lang.Override
  public io.milvus.grpc.BoolArray getBoolData() {
    if (dataCase_ == 1) {
       return (io.milvus.grpc.BoolArray) data_;
    }
    return io.milvus.grpc.BoolArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.BoolArray bool_data = 1;
   */
  @java.lang.Override
  public io.milvus.grpc.BoolArrayOrBuilder getBoolDataOrBuilder() {
    if (dataCase_ == 1) {
       return (io.milvus.grpc.BoolArray) data_;
    }
    return io.milvus.grpc.BoolArray.getDefaultInstance();
  }

  public static final int INT_DATA_FIELD_NUMBER = 2;
  /**
   * .milvus.proto.schema.IntArray int_data = 2;
   * @return Whether the intData field is set.
   */
  @java.lang.Override
  public boolean hasIntData() {
    return dataCase_ == 2;
  }
  /**
   * .milvus.proto.schema.IntArray int_data = 2;
   * @return The intData.
   */
  @java.lang.Override
  public io.milvus.grpc.IntArray getIntData() {
    if (dataCase_ == 2) {
       return (io.milvus.grpc.IntArray) data_;
    }
    return io.milvus.grpc.IntArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.IntArray int_data = 2;
   */
  @java.lang.Override
  public io.milvus.grpc.IntArrayOrBuilder getIntDataOrBuilder() {
    if (dataCase_ == 2) {
       return (io.milvus.grpc.IntArray) data_;
    }
    return io.milvus.grpc.IntArray.getDefaultInstance();
  }

  public static final int LONG_DATA_FIELD_NUMBER = 3;
  /**
   * .milvus.proto.schema.LongArray long_data = 3;
   * @return Whether the longData field is set.
   */
  @java.lang.Override
  public boolean hasLongData() {
    return dataCase_ == 3;
  }
  /**
   * .milvus.proto.schema.LongArray long_data = 3;
   * @return The longData.
   */
  @java.lang.Override
  public io.milvus.grpc.LongArray getLongData() {
    if (dataCase_ == 3) {
       return (io.milvus.grpc.LongArray) data_;
    }
    return io.milvus.grpc.LongArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.LongArray long_data = 3;
   */
  @java.lang.Override
  public io.milvus.grpc.LongArrayOrBuilder getLongDataOrBuilder() {
    if (dataCase_ == 3) {
       return (io.milvus.grpc.LongArray) data_;
    }
    return io.milvus.grpc.LongArray.getDefaultInstance();
  }

  public static final int FLOAT_DATA_FIELD_NUMBER = 4;
  /**
   * .milvus.proto.schema.FloatArray float_data = 4;
   * @return Whether the floatData field is set.
   */
  @java.lang.Override
  public boolean hasFloatData() {
    return dataCase_ == 4;
  }
  /**
   * .milvus.proto.schema.FloatArray float_data = 4;
   * @return The floatData.
   */
  @java.lang.Override
  public io.milvus.grpc.FloatArray getFloatData() {
    if (dataCase_ == 4) {
       return (io.milvus.grpc.FloatArray) data_;
    }
    return io.milvus.grpc.FloatArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.FloatArray float_data = 4;
   */
  @java.lang.Override
  public io.milvus.grpc.FloatArrayOrBuilder getFloatDataOrBuilder() {
    if (dataCase_ == 4) {
       return (io.milvus.grpc.FloatArray) data_;
    }
    return io.milvus.grpc.FloatArray.getDefaultInstance();
  }

  public static final int DOUBLE_DATA_FIELD_NUMBER = 5;
  /**
   * .milvus.proto.schema.DoubleArray double_data = 5;
   * @return Whether the doubleData field is set.
   */
  @java.lang.Override
  public boolean hasDoubleData() {
    return dataCase_ == 5;
  }
  /**
   * .milvus.proto.schema.DoubleArray double_data = 5;
   * @return The doubleData.
   */
  @java.lang.Override
  public io.milvus.grpc.DoubleArray getDoubleData() {
    if (dataCase_ == 5) {
       return (io.milvus.grpc.DoubleArray) data_;
    }
    return io.milvus.grpc.DoubleArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.DoubleArray double_data = 5;
   */
  @java.lang.Override
  public io.milvus.grpc.DoubleArrayOrBuilder getDoubleDataOrBuilder() {
    if (dataCase_ == 5) {
       return (io.milvus.grpc.DoubleArray) data_;
    }
    return io.milvus.grpc.DoubleArray.getDefaultInstance();
  }

  public static final int STRING_DATA_FIELD_NUMBER = 6;
  /**
   * .milvus.proto.schema.StringArray string_data = 6;
   * @return Whether the stringData field is set.
   */
  @java.lang.Override
  public boolean hasStringData() {
    return dataCase_ == 6;
  }
  /**
   * .milvus.proto.schema.StringArray string_data = 6;
   * @return The stringData.
   */
  @java.lang.Override
  public io.milvus.grpc.StringArray getStringData() {
    if (dataCase_ == 6) {
       return (io.milvus.grpc.StringArray) data_;
    }
    return io.milvus.grpc.StringArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.StringArray string_data = 6;
   */
  @java.lang.Override
  public io.milvus.grpc.StringArrayOrBuilder getStringDataOrBuilder() {
    if (dataCase_ == 6) {
       return (io.milvus.grpc.StringArray) data_;
    }
    return io.milvus.grpc.StringArray.getDefaultInstance();
  }

  public static final int BYTES_DATA_FIELD_NUMBER = 7;
  /**
   * .milvus.proto.schema.BytesArray bytes_data = 7;
   * @return Whether the bytesData field is set.
   */
  @java.lang.Override
  public boolean hasBytesData() {
    return dataCase_ == 7;
  }
  /**
   * .milvus.proto.schema.BytesArray bytes_data = 7;
   * @return The bytesData.
   */
  @java.lang.Override
  public io.milvus.grpc.BytesArray getBytesData() {
    if (dataCase_ == 7) {
       return (io.milvus.grpc.BytesArray) data_;
    }
    return io.milvus.grpc.BytesArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.BytesArray bytes_data = 7;
   */
  @java.lang.Override
  public io.milvus.grpc.BytesArrayOrBuilder getBytesDataOrBuilder() {
    if (dataCase_ == 7) {
       return (io.milvus.grpc.BytesArray) data_;
    }
    return io.milvus.grpc.BytesArray.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 (dataCase_ == 1) {
      output.writeMessage(1, (io.milvus.grpc.BoolArray) data_);
    }
    if (dataCase_ == 2) {
      output.writeMessage(2, (io.milvus.grpc.IntArray) data_);
    }
    if (dataCase_ == 3) {
      output.writeMessage(3, (io.milvus.grpc.LongArray) data_);
    }
    if (dataCase_ == 4) {
      output.writeMessage(4, (io.milvus.grpc.FloatArray) data_);
    }
    if (dataCase_ == 5) {
      output.writeMessage(5, (io.milvus.grpc.DoubleArray) data_);
    }
    if (dataCase_ == 6) {
      output.writeMessage(6, (io.milvus.grpc.StringArray) data_);
    }
    if (dataCase_ == 7) {
      output.writeMessage(7, (io.milvus.grpc.BytesArray) data_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (dataCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (io.milvus.grpc.BoolArray) data_);
    }
    if (dataCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (io.milvus.grpc.IntArray) data_);
    }
    if (dataCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (io.milvus.grpc.LongArray) data_);
    }
    if (dataCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (io.milvus.grpc.FloatArray) data_);
    }
    if (dataCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (io.milvus.grpc.DoubleArray) data_);
    }
    if (dataCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (io.milvus.grpc.StringArray) data_);
    }
    if (dataCase_ == 7) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, (io.milvus.grpc.BytesArray) data_);
    }
    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 io.milvus.grpc.ScalarField)) {
      return super.equals(obj);
    }
    io.milvus.grpc.ScalarField other = (io.milvus.grpc.ScalarField) obj;

    if (!getDataCase().equals(other.getDataCase())) return false;
    switch (dataCase_) {
      case 1:
        if (!getBoolData()
            .equals(other.getBoolData())) return false;
        break;
      case 2:
        if (!getIntData()
            .equals(other.getIntData())) return false;
        break;
      case 3:
        if (!getLongData()
            .equals(other.getLongData())) return false;
        break;
      case 4:
        if (!getFloatData()
            .equals(other.getFloatData())) return false;
        break;
      case 5:
        if (!getDoubleData()
            .equals(other.getDoubleData())) return false;
        break;
      case 6:
        if (!getStringData()
            .equals(other.getStringData())) return false;
        break;
      case 7:
        if (!getBytesData()
            .equals(other.getBytesData())) 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 (dataCase_) {
      case 1:
        hash = (37 * hash) + BOOL_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getBoolData().hashCode();
        break;
      case 2:
        hash = (37 * hash) + INT_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getIntData().hashCode();
        break;
      case 3:
        hash = (37 * hash) + LONG_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getLongData().hashCode();
        break;
      case 4:
        hash = (37 * hash) + FLOAT_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getFloatData().hashCode();
        break;
      case 5:
        hash = (37 * hash) + DOUBLE_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getDoubleData().hashCode();
        break;
      case 6:
        hash = (37 * hash) + STRING_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getStringData().hashCode();
        break;
      case 7:
        hash = (37 * hash) + BYTES_DATA_FIELD_NUMBER;
        hash = (53 * hash) + getBytesData().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.milvus.grpc.ScalarField parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.ScalarField parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.milvus.grpc.ScalarField parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.ScalarField parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.milvus.grpc.ScalarField parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.ScalarField parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.milvus.grpc.ScalarField parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.ScalarField 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 io.milvus.grpc.ScalarField parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.ScalarField 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 io.milvus.grpc.ScalarField parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.ScalarField 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(io.milvus.grpc.ScalarField 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 milvus.proto.schema.ScalarField}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:milvus.proto.schema.ScalarField)
      io.milvus.grpc.ScalarFieldOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_ScalarField_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_ScalarField_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.milvus.grpc.ScalarField.class, io.milvus.grpc.ScalarField.Builder.class);
    }

    // Construct using io.milvus.grpc.ScalarField.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();
      dataCase_ = 0;
      data_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_ScalarField_descriptor;
    }

    @java.lang.Override
    public io.milvus.grpc.ScalarField getDefaultInstanceForType() {
      return io.milvus.grpc.ScalarField.getDefaultInstance();
    }

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

    @java.lang.Override
    public io.milvus.grpc.ScalarField buildPartial() {
      io.milvus.grpc.ScalarField result = new io.milvus.grpc.ScalarField(this);
      if (dataCase_ == 1) {
        if (boolDataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = boolDataBuilder_.build();
        }
      }
      if (dataCase_ == 2) {
        if (intDataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = intDataBuilder_.build();
        }
      }
      if (dataCase_ == 3) {
        if (longDataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = longDataBuilder_.build();
        }
      }
      if (dataCase_ == 4) {
        if (floatDataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = floatDataBuilder_.build();
        }
      }
      if (dataCase_ == 5) {
        if (doubleDataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = doubleDataBuilder_.build();
        }
      }
      if (dataCase_ == 6) {
        if (stringDataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = stringDataBuilder_.build();
        }
      }
      if (dataCase_ == 7) {
        if (bytesDataBuilder_ == null) {
          result.data_ = data_;
        } else {
          result.data_ = bytesDataBuilder_.build();
        }
      }
      result.dataCase_ = dataCase_;
      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 io.milvus.grpc.ScalarField) {
        return mergeFrom((io.milvus.grpc.ScalarField)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.milvus.grpc.ScalarField other) {
      if (other == io.milvus.grpc.ScalarField.getDefaultInstance()) return this;
      switch (other.getDataCase()) {
        case BOOL_DATA: {
          mergeBoolData(other.getBoolData());
          break;
        }
        case INT_DATA: {
          mergeIntData(other.getIntData());
          break;
        }
        case LONG_DATA: {
          mergeLongData(other.getLongData());
          break;
        }
        case FLOAT_DATA: {
          mergeFloatData(other.getFloatData());
          break;
        }
        case DOUBLE_DATA: {
          mergeDoubleData(other.getDoubleData());
          break;
        }
        case STRING_DATA: {
          mergeStringData(other.getStringData());
          break;
        }
        case BYTES_DATA: {
          mergeBytesData(other.getBytesData());
          break;
        }
        case DATA_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 {
      io.milvus.grpc.ScalarField parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.milvus.grpc.ScalarField) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int dataCase_ = 0;
    private java.lang.Object data_;
    public DataCase
        getDataCase() {
      return DataCase.forNumber(
          dataCase_);
    }

    public Builder clearData() {
      dataCase_ = 0;
      data_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.BoolArray, io.milvus.grpc.BoolArray.Builder, io.milvus.grpc.BoolArrayOrBuilder> boolDataBuilder_;
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     * @return Whether the boolData field is set.
     */
    @java.lang.Override
    public boolean hasBoolData() {
      return dataCase_ == 1;
    }
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     * @return The boolData.
     */
    @java.lang.Override
    public io.milvus.grpc.BoolArray getBoolData() {
      if (boolDataBuilder_ == null) {
        if (dataCase_ == 1) {
          return (io.milvus.grpc.BoolArray) data_;
        }
        return io.milvus.grpc.BoolArray.getDefaultInstance();
      } else {
        if (dataCase_ == 1) {
          return boolDataBuilder_.getMessage();
        }
        return io.milvus.grpc.BoolArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     */
    public Builder setBoolData(io.milvus.grpc.BoolArray value) {
      if (boolDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        boolDataBuilder_.setMessage(value);
      }
      dataCase_ = 1;
      return this;
    }
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     */
    public Builder setBoolData(
        io.milvus.grpc.BoolArray.Builder builderForValue) {
      if (boolDataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        boolDataBuilder_.setMessage(builderForValue.build());
      }
      dataCase_ = 1;
      return this;
    }
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     */
    public Builder mergeBoolData(io.milvus.grpc.BoolArray value) {
      if (boolDataBuilder_ == null) {
        if (dataCase_ == 1 &&
            data_ != io.milvus.grpc.BoolArray.getDefaultInstance()) {
          data_ = io.milvus.grpc.BoolArray.newBuilder((io.milvus.grpc.BoolArray) data_)
              .mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        if (dataCase_ == 1) {
          boolDataBuilder_.mergeFrom(value);
        }
        boolDataBuilder_.setMessage(value);
      }
      dataCase_ = 1;
      return this;
    }
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     */
    public Builder clearBoolData() {
      if (boolDataBuilder_ == null) {
        if (dataCase_ == 1) {
          dataCase_ = 0;
          data_ = null;
          onChanged();
        }
      } else {
        if (dataCase_ == 1) {
          dataCase_ = 0;
          data_ = null;
        }
        boolDataBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     */
    public io.milvus.grpc.BoolArray.Builder getBoolDataBuilder() {
      return getBoolDataFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     */
    @java.lang.Override
    public io.milvus.grpc.BoolArrayOrBuilder getBoolDataOrBuilder() {
      if ((dataCase_ == 1) && (boolDataBuilder_ != null)) {
        return boolDataBuilder_.getMessageOrBuilder();
      } else {
        if (dataCase_ == 1) {
          return (io.milvus.grpc.BoolArray) data_;
        }
        return io.milvus.grpc.BoolArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.BoolArray bool_data = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.BoolArray, io.milvus.grpc.BoolArray.Builder, io.milvus.grpc.BoolArrayOrBuilder> 
        getBoolDataFieldBuilder() {
      if (boolDataBuilder_ == null) {
        if (!(dataCase_ == 1)) {
          data_ = io.milvus.grpc.BoolArray.getDefaultInstance();
        }
        boolDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.BoolArray, io.milvus.grpc.BoolArray.Builder, io.milvus.grpc.BoolArrayOrBuilder>(
                (io.milvus.grpc.BoolArray) data_,
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      dataCase_ = 1;
      onChanged();;
      return boolDataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.IntArray, io.milvus.grpc.IntArray.Builder, io.milvus.grpc.IntArrayOrBuilder> intDataBuilder_;
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     * @return Whether the intData field is set.
     */
    @java.lang.Override
    public boolean hasIntData() {
      return dataCase_ == 2;
    }
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     * @return The intData.
     */
    @java.lang.Override
    public io.milvus.grpc.IntArray getIntData() {
      if (intDataBuilder_ == null) {
        if (dataCase_ == 2) {
          return (io.milvus.grpc.IntArray) data_;
        }
        return io.milvus.grpc.IntArray.getDefaultInstance();
      } else {
        if (dataCase_ == 2) {
          return intDataBuilder_.getMessage();
        }
        return io.milvus.grpc.IntArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     */
    public Builder setIntData(io.milvus.grpc.IntArray value) {
      if (intDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        intDataBuilder_.setMessage(value);
      }
      dataCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     */
    public Builder setIntData(
        io.milvus.grpc.IntArray.Builder builderForValue) {
      if (intDataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        intDataBuilder_.setMessage(builderForValue.build());
      }
      dataCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     */
    public Builder mergeIntData(io.milvus.grpc.IntArray value) {
      if (intDataBuilder_ == null) {
        if (dataCase_ == 2 &&
            data_ != io.milvus.grpc.IntArray.getDefaultInstance()) {
          data_ = io.milvus.grpc.IntArray.newBuilder((io.milvus.grpc.IntArray) data_)
              .mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        if (dataCase_ == 2) {
          intDataBuilder_.mergeFrom(value);
        }
        intDataBuilder_.setMessage(value);
      }
      dataCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     */
    public Builder clearIntData() {
      if (intDataBuilder_ == null) {
        if (dataCase_ == 2) {
          dataCase_ = 0;
          data_ = null;
          onChanged();
        }
      } else {
        if (dataCase_ == 2) {
          dataCase_ = 0;
          data_ = null;
        }
        intDataBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     */
    public io.milvus.grpc.IntArray.Builder getIntDataBuilder() {
      return getIntDataFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     */
    @java.lang.Override
    public io.milvus.grpc.IntArrayOrBuilder getIntDataOrBuilder() {
      if ((dataCase_ == 2) && (intDataBuilder_ != null)) {
        return intDataBuilder_.getMessageOrBuilder();
      } else {
        if (dataCase_ == 2) {
          return (io.milvus.grpc.IntArray) data_;
        }
        return io.milvus.grpc.IntArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.IntArray int_data = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.IntArray, io.milvus.grpc.IntArray.Builder, io.milvus.grpc.IntArrayOrBuilder> 
        getIntDataFieldBuilder() {
      if (intDataBuilder_ == null) {
        if (!(dataCase_ == 2)) {
          data_ = io.milvus.grpc.IntArray.getDefaultInstance();
        }
        intDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.IntArray, io.milvus.grpc.IntArray.Builder, io.milvus.grpc.IntArrayOrBuilder>(
                (io.milvus.grpc.IntArray) data_,
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      dataCase_ = 2;
      onChanged();;
      return intDataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.LongArray, io.milvus.grpc.LongArray.Builder, io.milvus.grpc.LongArrayOrBuilder> longDataBuilder_;
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     * @return Whether the longData field is set.
     */
    @java.lang.Override
    public boolean hasLongData() {
      return dataCase_ == 3;
    }
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     * @return The longData.
     */
    @java.lang.Override
    public io.milvus.grpc.LongArray getLongData() {
      if (longDataBuilder_ == null) {
        if (dataCase_ == 3) {
          return (io.milvus.grpc.LongArray) data_;
        }
        return io.milvus.grpc.LongArray.getDefaultInstance();
      } else {
        if (dataCase_ == 3) {
          return longDataBuilder_.getMessage();
        }
        return io.milvus.grpc.LongArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     */
    public Builder setLongData(io.milvus.grpc.LongArray value) {
      if (longDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        longDataBuilder_.setMessage(value);
      }
      dataCase_ = 3;
      return this;
    }
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     */
    public Builder setLongData(
        io.milvus.grpc.LongArray.Builder builderForValue) {
      if (longDataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        longDataBuilder_.setMessage(builderForValue.build());
      }
      dataCase_ = 3;
      return this;
    }
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     */
    public Builder mergeLongData(io.milvus.grpc.LongArray value) {
      if (longDataBuilder_ == null) {
        if (dataCase_ == 3 &&
            data_ != io.milvus.grpc.LongArray.getDefaultInstance()) {
          data_ = io.milvus.grpc.LongArray.newBuilder((io.milvus.grpc.LongArray) data_)
              .mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        if (dataCase_ == 3) {
          longDataBuilder_.mergeFrom(value);
        }
        longDataBuilder_.setMessage(value);
      }
      dataCase_ = 3;
      return this;
    }
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     */
    public Builder clearLongData() {
      if (longDataBuilder_ == null) {
        if (dataCase_ == 3) {
          dataCase_ = 0;
          data_ = null;
          onChanged();
        }
      } else {
        if (dataCase_ == 3) {
          dataCase_ = 0;
          data_ = null;
        }
        longDataBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     */
    public io.milvus.grpc.LongArray.Builder getLongDataBuilder() {
      return getLongDataFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     */
    @java.lang.Override
    public io.milvus.grpc.LongArrayOrBuilder getLongDataOrBuilder() {
      if ((dataCase_ == 3) && (longDataBuilder_ != null)) {
        return longDataBuilder_.getMessageOrBuilder();
      } else {
        if (dataCase_ == 3) {
          return (io.milvus.grpc.LongArray) data_;
        }
        return io.milvus.grpc.LongArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.LongArray long_data = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.LongArray, io.milvus.grpc.LongArray.Builder, io.milvus.grpc.LongArrayOrBuilder> 
        getLongDataFieldBuilder() {
      if (longDataBuilder_ == null) {
        if (!(dataCase_ == 3)) {
          data_ = io.milvus.grpc.LongArray.getDefaultInstance();
        }
        longDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.LongArray, io.milvus.grpc.LongArray.Builder, io.milvus.grpc.LongArrayOrBuilder>(
                (io.milvus.grpc.LongArray) data_,
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      dataCase_ = 3;
      onChanged();;
      return longDataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.FloatArray, io.milvus.grpc.FloatArray.Builder, io.milvus.grpc.FloatArrayOrBuilder> floatDataBuilder_;
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     * @return Whether the floatData field is set.
     */
    @java.lang.Override
    public boolean hasFloatData() {
      return dataCase_ == 4;
    }
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     * @return The floatData.
     */
    @java.lang.Override
    public io.milvus.grpc.FloatArray getFloatData() {
      if (floatDataBuilder_ == null) {
        if (dataCase_ == 4) {
          return (io.milvus.grpc.FloatArray) data_;
        }
        return io.milvus.grpc.FloatArray.getDefaultInstance();
      } else {
        if (dataCase_ == 4) {
          return floatDataBuilder_.getMessage();
        }
        return io.milvus.grpc.FloatArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     */
    public Builder setFloatData(io.milvus.grpc.FloatArray value) {
      if (floatDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        floatDataBuilder_.setMessage(value);
      }
      dataCase_ = 4;
      return this;
    }
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     */
    public Builder setFloatData(
        io.milvus.grpc.FloatArray.Builder builderForValue) {
      if (floatDataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        floatDataBuilder_.setMessage(builderForValue.build());
      }
      dataCase_ = 4;
      return this;
    }
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     */
    public Builder mergeFloatData(io.milvus.grpc.FloatArray value) {
      if (floatDataBuilder_ == null) {
        if (dataCase_ == 4 &&
            data_ != io.milvus.grpc.FloatArray.getDefaultInstance()) {
          data_ = io.milvus.grpc.FloatArray.newBuilder((io.milvus.grpc.FloatArray) data_)
              .mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        if (dataCase_ == 4) {
          floatDataBuilder_.mergeFrom(value);
        }
        floatDataBuilder_.setMessage(value);
      }
      dataCase_ = 4;
      return this;
    }
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     */
    public Builder clearFloatData() {
      if (floatDataBuilder_ == null) {
        if (dataCase_ == 4) {
          dataCase_ = 0;
          data_ = null;
          onChanged();
        }
      } else {
        if (dataCase_ == 4) {
          dataCase_ = 0;
          data_ = null;
        }
        floatDataBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     */
    public io.milvus.grpc.FloatArray.Builder getFloatDataBuilder() {
      return getFloatDataFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     */
    @java.lang.Override
    public io.milvus.grpc.FloatArrayOrBuilder getFloatDataOrBuilder() {
      if ((dataCase_ == 4) && (floatDataBuilder_ != null)) {
        return floatDataBuilder_.getMessageOrBuilder();
      } else {
        if (dataCase_ == 4) {
          return (io.milvus.grpc.FloatArray) data_;
        }
        return io.milvus.grpc.FloatArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.FloatArray float_data = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.FloatArray, io.milvus.grpc.FloatArray.Builder, io.milvus.grpc.FloatArrayOrBuilder> 
        getFloatDataFieldBuilder() {
      if (floatDataBuilder_ == null) {
        if (!(dataCase_ == 4)) {
          data_ = io.milvus.grpc.FloatArray.getDefaultInstance();
        }
        floatDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.FloatArray, io.milvus.grpc.FloatArray.Builder, io.milvus.grpc.FloatArrayOrBuilder>(
                (io.milvus.grpc.FloatArray) data_,
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      dataCase_ = 4;
      onChanged();;
      return floatDataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.DoubleArray, io.milvus.grpc.DoubleArray.Builder, io.milvus.grpc.DoubleArrayOrBuilder> doubleDataBuilder_;
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     * @return Whether the doubleData field is set.
     */
    @java.lang.Override
    public boolean hasDoubleData() {
      return dataCase_ == 5;
    }
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     * @return The doubleData.
     */
    @java.lang.Override
    public io.milvus.grpc.DoubleArray getDoubleData() {
      if (doubleDataBuilder_ == null) {
        if (dataCase_ == 5) {
          return (io.milvus.grpc.DoubleArray) data_;
        }
        return io.milvus.grpc.DoubleArray.getDefaultInstance();
      } else {
        if (dataCase_ == 5) {
          return doubleDataBuilder_.getMessage();
        }
        return io.milvus.grpc.DoubleArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     */
    public Builder setDoubleData(io.milvus.grpc.DoubleArray value) {
      if (doubleDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        doubleDataBuilder_.setMessage(value);
      }
      dataCase_ = 5;
      return this;
    }
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     */
    public Builder setDoubleData(
        io.milvus.grpc.DoubleArray.Builder builderForValue) {
      if (doubleDataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        doubleDataBuilder_.setMessage(builderForValue.build());
      }
      dataCase_ = 5;
      return this;
    }
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     */
    public Builder mergeDoubleData(io.milvus.grpc.DoubleArray value) {
      if (doubleDataBuilder_ == null) {
        if (dataCase_ == 5 &&
            data_ != io.milvus.grpc.DoubleArray.getDefaultInstance()) {
          data_ = io.milvus.grpc.DoubleArray.newBuilder((io.milvus.grpc.DoubleArray) data_)
              .mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        if (dataCase_ == 5) {
          doubleDataBuilder_.mergeFrom(value);
        }
        doubleDataBuilder_.setMessage(value);
      }
      dataCase_ = 5;
      return this;
    }
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     */
    public Builder clearDoubleData() {
      if (doubleDataBuilder_ == null) {
        if (dataCase_ == 5) {
          dataCase_ = 0;
          data_ = null;
          onChanged();
        }
      } else {
        if (dataCase_ == 5) {
          dataCase_ = 0;
          data_ = null;
        }
        doubleDataBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     */
    public io.milvus.grpc.DoubleArray.Builder getDoubleDataBuilder() {
      return getDoubleDataFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     */
    @java.lang.Override
    public io.milvus.grpc.DoubleArrayOrBuilder getDoubleDataOrBuilder() {
      if ((dataCase_ == 5) && (doubleDataBuilder_ != null)) {
        return doubleDataBuilder_.getMessageOrBuilder();
      } else {
        if (dataCase_ == 5) {
          return (io.milvus.grpc.DoubleArray) data_;
        }
        return io.milvus.grpc.DoubleArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.DoubleArray double_data = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.DoubleArray, io.milvus.grpc.DoubleArray.Builder, io.milvus.grpc.DoubleArrayOrBuilder> 
        getDoubleDataFieldBuilder() {
      if (doubleDataBuilder_ == null) {
        if (!(dataCase_ == 5)) {
          data_ = io.milvus.grpc.DoubleArray.getDefaultInstance();
        }
        doubleDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.DoubleArray, io.milvus.grpc.DoubleArray.Builder, io.milvus.grpc.DoubleArrayOrBuilder>(
                (io.milvus.grpc.DoubleArray) data_,
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      dataCase_ = 5;
      onChanged();;
      return doubleDataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.StringArray, io.milvus.grpc.StringArray.Builder, io.milvus.grpc.StringArrayOrBuilder> stringDataBuilder_;
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     * @return Whether the stringData field is set.
     */
    @java.lang.Override
    public boolean hasStringData() {
      return dataCase_ == 6;
    }
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     * @return The stringData.
     */
    @java.lang.Override
    public io.milvus.grpc.StringArray getStringData() {
      if (stringDataBuilder_ == null) {
        if (dataCase_ == 6) {
          return (io.milvus.grpc.StringArray) data_;
        }
        return io.milvus.grpc.StringArray.getDefaultInstance();
      } else {
        if (dataCase_ == 6) {
          return stringDataBuilder_.getMessage();
        }
        return io.milvus.grpc.StringArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     */
    public Builder setStringData(io.milvus.grpc.StringArray value) {
      if (stringDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        stringDataBuilder_.setMessage(value);
      }
      dataCase_ = 6;
      return this;
    }
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     */
    public Builder setStringData(
        io.milvus.grpc.StringArray.Builder builderForValue) {
      if (stringDataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        stringDataBuilder_.setMessage(builderForValue.build());
      }
      dataCase_ = 6;
      return this;
    }
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     */
    public Builder mergeStringData(io.milvus.grpc.StringArray value) {
      if (stringDataBuilder_ == null) {
        if (dataCase_ == 6 &&
            data_ != io.milvus.grpc.StringArray.getDefaultInstance()) {
          data_ = io.milvus.grpc.StringArray.newBuilder((io.milvus.grpc.StringArray) data_)
              .mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        if (dataCase_ == 6) {
          stringDataBuilder_.mergeFrom(value);
        }
        stringDataBuilder_.setMessage(value);
      }
      dataCase_ = 6;
      return this;
    }
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     */
    public Builder clearStringData() {
      if (stringDataBuilder_ == null) {
        if (dataCase_ == 6) {
          dataCase_ = 0;
          data_ = null;
          onChanged();
        }
      } else {
        if (dataCase_ == 6) {
          dataCase_ = 0;
          data_ = null;
        }
        stringDataBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     */
    public io.milvus.grpc.StringArray.Builder getStringDataBuilder() {
      return getStringDataFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     */
    @java.lang.Override
    public io.milvus.grpc.StringArrayOrBuilder getStringDataOrBuilder() {
      if ((dataCase_ == 6) && (stringDataBuilder_ != null)) {
        return stringDataBuilder_.getMessageOrBuilder();
      } else {
        if (dataCase_ == 6) {
          return (io.milvus.grpc.StringArray) data_;
        }
        return io.milvus.grpc.StringArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.StringArray string_data = 6;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.StringArray, io.milvus.grpc.StringArray.Builder, io.milvus.grpc.StringArrayOrBuilder> 
        getStringDataFieldBuilder() {
      if (stringDataBuilder_ == null) {
        if (!(dataCase_ == 6)) {
          data_ = io.milvus.grpc.StringArray.getDefaultInstance();
        }
        stringDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.StringArray, io.milvus.grpc.StringArray.Builder, io.milvus.grpc.StringArrayOrBuilder>(
                (io.milvus.grpc.StringArray) data_,
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      dataCase_ = 6;
      onChanged();;
      return stringDataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.BytesArray, io.milvus.grpc.BytesArray.Builder, io.milvus.grpc.BytesArrayOrBuilder> bytesDataBuilder_;
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     * @return Whether the bytesData field is set.
     */
    @java.lang.Override
    public boolean hasBytesData() {
      return dataCase_ == 7;
    }
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     * @return The bytesData.
     */
    @java.lang.Override
    public io.milvus.grpc.BytesArray getBytesData() {
      if (bytesDataBuilder_ == null) {
        if (dataCase_ == 7) {
          return (io.milvus.grpc.BytesArray) data_;
        }
        return io.milvus.grpc.BytesArray.getDefaultInstance();
      } else {
        if (dataCase_ == 7) {
          return bytesDataBuilder_.getMessage();
        }
        return io.milvus.grpc.BytesArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     */
    public Builder setBytesData(io.milvus.grpc.BytesArray value) {
      if (bytesDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        data_ = value;
        onChanged();
      } else {
        bytesDataBuilder_.setMessage(value);
      }
      dataCase_ = 7;
      return this;
    }
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     */
    public Builder setBytesData(
        io.milvus.grpc.BytesArray.Builder builderForValue) {
      if (bytesDataBuilder_ == null) {
        data_ = builderForValue.build();
        onChanged();
      } else {
        bytesDataBuilder_.setMessage(builderForValue.build());
      }
      dataCase_ = 7;
      return this;
    }
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     */
    public Builder mergeBytesData(io.milvus.grpc.BytesArray value) {
      if (bytesDataBuilder_ == null) {
        if (dataCase_ == 7 &&
            data_ != io.milvus.grpc.BytesArray.getDefaultInstance()) {
          data_ = io.milvus.grpc.BytesArray.newBuilder((io.milvus.grpc.BytesArray) data_)
              .mergeFrom(value).buildPartial();
        } else {
          data_ = value;
        }
        onChanged();
      } else {
        if (dataCase_ == 7) {
          bytesDataBuilder_.mergeFrom(value);
        }
        bytesDataBuilder_.setMessage(value);
      }
      dataCase_ = 7;
      return this;
    }
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     */
    public Builder clearBytesData() {
      if (bytesDataBuilder_ == null) {
        if (dataCase_ == 7) {
          dataCase_ = 0;
          data_ = null;
          onChanged();
        }
      } else {
        if (dataCase_ == 7) {
          dataCase_ = 0;
          data_ = null;
        }
        bytesDataBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     */
    public io.milvus.grpc.BytesArray.Builder getBytesDataBuilder() {
      return getBytesDataFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     */
    @java.lang.Override
    public io.milvus.grpc.BytesArrayOrBuilder getBytesDataOrBuilder() {
      if ((dataCase_ == 7) && (bytesDataBuilder_ != null)) {
        return bytesDataBuilder_.getMessageOrBuilder();
      } else {
        if (dataCase_ == 7) {
          return (io.milvus.grpc.BytesArray) data_;
        }
        return io.milvus.grpc.BytesArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.BytesArray bytes_data = 7;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.BytesArray, io.milvus.grpc.BytesArray.Builder, io.milvus.grpc.BytesArrayOrBuilder> 
        getBytesDataFieldBuilder() {
      if (bytesDataBuilder_ == null) {
        if (!(dataCase_ == 7)) {
          data_ = io.milvus.grpc.BytesArray.getDefaultInstance();
        }
        bytesDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.BytesArray, io.milvus.grpc.BytesArray.Builder, io.milvus.grpc.BytesArrayOrBuilder>(
                (io.milvus.grpc.BytesArray) data_,
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      dataCase_ = 7;
      onChanged();;
      return bytesDataBuilder_;
    }
    @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:milvus.proto.schema.ScalarField)
  }

  // @@protoc_insertion_point(class_scope:milvus.proto.schema.ScalarField)
  private static final io.milvus.grpc.ScalarField DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.milvus.grpc.ScalarField();
  }

  public static io.milvus.grpc.ScalarField getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ScalarField parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new ScalarField(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 io.milvus.grpc.ScalarField getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy