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 database.
// 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_ = "";
state_ = 0;
indexStateFailReason_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexDescription();
}
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;
@SuppressWarnings("serial")
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_ = 0L;
/**
*
* Index id
*
*
* int64 indexID = 2;
* @return The indexID.
*/
@java.lang.Override
public long getIndexID() {
return indexID_;
}
public static final int PARAMS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
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;
@SuppressWarnings("serial")
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;
}
}
public static final int INDEXED_ROWS_FIELD_NUMBER = 5;
private long indexedRows_ = 0L;
/**
*
* index build progress
*
*
* int64 indexed_rows = 5;
* @return The indexedRows.
*/
@java.lang.Override
public long getIndexedRows() {
return indexedRows_;
}
public static final int TOTAL_ROWS_FIELD_NUMBER = 6;
private long totalRows_ = 0L;
/**
* int64 total_rows = 6;
* @return The totalRows.
*/
@java.lang.Override
public long getTotalRows() {
return totalRows_;
}
public static final int STATE_FIELD_NUMBER = 7;
private int state_ = 0;
/**
*
* index state
*
*
* .milvus.proto.common.IndexState state = 7;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* index state
*
*
* .milvus.proto.common.IndexState state = 7;
* @return The state.
*/
@java.lang.Override public io.milvus.grpc.IndexState getState() {
io.milvus.grpc.IndexState result = io.milvus.grpc.IndexState.forNumber(state_);
return result == null ? io.milvus.grpc.IndexState.UNRECOGNIZED : result;
}
public static final int INDEX_STATE_FAIL_REASON_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object indexStateFailReason_ = "";
/**
* string index_state_fail_reason = 8;
* @return The indexStateFailReason.
*/
@java.lang.Override
public java.lang.String getIndexStateFailReason() {
java.lang.Object ref = indexStateFailReason_;
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();
indexStateFailReason_ = s;
return s;
}
}
/**
* string index_state_fail_reason = 8;
* @return The bytes for indexStateFailReason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexStateFailReasonBytes() {
java.lang.Object ref = indexStateFailReason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexStateFailReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PENDING_INDEX_ROWS_FIELD_NUMBER = 9;
private long pendingIndexRows_ = 0L;
/**
* int64 pending_index_rows = 9;
* @return The pendingIndexRows.
*/
@java.lang.Override
public long getPendingIndexRows() {
return pendingIndexRows_;
}
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_);
}
if (indexedRows_ != 0L) {
output.writeInt64(5, indexedRows_);
}
if (totalRows_ != 0L) {
output.writeInt64(6, totalRows_);
}
if (state_ != io.milvus.grpc.IndexState.IndexStateNone.getNumber()) {
output.writeEnum(7, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexStateFailReason_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, indexStateFailReason_);
}
if (pendingIndexRows_ != 0L) {
output.writeInt64(9, pendingIndexRows_);
}
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(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_);
}
if (indexedRows_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, indexedRows_);
}
if (totalRows_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, totalRows_);
}
if (state_ != io.milvus.grpc.IndexState.IndexStateNone.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexStateFailReason_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, indexStateFailReason_);
}
if (pendingIndexRows_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, pendingIndexRows_);
}
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.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 (getIndexedRows()
!= other.getIndexedRows()) return false;
if (getTotalRows()
!= other.getTotalRows()) return false;
if (state_ != other.state_) return false;
if (!getIndexStateFailReason()
.equals(other.getIndexStateFailReason())) return false;
if (getPendingIndexRows()
!= other.getPendingIndexRows()) 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) + 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 = (37 * hash) + INDEXED_ROWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIndexedRows());
hash = (37 * hash) + TOTAL_ROWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalRows());
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + INDEX_STATE_FAIL_REASON_FIELD_NUMBER;
hash = (53 * hash) + getIndexStateFailReason().hashCode();
hash = (37 * hash) + PENDING_INDEX_ROWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPendingIndexRows());
hash = (29 * hash) + getUnknownFields().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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexName_ = "";
indexID_ = 0L;
if (paramsBuilder_ == null) {
params_ = java.util.Collections.emptyList();
} else {
params_ = null;
paramsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
fieldName_ = "";
indexedRows_ = 0L;
totalRows_ = 0L;
state_ = 0;
indexStateFailReason_ = "";
pendingIndexRows_ = 0L;
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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.milvus.grpc.IndexDescription result) {
if (paramsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
params_ = java.util.Collections.unmodifiableList(params_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.params_ = params_;
} else {
result.params_ = paramsBuilder_.build();
}
}
private void buildPartial0(io.milvus.grpc.IndexDescription result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexName_ = indexName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.indexID_ = indexID_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.fieldName_ = fieldName_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.indexedRows_ = indexedRows_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.totalRows_ = totalRows_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.indexStateFailReason_ = indexStateFailReason_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.pendingIndexRows_ = pendingIndexRows_;
}
}
@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_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getIndexID() != 0L) {
setIndexID(other.getIndexID());
}
if (paramsBuilder_ == null) {
if (!other.params_.isEmpty()) {
if (params_.isEmpty()) {
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureParamsIsMutable();
params_.addAll(other.params_);
}
onChanged();
}
} else {
if (!other.params_.isEmpty()) {
if (paramsBuilder_.isEmpty()) {
paramsBuilder_.dispose();
paramsBuilder_ = null;
params_ = other.params_;
bitField0_ = (bitField0_ & ~0x00000004);
paramsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getParamsFieldBuilder() : null;
} else {
paramsBuilder_.addAllMessages(other.params_);
}
}
}
if (!other.getFieldName().isEmpty()) {
fieldName_ = other.fieldName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getIndexedRows() != 0L) {
setIndexedRows(other.getIndexedRows());
}
if (other.getTotalRows() != 0L) {
setTotalRows(other.getTotalRows());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getIndexStateFailReason().isEmpty()) {
indexStateFailReason_ = other.indexStateFailReason_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.getPendingIndexRows() != 0L) {
setPendingIndexRows(other.getPendingIndexRows());
}
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: {
indexName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
indexID_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
io.milvus.grpc.KeyValuePair m =
input.readMessage(
io.milvus.grpc.KeyValuePair.parser(),
extensionRegistry);
if (paramsBuilder_ == null) {
ensureParamsIsMutable();
params_.add(m);
} else {
paramsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
fieldName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
indexedRows_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
totalRows_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
state_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
indexStateFailReason_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
pendingIndexRows_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 72
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 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Index name
*
*
* string index_name = 1;
* @return This builder for chaining.
*/
public Builder clearIndexName() {
indexName_ = getDefaultInstance().getIndexName();
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000001;
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;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Index id
*
*
* int64 indexID = 2;
* @return This builder for chaining.
*/
public Builder clearIndexID() {
bitField0_ = (bitField0_ & ~0x00000002);
indexID_ = 0L;
onChanged();
return this;
}
private java.util.List params_ =
java.util.Collections.emptyList();
private void ensureParamsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
params_ = new java.util.ArrayList(params_);
bitField0_ |= 0x00000004;
}
}
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_ & ~0x00000004);
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_ & 0x00000004) != 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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The vector field name
*
*
* string field_name = 4;
* @return This builder for chaining.
*/
public Builder clearFieldName() {
fieldName_ = getDefaultInstance().getFieldName();
bitField0_ = (bitField0_ & ~0x00000008);
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;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private long indexedRows_ ;
/**
*
* index build progress
*
*
* int64 indexed_rows = 5;
* @return The indexedRows.
*/
@java.lang.Override
public long getIndexedRows() {
return indexedRows_;
}
/**
*
* index build progress
*
*
* int64 indexed_rows = 5;
* @param value The indexedRows to set.
* @return This builder for chaining.
*/
public Builder setIndexedRows(long value) {
indexedRows_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* index build progress
*
*
* int64 indexed_rows = 5;
* @return This builder for chaining.
*/
public Builder clearIndexedRows() {
bitField0_ = (bitField0_ & ~0x00000010);
indexedRows_ = 0L;
onChanged();
return this;
}
private long totalRows_ ;
/**
* int64 total_rows = 6;
* @return The totalRows.
*/
@java.lang.Override
public long getTotalRows() {
return totalRows_;
}
/**
* int64 total_rows = 6;
* @param value The totalRows to set.
* @return This builder for chaining.
*/
public Builder setTotalRows(long value) {
totalRows_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* int64 total_rows = 6;
* @return This builder for chaining.
*/
public Builder clearTotalRows() {
bitField0_ = (bitField0_ & ~0x00000020);
totalRows_ = 0L;
onChanged();
return this;
}
private int state_ = 0;
/**
*
* index state
*
*
* .milvus.proto.common.IndexState state = 7;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* index state
*
*
* .milvus.proto.common.IndexState state = 7;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* index state
*
*
* .milvus.proto.common.IndexState state = 7;
* @return The state.
*/
@java.lang.Override
public io.milvus.grpc.IndexState getState() {
io.milvus.grpc.IndexState result = io.milvus.grpc.IndexState.forNumber(state_);
return result == null ? io.milvus.grpc.IndexState.UNRECOGNIZED : result;
}
/**
*
* index state
*
*
* .milvus.proto.common.IndexState state = 7;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(io.milvus.grpc.IndexState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* index state
*
*
* .milvus.proto.common.IndexState state = 7;
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000040);
state_ = 0;
onChanged();
return this;
}
private java.lang.Object indexStateFailReason_ = "";
/**
* string index_state_fail_reason = 8;
* @return The indexStateFailReason.
*/
public java.lang.String getIndexStateFailReason() {
java.lang.Object ref = indexStateFailReason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexStateFailReason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string index_state_fail_reason = 8;
* @return The bytes for indexStateFailReason.
*/
public com.google.protobuf.ByteString
getIndexStateFailReasonBytes() {
java.lang.Object ref = indexStateFailReason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexStateFailReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string index_state_fail_reason = 8;
* @param value The indexStateFailReason to set.
* @return This builder for chaining.
*/
public Builder setIndexStateFailReason(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
indexStateFailReason_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* string index_state_fail_reason = 8;
* @return This builder for chaining.
*/
public Builder clearIndexStateFailReason() {
indexStateFailReason_ = getDefaultInstance().getIndexStateFailReason();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* string index_state_fail_reason = 8;
* @param value The bytes for indexStateFailReason to set.
* @return This builder for chaining.
*/
public Builder setIndexStateFailReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
indexStateFailReason_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private long pendingIndexRows_ ;
/**
* int64 pending_index_rows = 9;
* @return The pendingIndexRows.
*/
@java.lang.Override
public long getPendingIndexRows() {
return pendingIndexRows_;
}
/**
* int64 pending_index_rows = 9;
* @param value The pendingIndexRows to set.
* @return This builder for chaining.
*/
public Builder setPendingIndexRows(long value) {
pendingIndexRows_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* int64 pending_index_rows = 9;
* @return This builder for chaining.
*/
public Builder clearPendingIndexRows() {
bitField0_ = (bitField0_ & ~0x00000100);
pendingIndexRows_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:milvus.proto.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 {
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.IndexDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}