io.milvus.grpc.ImportRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector search engine.
update grpc to 1.42.1
update protobuf to 3.19.1
// 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.EMPTY;
files_ = com.google.protobuf.LazyStringArrayList.EMPTY;
options_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ImportRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ImportRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
collectionName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
partitionName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
channelNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
channelNames_.add(s);
break;
}
case 32: {
rowBased_ = input.readBool();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
files_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
files_.add(s);
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
options_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
options_.add(
input.readMessage(io.milvus.grpc.KeyValuePair.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
channelNames_ = channelNames_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
files_ = files_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
options_ = java.util.Collections.unmodifiableList(options_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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;
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;
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;
private com.google.protobuf.LazyStringList channelNames_;
/**
*
* 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_;
/**
*
* 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;
private com.google.protobuf.LazyStringList files_;
/**
*
* 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;
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 extends io.milvus.grpc.KeyValuePairOrBuilder>
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);
}
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));
}
unknownFields.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));
}
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.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 (!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) + 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 = (29 * hash) + unknownFields.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
collectionName_ = "";
partitionName_ = "";
channelNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
rowBased_ = false;
files_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
optionsBuilder_.clear();
}
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);
int from_bitField0_ = bitField0_;
result.collectionName_ = collectionName_;
result.partitionName_ = partitionName_;
if (((bitField0_ & 0x00000001) != 0)) {
channelNames_ = channelNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.channelNames_ = channelNames_;
result.rowBased_ = rowBased_;
if (((bitField0_ & 0x00000002) != 0)) {
files_ = files_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.files_ = files_;
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
options_ = java.util.Collections.unmodifiableList(options_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
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.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_;
onChanged();
}
if (!other.getPartitionName().isEmpty()) {
partitionName_ = other.partitionName_;
onChanged();
}
if (!other.channelNames_.isEmpty()) {
if (channelNames_.isEmpty()) {
channelNames_ = other.channelNames_;
bitField0_ = (bitField0_ & ~0x00000001);
} 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_ = (bitField0_ & ~0x00000002);
} else {
ensureFilesIsMutable();
files_.addAll(other.files_);
}
onChanged();
}
if (optionsBuilder_ == null) {
if (!other.options_.isEmpty()) {
if (options_.isEmpty()) {
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOptionsIsMutable();
options_.addAll(other.options_);
}
onChanged();
}
} else {
if (!other.options_.isEmpty()) {
if (optionsBuilder_.isEmpty()) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000004);
optionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOptionsFieldBuilder() : null;
} else {
optionsBuilder_.addAllMessages(other.options_);
}
}
}
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.ImportRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.milvus.grpc.ImportRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
onChanged();
return this;
}
/**
*
* target collection
*
*
* string collection_name = 1;
* @return This builder for chaining.
*/
public Builder clearCollectionName() {
collectionName_ = getDefaultInstance().getCollectionName();
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;
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;
onChanged();
return this;
}
/**
*
* target partition
*
*
* string partition_name = 2;
* @return This builder for chaining.
*/
public Builder clearPartitionName() {
partitionName_ = getDefaultInstance().getPartitionName();
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;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList channelNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureChannelNamesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
channelNames_ = new com.google.protobuf.LazyStringArrayList(channelNames_);
bitField0_ |= 0x00000001;
}
}
/**
*
* channel names for the collection
*
*
* repeated string channel_names = 3;
* @return A list containing the channelNames.
*/
public com.google.protobuf.ProtocolStringList
getChannelNamesList() {
return channelNames_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
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.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
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);
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;
onChanged();
return this;
}
/**
*
* the file is row-based or column-based
*
*
* bool row_based = 4;
* @return This builder for chaining.
*/
public Builder clearRowBased() {
rowBased_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList files_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureFilesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
files_ = new com.google.protobuf.LazyStringArrayList(files_);
bitField0_ |= 0x00000002;
}
}
/**
*
* file paths to be imported
*
*
* repeated string files = 5;
* @return A list containing the files.
*/
public com.google.protobuf.ProtocolStringList
getFilesList() {
return files_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
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.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
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);
onChanged();
return this;
}
private java.util.List options_ =
java.util.Collections.emptyList();
private void ensureOptionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
options_ = new java.util.ArrayList(options_);
bitField0_ |= 0x00000004;
}
}
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 extends io.milvus.grpc.KeyValuePair> 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_ & ~0x00000004);
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 extends io.milvus.grpc.KeyValuePairOrBuilder>
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_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
@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 {
return new ImportRequest(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.ImportRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}