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

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

There is a newer version: 2.4.8
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();
  }

  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;
  @SuppressWarnings("serial")
  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_ = 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;
   * @return The type.
   */
  @java.lang.Override public io.milvus.grpc.DataType getType() {
    io.milvus.grpc.DataType result = io.milvus.grpc.DataType.forNumber(type_);
    return result == null ? io.milvus.grpc.DataType.UNRECOGNIZED : result;
  }

  public static final int FIELD_NAME_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  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_ = 0L;
  /**
   * int64 field_id = 5;
   * @return The fieldId.
   */
  @java.lang.Override
  public long getFieldId() {
    return fieldId_;
  }

  public static final int IS_DYNAMIC_FIELD_NUMBER = 6;
  private boolean isDynamic_ = false;
  /**
   * bool is_dynamic = 6;
   * @return The isDynamic.
   */
  @java.lang.Override
  public boolean getIsDynamic() {
    return isDynamic_;
  }

  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_);
    }
    if (isDynamic_ != false) {
      output.writeBool(6, isDynamic_);
    }
    getUnknownFields().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_);
    }
    if (isDynamic_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(6, isDynamic_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof 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 (getIsDynamic()
        != other.getIsDynamic()) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + 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());
    hash = (37 * hash) + IS_DYNAMIC_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsDynamic());
    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) + getUnknownFields().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() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      type_ = 0;
      fieldName_ = "";
      if (scalarsBuilder_ != null) {
        scalarsBuilder_.clear();
      }
      if (vectorsBuilder_ != null) {
        vectorsBuilder_.clear();
      }
      fieldId_ = 0L;
      isDynamic_ = false;
      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);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(io.milvus.grpc.FieldData result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.type_ = type_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.fieldName_ = fieldName_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.fieldId_ = fieldId_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.isDynamic_ = isDynamic_;
      }
    }

    private void buildPartialOneofs(io.milvus.grpc.FieldData result) {
      result.fieldCase_ = fieldCase_;
      result.field_ = this.field_;
      if (fieldCase_ == 3 &&
          scalarsBuilder_ != null) {
        result.field_ = scalarsBuilder_.build();
      }
      if (fieldCase_ == 4 &&
          vectorsBuilder_ != null) {
        result.field_ = vectorsBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof 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_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.getFieldId() != 0L) {
        setFieldId(other.getFieldId());
      }
      if (other.getIsDynamic() != false) {
        setIsDynamic(other.getIsDynamic());
      }
      switch (other.getFieldCase()) {
        case SCALARS: {
          mergeScalars(other.getScalars());
          break;
        }
        case VECTORS: {
          mergeVectors(other.getVectors());
          break;
        }
        case FIELD_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              type_ = input.readEnum();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 18: {
              fieldName_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getScalarsFieldBuilder().getBuilder(),
                  extensionRegistry);
              fieldCase_ = 3;
              break;
            } // case 26
            case 34: {
              input.readMessage(
                  getVectorsFieldBuilder().getBuilder(),
                  extensionRegistry);
              fieldCase_ = 4;
              break;
            } // case 34
            case 40: {
              fieldId_ = input.readInt64();
              bitField0_ |= 0x00000010;
              break;
            } // case 40
            case 48: {
              isDynamic_ = input.readBool();
              bitField0_ |= 0x00000020;
              break;
            } // case 48
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int 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 bitField0_;

    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;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.schema.DataType type = 1;
     * @return The type.
     */
    @java.lang.Override
    public io.milvus.grpc.DataType getType() {
      io.milvus.grpc.DataType result = io.milvus.grpc.DataType.forNumber(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();
      }
      bitField0_ |= 0x00000001;
      type_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.schema.DataType type = 1;
     * @return This builder for chaining.
     */
    public Builder clearType() {
      bitField0_ = (bitField0_ & ~0x00000001);
      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;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * string field_name = 2;
     * @return This builder for chaining.
     */
    public Builder clearFieldName() {
      fieldName_ = getDefaultInstance().getFieldName();
      bitField0_ = (bitField0_ & ~0x00000002);
      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;
      bitField0_ |= 0x00000002;
      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);
        } else {
          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);
        } else {
          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;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * int64 field_id = 5;
     * @return This builder for chaining.
     */
    public Builder clearFieldId() {
      bitField0_ = (bitField0_ & ~0x00000010);
      fieldId_ = 0L;
      onChanged();
      return this;
    }

    private boolean isDynamic_ ;
    /**
     * bool is_dynamic = 6;
     * @return The isDynamic.
     */
    @java.lang.Override
    public boolean getIsDynamic() {
      return isDynamic_;
    }
    /**
     * bool is_dynamic = 6;
     * @param value The isDynamic to set.
     * @return This builder for chaining.
     */
    public Builder setIsDynamic(boolean value) {

      isDynamic_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * bool is_dynamic = 6;
     * @return This builder for chaining.
     */
    public Builder clearIsDynamic() {
      bitField0_ = (bitField0_ & ~0x00000020);
      isDynamic_ = false;
      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 {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser 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