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

io.milvus.grpc.FieldData 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.FieldData}
 */
public final class FieldData extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.schema.FieldData)
    FieldDataOrBuilder {
private static final long serialVersionUID = 0L;
  // Use FieldData.newBuilder() to construct.
  private FieldData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private FieldData() {
    type_ = 0;
    fieldName_ = "";
  }

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

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

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

            fieldName_ = s;
            break;
          }
          case 26: {
            io.milvus.grpc.ScalarField.Builder subBuilder = null;
            if (fieldCase_ == 3) {
              subBuilder = ((io.milvus.grpc.ScalarField) field_).toBuilder();
            }
            field_ =
                input.readMessage(io.milvus.grpc.ScalarField.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.ScalarField) field_);
              field_ = subBuilder.buildPartial();
            }
            fieldCase_ = 3;
            break;
          }
          case 34: {
            io.milvus.grpc.VectorField.Builder subBuilder = null;
            if (fieldCase_ == 4) {
              subBuilder = ((io.milvus.grpc.VectorField) field_).toBuilder();
            }
            field_ =
                input.readMessage(io.milvus.grpc.VectorField.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.milvus.grpc.VectorField) field_);
              field_ = subBuilder.buildPartial();
            }
            fieldCase_ = 4;
            break;
          }
          case 40: {

            fieldId_ = input.readInt64();
            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_FieldData_descriptor;
  }

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

  private int fieldCase_ = 0;
  private java.lang.Object field_;
  public enum FieldCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    SCALARS(3),
    VECTORS(4),
    FIELD_NOT_SET(0);
    private final int value;
    private FieldCase(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 FieldCase valueOf(int value) {
      return forNumber(value);
    }

    public static FieldCase forNumber(int value) {
      switch (value) {
        case 3: return SCALARS;
        case 4: return VECTORS;
        case 0: return FIELD_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public FieldCase
  getFieldCase() {
    return FieldCase.forNumber(
        fieldCase_);
  }

  public static final int TYPE_FIELD_NUMBER = 1;
  private int type_;
  /**
   * .milvus.proto.schema.DataType type = 1;
   * @return The enum numeric value on the wire for type.
   */
  @java.lang.Override public int getTypeValue() {
    return type_;
  }
  /**
   * .milvus.proto.schema.DataType type = 1;
   * @return The type.
   */
  @java.lang.Override public io.milvus.grpc.DataType getType() {
    @SuppressWarnings("deprecation")
    io.milvus.grpc.DataType result = io.milvus.grpc.DataType.valueOf(type_);
    return result == null ? io.milvus.grpc.DataType.UNRECOGNIZED : result;
  }

  public static final int FIELD_NAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object fieldName_;
  /**
   * string field_name = 2;
   * @return The fieldName.
   */
  @java.lang.Override
  public java.lang.String getFieldName() {
    java.lang.Object ref = fieldName_;
    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();
      fieldName_ = s;
      return s;
    }
  }
  /**
   * string field_name = 2;
   * @return The bytes for fieldName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFieldNameBytes() {
    java.lang.Object ref = fieldName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fieldName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SCALARS_FIELD_NUMBER = 3;
  /**
   * .milvus.proto.schema.ScalarField scalars = 3;
   * @return Whether the scalars field is set.
   */
  @java.lang.Override
  public boolean hasScalars() {
    return fieldCase_ == 3;
  }
  /**
   * .milvus.proto.schema.ScalarField scalars = 3;
   * @return The scalars.
   */
  @java.lang.Override
  public io.milvus.grpc.ScalarField getScalars() {
    if (fieldCase_ == 3) {
       return (io.milvus.grpc.ScalarField) field_;
    }
    return io.milvus.grpc.ScalarField.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.ScalarField scalars = 3;
   */
  @java.lang.Override
  public io.milvus.grpc.ScalarFieldOrBuilder getScalarsOrBuilder() {
    if (fieldCase_ == 3) {
       return (io.milvus.grpc.ScalarField) field_;
    }
    return io.milvus.grpc.ScalarField.getDefaultInstance();
  }

  public static final int VECTORS_FIELD_NUMBER = 4;
  /**
   * .milvus.proto.schema.VectorField vectors = 4;
   * @return Whether the vectors field is set.
   */
  @java.lang.Override
  public boolean hasVectors() {
    return fieldCase_ == 4;
  }
  /**
   * .milvus.proto.schema.VectorField vectors = 4;
   * @return The vectors.
   */
  @java.lang.Override
  public io.milvus.grpc.VectorField getVectors() {
    if (fieldCase_ == 4) {
       return (io.milvus.grpc.VectorField) field_;
    }
    return io.milvus.grpc.VectorField.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.VectorField vectors = 4;
   */
  @java.lang.Override
  public io.milvus.grpc.VectorFieldOrBuilder getVectorsOrBuilder() {
    if (fieldCase_ == 4) {
       return (io.milvus.grpc.VectorField) field_;
    }
    return io.milvus.grpc.VectorField.getDefaultInstance();
  }

  public static final int FIELD_ID_FIELD_NUMBER = 5;
  private long fieldId_;
  /**
   * int64 field_id = 5;
   * @return The fieldId.
   */
  @java.lang.Override
  public long getFieldId() {
    return fieldId_;
  }

  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 (type_ != io.milvus.grpc.DataType.None.getNumber()) {
      output.writeEnum(1, type_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_);
    }
    if (fieldCase_ == 3) {
      output.writeMessage(3, (io.milvus.grpc.ScalarField) field_);
    }
    if (fieldCase_ == 4) {
      output.writeMessage(4, (io.milvus.grpc.VectorField) field_);
    }
    if (fieldId_ != 0L) {
      output.writeInt64(5, fieldId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (type_ != io.milvus.grpc.DataType.None.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, type_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_);
    }
    if (fieldCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (io.milvus.grpc.ScalarField) field_);
    }
    if (fieldCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (io.milvus.grpc.VectorField) field_);
    }
    if (fieldId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, fieldId_);
    }
    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.FieldData)) {
      return super.equals(obj);
    }
    io.milvus.grpc.FieldData other = (io.milvus.grpc.FieldData) obj;

    if (type_ != other.type_) return false;
    if (!getFieldName()
        .equals(other.getFieldName())) return false;
    if (getFieldId()
        != other.getFieldId()) return false;
    if (!getFieldCase().equals(other.getFieldCase())) return false;
    switch (fieldCase_) {
      case 3:
        if (!getScalars()
            .equals(other.getScalars())) return false;
        break;
      case 4:
        if (!getVectors()
            .equals(other.getVectors())) 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();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + type_;
    hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getFieldName().hashCode();
    hash = (37 * hash) + FIELD_ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getFieldId());
    switch (fieldCase_) {
      case 3:
        hash = (37 * hash) + SCALARS_FIELD_NUMBER;
        hash = (53 * hash) + getScalars().hashCode();
        break;
      case 4:
        hash = (37 * hash) + VECTORS_FIELD_NUMBER;
        hash = (53 * hash) + getVectors().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using io.milvus.grpc.FieldData.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();
      type_ = 0;

      fieldName_ = "";

      fieldId_ = 0L;

      fieldCase_ = 0;
      field_ = null;
      return this;
    }

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

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

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

    @java.lang.Override
    public io.milvus.grpc.FieldData buildPartial() {
      io.milvus.grpc.FieldData result = new io.milvus.grpc.FieldData(this);
      result.type_ = type_;
      result.fieldName_ = fieldName_;
      if (fieldCase_ == 3) {
        if (scalarsBuilder_ == null) {
          result.field_ = field_;
        } else {
          result.field_ = scalarsBuilder_.build();
        }
      }
      if (fieldCase_ == 4) {
        if (vectorsBuilder_ == null) {
          result.field_ = field_;
        } else {
          result.field_ = vectorsBuilder_.build();
        }
      }
      result.fieldId_ = fieldId_;
      result.fieldCase_ = fieldCase_;
      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.FieldData) {
        return mergeFrom((io.milvus.grpc.FieldData)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.milvus.grpc.FieldData other) {
      if (other == io.milvus.grpc.FieldData.getDefaultInstance()) return this;
      if (other.type_ != 0) {
        setTypeValue(other.getTypeValue());
      }
      if (!other.getFieldName().isEmpty()) {
        fieldName_ = other.fieldName_;
        onChanged();
      }
      if (other.getFieldId() != 0L) {
        setFieldId(other.getFieldId());
      }
      switch (other.getFieldCase()) {
        case SCALARS: {
          mergeScalars(other.getScalars());
          break;
        }
        case VECTORS: {
          mergeVectors(other.getVectors());
          break;
        }
        case FIELD_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.FieldData parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.milvus.grpc.FieldData) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int fieldCase_ = 0;
    private java.lang.Object field_;
    public FieldCase
        getFieldCase() {
      return FieldCase.forNumber(
          fieldCase_);
    }

    public Builder clearField() {
      fieldCase_ = 0;
      field_ = null;
      onChanged();
      return this;
    }


    private int type_ = 0;
    /**
     * .milvus.proto.schema.DataType type = 1;
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override public int getTypeValue() {
      return type_;
    }
    /**
     * .milvus.proto.schema.DataType type = 1;
     * @param value The enum numeric value on the wire for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeValue(int value) {
      
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.schema.DataType type = 1;
     * @return The type.
     */
    @java.lang.Override
    public io.milvus.grpc.DataType getType() {
      @SuppressWarnings("deprecation")
      io.milvus.grpc.DataType result = io.milvus.grpc.DataType.valueOf(type_);
      return result == null ? io.milvus.grpc.DataType.UNRECOGNIZED : result;
    }
    /**
     * .milvus.proto.schema.DataType type = 1;
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(io.milvus.grpc.DataType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      type_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.schema.DataType type = 1;
     * @return This builder for chaining.
     */
    public Builder clearType() {
      
      type_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object fieldName_ = "";
    /**
     * string field_name = 2;
     * @return The fieldName.
     */
    public java.lang.String getFieldName() {
      java.lang.Object ref = fieldName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fieldName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string field_name = 2;
     * @return The bytes for fieldName.
     */
    public com.google.protobuf.ByteString
        getFieldNameBytes() {
      java.lang.Object ref = fieldName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fieldName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string field_name = 2;
     * @param value The fieldName to set.
     * @return This builder for chaining.
     */
    public Builder setFieldName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fieldName_ = value;
      onChanged();
      return this;
    }
    /**
     * string field_name = 2;
     * @return This builder for chaining.
     */
    public Builder clearFieldName() {
      
      fieldName_ = getDefaultInstance().getFieldName();
      onChanged();
      return this;
    }
    /**
     * string field_name = 2;
     * @param value The bytes for fieldName to set.
     * @return This builder for chaining.
     */
    public Builder setFieldNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fieldName_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.ScalarField, io.milvus.grpc.ScalarField.Builder, io.milvus.grpc.ScalarFieldOrBuilder> scalarsBuilder_;
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     * @return Whether the scalars field is set.
     */
    @java.lang.Override
    public boolean hasScalars() {
      return fieldCase_ == 3;
    }
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     * @return The scalars.
     */
    @java.lang.Override
    public io.milvus.grpc.ScalarField getScalars() {
      if (scalarsBuilder_ == null) {
        if (fieldCase_ == 3) {
          return (io.milvus.grpc.ScalarField) field_;
        }
        return io.milvus.grpc.ScalarField.getDefaultInstance();
      } else {
        if (fieldCase_ == 3) {
          return scalarsBuilder_.getMessage();
        }
        return io.milvus.grpc.ScalarField.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     */
    public Builder setScalars(io.milvus.grpc.ScalarField value) {
      if (scalarsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        field_ = value;
        onChanged();
      } else {
        scalarsBuilder_.setMessage(value);
      }
      fieldCase_ = 3;
      return this;
    }
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     */
    public Builder setScalars(
        io.milvus.grpc.ScalarField.Builder builderForValue) {
      if (scalarsBuilder_ == null) {
        field_ = builderForValue.build();
        onChanged();
      } else {
        scalarsBuilder_.setMessage(builderForValue.build());
      }
      fieldCase_ = 3;
      return this;
    }
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     */
    public Builder mergeScalars(io.milvus.grpc.ScalarField value) {
      if (scalarsBuilder_ == null) {
        if (fieldCase_ == 3 &&
            field_ != io.milvus.grpc.ScalarField.getDefaultInstance()) {
          field_ = io.milvus.grpc.ScalarField.newBuilder((io.milvus.grpc.ScalarField) field_)
              .mergeFrom(value).buildPartial();
        } else {
          field_ = value;
        }
        onChanged();
      } else {
        if (fieldCase_ == 3) {
          scalarsBuilder_.mergeFrom(value);
        }
        scalarsBuilder_.setMessage(value);
      }
      fieldCase_ = 3;
      return this;
    }
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     */
    public Builder clearScalars() {
      if (scalarsBuilder_ == null) {
        if (fieldCase_ == 3) {
          fieldCase_ = 0;
          field_ = null;
          onChanged();
        }
      } else {
        if (fieldCase_ == 3) {
          fieldCase_ = 0;
          field_ = null;
        }
        scalarsBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     */
    public io.milvus.grpc.ScalarField.Builder getScalarsBuilder() {
      return getScalarsFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     */
    @java.lang.Override
    public io.milvus.grpc.ScalarFieldOrBuilder getScalarsOrBuilder() {
      if ((fieldCase_ == 3) && (scalarsBuilder_ != null)) {
        return scalarsBuilder_.getMessageOrBuilder();
      } else {
        if (fieldCase_ == 3) {
          return (io.milvus.grpc.ScalarField) field_;
        }
        return io.milvus.grpc.ScalarField.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.ScalarField scalars = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.ScalarField, io.milvus.grpc.ScalarField.Builder, io.milvus.grpc.ScalarFieldOrBuilder> 
        getScalarsFieldBuilder() {
      if (scalarsBuilder_ == null) {
        if (!(fieldCase_ == 3)) {
          field_ = io.milvus.grpc.ScalarField.getDefaultInstance();
        }
        scalarsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.ScalarField, io.milvus.grpc.ScalarField.Builder, io.milvus.grpc.ScalarFieldOrBuilder>(
                (io.milvus.grpc.ScalarField) field_,
                getParentForChildren(),
                isClean());
        field_ = null;
      }
      fieldCase_ = 3;
      onChanged();;
      return scalarsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.VectorField, io.milvus.grpc.VectorField.Builder, io.milvus.grpc.VectorFieldOrBuilder> vectorsBuilder_;
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     * @return Whether the vectors field is set.
     */
    @java.lang.Override
    public boolean hasVectors() {
      return fieldCase_ == 4;
    }
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     * @return The vectors.
     */
    @java.lang.Override
    public io.milvus.grpc.VectorField getVectors() {
      if (vectorsBuilder_ == null) {
        if (fieldCase_ == 4) {
          return (io.milvus.grpc.VectorField) field_;
        }
        return io.milvus.grpc.VectorField.getDefaultInstance();
      } else {
        if (fieldCase_ == 4) {
          return vectorsBuilder_.getMessage();
        }
        return io.milvus.grpc.VectorField.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     */
    public Builder setVectors(io.milvus.grpc.VectorField value) {
      if (vectorsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        field_ = value;
        onChanged();
      } else {
        vectorsBuilder_.setMessage(value);
      }
      fieldCase_ = 4;
      return this;
    }
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     */
    public Builder setVectors(
        io.milvus.grpc.VectorField.Builder builderForValue) {
      if (vectorsBuilder_ == null) {
        field_ = builderForValue.build();
        onChanged();
      } else {
        vectorsBuilder_.setMessage(builderForValue.build());
      }
      fieldCase_ = 4;
      return this;
    }
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     */
    public Builder mergeVectors(io.milvus.grpc.VectorField value) {
      if (vectorsBuilder_ == null) {
        if (fieldCase_ == 4 &&
            field_ != io.milvus.grpc.VectorField.getDefaultInstance()) {
          field_ = io.milvus.grpc.VectorField.newBuilder((io.milvus.grpc.VectorField) field_)
              .mergeFrom(value).buildPartial();
        } else {
          field_ = value;
        }
        onChanged();
      } else {
        if (fieldCase_ == 4) {
          vectorsBuilder_.mergeFrom(value);
        }
        vectorsBuilder_.setMessage(value);
      }
      fieldCase_ = 4;
      return this;
    }
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     */
    public Builder clearVectors() {
      if (vectorsBuilder_ == null) {
        if (fieldCase_ == 4) {
          fieldCase_ = 0;
          field_ = null;
          onChanged();
        }
      } else {
        if (fieldCase_ == 4) {
          fieldCase_ = 0;
          field_ = null;
        }
        vectorsBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     */
    public io.milvus.grpc.VectorField.Builder getVectorsBuilder() {
      return getVectorsFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     */
    @java.lang.Override
    public io.milvus.grpc.VectorFieldOrBuilder getVectorsOrBuilder() {
      if ((fieldCase_ == 4) && (vectorsBuilder_ != null)) {
        return vectorsBuilder_.getMessageOrBuilder();
      } else {
        if (fieldCase_ == 4) {
          return (io.milvus.grpc.VectorField) field_;
        }
        return io.milvus.grpc.VectorField.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.VectorField vectors = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.VectorField, io.milvus.grpc.VectorField.Builder, io.milvus.grpc.VectorFieldOrBuilder> 
        getVectorsFieldBuilder() {
      if (vectorsBuilder_ == null) {
        if (!(fieldCase_ == 4)) {
          field_ = io.milvus.grpc.VectorField.getDefaultInstance();
        }
        vectorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.VectorField, io.milvus.grpc.VectorField.Builder, io.milvus.grpc.VectorFieldOrBuilder>(
                (io.milvus.grpc.VectorField) field_,
                getParentForChildren(),
                isClean());
        field_ = null;
      }
      fieldCase_ = 4;
      onChanged();;
      return vectorsBuilder_;
    }

    private long fieldId_ ;
    /**
     * int64 field_id = 5;
     * @return The fieldId.
     */
    @java.lang.Override
    public long getFieldId() {
      return fieldId_;
    }
    /**
     * int64 field_id = 5;
     * @param value The fieldId to set.
     * @return This builder for chaining.
     */
    public Builder setFieldId(long value) {
      
      fieldId_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 field_id = 5;
     * @return This builder for chaining.
     */
    public Builder clearFieldId() {
      
      fieldId_ = 0L;
      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:milvus.proto.schema.FieldData)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy