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

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

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

package io.milvus.grpc;

/**
 * Protobuf type {@code milvus.proto.milvus.ImportRequest}
 */
public final class ImportRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.milvus.ImportRequest)
    ImportRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ImportRequest.newBuilder() to construct.
  private ImportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ImportRequest() {
    collectionName_ = "";
    partitionName_ = "";
    channelNames_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    files_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    options_ = java.util.Collections.emptyList();
    dbName_ = "";
    clusteringInfo_ = com.google.protobuf.ByteString.EMPTY;
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ImportRequest_descriptor;
  }

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

  public static final int COLLECTION_NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object collectionName_ = "";
  /**
   * 
   * target collection
   * 
* * string collection_name = 1; * @return The collectionName. */ @java.lang.Override public java.lang.String getCollectionName() { java.lang.Object ref = collectionName_; 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(); collectionName_ = s; return s; } } /** *
   * target collection
   * 
* * string collection_name = 1; * @return The bytes for collectionName. */ @java.lang.Override public com.google.protobuf.ByteString getCollectionNameBytes() { java.lang.Object ref = collectionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object partitionName_ = ""; /** *
   * target partition
   * 
* * string partition_name = 2; * @return The partitionName. */ @java.lang.Override public java.lang.String getPartitionName() { java.lang.Object ref = partitionName_; 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(); partitionName_ = s; return s; } } /** *
   * target partition
   * 
* * string partition_name = 2; * @return The bytes for partitionName. */ @java.lang.Override public com.google.protobuf.ByteString getPartitionNameBytes() { java.lang.Object ref = partitionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); partitionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHANNEL_NAMES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList channelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * channel names for the collection
   * 
* * repeated string channel_names = 3; * @return A list containing the channelNames. */ public com.google.protobuf.ProtocolStringList getChannelNamesList() { return channelNames_; } /** *
   * channel names for the collection
   * 
* * repeated string channel_names = 3; * @return The count of channelNames. */ public int getChannelNamesCount() { return channelNames_.size(); } /** *
   * channel names for the collection
   * 
* * repeated string channel_names = 3; * @param index The index of the element to return. * @return The channelNames at the given index. */ public java.lang.String getChannelNames(int index) { return channelNames_.get(index); } /** *
   * channel names for the collection
   * 
* * repeated string channel_names = 3; * @param index The index of the value to return. * @return The bytes of the channelNames at the given index. */ public com.google.protobuf.ByteString getChannelNamesBytes(int index) { return channelNames_.getByteString(index); } public static final int ROW_BASED_FIELD_NUMBER = 4; private boolean rowBased_ = false; /** *
   * the file is row-based or column-based
   * 
* * bool row_based = 4; * @return The rowBased. */ @java.lang.Override public boolean getRowBased() { return rowBased_; } public static final int FILES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList files_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * file paths to be imported
   * 
* * repeated string files = 5; * @return A list containing the files. */ public com.google.protobuf.ProtocolStringList getFilesList() { return files_; } /** *
   * file paths to be imported
   * 
* * repeated string files = 5; * @return The count of files. */ public int getFilesCount() { return files_.size(); } /** *
   * file paths to be imported
   * 
* * repeated string files = 5; * @param index The index of the element to return. * @return The files at the given index. */ public java.lang.String getFiles(int index) { return files_.get(index); } /** *
   * file paths to be imported
   * 
* * repeated string files = 5; * @param index The index of the value to return. * @return The bytes of the files at the given index. */ public com.google.protobuf.ByteString getFilesBytes(int index) { return files_.getByteString(index); } public static final int OPTIONS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List options_; /** *
   * import options, bucket, etc.
   * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ @java.lang.Override public java.util.List getOptionsList() { return options_; } /** *
   * import options, bucket, etc.
   * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ @java.lang.Override public java.util.List getOptionsOrBuilderList() { return options_; } /** *
   * import options, bucket, etc.
   * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** *
   * import options, bucket, etc.
   * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ @java.lang.Override public io.milvus.grpc.KeyValuePair getOptions(int index) { return options_.get(index); } /** *
   * import options, bucket, etc.
   * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ @java.lang.Override public io.milvus.grpc.KeyValuePairOrBuilder getOptionsOrBuilder( int index) { return options_.get(index); } public static final int DB_NAME_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object dbName_ = ""; /** *
   * target database
   * 
* * string db_name = 7; * @return The dbName. */ @java.lang.Override public java.lang.String getDbName() { java.lang.Object ref = dbName_; 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(); dbName_ = s; return s; } } /** *
   * target database
   * 
* * string db_name = 7; * @return The bytes for dbName. */ @java.lang.Override public com.google.protobuf.ByteString getDbNameBytes() { java.lang.Object ref = dbName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dbName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLUSTERING_INFO_FIELD_NUMBER = 8; private com.google.protobuf.ByteString clusteringInfo_ = com.google.protobuf.ByteString.EMPTY; /** *
   * serialized `schema.ClusteringInfo`
   * 
* * bytes clustering_info = 8; * @return The clusteringInfo. */ @java.lang.Override public com.google.protobuf.ByteString getClusteringInfo() { return clusteringInfo_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectionName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partitionName_); } for (int i = 0; i < channelNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, channelNames_.getRaw(i)); } if (rowBased_ != false) { output.writeBool(4, rowBased_); } for (int i = 0; i < files_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, files_.getRaw(i)); } for (int i = 0; i < options_.size(); i++) { output.writeMessage(6, options_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, dbName_); } if (!clusteringInfo_.isEmpty()) { output.writeBytes(8, clusteringInfo_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectionName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partitionName_); } { int dataSize = 0; for (int i = 0; i < channelNames_.size(); i++) { dataSize += computeStringSizeNoTag(channelNames_.getRaw(i)); } size += dataSize; size += 1 * getChannelNamesList().size(); } if (rowBased_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, rowBased_); } { int dataSize = 0; for (int i = 0; i < files_.size(); i++) { dataSize += computeStringSizeNoTag(files_.getRaw(i)); } size += dataSize; size += 1 * getFilesList().size(); } for (int i = 0; i < options_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, options_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dbName_); } if (!clusteringInfo_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, clusteringInfo_); } 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.ImportRequest)) { return super.equals(obj); } io.milvus.grpc.ImportRequest other = (io.milvus.grpc.ImportRequest) obj; if (!getCollectionName() .equals(other.getCollectionName())) return false; if (!getPartitionName() .equals(other.getPartitionName())) return false; if (!getChannelNamesList() .equals(other.getChannelNamesList())) return false; if (getRowBased() != other.getRowBased()) return false; if (!getFilesList() .equals(other.getFilesList())) return false; if (!getOptionsList() .equals(other.getOptionsList())) return false; if (!getDbName() .equals(other.getDbName())) return false; if (!getClusteringInfo() .equals(other.getClusteringInfo())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLLECTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getCollectionName().hashCode(); hash = (37 * hash) + PARTITION_NAME_FIELD_NUMBER; hash = (53 * hash) + getPartitionName().hashCode(); if (getChannelNamesCount() > 0) { hash = (37 * hash) + CHANNEL_NAMES_FIELD_NUMBER; hash = (53 * hash) + getChannelNamesList().hashCode(); } hash = (37 * hash) + ROW_BASED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRowBased()); if (getFilesCount() > 0) { hash = (37 * hash) + FILES_FIELD_NUMBER; hash = (53 * hash) + getFilesList().hashCode(); } if (getOptionsCount() > 0) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptionsList().hashCode(); } hash = (37 * hash) + DB_NAME_FIELD_NUMBER; hash = (53 * hash) + getDbName().hashCode(); hash = (37 * hash) + CLUSTERING_INFO_FIELD_NUMBER; hash = (53 * hash) + getClusteringInfo().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.milvus.grpc.ImportRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ImportRequest 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.ImportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ImportRequest 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.ImportRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.ImportRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.ImportRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.ImportRequest 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.ImportRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.milvus.grpc.ImportRequest 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.ImportRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.ImportRequest 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.ImportRequest 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.milvus.ImportRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:milvus.proto.milvus.ImportRequest) io.milvus.grpc.ImportRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ImportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ImportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.ImportRequest.class, io.milvus.grpc.ImportRequest.Builder.class); } // Construct using io.milvus.grpc.ImportRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; collectionName_ = ""; partitionName_ = ""; channelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); rowBased_ = false; files_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); } else { options_ = null; optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); dbName_ = ""; clusteringInfo_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_ImportRequest_descriptor; } @java.lang.Override public io.milvus.grpc.ImportRequest getDefaultInstanceForType() { return io.milvus.grpc.ImportRequest.getDefaultInstance(); } @java.lang.Override public io.milvus.grpc.ImportRequest build() { io.milvus.grpc.ImportRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.milvus.grpc.ImportRequest buildPartial() { io.milvus.grpc.ImportRequest result = new io.milvus.grpc.ImportRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.milvus.grpc.ImportRequest result) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000020); } result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } } private void buildPartial0(io.milvus.grpc.ImportRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.collectionName_ = collectionName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.partitionName_ = partitionName_; } if (((from_bitField0_ & 0x00000004) != 0)) { channelNames_.makeImmutable(); result.channelNames_ = channelNames_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.rowBased_ = rowBased_; } if (((from_bitField0_ & 0x00000010) != 0)) { files_.makeImmutable(); result.files_ = files_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.dbName_ = dbName_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.clusteringInfo_ = clusteringInfo_; } } @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.ImportRequest) { return mergeFrom((io.milvus.grpc.ImportRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.milvus.grpc.ImportRequest other) { if (other == io.milvus.grpc.ImportRequest.getDefaultInstance()) return this; if (!other.getCollectionName().isEmpty()) { collectionName_ = other.collectionName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getPartitionName().isEmpty()) { partitionName_ = other.partitionName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.channelNames_.isEmpty()) { if (channelNames_.isEmpty()) { channelNames_ = other.channelNames_; bitField0_ |= 0x00000004; } else { ensureChannelNamesIsMutable(); channelNames_.addAll(other.channelNames_); } onChanged(); } if (other.getRowBased() != false) { setRowBased(other.getRowBased()); } if (!other.files_.isEmpty()) { if (files_.isEmpty()) { files_ = other.files_; bitField0_ |= 0x00000010; } else { ensureFilesIsMutable(); files_.addAll(other.files_); } onChanged(); } if (optionsBuilder_ == null) { if (!other.options_.isEmpty()) { if (options_.isEmpty()) { options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureOptionsIsMutable(); options_.addAll(other.options_); } onChanged(); } } else { if (!other.options_.isEmpty()) { if (optionsBuilder_.isEmpty()) { optionsBuilder_.dispose(); optionsBuilder_ = null; options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000020); optionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptionsFieldBuilder() : null; } else { optionsBuilder_.addAllMessages(other.options_); } } } if (!other.getDbName().isEmpty()) { dbName_ = other.dbName_; bitField0_ |= 0x00000040; onChanged(); } if (other.getClusteringInfo() != com.google.protobuf.ByteString.EMPTY) { setClusteringInfo(other.getClusteringInfo()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { collectionName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { partitionName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureChannelNamesIsMutable(); channelNames_.add(s); break; } // case 26 case 32: { rowBased_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureFilesIsMutable(); files_.add(s); break; } // case 42 case 50: { io.milvus.grpc.KeyValuePair m = input.readMessage( io.milvus.grpc.KeyValuePair.parser(), extensionRegistry); if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(m); } else { optionsBuilder_.addMessage(m); } break; } // case 50 case 58: { dbName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { clusteringInfo_ = input.readBytes(); bitField0_ |= 0x00000080; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object collectionName_ = ""; /** *
     * target collection
     * 
* * string collection_name = 1; * @return The collectionName. */ public java.lang.String getCollectionName() { java.lang.Object ref = collectionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * target collection
     * 
* * string collection_name = 1; * @return The bytes for collectionName. */ public com.google.protobuf.ByteString getCollectionNameBytes() { java.lang.Object ref = collectionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * target collection
     * 
* * string collection_name = 1; * @param value The collectionName to set. * @return This builder for chaining. */ public Builder setCollectionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collectionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * target collection
     * 
* * string collection_name = 1; * @return This builder for chaining. */ public Builder clearCollectionName() { collectionName_ = getDefaultInstance().getCollectionName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * target collection
     * 
* * string collection_name = 1; * @param value The bytes for collectionName to set. * @return This builder for chaining. */ public Builder setCollectionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collectionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object partitionName_ = ""; /** *
     * target partition
     * 
* * string partition_name = 2; * @return The partitionName. */ public java.lang.String getPartitionName() { java.lang.Object ref = partitionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); partitionName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * target partition
     * 
* * string partition_name = 2; * @return The bytes for partitionName. */ public com.google.protobuf.ByteString getPartitionNameBytes() { java.lang.Object ref = partitionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); partitionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * target partition
     * 
* * string partition_name = 2; * @param value The partitionName to set. * @return This builder for chaining. */ public Builder setPartitionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } partitionName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * target partition
     * 
* * string partition_name = 2; * @return This builder for chaining. */ public Builder clearPartitionName() { partitionName_ = getDefaultInstance().getPartitionName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * target partition
     * 
* * string partition_name = 2; * @param value The bytes for partitionName to set. * @return This builder for chaining. */ public Builder setPartitionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); partitionName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList channelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureChannelNamesIsMutable() { if (!channelNames_.isModifiable()) { channelNames_ = new com.google.protobuf.LazyStringArrayList(channelNames_); } bitField0_ |= 0x00000004; } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @return A list containing the channelNames. */ public com.google.protobuf.ProtocolStringList getChannelNamesList() { channelNames_.makeImmutable(); return channelNames_; } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @return The count of channelNames. */ public int getChannelNamesCount() { return channelNames_.size(); } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @param index The index of the element to return. * @return The channelNames at the given index. */ public java.lang.String getChannelNames(int index) { return channelNames_.get(index); } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @param index The index of the value to return. * @return The bytes of the channelNames at the given index. */ public com.google.protobuf.ByteString getChannelNamesBytes(int index) { return channelNames_.getByteString(index); } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @param index The index to set the value at. * @param value The channelNames to set. * @return This builder for chaining. */ public Builder setChannelNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureChannelNamesIsMutable(); channelNames_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @param value The channelNames to add. * @return This builder for chaining. */ public Builder addChannelNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureChannelNamesIsMutable(); channelNames_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @param values The channelNames to add. * @return This builder for chaining. */ public Builder addAllChannelNames( java.lang.Iterable values) { ensureChannelNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, channelNames_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @return This builder for chaining. */ public Builder clearChannelNames() { channelNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     * channel names for the collection
     * 
* * repeated string channel_names = 3; * @param value The bytes of the channelNames to add. * @return This builder for chaining. */ public Builder addChannelNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureChannelNamesIsMutable(); channelNames_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private boolean rowBased_ ; /** *
     * the file is row-based or column-based
     * 
* * bool row_based = 4; * @return The rowBased. */ @java.lang.Override public boolean getRowBased() { return rowBased_; } /** *
     * the file is row-based or column-based
     * 
* * bool row_based = 4; * @param value The rowBased to set. * @return This builder for chaining. */ public Builder setRowBased(boolean value) { rowBased_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * the file is row-based or column-based
     * 
* * bool row_based = 4; * @return This builder for chaining. */ public Builder clearRowBased() { bitField0_ = (bitField0_ & ~0x00000008); rowBased_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList files_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFilesIsMutable() { if (!files_.isModifiable()) { files_ = new com.google.protobuf.LazyStringArrayList(files_); } bitField0_ |= 0x00000010; } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @return A list containing the files. */ public com.google.protobuf.ProtocolStringList getFilesList() { files_.makeImmutable(); return files_; } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @return The count of files. */ public int getFilesCount() { return files_.size(); } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @param index The index of the element to return. * @return The files at the given index. */ public java.lang.String getFiles(int index) { return files_.get(index); } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @param index The index of the value to return. * @return The bytes of the files at the given index. */ public com.google.protobuf.ByteString getFilesBytes(int index) { return files_.getByteString(index); } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @param index The index to set the value at. * @param value The files to set. * @return This builder for chaining. */ public Builder setFiles( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @param value The files to add. * @return This builder for chaining. */ public Builder addFiles( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @param values The files to add. * @return This builder for chaining. */ public Builder addAllFiles( java.lang.Iterable values) { ensureFilesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, files_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @return This builder for chaining. */ public Builder clearFiles() { files_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** *
     * file paths to be imported
     * 
* * repeated string files = 5; * @param value The bytes of the files to add. * @return This builder for chaining. */ public Builder addFilesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFilesIsMutable(); files_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private java.util.List options_ = java.util.Collections.emptyList(); private void ensureOptionsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { options_ = new java.util.ArrayList(options_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder> optionsBuilder_; /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public java.util.List getOptionsList() { if (optionsBuilder_ == null) { return java.util.Collections.unmodifiableList(options_); } else { return optionsBuilder_.getMessageList(); } } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public int getOptionsCount() { if (optionsBuilder_ == null) { return options_.size(); } else { return optionsBuilder_.getCount(); } } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public io.milvus.grpc.KeyValuePair getOptions(int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessage(index); } } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder setOptions( int index, io.milvus.grpc.KeyValuePair value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.set(index, value); onChanged(); } else { optionsBuilder_.setMessage(index, value); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder setOptions( int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.set(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder addOptions(io.milvus.grpc.KeyValuePair value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(value); onChanged(); } else { optionsBuilder_.addMessage(value); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder addOptions( int index, io.milvus.grpc.KeyValuePair value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(index, value); onChanged(); } else { optionsBuilder_.addMessage(index, value); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder addOptions( io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder addOptions( int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder addAllOptions( java.lang.Iterable values) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, options_); onChanged(); } else { optionsBuilder_.addAllMessages(values); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { optionsBuilder_.clear(); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public Builder removeOptions(int index) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.remove(index); onChanged(); } else { optionsBuilder_.remove(index); } return this; } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public io.milvus.grpc.KeyValuePair.Builder getOptionsBuilder( int index) { return getOptionsFieldBuilder().getBuilder(index); } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public io.milvus.grpc.KeyValuePairOrBuilder getOptionsOrBuilder( int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessageOrBuilder(index); } } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public java.util.List getOptionsOrBuilderList() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(options_); } } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public io.milvus.grpc.KeyValuePair.Builder addOptionsBuilder() { return getOptionsFieldBuilder().addBuilder( io.milvus.grpc.KeyValuePair.getDefaultInstance()); } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public io.milvus.grpc.KeyValuePair.Builder addOptionsBuilder( int index) { return getOptionsFieldBuilder().addBuilder( index, io.milvus.grpc.KeyValuePair.getDefaultInstance()); } /** *
     * import options, bucket, etc.
     * 
* * repeated .milvus.proto.common.KeyValuePair options = 6; */ public java.util.List getOptionsBuilderList() { return getOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder>( options_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private java.lang.Object dbName_ = ""; /** *
     * target database
     * 
* * string db_name = 7; * @return The dbName. */ public java.lang.String getDbName() { java.lang.Object ref = dbName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dbName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * target database
     * 
* * string db_name = 7; * @return The bytes for dbName. */ public com.google.protobuf.ByteString getDbNameBytes() { java.lang.Object ref = dbName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dbName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * target database
     * 
* * string db_name = 7; * @param value The dbName to set. * @return This builder for chaining. */ public Builder setDbName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dbName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * target database
     * 
* * string db_name = 7; * @return This builder for chaining. */ public Builder clearDbName() { dbName_ = getDefaultInstance().getDbName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * target database
     * 
* * string db_name = 7; * @param value The bytes for dbName to set. * @return This builder for chaining. */ public Builder setDbNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dbName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.protobuf.ByteString clusteringInfo_ = com.google.protobuf.ByteString.EMPTY; /** *
     * serialized `schema.ClusteringInfo`
     * 
* * bytes clustering_info = 8; * @return The clusteringInfo. */ @java.lang.Override public com.google.protobuf.ByteString getClusteringInfo() { return clusteringInfo_; } /** *
     * serialized `schema.ClusteringInfo`
     * 
* * bytes clustering_info = 8; * @param value The clusteringInfo to set. * @return This builder for chaining. */ public Builder setClusteringInfo(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } clusteringInfo_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * serialized `schema.ClusteringInfo`
     * 
* * bytes clustering_info = 8; * @return This builder for chaining. */ public Builder clearClusteringInfo() { bitField0_ = (bitField0_ & ~0x00000080); clusteringInfo_ = getDefaultInstance().getClusteringInfo(); 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.milvus.ImportRequest) } // @@protoc_insertion_point(class_scope:milvus.proto.milvus.ImportRequest) private static final io.milvus.grpc.ImportRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.milvus.grpc.ImportRequest(); } public static io.milvus.grpc.ImportRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImportRequest 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.ImportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy