io.milvus.grpc.IndexDescription 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;
/**
*
* Index informations
*
*
* Protobuf type {@code milvus.proto.milvus.IndexDescription}
*/
public final class IndexDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.IndexDescription)
IndexDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexDescription.newBuilder() to construct.
private IndexDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexDescription() {
indexName_ = "";
params_ = java.util.Collections.emptyList();
fieldName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexDescription();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexDescription(
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();
indexName_ = s;
break;
}
case 16: {
indexID_ = input.readInt64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
params_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
params_.add(
input.readMessage(io.milvus.grpc.KeyValuePair.parser(), extensionRegistry));
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
fieldName_ = s;
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)) {
params_ = java.util.Collections.unmodifiableList(params_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_IndexDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_IndexDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.IndexDescription.class, io.milvus.grpc.IndexDescription.Builder.class);
}
public static final int INDEX_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object indexName_;
/**
*
* Index name
*
*
* string index_name = 1;
* @return The indexName.
*/
@java.lang.Override
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
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();
indexName_ = s;
return s;
}
}
/**
*
* Index name
*
*
* string index_name = 1;
* @return The bytes for indexName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEXID_FIELD_NUMBER = 2;
private long indexID_;
/**
*
* Index id
*
*
* int64 indexID = 2;
* @return The indexID.
*/
@java.lang.Override
public long getIndexID() {
return indexID_;
}
public static final int PARAMS_FIELD_NUMBER = 3;
private java.util.List params_;
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
@java.lang.Override
public java.util.List getParamsList() {
return params_;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
@java.lang.Override
public java.util.List extends io.milvus.grpc.KeyValuePairOrBuilder>
getParamsOrBuilderList() {
return params_;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
@java.lang.Override
public int getParamsCount() {
return params_.size();
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
@java.lang.Override
public io.milvus.grpc.KeyValuePair getParams(int index) {
return params_.get(index);
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
@java.lang.Override
public io.milvus.grpc.KeyValuePairOrBuilder getParamsOrBuilder(
int index) {
return params_.get(index);
}
public static final int FIELD_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object fieldName_;
/**
*
* The vector field name
*
*
* string field_name = 4;
* @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;
}
}
/**
*
* The vector field name
*
*
* string field_name = 4;
* @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;
}
}
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(indexName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexName_);
}
if (indexID_ != 0L) {
output.writeInt64(2, indexID_);
}
for (int i = 0; i < params_.size(); i++) {
output.writeMessage(3, params_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fieldName_);
}
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(indexName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexName_);
}
if (indexID_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, indexID_);
}
for (int i = 0; i < params_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, params_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fieldName_);
}
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.IndexDescription)) {
return super.equals(obj);
}
io.milvus.grpc.IndexDescription other = (io.milvus.grpc.IndexDescription) obj;
if (!getIndexName()
.equals(other.getIndexName())) return false;
if (getIndexID()
!= other.getIndexID()) return false;
if (!getParamsList()
.equals(other.getParamsList())) return false;
if (!getFieldName()
.equals(other.getFieldName())) 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) + INDEX_NAME_FIELD_NUMBER;
hash = (53 * hash) + getIndexName().hashCode();
hash = (37 * hash) + INDEXID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndexID());
if (getParamsCount() > 0) {
hash = (37 * hash) + PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getParamsList().hashCode();
}
hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFieldName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.IndexDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.IndexDescription 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.IndexDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.IndexDescription 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.IndexDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.IndexDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.IndexDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.IndexDescription 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.IndexDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.IndexDescription 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.IndexDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.IndexDescription 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.IndexDescription 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;
}
/**
*
* Index informations
*
*
* Protobuf type {@code milvus.proto.milvus.IndexDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.IndexDescription)
io.milvus.grpc.IndexDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_IndexDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_IndexDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.IndexDescription.class, io.milvus.grpc.IndexDescription.Builder.class);
}
// Construct using io.milvus.grpc.IndexDescription.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getParamsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
indexName_ = "";
indexID_ = 0L;
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
paramsBuilder_.clear();
}
fieldName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_IndexDescription_descriptor;
}
@java.lang.Override
public io.milvus.grpc.IndexDescription getDefaultInstanceForType() {
return io.milvus.grpc.IndexDescription.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.IndexDescription build() {
io.milvus.grpc.IndexDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.IndexDescription buildPartial() {
io.milvus.grpc.IndexDescription result = new io.milvus.grpc.IndexDescription(this);
int from_bitField0_ = bitField0_;
result.indexName_ = indexName_;
result.indexID_ = indexID_;
if (paramsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
params_ = java.util.Collections.unmodifiableList(params_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
result.fieldName_ = fieldName_;
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.IndexDescription) {
return mergeFrom((io.milvus.grpc.IndexDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.IndexDescription other) {
if (other == io.milvus.grpc.IndexDescription.getDefaultInstance()) return this;
if (!other.getIndexName().isEmpty()) {
indexName_ = other.indexName_;
onChanged();
}
if (other.getIndexID() != 0L) {
setIndexID(other.getIndexID());
}
if (paramsBuilder_ == null) {
if (!other.params_.isEmpty()) {
if (params_.isEmpty()) {
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureParamsIsMutable();
params_.addAll(other.params_);
}
onChanged();
}
} else {
if (!other.params_.isEmpty()) {
if (paramsBuilder_.isEmpty()) {
paramsBuilder_.dispose();
paramsBuilder_ = null;
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000001);
paramsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParamsFieldBuilder() : null;
} else {
paramsBuilder_.addAllMessages(other.params_);
}
}
}
if (!other.getFieldName().isEmpty()) {
fieldName_ = other.fieldName_;
onChanged();
}
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.IndexDescription parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.milvus.grpc.IndexDescription) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
*
* Index name
*
*
* string index_name = 1;
* @return The indexName.
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Index name
*
*
* string index_name = 1;
* @return The bytes for indexName.
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Index name
*
*
* string index_name = 1;
* @param value The indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
indexName_ = value;
onChanged();
return this;
}
/**
*
* Index name
*
*
* string index_name = 1;
* @return This builder for chaining.
*/
public Builder clearIndexName() {
indexName_ = getDefaultInstance().getIndexName();
onChanged();
return this;
}
/**
*
* Index name
*
*
* string index_name = 1;
* @param value The bytes for indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
indexName_ = value;
onChanged();
return this;
}
private long indexID_ ;
/**
*
* Index id
*
*
* int64 indexID = 2;
* @return The indexID.
*/
@java.lang.Override
public long getIndexID() {
return indexID_;
}
/**
*
* Index id
*
*
* int64 indexID = 2;
* @param value The indexID to set.
* @return This builder for chaining.
*/
public Builder setIndexID(long value) {
indexID_ = value;
onChanged();
return this;
}
/**
*
* Index id
*
*
* int64 indexID = 2;
* @return This builder for chaining.
*/
public Builder clearIndexID() {
indexID_ = 0L;
onChanged();
return this;
}
private java.util.List params_ =
java.util.Collections.emptyList();
private void ensureParamsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
params_ = new java.util.ArrayList(params_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder> paramsBuilder_;
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public java.util.List getParamsList() {
if (paramsBuilder_ == null) {
return java.util.Collections.unmodifiableList(params_);
} else {
return paramsBuilder_.getMessageList();
}
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public int getParamsCount() {
if (paramsBuilder_ == null) {
return params_.size();
} else {
return paramsBuilder_.getCount();
}
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public io.milvus.grpc.KeyValuePair getParams(int index) {
if (paramsBuilder_ == null) {
return params_.get(index);
} else {
return paramsBuilder_.getMessage(index);
}
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder setParams(
int index, io.milvus.grpc.KeyValuePair value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.set(index, value);
onChanged();
} else {
paramsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder setParams(
int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.set(index, builderForValue.build());
onChanged();
} else {
paramsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder addParams(io.milvus.grpc.KeyValuePair value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.add(value);
onChanged();
} else {
paramsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder addParams(
int index, io.milvus.grpc.KeyValuePair value) {
if (paramsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParamsIsMutable();
params_.add(index, value);
onChanged();
} else {
paramsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder addParams(
io.milvus.grpc.KeyValuePair.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(builderForValue.build());
onChanged();
} else {
paramsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder addParams(
int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(index, builderForValue.build());
onChanged();
} else {
paramsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder addAllParams(
java.lang.Iterable extends io.milvus.grpc.KeyValuePair> values) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, params_);
onChanged();
} else {
paramsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder clearParams() {
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
paramsBuilder_.clear();
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public Builder removeParams(int index) {
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.remove(index);
onChanged();
} else {
paramsBuilder_.remove(index);
}
return this;
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public io.milvus.grpc.KeyValuePair.Builder getParamsBuilder(
int index) {
return getParamsFieldBuilder().getBuilder(index);
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public io.milvus.grpc.KeyValuePairOrBuilder getParamsOrBuilder(
int index) {
if (paramsBuilder_ == null) {
return params_.get(index); } else {
return paramsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public java.util.List extends io.milvus.grpc.KeyValuePairOrBuilder>
getParamsOrBuilderList() {
if (paramsBuilder_ != null) {
return paramsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(params_);
}
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public io.milvus.grpc.KeyValuePair.Builder addParamsBuilder() {
return getParamsFieldBuilder().addBuilder(
io.milvus.grpc.KeyValuePair.getDefaultInstance());
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public io.milvus.grpc.KeyValuePair.Builder addParamsBuilder(
int index) {
return getParamsFieldBuilder().addBuilder(
index, io.milvus.grpc.KeyValuePair.getDefaultInstance());
}
/**
*
* Will return index_type, metric_type, params(like nlist).
*
*
* repeated .milvus.proto.common.KeyValuePair params = 3;
*/
public java.util.List
getParamsBuilderList() {
return getParamsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder>
getParamsFieldBuilder() {
if (paramsBuilder_ == null) {
paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder>(
params_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
params_ = null;
}
return paramsBuilder_;
}
private java.lang.Object fieldName_ = "";
/**
*
* The vector field name
*
*
* string field_name = 4;
* @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;
}
}
/**
*
* The vector field name
*
*
* string field_name = 4;
* @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;
}
}
/**
*
* The vector field name
*
*
* string field_name = 4;
* @param value The fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fieldName_ = value;
onChanged();
return this;
}
/**
*
* The vector field name
*
*
* string field_name = 4;
* @return This builder for chaining.
*/
public Builder clearFieldName() {
fieldName_ = getDefaultInstance().getFieldName();
onChanged();
return this;
}
/**
*
* The vector field name
*
*
* string field_name = 4;
* @param value The bytes for fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fieldName_ = value;
onChanged();
return this;
}
@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.IndexDescription)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.IndexDescription)
private static final io.milvus.grpc.IndexDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.IndexDescription();
}
public static io.milvus.grpc.IndexDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexDescription(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.IndexDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}