int64 count = 3;
+ * @return The count.
+ */
+ long getCount();
}
/**
* Protobuf type {@code com.tencent.tcvectordb.rpc.proto.DatabaseItem}
@@ -8717,6 +8723,17 @@ public long getCreateTime() {
return result == null ? com.tencent.tcvectordb.rpc.proto.Olama.DataType.UNRECOGNIZED : result;
}
+ public static final int COUNT_FIELD_NUMBER = 3;
+ private long count_ = 0L;
+ /**
+ * int64 count = 3;
+ * @return The count.
+ */
+ @java.lang.Override
+ public long getCount() {
+ return count_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -8737,6 +8754,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (dbType_ != com.tencent.tcvectordb.rpc.proto.Olama.DataType.BASE.getNumber()) {
output.writeEnum(2, dbType_);
}
+ if (count_ != 0L) {
+ output.writeInt64(3, count_);
+ }
getUnknownFields().writeTo(output);
}
@@ -8754,6 +8774,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, dbType_);
}
+ if (count_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, count_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -8772,6 +8796,8 @@ public boolean equals(final java.lang.Object obj) {
if (getCreateTime()
!= other.getCreateTime()) return false;
if (dbType_ != other.dbType_) return false;
+ if (getCount()
+ != other.getCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -8788,6 +8814,9 @@ public int hashCode() {
getCreateTime());
hash = (37 * hash) + DB_TYPE_FIELD_NUMBER;
hash = (53 * hash) + dbType_;
+ hash = (37 * hash) + COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -8921,6 +8950,7 @@ public Builder clear() {
bitField0_ = 0;
createTime_ = 0L;
dbType_ = 0;
+ count_ = 0L;
return this;
}
@@ -8960,6 +8990,9 @@ private void buildPartial0(com.tencent.tcvectordb.rpc.proto.Olama.DatabaseItem r
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dbType_ = dbType_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.count_ = count_;
+ }
}
@java.lang.Override
@@ -9012,6 +9045,9 @@ public Builder mergeFrom(com.tencent.tcvectordb.rpc.proto.Olama.DatabaseItem oth
if (other.dbType_ != 0) {
setDbTypeValue(other.getDbTypeValue());
}
+ if (other.getCount() != 0L) {
+ setCount(other.getCount());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -9048,6 +9084,11 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 16
+ case 24: {
+ count_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -9149,6 +9190,38 @@ public Builder clearDbType() {
onChanged();
return this;
}
+
+ private long count_ ;
+ /**
+ * int64 count = 3;
+ * @return The count.
+ */
+ @java.lang.Override
+ public long getCount() {
+ return count_;
+ }
+ /**
+ * int64 count = 3;
+ * @param value The count to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCount(long value) {
+
+ count_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 count = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCount() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ count_ = 0L;
+ onChanged();
+ return this;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -55268,6 +55341,47 @@ com.tencent.tcvectordb.rpc.proto.Olama.VectorArrayOrBuilder getDataOrBuilder(
*/
com.google.protobuf.ByteString
getDataExprBytes(int index);
+
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @return A list containing the embeddingItems.
+ */
+ java.util.List+ * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @return The count of embeddingItems.
+ */
+ int getEmbeddingItemsCount();
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param index The index of the element to return.
+ * @return The embeddingItems at the given index.
+ */
+ java.lang.String getEmbeddingItems(int index);
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param index The index of the value to return.
+ * @return The bytes of the embeddingItems at the given index.
+ */
+ com.google.protobuf.ByteString
+ getEmbeddingItemsBytes(int index);
}
/**
* Protobuf type {@code com.tencent.tcvectordb.rpc.proto.AnnData}
@@ -55288,6 +55402,8 @@ private AnnData() {
com.google.protobuf.LazyStringArrayList.emptyList();
dataExpr_ =
com.google.protobuf.LazyStringArrayList.emptyList();
+ embeddingItems_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -55578,6 +55694,59 @@ public java.lang.String getDataExpr(int index) {
return dataExpr_.getByteString(index);
}
+ public static final int EMBEDDINGITEMS_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList embeddingItems_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @return A list containing the embeddingItems.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getEmbeddingItemsList() {
+ return embeddingItems_;
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @return The count of embeddingItems.
+ */
+ public int getEmbeddingItemsCount() {
+ return embeddingItems_.size();
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param index The index of the element to return.
+ * @return The embeddingItems at the given index.
+ */
+ public java.lang.String getEmbeddingItems(int index) {
+ return embeddingItems_.get(index);
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param index The index of the value to return.
+ * @return The bytes of the embeddingItems at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getEmbeddingItemsBytes(int index) {
+ return embeddingItems_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -55610,6 +55779,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < dataExpr_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dataExpr_.getRaw(i));
}
+ for (int i = 0; i < embeddingItems_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, embeddingItems_.getRaw(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -55650,6 +55822,14 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getDataExprList().size();
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < embeddingItems_.size(); i++) {
+ dataSize += computeStringSizeNoTag(embeddingItems_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getEmbeddingItemsList().size();
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -55680,6 +55860,8 @@ public boolean equals(final java.lang.Object obj) {
!= other.getLimit()) return false;
if (!getDataExprList()
.equals(other.getDataExprList())) return false;
+ if (!getEmbeddingItemsList()
+ .equals(other.getEmbeddingItemsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -55711,6 +55893,10 @@ public int hashCode() {
hash = (37 * hash) + DATA_EXPR_FIELD_NUMBER;
hash = (53 * hash) + getDataExprList().hashCode();
}
+ if (getEmbeddingItemsCount() > 0) {
+ hash = (37 * hash) + EMBEDDINGITEMS_FIELD_NUMBER;
+ hash = (53 * hash) + getEmbeddingItemsList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -55867,6 +56053,8 @@ public Builder clear() {
limit_ = 0;
dataExpr_ =
com.google.protobuf.LazyStringArrayList.emptyList();
+ embeddingItems_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -55934,6 +56122,10 @@ private void buildPartial0(com.tencent.tcvectordb.rpc.proto.Olama.AnnData result
dataExpr_.makeImmutable();
result.dataExpr_ = dataExpr_;
}
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ embeddingItems_.makeImmutable();
+ result.embeddingItems_ = embeddingItems_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -56038,6 +56230,16 @@ public Builder mergeFrom(com.tencent.tcvectordb.rpc.proto.Olama.AnnData other) {
}
onChanged();
}
+ if (!other.embeddingItems_.isEmpty()) {
+ if (embeddingItems_.isEmpty()) {
+ embeddingItems_ = other.embeddingItems_;
+ bitField0_ |= 0x00000040;
+ } else {
+ ensureEmbeddingItemsIsMutable();
+ embeddingItems_.addAll(other.embeddingItems_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -56106,6 +56308,12 @@ public Builder mergeFrom(
dataExpr_.add(s);
break;
} // case 50
+ case 58: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureEmbeddingItemsIsMutable();
+ embeddingItems_.add(s);
+ break;
+ } // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -57021,6 +57229,153 @@ public Builder addDataExprBytes(
onChanged();
return this;
}
+
+ private com.google.protobuf.LazyStringArrayList embeddingItems_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureEmbeddingItemsIsMutable() {
+ if (!embeddingItems_.isModifiable()) {
+ embeddingItems_ = new com.google.protobuf.LazyStringArrayList(embeddingItems_);
+ }
+ bitField0_ |= 0x00000040;
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @return A list containing the embeddingItems.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getEmbeddingItemsList() {
+ embeddingItems_.makeImmutable();
+ return embeddingItems_;
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @return The count of embeddingItems.
+ */
+ public int getEmbeddingItemsCount() {
+ return embeddingItems_.size();
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param index The index of the element to return.
+ * @return The embeddingItems at the given index.
+ */
+ public java.lang.String getEmbeddingItems(int index) {
+ return embeddingItems_.get(index);
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param index The index of the value to return.
+ * @return The bytes of the embeddingItems at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getEmbeddingItemsBytes(int index) {
+ return embeddingItems_.getByteString(index);
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param index The index to set the value at.
+ * @param value The embeddingItems to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEmbeddingItems(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureEmbeddingItemsIsMutable();
+ embeddingItems_.set(index, value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param value The embeddingItems to add.
+ * @return This builder for chaining.
+ */
+ public Builder addEmbeddingItems(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureEmbeddingItemsIsMutable();
+ embeddingItems_.add(value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param values The embeddingItems to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllEmbeddingItems(
+ java.lang.Iterable+ * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearEmbeddingItems() {
+ embeddingItems_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * 使用embedding字段检索 + *+ * + *
repeated string embeddingItems = 7;
+ * @param value The bytes of the embeddingItems to add.
+ * @return This builder for chaining.
+ */
+ public Builder addEmbeddingItemsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureEmbeddingItemsIsMutable();
+ embeddingItems_.add(value);
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -57944,6 +58299,33 @@ com.tencent.tcvectordb.rpc.proto.Olama.SparseVectorArrayOrBuilder getDataOrBuild
* @return The limit.
*/
int getLimit();
+
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ * @return Whether the params field is set.
+ */
+ boolean hasParams();
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ * @return The params.
+ */
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams getParams();
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParamsOrBuilder getParamsOrBuilder();
}
/**
* Protobuf type {@code com.tencent.tcvectordb.rpc.proto.SparseData}
@@ -57982,6 +58364,7 @@ protected java.lang.Object newInstance(
com.tencent.tcvectordb.rpc.proto.Olama.SparseData.class, com.tencent.tcvectordb.rpc.proto.Olama.SparseData.Builder.class);
}
+ private int bitField0_;
public static final int FIELDNAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object fieldName_ = "";
@@ -58105,6 +58488,44 @@ public int getLimit() {
return limit_;
}
+ public static final int PARAMS_FIELD_NUMBER = 4;
+ private com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams params_;
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ * @return Whether the params field is set.
+ */
+ @java.lang.Override
+ public boolean hasParams() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ * @return The params.
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams getParams() {
+ return params_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.getDefaultInstance() : params_;
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParamsOrBuilder getParamsOrBuilder() {
+ return params_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.getDefaultInstance() : params_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -58128,6 +58549,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (limit_ != 0) {
output.writeUInt32(3, limit_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getParams());
+ }
getUnknownFields().writeTo(output);
}
@@ -58148,6 +58572,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, limit_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getParams());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -58169,6 +58597,11 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getDataList())) return false;
if (getLimit()
!= other.getLimit()) return false;
+ if (hasParams() != other.hasParams()) return false;
+ if (hasParams()) {
+ if (!getParams()
+ .equals(other.getParams())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -58188,6 +58621,10 @@ public int hashCode() {
}
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
+ if (hasParams()) {
+ hash = (37 * hash) + PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getParams().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -58307,13 +58744,20 @@ public static final class Builder extends
// Construct using com.tencent.tcvectordb.rpc.proto.Olama.SparseData.newBuilder()
private Builder() {
-
+ maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
-
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getDataFieldBuilder();
+ getParamsFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
@@ -58328,6 +58772,11 @@ public Builder clear() {
}
bitField0_ = (bitField0_ & ~0x00000002);
limit_ = 0;
+ params_ = null;
+ if (paramsBuilder_ != null) {
+ paramsBuilder_.dispose();
+ paramsBuilder_ = null;
+ }
return this;
}
@@ -58380,6 +58829,14 @@ private void buildPartial0(com.tencent.tcvectordb.rpc.proto.Olama.SparseData res
if (((from_bitField0_ & 0x00000004) != 0)) {
result.limit_ = limit_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.params_ = paramsBuilder_ == null
+ ? params_
+ : paramsBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -58460,6 +58917,9 @@ public Builder mergeFrom(com.tencent.tcvectordb.rpc.proto.Olama.SparseData other
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
+ if (other.hasParams()) {
+ mergeParams(other.getParams());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -58509,6 +58969,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 24
+ case 34: {
+ input.readMessage(
+ getParamsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -58973,6 +59440,163 @@ public Builder clearLimit() {
onChanged();
return this;
}
+
+ private com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams params_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams, com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.Builder, com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParamsOrBuilder> paramsBuilder_;
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ * @return Whether the params field is set.
+ */
+ public boolean hasParams() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ * @return The params.
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams getParams() {
+ if (paramsBuilder_ == null) {
+ return params_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.getDefaultInstance() : params_;
+ } else {
+ return paramsBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ public Builder setParams(com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams value) {
+ if (paramsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ params_ = value;
+ } else {
+ paramsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ public Builder setParams(
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.Builder builderForValue) {
+ if (paramsBuilder_ == null) {
+ params_ = builderForValue.build();
+ } else {
+ paramsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ public Builder mergeParams(com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams value) {
+ if (paramsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ params_ != null &&
+ params_ != com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.getDefaultInstance()) {
+ getParamsBuilder().mergeFrom(value);
+ } else {
+ params_ = value;
+ }
+ } else {
+ paramsBuilder_.mergeFrom(value);
+ }
+ if (params_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ public Builder clearParams() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ params_ = null;
+ if (paramsBuilder_ != null) {
+ paramsBuilder_.dispose();
+ paramsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.Builder getParamsBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getParamsFieldBuilder().getBuilder();
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParamsOrBuilder getParamsOrBuilder() {
+ if (paramsBuilder_ != null) {
+ return paramsBuilder_.getMessageOrBuilder();
+ } else {
+ return params_ == null ?
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.getDefaultInstance() : params_;
+ }
+ }
+ /**
+ * + * 搜索参数 + *+ * + *
.com.tencent.tcvectordb.rpc.proto.SparseSearchParams params = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams, com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.Builder, com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParamsOrBuilder>
+ getParamsFieldBuilder() {
+ if (paramsBuilder_ == null) {
+ paramsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams, com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.Builder, com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParamsOrBuilder>(
+ getParams(),
+ getParentForChildren(),
+ isClean());
+ params_ = null;
+ }
+ return paramsBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -77759,58 +78383,6694 @@ public interface AddIndexRequestOrBuilder extends
getCollectionBytes();
/**
- * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
- */
- int getIndexesCount();
- /**
- * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
- */
- boolean containsIndexes(
- java.lang.String key);
- /**
- * Use {@link #getIndexesMap()} instead.
- */
- @java.lang.Deprecated
- java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
- */
- java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ int getIndexesCount();
+ /**
+ * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ boolean containsIndexes(
+ java.lang.String key);
+ /**
+ * Use {@link #getIndexesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrDefault(
+ java.lang.String key,
+ /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue);
+ /**
+ * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrThrow(
+ java.lang.String key);
+
+ /**
+ * bool buildExistedData = 4;
+ * @return The buildExistedData.
+ */
+ boolean getBuildExistedData();
+ }
+ /**
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.AddIndexRequest}
+ */
+ public static final class AddIndexRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.AddIndexRequest)
+ AddIndexRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AddIndexRequest.newBuilder() to construct.
+ private AddIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AddIndexRequest() {
+ database_ = "";
+ collection_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AddIndexRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_AddIndexRequest_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 3:
+ return internalGetIndexes();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_AddIndexRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest.class, com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest.Builder.class);
+ }
+
+ public static final int DATABASE_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object database_ = "";
+ /**
+ * string database = 1;
+ * @return The database.
+ */
+ @java.lang.Override
+ public java.lang.String getDatabase() {
+ java.lang.Object ref = database_;
+ 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();
+ database_ = s;
+ return s;
+ }
+ }
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDatabaseBytes() {
+ java.lang.Object ref = database_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ database_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COLLECTION_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object collection_ = "";
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ @java.lang.Override
+ public java.lang.String getCollection() {
+ java.lang.Object ref = collection_;
+ 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();
+ collection_ = s;
+ return s;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCollectionBytes() {
+ java.lang.Object ref = collection_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ collection_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INDEXES_FIELD_NUMBER = 3;
+ private static final class IndexesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ @java.lang.Override
+ public boolean containsIndexes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetIndexes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getIndexesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ @java.lang.Override
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ @java.lang.Override
+ public /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrDefault(
+ java.lang.String key,
+ /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapbool buildExistedData = 4;
+ * @return The buildExistedData.
+ */
+ @java.lang.Override
+ public boolean getBuildExistedData() {
+ return buildExistedData_;
+ }
+
+ 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(database_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collection_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetIndexes(),
+ IndexesDefaultEntryHolder.defaultEntry,
+ 3);
+ if (buildExistedData_ != false) {
+ output.writeBool(4, buildExistedData_);
+ }
+ 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(database_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collection_);
+ }
+ for (java.util.Map.Entrystring database = 1;
+ * @return The database.
+ */
+ public java.lang.String getDatabase() {
+ java.lang.Object ref = database_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ database_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ public com.google.protobuf.ByteString
+ getDatabaseBytes() {
+ java.lang.Object ref = database_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ database_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string database = 1;
+ * @param value The database to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabase(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ database_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string database = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearDatabase() {
+ database_ = getDefaultInstance().getDatabase();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string database = 1;
+ * @param value The bytes for database to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ database_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object collection_ = "";
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ public java.lang.String getCollection() {
+ java.lang.Object ref = collection_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ collection_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ public com.google.protobuf.ByteString
+ getCollectionBytes() {
+ java.lang.Object ref = collection_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ collection_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @param value The collection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollection(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ collection_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string collection = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCollection() {
+ collection_ = getDefaultInstance().getCollection();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string collection = 2;
+ * @param value The bytes for collection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollectionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ collection_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private static final class IndexesConverter implements com.google.protobuf.MapFieldBuilder.Convertermap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ @java.lang.Override
+ public boolean containsIndexes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetIndexes().ensureBuilderMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getIndexesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ @java.lang.Override
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ @java.lang.Override
+ public /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrDefault(
+ java.lang.String key,
+ /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ public Builder removeIndexes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableIndexes().ensureBuilderMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ public Builder putIndexes(
+ java.lang.String key,
+ com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableIndexes().ensureBuilderMap()
+ .put(key, value);
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ public Builder putAllIndexes(
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn.Builder putIndexesBuilderIfAbsent(
+ java.lang.String key) {
+ java.util.Mapbool buildExistedData = 4;
+ * @return The buildExistedData.
+ */
+ @java.lang.Override
+ public boolean getBuildExistedData() {
+ return buildExistedData_;
+ }
+ /**
+ * bool buildExistedData = 4;
+ * @param value The buildExistedData to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBuildExistedData(boolean value) {
+
+ buildExistedData_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool buildExistedData = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearBuildExistedData() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ buildExistedData_ = false;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.tencent.tcvectordb.rpc.proto.AddIndexRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.AddIndexRequest)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest();
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint32 code = 1;
+ * @return The code.
+ */
+ int getCode();
+
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ java.lang.String getMsg();
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ com.google.protobuf.ByteString
+ getMsgBytes();
+
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ java.lang.String getRedirect();
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ com.google.protobuf.ByteString
+ getRedirectBytes();
+ }
+ /**
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.AddIndexResponse}
+ */
+ public static final class AddIndexResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.AddIndexResponse)
+ AddIndexResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AddIndexResponse.newBuilder() to construct.
+ private AddIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AddIndexResponse() {
+ msg_ = "";
+ redirect_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AddIndexResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_AddIndexResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_AddIndexResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse.class, com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse.Builder.class);
+ }
+
+ public static final int CODE_FIELD_NUMBER = 1;
+ private int code_ = 0;
+ /**
+ * int32 code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public int getCode() {
+ return code_;
+ }
+
+ public static final int MSG_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object msg_ = "";
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ @java.lang.Override
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ 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();
+ msg_ = s;
+ return s;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REDIRECT_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object redirect_ = "";
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ @java.lang.Override
+ public java.lang.String getRedirect() {
+ java.lang.Object ref = redirect_;
+ 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();
+ redirect_ = s;
+ return s;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRedirectBytes() {
+ java.lang.Object ref = redirect_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ redirect_ = 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 (code_ != 0) {
+ output.writeInt32(1, code_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirect_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, redirect_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (code_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, code_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirect_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, redirect_);
+ }
+ 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 com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse)) {
+ return super.equals(obj);
+ }
+ com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse other = (com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse) obj;
+
+ if (getCode()
+ != other.getCode()) return false;
+ if (!getMsg()
+ .equals(other.getMsg())) return false;
+ if (!getRedirect()
+ .equals(other.getRedirect())) 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) + CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getCode();
+ hash = (37 * hash) + MSG_FIELD_NUMBER;
+ hash = (53 * hash) + getMsg().hashCode();
+ hash = (37 * hash) + REDIRECT_FIELD_NUMBER;
+ hash = (53 * hash) + getRedirect().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse 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 com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse 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 com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse 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(com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse 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 com.tencent.tcvectordb.rpc.proto.AddIndexResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint32 code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public int getCode() {
+ return code_;
+ }
+ /**
+ * int32 code = 1;
+ * @param value The code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCode(int value) {
+
+ code_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 code = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCode() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ code_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object msg_ = "";
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ msg_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @param value The msg to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsg(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ msg_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string msg = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMsg() {
+ msg_ = getDefaultInstance().getMsg();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string msg = 2;
+ * @param value The bytes for msg to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsgBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ msg_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object redirect_ = "";
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ public java.lang.String getRedirect() {
+ java.lang.Object ref = redirect_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ redirect_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ public com.google.protobuf.ByteString
+ getRedirectBytes() {
+ java.lang.Object ref = redirect_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ redirect_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @param value The redirect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedirect(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ redirect_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string redirect = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearRedirect() {
+ redirect_ = getDefaultInstance().getRedirect();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string redirect = 3;
+ * @param value The bytes for redirect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedirectBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ redirect_ = value;
+ bitField0_ |= 0x00000004;
+ 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:com.tencent.tcvectordb.rpc.proto.AddIndexResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.AddIndexResponse)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse();
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring database = 1;
+ * @return The database.
+ */
+ java.lang.String getDatabase();
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ com.google.protobuf.ByteString
+ getDatabaseBytes();
+
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ java.lang.String getCollection();
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ com.google.protobuf.ByteString
+ getCollectionBytes();
+
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return Whether the query field is set.
+ */
+ boolean hasQuery();
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return The query.
+ */
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond getQuery();
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder getQueryOrBuilder();
+
+ /**
+ * string readConsistency = 4;
+ * @return The readConsistency.
+ */
+ java.lang.String getReadConsistency();
+ /**
+ * string readConsistency = 4;
+ * @return The bytes for readConsistency.
+ */
+ com.google.protobuf.ByteString
+ getReadConsistencyBytes();
+ }
+ /**
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.ExplainRequest}
+ */
+ public static final class ExplainRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.ExplainRequest)
+ ExplainRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExplainRequest.newBuilder() to construct.
+ private ExplainRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ExplainRequest() {
+ database_ = "";
+ collection_ = "";
+ readConsistency_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ExplainRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_ExplainRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_ExplainRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest.class, com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int DATABASE_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object database_ = "";
+ /**
+ * string database = 1;
+ * @return The database.
+ */
+ @java.lang.Override
+ public java.lang.String getDatabase() {
+ java.lang.Object ref = database_;
+ 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();
+ database_ = s;
+ return s;
+ }
+ }
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDatabaseBytes() {
+ java.lang.Object ref = database_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ database_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COLLECTION_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object collection_ = "";
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ @java.lang.Override
+ public java.lang.String getCollection() {
+ java.lang.Object ref = collection_;
+ 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();
+ collection_ = s;
+ return s;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCollectionBytes() {
+ java.lang.Object ref = collection_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ collection_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUERY_FIELD_NUMBER = 3;
+ private com.tencent.tcvectordb.rpc.proto.Olama.QueryCond query_;
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return Whether the query field is set.
+ */
+ @java.lang.Override
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return The query.
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.QueryCond getQuery() {
+ return query_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.getDefaultInstance() : query_;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder getQueryOrBuilder() {
+ return query_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.getDefaultInstance() : query_;
+ }
+
+ public static final int READCONSISTENCY_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object readConsistency_ = "";
+ /**
+ * string readConsistency = 4;
+ * @return The readConsistency.
+ */
+ @java.lang.Override
+ public java.lang.String getReadConsistency() {
+ java.lang.Object ref = readConsistency_;
+ 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();
+ readConsistency_ = s;
+ return s;
+ }
+ }
+ /**
+ * string readConsistency = 4;
+ * @return The bytes for readConsistency.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getReadConsistencyBytes() {
+ java.lang.Object ref = readConsistency_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ readConsistency_ = 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(database_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collection_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getQuery());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readConsistency_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, readConsistency_);
+ }
+ 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(database_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collection_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getQuery());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readConsistency_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, readConsistency_);
+ }
+ 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 com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest)) {
+ return super.equals(obj);
+ }
+ com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest other = (com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest) obj;
+
+ if (!getDatabase()
+ .equals(other.getDatabase())) return false;
+ if (!getCollection()
+ .equals(other.getCollection())) return false;
+ if (hasQuery() != other.hasQuery()) return false;
+ if (hasQuery()) {
+ if (!getQuery()
+ .equals(other.getQuery())) return false;
+ }
+ if (!getReadConsistency()
+ .equals(other.getReadConsistency())) 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) + DATABASE_FIELD_NUMBER;
+ hash = (53 * hash) + getDatabase().hashCode();
+ hash = (37 * hash) + COLLECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getCollection().hashCode();
+ if (hasQuery()) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ }
+ hash = (37 * hash) + READCONSISTENCY_FIELD_NUMBER;
+ hash = (53 * hash) + getReadConsistency().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest 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 com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest 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 com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest 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(com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest 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 com.tencent.tcvectordb.rpc.proto.ExplainRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring database = 1;
+ * @return The database.
+ */
+ public java.lang.String getDatabase() {
+ java.lang.Object ref = database_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ database_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ public com.google.protobuf.ByteString
+ getDatabaseBytes() {
+ java.lang.Object ref = database_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ database_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string database = 1;
+ * @param value The database to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabase(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ database_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string database = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearDatabase() {
+ database_ = getDefaultInstance().getDatabase();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string database = 1;
+ * @param value The bytes for database to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ database_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object collection_ = "";
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ public java.lang.String getCollection() {
+ java.lang.Object ref = collection_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ collection_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ public com.google.protobuf.ByteString
+ getCollectionBytes() {
+ java.lang.Object ref = collection_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ collection_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @param value The collection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollection(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ collection_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string collection = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCollection() {
+ collection_ = getDefaultInstance().getCollection();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string collection = 2;
+ * @param value The bytes for collection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollectionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ collection_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.tencent.tcvectordb.rpc.proto.Olama.QueryCond query_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond, com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder, com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder> queryBuilder_;
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return Whether the query field is set.
+ */
+ public boolean hasQuery() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return The query.
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.QueryCond getQuery() {
+ if (queryBuilder_ == null) {
+ return query_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.getDefaultInstance() : query_;
+ } else {
+ return queryBuilder_.getMessage();
+ }
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ public Builder setQuery(com.tencent.tcvectordb.rpc.proto.Olama.QueryCond value) {
+ if (queryBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ query_ = value;
+ } else {
+ queryBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ public Builder setQuery(
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder builderForValue) {
+ if (queryBuilder_ == null) {
+ query_ = builderForValue.build();
+ } else {
+ queryBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ public Builder mergeQuery(com.tencent.tcvectordb.rpc.proto.Olama.QueryCond value) {
+ if (queryBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ query_ != null &&
+ query_ != com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.getDefaultInstance()) {
+ getQueryBuilder().mergeFrom(value);
+ } else {
+ query_ = value;
+ }
+ } else {
+ queryBuilder_.mergeFrom(value);
+ }
+ if (query_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ public Builder clearQuery() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ query_ = null;
+ if (queryBuilder_ != null) {
+ queryBuilder_.dispose();
+ queryBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder getQueryBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getQueryFieldBuilder().getBuilder();
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder getQueryOrBuilder() {
+ if (queryBuilder_ != null) {
+ return queryBuilder_.getMessageOrBuilder();
+ } else {
+ return query_ == null ?
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.getDefaultInstance() : query_;
+ }
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond, com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder, com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder>
+ getQueryFieldBuilder() {
+ if (queryBuilder_ == null) {
+ queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond, com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder, com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder>(
+ getQuery(),
+ getParentForChildren(),
+ isClean());
+ query_ = null;
+ }
+ return queryBuilder_;
+ }
+
+ private java.lang.Object readConsistency_ = "";
+ /**
+ * string readConsistency = 4;
+ * @return The readConsistency.
+ */
+ public java.lang.String getReadConsistency() {
+ java.lang.Object ref = readConsistency_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ readConsistency_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string readConsistency = 4;
+ * @return The bytes for readConsistency.
+ */
+ public com.google.protobuf.ByteString
+ getReadConsistencyBytes() {
+ java.lang.Object ref = readConsistency_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ readConsistency_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string readConsistency = 4;
+ * @param value The readConsistency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadConsistency(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ readConsistency_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string readConsistency = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearReadConsistency() {
+ readConsistency_ = getDefaultInstance().getReadConsistency();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string readConsistency = 4;
+ * @param value The bytes for readConsistency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadConsistencyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ readConsistency_ = value;
+ bitField0_ |= 0x00000008;
+ 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:com.tencent.tcvectordb.rpc.proto.ExplainRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.ExplainRequest)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest();
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint32 code = 1;
+ * @return The code.
+ */
+ int getCode();
+
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ java.lang.String getMsg();
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ com.google.protobuf.ByteString
+ getMsgBytes();
+
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ java.lang.String getRedirect();
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ com.google.protobuf.ByteString
+ getRedirectBytes();
+
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @return A list containing the affectedTable.
+ */
+ java.util.Listrepeated uint64 affectedTable = 4;
+ * @return The count of affectedTable.
+ */
+ int getAffectedTableCount();
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @param index The index of the element to return.
+ * @return The affectedTable at the given index.
+ */
+ long getAffectedTable(int index);
+
+ /**
+ * uint64 affectedCount = 5;
+ * @return The affectedCount.
+ */
+ long getAffectedCount();
+ }
+ /**
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.ExplainResponse}
+ */
+ public static final class ExplainResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.ExplainResponse)
+ ExplainResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExplainResponse.newBuilder() to construct.
+ private ExplainResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ExplainResponse() {
+ msg_ = "";
+ redirect_ = "";
+ affectedTable_ = emptyLongList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ExplainResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_ExplainResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_ExplainResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse.class, com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse.Builder.class);
+ }
+
+ public static final int CODE_FIELD_NUMBER = 1;
+ private int code_ = 0;
+ /**
+ * int32 code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public int getCode() {
+ return code_;
+ }
+
+ public static final int MSG_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object msg_ = "";
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ @java.lang.Override
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ 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();
+ msg_ = s;
+ return s;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REDIRECT_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object redirect_ = "";
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ @java.lang.Override
+ public java.lang.String getRedirect() {
+ java.lang.Object ref = redirect_;
+ 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();
+ redirect_ = s;
+ return s;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRedirectBytes() {
+ java.lang.Object ref = redirect_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ redirect_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AFFECTEDTABLE_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.LongList affectedTable_ =
+ emptyLongList();
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @return A list containing the affectedTable.
+ */
+ @java.lang.Override
+ public java.util.Listrepeated uint64 affectedTable = 4;
+ * @return The count of affectedTable.
+ */
+ public int getAffectedTableCount() {
+ return affectedTable_.size();
+ }
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @param index The index of the element to return.
+ * @return The affectedTable at the given index.
+ */
+ public long getAffectedTable(int index) {
+ return affectedTable_.getLong(index);
+ }
+ private int affectedTableMemoizedSerializedSize = -1;
+
+ public static final int AFFECTEDCOUNT_FIELD_NUMBER = 5;
+ private long affectedCount_ = 0L;
+ /**
+ * uint64 affectedCount = 5;
+ * @return The affectedCount.
+ */
+ @java.lang.Override
+ public long getAffectedCount() {
+ return affectedCount_;
+ }
+
+ 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 {
+ getSerializedSize();
+ if (code_ != 0) {
+ output.writeInt32(1, code_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirect_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, redirect_);
+ }
+ if (getAffectedTableList().size() > 0) {
+ output.writeUInt32NoTag(34);
+ output.writeUInt32NoTag(affectedTableMemoizedSerializedSize);
+ }
+ for (int i = 0; i < affectedTable_.size(); i++) {
+ output.writeUInt64NoTag(affectedTable_.getLong(i));
+ }
+ if (affectedCount_ != 0L) {
+ output.writeUInt64(5, affectedCount_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (code_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, code_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirect_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, redirect_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < affectedTable_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt64SizeNoTag(affectedTable_.getLong(i));
+ }
+ size += dataSize;
+ if (!getAffectedTableList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ affectedTableMemoizedSerializedSize = dataSize;
+ }
+ if (affectedCount_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(5, affectedCount_);
+ }
+ 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 com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse)) {
+ return super.equals(obj);
+ }
+ com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse other = (com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse) obj;
+
+ if (getCode()
+ != other.getCode()) return false;
+ if (!getMsg()
+ .equals(other.getMsg())) return false;
+ if (!getRedirect()
+ .equals(other.getRedirect())) return false;
+ if (!getAffectedTableList()
+ .equals(other.getAffectedTableList())) return false;
+ if (getAffectedCount()
+ != other.getAffectedCount()) 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) + CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getCode();
+ hash = (37 * hash) + MSG_FIELD_NUMBER;
+ hash = (53 * hash) + getMsg().hashCode();
+ hash = (37 * hash) + REDIRECT_FIELD_NUMBER;
+ hash = (53 * hash) + getRedirect().hashCode();
+ if (getAffectedTableCount() > 0) {
+ hash = (37 * hash) + AFFECTEDTABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getAffectedTableList().hashCode();
+ }
+ hash = (37 * hash) + AFFECTEDCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getAffectedCount());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse 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 com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse 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 com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse 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(com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse 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 com.tencent.tcvectordb.rpc.proto.ExplainResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint32 code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public int getCode() {
+ return code_;
+ }
+ /**
+ * int32 code = 1;
+ * @param value The code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCode(int value) {
+
+ code_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 code = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCode() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ code_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object msg_ = "";
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ msg_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @param value The msg to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsg(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ msg_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string msg = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMsg() {
+ msg_ = getDefaultInstance().getMsg();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string msg = 2;
+ * @param value The bytes for msg to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsgBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ msg_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object redirect_ = "";
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ public java.lang.String getRedirect() {
+ java.lang.Object ref = redirect_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ redirect_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ public com.google.protobuf.ByteString
+ getRedirectBytes() {
+ java.lang.Object ref = redirect_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ redirect_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @param value The redirect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedirect(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ redirect_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string redirect = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearRedirect() {
+ redirect_ = getDefaultInstance().getRedirect();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string redirect = 3;
+ * @param value The bytes for redirect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedirectBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ redirect_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.LongList affectedTable_ = emptyLongList();
+ private void ensureAffectedTableIsMutable() {
+ if (!affectedTable_.isModifiable()) {
+ affectedTable_ = makeMutableCopy(affectedTable_);
+ }
+ bitField0_ |= 0x00000008;
+ }
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @return A list containing the affectedTable.
+ */
+ public java.util.Listrepeated uint64 affectedTable = 4;
+ * @return The count of affectedTable.
+ */
+ public int getAffectedTableCount() {
+ return affectedTable_.size();
+ }
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @param index The index of the element to return.
+ * @return The affectedTable at the given index.
+ */
+ public long getAffectedTable(int index) {
+ return affectedTable_.getLong(index);
+ }
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @param index The index to set the value at.
+ * @param value The affectedTable to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAffectedTable(
+ int index, long value) {
+
+ ensureAffectedTableIsMutable();
+ affectedTable_.setLong(index, value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @param value The affectedTable to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAffectedTable(long value) {
+
+ ensureAffectedTableIsMutable();
+ affectedTable_.addLong(value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @param values The affectedTable to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllAffectedTable(
+ java.lang.Iterable extends java.lang.Long> values) {
+ ensureAffectedTableIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, affectedTable_);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint64 affectedTable = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearAffectedTable() {
+ affectedTable_ = emptyLongList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ private long affectedCount_ ;
+ /**
+ * uint64 affectedCount = 5;
+ * @return The affectedCount.
+ */
+ @java.lang.Override
+ public long getAffectedCount() {
+ return affectedCount_;
+ }
+ /**
+ * uint64 affectedCount = 5;
+ * @param value The affectedCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAffectedCount(long value) {
+
+ affectedCount_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 affectedCount = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearAffectedCount() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ affectedCount_ = 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:com.tencent.tcvectordb.rpc.proto.ExplainResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.ExplainResponse)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse();
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * 搜索到指定数量的结果就终止 + *+ * + *
uint32 terminateAfter = 1;
+ * @return The terminateAfter.
+ */
+ int getTerminateAfter();
+
+ /**
+ * + * 全文检索时过滤掉高频词 + *+ * + *
double cutoffFrequency = 2;
+ * @return The cutoffFrequency.
+ */
+ double getCutoffFrequency();
+ }
+ /**
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.SparseSearchParams}
+ */
+ public static final class SparseSearchParams extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.SparseSearchParams)
+ SparseSearchParamsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SparseSearchParams.newBuilder() to construct.
+ private SparseSearchParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private SparseSearchParams() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SparseSearchParams();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_SparseSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_SparseSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.class, com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams.Builder.class);
+ }
+
+ public static final int TERMINATEAFTER_FIELD_NUMBER = 1;
+ private int terminateAfter_ = 0;
+ /**
+ * + * 搜索到指定数量的结果就终止 + *+ * + *
uint32 terminateAfter = 1;
+ * @return The terminateAfter.
+ */
+ @java.lang.Override
+ public int getTerminateAfter() {
+ return terminateAfter_;
+ }
+
+ public static final int CUTOFFFREQUENCY_FIELD_NUMBER = 2;
+ private double cutoffFrequency_ = 0D;
+ /**
+ * + * 全文检索时过滤掉高频词 + *+ * + *
double cutoffFrequency = 2;
+ * @return The cutoffFrequency.
+ */
+ @java.lang.Override
+ public double getCutoffFrequency() {
+ return cutoffFrequency_;
+ }
+
+ 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 (terminateAfter_ != 0) {
+ output.writeUInt32(1, terminateAfter_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(cutoffFrequency_) != 0) {
+ output.writeDouble(2, cutoffFrequency_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (terminateAfter_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, terminateAfter_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(cutoffFrequency_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, cutoffFrequency_);
+ }
+ 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 com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams)) {
+ return super.equals(obj);
+ }
+ com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams other = (com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams) obj;
+
+ if (getTerminateAfter()
+ != other.getTerminateAfter()) return false;
+ if (java.lang.Double.doubleToLongBits(getCutoffFrequency())
+ != java.lang.Double.doubleToLongBits(
+ other.getCutoffFrequency())) 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) + TERMINATEAFTER_FIELD_NUMBER;
+ hash = (53 * hash) + getTerminateAfter();
+ hash = (37 * hash) + CUTOFFFREQUENCY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getCutoffFrequency()));
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams 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 com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams 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 com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams 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(com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams 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 com.tencent.tcvectordb.rpc.proto.SparseSearchParams}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ * 搜索到指定数量的结果就终止 + *+ * + *
uint32 terminateAfter = 1;
+ * @return The terminateAfter.
+ */
+ @java.lang.Override
+ public int getTerminateAfter() {
+ return terminateAfter_;
+ }
+ /**
+ * + * 搜索到指定数量的结果就终止 + *+ * + *
uint32 terminateAfter = 1;
+ * @param value The terminateAfter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTerminateAfter(int value) {
+
+ terminateAfter_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * 搜索到指定数量的结果就终止 + *+ * + *
uint32 terminateAfter = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearTerminateAfter() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ terminateAfter_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private double cutoffFrequency_ ;
+ /**
+ * + * 全文检索时过滤掉高频词 + *+ * + *
double cutoffFrequency = 2;
+ * @return The cutoffFrequency.
+ */
+ @java.lang.Override
+ public double getCutoffFrequency() {
+ return cutoffFrequency_;
+ }
+ /**
+ * + * 全文检索时过滤掉高频词 + *+ * + *
double cutoffFrequency = 2;
+ * @param value The cutoffFrequency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCutoffFrequency(double value) {
+
+ cutoffFrequency_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * 全文检索时过滤掉高频词 + *+ * + *
double cutoffFrequency = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCutoffFrequency() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ cutoffFrequency_ = 0D;
+ 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:com.tencent.tcvectordb.rpc.proto.SparseSearchParams)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.SparseSearchParams)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams();
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.SparseSearchParams getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring database = 1;
+ * @return The database.
+ */
+ java.lang.String getDatabase();
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ com.google.protobuf.ByteString
+ getDatabaseBytes();
+
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ java.lang.String getCollection();
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ com.google.protobuf.ByteString
+ getCollectionBytes();
+
+ /**
+ * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ int getVectorIndexesCount();
+ /**
+ * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ boolean containsVectorIndexes(
+ java.lang.String key);
+ /**
+ * Use {@link #getVectorIndexesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getVectorIndexesOrDefault(
+ java.lang.String key,
+ /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue);
+ /**
+ * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getVectorIndexesOrThrow(
+ java.lang.String key);
+
+ /**
+ * bool rebuild = 4;
+ * @return The rebuild.
+ */
+ boolean getRebuild();
+
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ * @return Whether the rebuildRules field is set.
+ */
+ boolean hasRebuildRules();
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ * @return The rebuildRules.
+ */
+ com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest getRebuildRules();
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequestOrBuilder getRebuildRulesOrBuilder();
+ }
+ /**
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexRequest}
+ */
+ public static final class ModifyVectorIndexRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexRequest)
+ ModifyVectorIndexRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ModifyVectorIndexRequest.newBuilder() to construct.
+ private ModifyVectorIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ModifyVectorIndexRequest() {
+ database_ = "";
+ collection_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ModifyVectorIndexRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_ModifyVectorIndexRequest_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 3:
+ return internalGetVectorIndexes();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_ModifyVectorIndexRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest.class, com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int DATABASE_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object database_ = "";
+ /**
+ * string database = 1;
+ * @return The database.
+ */
+ @java.lang.Override
+ public java.lang.String getDatabase() {
+ java.lang.Object ref = database_;
+ 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();
+ database_ = s;
+ return s;
+ }
+ }
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDatabaseBytes() {
+ java.lang.Object ref = database_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ database_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COLLECTION_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object collection_ = "";
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ @java.lang.Override
+ public java.lang.String getCollection() {
+ java.lang.Object ref = collection_;
+ 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();
+ collection_ = s;
+ return s;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCollectionBytes() {
+ java.lang.Object ref = collection_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ collection_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VECTORINDEXES_FIELD_NUMBER = 3;
+ private static final class VectorIndexesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ @java.lang.Override
+ public boolean containsVectorIndexes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetVectorIndexes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getVectorIndexesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ @java.lang.Override
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ @java.lang.Override
+ public /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getVectorIndexesOrDefault(
+ java.lang.String key,
+ /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getVectorIndexesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapbool rebuild = 4;
+ * @return The rebuild.
+ */
+ @java.lang.Override
+ public boolean getRebuild() {
+ return rebuild_;
+ }
+
+ public static final int REBUILDRULES_FIELD_NUMBER = 5;
+ private com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest rebuildRules_;
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ * @return Whether the rebuildRules field is set.
+ */
+ @java.lang.Override
+ public boolean hasRebuildRules() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ * @return The rebuildRules.
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest getRebuildRules() {
+ return rebuildRules_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.getDefaultInstance() : rebuildRules_;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequestOrBuilder getRebuildRulesOrBuilder() {
+ return rebuildRules_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.getDefaultInstance() : rebuildRules_;
+ }
+
+ 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(database_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collection_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetVectorIndexes(),
+ VectorIndexesDefaultEntryHolder.defaultEntry,
+ 3);
+ if (rebuild_ != false) {
+ output.writeBool(4, rebuild_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(5, getRebuildRules());
+ }
+ 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(database_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collection_);
+ }
+ for (java.util.Map.Entrystring database = 1;
+ * @return The database.
+ */
+ public java.lang.String getDatabase() {
+ java.lang.Object ref = database_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ database_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ public com.google.protobuf.ByteString
+ getDatabaseBytes() {
+ java.lang.Object ref = database_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ database_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string database = 1;
+ * @param value The database to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabase(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ database_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string database = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearDatabase() {
+ database_ = getDefaultInstance().getDatabase();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string database = 1;
+ * @param value The bytes for database to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ database_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object collection_ = "";
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ public java.lang.String getCollection() {
+ java.lang.Object ref = collection_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ collection_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ public com.google.protobuf.ByteString
+ getCollectionBytes() {
+ java.lang.Object ref = collection_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ collection_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string collection = 2;
+ * @param value The collection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollection(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ collection_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string collection = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCollection() {
+ collection_ = getDefaultInstance().getCollection();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string collection = 2;
+ * @param value The bytes for collection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCollectionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ collection_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private static final class VectorIndexesConverter implements com.google.protobuf.MapFieldBuilder.Convertermap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ @java.lang.Override
+ public boolean containsVectorIndexes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetVectorIndexes().ensureBuilderMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getVectorIndexesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ @java.lang.Override
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ @java.lang.Override
+ public /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getVectorIndexesOrDefault(
+ java.lang.String key,
+ /* nullable */
+com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ @java.lang.Override
+ public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getVectorIndexesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ public Builder removeVectorIndexes(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableVectorIndexes().ensureBuilderMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ public Builder putVectorIndexes(
+ java.lang.String key,
+ com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableVectorIndexes().ensureBuilderMap()
+ .put(key, value);
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ public Builder putAllVectorIndexes(
+ java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> vectorIndexes = 3;
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn.Builder putVectorIndexesBuilderIfAbsent(
+ java.lang.String key) {
+ java.util.Mapbool rebuild = 4;
+ * @return The rebuild.
+ */
+ @java.lang.Override
+ public boolean getRebuild() {
+ return rebuild_;
+ }
+ /**
+ * bool rebuild = 4;
+ * @param value The rebuild to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRebuild(boolean value) {
+
+ rebuild_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool rebuild = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearRebuild() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ rebuild_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest rebuildRules_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest, com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.Builder, com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequestOrBuilder> rebuildRulesBuilder_;
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ * @return Whether the rebuildRules field is set.
+ */
+ public boolean hasRebuildRules() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ * @return The rebuildRules.
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest getRebuildRules() {
+ if (rebuildRulesBuilder_ == null) {
+ return rebuildRules_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.getDefaultInstance() : rebuildRules_;
+ } else {
+ return rebuildRulesBuilder_.getMessage();
+ }
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ public Builder setRebuildRules(com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest value) {
+ if (rebuildRulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rebuildRules_ = value;
+ } else {
+ rebuildRulesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ public Builder setRebuildRules(
+ com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.Builder builderForValue) {
+ if (rebuildRulesBuilder_ == null) {
+ rebuildRules_ = builderForValue.build();
+ } else {
+ rebuildRulesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ public Builder mergeRebuildRules(com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest value) {
+ if (rebuildRulesBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ rebuildRules_ != null &&
+ rebuildRules_ != com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.getDefaultInstance()) {
+ getRebuildRulesBuilder().mergeFrom(value);
+ } else {
+ rebuildRules_ = value;
+ }
+ } else {
+ rebuildRulesBuilder_.mergeFrom(value);
+ }
+ if (rebuildRules_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ public Builder clearRebuildRules() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ rebuildRules_ = null;
+ if (rebuildRulesBuilder_ != null) {
+ rebuildRulesBuilder_.dispose();
+ rebuildRulesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.Builder getRebuildRulesBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getRebuildRulesFieldBuilder().getBuilder();
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ public com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequestOrBuilder getRebuildRulesOrBuilder() {
+ if (rebuildRulesBuilder_ != null) {
+ return rebuildRulesBuilder_.getMessageOrBuilder();
+ } else {
+ return rebuildRules_ == null ?
+ com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.getDefaultInstance() : rebuildRules_;
+ }
+ }
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.RebuildIndexRequest rebuildRules = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest, com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.Builder, com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequestOrBuilder>
+ getRebuildRulesFieldBuilder() {
+ if (rebuildRulesBuilder_ == null) {
+ rebuildRulesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest, com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequest.Builder, com.tencent.tcvectordb.rpc.proto.Olama.RebuildIndexRequestOrBuilder>(
+ getRebuildRules(),
+ getParentForChildren(),
+ isClean());
+ rebuildRules_ = null;
+ }
+ return rebuildRulesBuilder_;
+ }
+ @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:com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexRequest)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest();
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint32 code = 1;
+ * @return The code.
+ */
+ int getCode();
+
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ java.lang.String getMsg();
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ com.google.protobuf.ByteString
+ getMsgBytes();
+
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ java.lang.String getRedirect();
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ com.google.protobuf.ByteString
+ getRedirectBytes();
+ }
+ /**
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexResponse}
+ */
+ public static final class ModifyVectorIndexResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexResponse)
+ ModifyVectorIndexResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ModifyVectorIndexResponse.newBuilder() to construct.
+ private ModifyVectorIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ModifyVectorIndexResponse() {
+ msg_ = "";
+ redirect_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ModifyVectorIndexResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_ModifyVectorIndexResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_ModifyVectorIndexResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse.class, com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse.Builder.class);
+ }
+
+ public static final int CODE_FIELD_NUMBER = 1;
+ private int code_ = 0;
+ /**
+ * int32 code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public int getCode() {
+ return code_;
+ }
+
+ public static final int MSG_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object msg_ = "";
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ @java.lang.Override
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ 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();
+ msg_ = s;
+ return s;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REDIRECT_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object redirect_ = "";
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ @java.lang.Override
+ public java.lang.String getRedirect() {
+ java.lang.Object ref = redirect_;
+ 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();
+ redirect_ = s;
+ return s;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRedirectBytes() {
+ java.lang.Object ref = redirect_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ redirect_ = 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 (code_ != 0) {
+ output.writeInt32(1, code_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirect_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, redirect_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (code_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, code_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirect_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, redirect_);
+ }
+ 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 com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse)) {
+ return super.equals(obj);
+ }
+ com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse other = (com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse) obj;
+
+ if (getCode()
+ != other.getCode()) return false;
+ if (!getMsg()
+ .equals(other.getMsg())) return false;
+ if (!getRedirect()
+ .equals(other.getRedirect())) 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) + CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getCode();
+ hash = (37 * hash) + MSG_FIELD_NUMBER;
+ hash = (53 * hash) + getMsg().hashCode();
+ hash = (37 * hash) + REDIRECT_FIELD_NUMBER;
+ hash = (53 * hash) + getRedirect().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse 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 com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse 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 com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse 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(com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse 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 com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint32 code = 1;
+ * @return The code.
+ */
+ @java.lang.Override
+ public int getCode() {
+ return code_;
+ }
+ /**
+ * int32 code = 1;
+ * @param value The code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCode(int value) {
+
+ code_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 code = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCode() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ code_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object msg_ = "";
+ /**
+ * string msg = 2;
+ * @return The msg.
+ */
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ msg_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @return The bytes for msg.
+ */
+ public com.google.protobuf.ByteString
+ getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string msg = 2;
+ * @param value The msg to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsg(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ msg_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string msg = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMsg() {
+ msg_ = getDefaultInstance().getMsg();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string msg = 2;
+ * @param value The bytes for msg to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMsgBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ msg_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object redirect_ = "";
+ /**
+ * string redirect = 3;
+ * @return The redirect.
+ */
+ public java.lang.String getRedirect() {
+ java.lang.Object ref = redirect_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ redirect_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @return The bytes for redirect.
+ */
+ public com.google.protobuf.ByteString
+ getRedirectBytes() {
+ java.lang.Object ref = redirect_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ redirect_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string redirect = 3;
+ * @param value The redirect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedirect(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ redirect_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string redirect = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearRedirect() {
+ redirect_ = getDefaultInstance().getRedirect();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string redirect = 3;
+ * @param value The bytes for redirect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedirectBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ redirect_ = value;
+ bitField0_ |= 0x00000004;
+ 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:com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.ModifyVectorIndexResponse)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse();
+ }
+
+ public static com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring database = 1;
+ * @return The database.
+ */
+ java.lang.String getDatabase();
+ /**
+ * string database = 1;
+ * @return The bytes for database.
+ */
+ com.google.protobuf.ByteString
+ getDatabaseBytes();
+
+ /**
+ * string collection = 2;
+ * @return The collection.
+ */
+ java.lang.String getCollection();
+ /**
+ * string collection = 2;
+ * @return The bytes for collection.
+ */
+ com.google.protobuf.ByteString
+ getCollectionBytes();
+
+ /**
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return Whether the query field is set.
*/
- /* nullable */
-com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrDefault(
- java.lang.String key,
- /* nullable */
-com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue);
+ boolean hasQuery();
/**
- * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return The query.
*/
- com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrThrow(
- java.lang.String key);
-
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond getQuery();
/**
- * bool buildExistedData = 4;
- * @return The buildExistedData.
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
- boolean getBuildExistedData();
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder getQueryOrBuilder();
}
/**
- * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.AddIndexRequest}
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.CountRequest}
*/
- public static final class AddIndexRequest extends
+ public static final class CountRequest extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.AddIndexRequest)
- AddIndexRequestOrBuilder {
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.CountRequest)
+ CountRequestOrBuilder {
private static final long serialVersionUID = 0L;
- // Use AddIndexRequest.newBuilder() to construct.
- private AddIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use CountRequest.newBuilder() to construct.
+ private CountRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private AddIndexRequest() {
+ private CountRequest() {
database_ = "";
collection_ = "";
}
@@ -77819,34 +85079,23 @@ private AddIndexRequest() {
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new AddIndexRequest();
+ return new CountRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_AddIndexRequest_descriptor;
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_CountRequest_descriptor;
}
- @SuppressWarnings({"rawtypes"})
- @java.lang.Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
- int number) {
- switch (number) {
- case 3:
- return internalGetIndexes();
- default:
- throw new RuntimeException(
- "Invalid map field number: " + number);
- }
- }
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_AddIndexRequest_fieldAccessorTable
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_CountRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest.class, com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest.Builder.class);
+ com.tencent.tcvectordb.rpc.proto.Olama.CountRequest.class, com.tencent.tcvectordb.rpc.proto.Olama.CountRequest.Builder.class);
}
+ private int bitField0_;
public static final int DATABASE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object database_ = "";
@@ -77860,7 +85109,7 @@ public java.lang.String getDatabase() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
+ com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
database_ = s;
@@ -77876,7 +85125,7 @@ public java.lang.String getDatabase() {
getDatabaseBytes() {
java.lang.Object ref = database_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
database_ = b;
@@ -77899,7 +85148,7 @@ public java.lang.String getCollection() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
+ com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
collection_ = s;
@@ -77915,7 +85164,7 @@ public java.lang.String getCollection() {
getCollectionBytes() {
java.lang.Object ref = collection_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
collection_ = b;
@@ -77925,94 +85174,30 @@ public java.lang.String getCollection() {
}
}
- public static final int INDEXES_FIELD_NUMBER = 3;
- private static final class IndexesDefaultEntryHolder {
- static final com.google.protobuf.MapEntry<
- java.lang.String, com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn> defaultEntry =
- com.google.protobuf.MapEntry
- .map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
- */
- @java.lang.Override
- public boolean containsIndexes(
- java.lang.String key) {
- if (key == null) { throw new NullPointerException("map key"); }
- return internalGetIndexes().getMap().containsKey(key);
- }
- /**
- * Use {@link #getIndexesMap()} instead.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
- */
- @java.lang.Override
- public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return Whether the query field is set.
*/
@java.lang.Override
- public /* nullable */
-com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrDefault(
- java.lang.String key,
- /* nullable */
-com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue) {
- if (key == null) { throw new NullPointerException("map key"); }
- java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return The query.
*/
@java.lang.Override
- public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrThrow(
- java.lang.String key) {
- if (key == null) { throw new NullPointerException("map key"); }
- java.util.Mapbool buildExistedData = 4;
- * @return The buildExistedData.
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
@java.lang.Override
- public boolean getBuildExistedData() {
- return buildExistedData_;
+ public com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder getQueryOrBuilder() {
+ return query_ == null ? com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.getDefaultInstance() : query_;
}
private byte memoizedIsInitialized = -1;
@@ -78035,14 +85220,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collection_);
}
- com.google.protobuf.GeneratedMessageV3
- .serializeStringMapTo(
- output,
- internalGetIndexes(),
- IndexesDefaultEntryHolder.defaultEntry,
- 3);
- if (buildExistedData_ != false) {
- output.writeBool(4, buildExistedData_);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getQuery());
}
getUnknownFields().writeTo(output);
}
@@ -78059,19 +85238,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collection_);
}
- for (java.util.Map.Entrymap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
- */
- @java.lang.Override
- public boolean containsIndexes(
- java.lang.String key) {
- if (key == null) { throw new NullPointerException("map key"); }
- return internalGetIndexes().ensureBuilderMap().containsKey(key);
- }
- /**
- * Use {@link #getIndexesMap()} instead.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
- */
- @java.lang.Override
- public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return Whether the query field is set.
*/
- @java.lang.Override
- public /* nullable */
-com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrDefault(
- java.lang.String key,
- /* nullable */
-com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn defaultValue) {
- if (key == null) { throw new NullPointerException("map key"); }
- java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
+ * @return The query.
*/
- @java.lang.Override
- public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn getIndexesOrThrow(
- java.lang.String key) {
- if (key == null) { throw new NullPointerException("map key"); }
- java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
- */
- public Builder removeIndexes(
- java.lang.String key) {
- if (key == null) { throw new NullPointerException("map key"); }
- internalGetMutableIndexes().ensureBuilderMap()
- .remove(key);
- return this;
}
/**
- * Use alternate mutation accessors instead.
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
- @java.lang.Deprecated
- public java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
- public Builder putIndexes(
- java.lang.String key,
- com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn value) {
- if (key == null) { throw new NullPointerException("map key"); }
- if (value == null) { throw new NullPointerException("map value"); }
- internalGetMutableIndexes().ensureBuilderMap()
- .put(key, value);
+ public Builder setQuery(
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder builderForValue) {
+ if (queryBuilder_ == null) {
+ query_ = builderForValue.build();
+ } else {
+ queryBuilder_.setMessage(builderForValue.build());
+ }
bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
- * map<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
- public Builder putAllIndexes(
- java.util.Mapmap<string, .com.tencent.tcvectordb.rpc.proto.IndexColumn> indexes = 3;
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
- public com.tencent.tcvectordb.rpc.proto.Olama.IndexColumn.Builder putIndexesBuilderIfAbsent(
- java.lang.String key) {
- java.util.Mapbool buildExistedData = 4;
- * @return The buildExistedData.
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
- @java.lang.Override
- public boolean getBuildExistedData() {
- return buildExistedData_;
+ public com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder getQueryBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getQueryFieldBuilder().getBuilder();
}
/**
- * bool buildExistedData = 4;
- * @param value The buildExistedData to set.
- * @return This builder for chaining.
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
- public Builder setBuildExistedData(boolean value) {
-
- buildExistedData_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
+ public com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder getQueryOrBuilder() {
+ if (queryBuilder_ != null) {
+ return queryBuilder_.getMessageOrBuilder();
+ } else {
+ return query_ == null ?
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.getDefaultInstance() : query_;
+ }
}
/**
- * bool buildExistedData = 4;
- * @return This builder for chaining.
+ * .com.tencent.tcvectordb.rpc.proto.QueryCond query = 3;
*/
- public Builder clearBuildExistedData() {
- bitField0_ = (bitField0_ & ~0x00000008);
- buildExistedData_ = false;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond, com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder, com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder>
+ getQueryFieldBuilder() {
+ if (queryBuilder_ == null) {
+ queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.tencent.tcvectordb.rpc.proto.Olama.QueryCond, com.tencent.tcvectordb.rpc.proto.Olama.QueryCond.Builder, com.tencent.tcvectordb.rpc.proto.Olama.QueryCondOrBuilder>(
+ getQuery(),
+ getParentForChildren(),
+ isClean());
+ query_ = null;
+ }
+ return queryBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
@@ -78792,23 +85872,23 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:com.tencent.tcvectordb.rpc.proto.AddIndexRequest)
+ // @@protoc_insertion_point(builder_scope:com.tencent.tcvectordb.rpc.proto.CountRequest)
}
- // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.AddIndexRequest)
- private static final com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.CountRequest)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.CountRequest DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest();
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.CountRequest();
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest getDefaultInstance() {
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parseruint64 count = 4;
+ * @return The count.
+ */
+ long getCount();
}
/**
- * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.AddIndexResponse}
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.CountResponse}
*/
- public static final class AddIndexResponse extends
+ public static final class CountResponse extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.AddIndexResponse)
- AddIndexResponseOrBuilder {
+ // @@protoc_insertion_point(message_implements:com.tencent.tcvectordb.rpc.proto.CountResponse)
+ CountResponseOrBuilder {
private static final long serialVersionUID = 0L;
- // Use AddIndexResponse.newBuilder() to construct.
- private AddIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use CountResponse.newBuilder() to construct.
+ private CountResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private AddIndexResponse() {
+ private CountResponse() {
msg_ = "";
redirect_ = "";
}
@@ -78898,20 +85984,20 @@ private AddIndexResponse() {
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new AddIndexResponse();
+ return new CountResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_AddIndexResponse_descriptor;
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_CountResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_AddIndexResponse_fieldAccessorTable
+ return com.tencent.tcvectordb.rpc.proto.Olama.internal_static_com_tencent_tcvectordb_rpc_proto_CountResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse.class, com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse.Builder.class);
+ com.tencent.tcvectordb.rpc.proto.Olama.CountResponse.class, com.tencent.tcvectordb.rpc.proto.Olama.CountResponse.Builder.class);
}
public static final int CODE_FIELD_NUMBER = 1;
@@ -78938,7 +86024,7 @@ public java.lang.String getMsg() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
+ com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
msg_ = s;
@@ -78954,7 +86040,7 @@ public java.lang.String getMsg() {
getMsgBytes() {
java.lang.Object ref = msg_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
msg_ = b;
@@ -78977,7 +86063,7 @@ public java.lang.String getRedirect() {
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
- com.google.protobuf.ByteString bs =
+ com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
redirect_ = s;
@@ -78993,7 +86079,7 @@ public java.lang.String getRedirect() {
getRedirectBytes() {
java.lang.Object ref = redirect_;
if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
redirect_ = b;
@@ -79003,6 +86089,17 @@ public java.lang.String getRedirect() {
}
}
+ public static final int COUNT_FIELD_NUMBER = 4;
+ private long count_ = 0L;
+ /**
+ * uint64 count = 4;
+ * @return The count.
+ */
+ @java.lang.Override
+ public long getCount() {
+ return count_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -79026,6 +86123,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirect_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, redirect_);
}
+ if (count_ != 0L) {
+ output.writeUInt64(4, count_);
+ }
getUnknownFields().writeTo(output);
}
@@ -79045,6 +86145,10 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirect_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, redirect_);
}
+ if (count_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(4, count_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -79055,10 +86159,10 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse)) {
+ if (!(obj instanceof com.tencent.tcvectordb.rpc.proto.Olama.CountResponse)) {
return super.equals(obj);
}
- com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse other = (com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse) obj;
+ com.tencent.tcvectordb.rpc.proto.Olama.CountResponse other = (com.tencent.tcvectordb.rpc.proto.Olama.CountResponse) obj;
if (getCode()
!= other.getCode()) return false;
@@ -79066,6 +86170,8 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getMsg())) return false;
if (!getRedirect()
.equals(other.getRedirect())) return false;
+ if (getCount()
+ != other.getCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -79083,49 +86189,52 @@ public int hashCode() {
hash = (53 * hash) + getMsg().hashCode();
hash = (37 * hash) + REDIRECT_FIELD_NUMBER;
hash = (53 * hash) + getRedirect().hashCode();
+ hash = (37 * hash) + COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(byte[] data)
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(java.io.InputStream input)
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -79133,26 +86242,26 @@ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseDelimitedFrom(java.io.InputStream input)
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseDelimitedFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse 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 com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -79165,7 +86274,7 @@ public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse parseFrom(
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse prototype) {
+ public static Builder newBuilder(com.tencent.tcvectordb.rpc.proto.Olama.CountResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -79181,26 +86290,26 @@ protected Builder newBuilderForType(
return builder;
}
/**
- * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.AddIndexResponse}
+ * Protobuf type {@code com.tencent.tcvectordb.rpc.proto.CountResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderuint64 count = 4;
+ * @return The count.
+ */
+ @java.lang.Override
+ public long getCount() {
+ return count_;
+ }
+ /**
+ * uint64 count = 4;
+ * @param value The count to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCount(long value) {
+
+ count_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint64 count = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearCount() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ count_ = 0L;
+ onChanged();
+ return this;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -79564,23 +86717,23 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:com.tencent.tcvectordb.rpc.proto.AddIndexResponse)
+ // @@protoc_insertion_point(builder_scope:com.tencent.tcvectordb.rpc.proto.CountResponse)
}
- // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.AddIndexResponse)
- private static final com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:com.tencent.tcvectordb.rpc.proto.CountResponse)
+ private static final com.tencent.tcvectordb.rpc.proto.Olama.CountResponse DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse();
+ DEFAULT_INSTANCE = new com.tencent.tcvectordb.rpc.proto.Olama.CountResponse();
}
- public static com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse getDefaultInstance() {
+ public static com.tencent.tcvectordb.rpc.proto.Olama.CountResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser+ * 关键词检索 + *+ */ + default void keywordSearch(com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest request, + io.grpc.stub.StreamObserver
+ * explain + *+ */ + default void explain(com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest request, + io.grpc.stub.StreamObserver
* 删除向量 @@ -1008,6 +1152,23 @@ default void addIndex(com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest req io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddIndexMethod(), responseObserver); } + + /** + * + * 修改index配置 + *+ */ + default void modifyVectorIndex(com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getModifyVectorIndexMethod(), responseObserver); + } + + /** + */ + default void count(com.tencent.tcvectordb.rpc.proto.Olama.CountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCountMethod(), responseObserver); + } } /** @@ -1191,6 +1352,28 @@ public void hybridSearch(com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest re getChannel().newCall(getHybridSearchMethod(), getCallOptions()), request, responseObserver); } + /** + * + * 关键词检索 + *+ */ + public void keywordSearch(com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getKeywordSearchMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * explain + *+ */ + public void explain(com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExplainMethod(), getCallOptions()), request, responseObserver); + } + /** * * 删除向量 @@ -1289,6 +1472,25 @@ public void addIndex(com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest requ io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAddIndexMethod(), getCallOptions()), request, responseObserver); } + + /** + *+ * 修改index配置 + *+ */ + public void modifyVectorIndex(com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getModifyVectorIndexMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void count(com.tencent.tcvectordb.rpc.proto.Olama.CountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCountMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -1447,6 +1649,26 @@ public com.tencent.tcvectordb.rpc.proto.Olama.SearchResponse hybridSearch(com.te getChannel(), getHybridSearchMethod(), getCallOptions(), request); } + /** + * + * 关键词检索 + *+ */ + public com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest keywordSearch(com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getKeywordSearchMethod(), getCallOptions(), request); + } + + /** + *+ * explain + *+ */ + public com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse explain(com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExplainMethod(), getCallOptions(), request); + } + /** ** 删除向量 @@ -1536,6 +1758,23 @@ public com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse addIndex(com.tenc return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAddIndexMethod(), getCallOptions(), request); } + + /** + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ * 修改index配置 + *+ */ + public com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse modifyVectorIndex(com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getModifyVectorIndexMethod(), getCallOptions(), request); + } + + /** + */ + public com.tencent.tcvectordb.rpc.proto.Olama.CountResponse count(com.tencent.tcvectordb.rpc.proto.Olama.CountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCountMethod(), getCallOptions(), request); + } } /** @@ -1708,6 +1947,28 @@ public com.google.common.util.concurrent.ListenableFuture+ * 关键词检索 + * keywordSearch( + com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getKeywordSearchMethod(), getCallOptions()), request); + } + + /** + * + * explain + *+ */ + public com.google.common.util.concurrent.ListenableFutureexplain( + com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExplainMethod(), getCallOptions()), request); + } + /** * * 删除向量 @@ -1806,6 +2067,25 @@ public com.google.common.util.concurrent.ListenableFuture+ */ + public com.google.common.util.concurrent.ListenableFuture+ * 修改index配置 + * modifyVectorIndex( + com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getModifyVectorIndexMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture count( + com.tencent.tcvectordb.rpc.proto.Olama.CountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCountMethod(), getCallOptions()), request); + } } private static final int METHODID_SET_ALIAS = 0; @@ -1822,15 +2102,19 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod , @@ -1905,6 +2189,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.hybridSearch((com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; + case METHODID_KEYWORD_SEARCH: + serviceImpl.keywordSearch((com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_EXPLAIN: + serviceImpl.explain((com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; case METHODID_DELE: serviceImpl.dele((com.tencent.tcvectordb.rpc.proto.Olama.DeleteRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); @@ -1941,6 +2233,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.addIndex((com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; + case METHODID_MODIFY_VECTOR_INDEX: + serviceImpl.modifyVectorIndex((com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_COUNT: + serviceImpl.count((com.tencent.tcvectordb.rpc.proto.Olama.CountRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; default: throw new AssertionError(); } @@ -2057,6 +2357,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest, com.tencent.tcvectordb.rpc.proto.Olama.SearchResponse>( service, METHODID_HYBRID_SEARCH))) + .addMethod( + getKeywordSearchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest, + com.tencent.tcvectordb.rpc.proto.Olama.SearchRequest>( + service, METHODID_KEYWORD_SEARCH))) + .addMethod( + getExplainMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.tencent.tcvectordb.rpc.proto.Olama.ExplainRequest, + com.tencent.tcvectordb.rpc.proto.Olama.ExplainResponse>( + service, METHODID_EXPLAIN))) .addMethod( getDeleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2120,6 +2434,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.tencent.tcvectordb.rpc.proto.Olama.AddIndexRequest, com.tencent.tcvectordb.rpc.proto.Olama.AddIndexResponse>( service, METHODID_ADD_INDEX))) + .addMethod( + getModifyVectorIndexMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexRequest, + com.tencent.tcvectordb.rpc.proto.Olama.ModifyVectorIndexResponse>( + service, METHODID_MODIFY_VECTOR_INDEX))) + .addMethod( + getCountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.tencent.tcvectordb.rpc.proto.Olama.CountRequest, + com.tencent.tcvectordb.rpc.proto.Olama.CountResponse>( + service, METHODID_COUNT))) .build(); } @@ -2182,6 +2510,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getQueryMethod()) .addMethod(getSearchMethod()) .addMethod(getHybridSearchMethod()) + .addMethod(getKeywordSearchMethod()) + .addMethod(getExplainMethod()) .addMethod(getDeleMethod()) .addMethod(getRangeSearchMethod()) .addMethod(getSortMethod()) @@ -2191,6 +2521,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDescribeDatabaseMethod()) .addMethod(getGetVersionMethod()) .addMethod(getAddIndexMethod()) + .addMethod(getModifyVectorIndexMethod()) + .addMethod(getCountMethod()) .build(); } } diff --git a/tcvectordb/src/main/java/com/tencent/tcvectordb/rpc/proto/olama.proto b/tcvectordb/src/main/java/com/tencent/tcvectordb/rpc/proto/olama.proto index 7b50351..8ea16d4 100644 --- a/tcvectordb/src/main/java/com/tencent/tcvectordb/rpc/proto/olama.proto +++ b/tcvectordb/src/main/java/com/tencent/tcvectordb/rpc/proto/olama.proto @@ -87,6 +87,7 @@ enum DataType { message DatabaseItem { int64 create_time = 1; DataType db_type = 2; + int64 count = 3; } message SnapshotRule { @@ -446,6 +447,7 @@ message AnnData { SearchParams params = 4; // 搜索参数 uint32 limit = 5; // 结果数量 repeated string data_expr = 6; // 表达式搜索 + repeated string embeddingItems = 7; // 使用embedding字段检索 } message SparseVectorArray { @@ -456,6 +458,7 @@ message SparseData { string fieldName = 1; // 字段名称 repeated SparseVectorArray data = 2; // 使用向量值检索 uint32 limit = 3; // 结果数量 + SparseSearchParams params = 4; // 搜索参数 } message RerankParams { @@ -586,6 +589,53 @@ message AddIndexResponse { string redirect = 3; }; +message ExplainRequest { + string database = 1; + string collection = 2; + QueryCond query = 3; + string readConsistency = 4; +}; + +message ExplainResponse { + int32 code = 1; + string msg = 2; + string redirect = 3; + repeated uint64 affectedTable = 4; + uint64 affectedCount = 5; +}; + +message SparseSearchParams { + uint32 terminateAfter = 1; // 搜索到指定数量的结果就终止 + double cutoffFrequency = 2; // 全文检索时过滤掉高频词 +} + +message ModifyVectorIndexRequest { + string database = 1; + string collection = 2; + map vectorIndexes = 3; + bool rebuild = 4; + RebuildIndexRequest rebuildRules = 5; +}; + +message ModifyVectorIndexResponse { + int32 code = 1; + string msg = 2; + string redirect = 3; +}; + +message CountRequest { + string database = 1; + string collection = 2; + QueryCond query = 3; +}; + +message CountResponse { + int32 code = 1; + string msg = 2; + string redirect = 3; + uint64 count = 4; +}; + message HttpRequest {}; message HttpResponse {}; @@ -622,6 +672,10 @@ service SearchEngine { rpc search(SearchRequest) returns (SearchResponse); // 混合搜索 rpc hybrid_search(SearchRequest) returns (SearchResponse); + // 关键词检索 + rpc keyword_search(SearchRequest) returns (SearchRequest); + // explain + rpc explain(ExplainRequest) returns (ExplainResponse); // 删除向量 rpc dele(DeleteRequest) returns (DeleteResponse); @@ -644,4 +698,8 @@ service SearchEngine { // 新增scalar的索引 rpc addIndex(AddIndexRequest) returns (AddIndexResponse); + // 修改index配置 + rpc modifyVectorIndex(ModifyVectorIndexRequest) returns (ModifyVectorIndexResponse); + + rpc count(CountRequest) returns (CountResponse); }; \ No newline at end of file diff --git a/tcvectordb/src/main/java/com/tencent/tcvectordb/service/ApiPath.java b/tcvectordb/src/main/java/com/tencent/tcvectordb/service/ApiPath.java index ef75417..7caf861 100644 --- a/tcvectordb/src/main/java/com/tencent/tcvectordb/service/ApiPath.java +++ b/tcvectordb/src/main/java/com/tencent/tcvectordb/service/ApiPath.java @@ -40,6 +40,7 @@ public class ApiPath { public final static String DOC_HYBRID_SEARCH = "document/hybridSearch"; public final static String DOC_DELETE = "document/delete"; public final static String DOC_UPDATE = "document/update"; + public final static String DOC_COUNT = "document/count"; public final static String REBUILD_INDEX = "index/rebuild"; public final static String AI_DB_CREATE = "ai/database/create"; public final static String AI_DB_DROP = "ai/database/drop"; @@ -59,4 +60,5 @@ public class ApiPath { public final static String AI_ALIAS_DELETE = "ai/alias/delete"; public final static String AI_REBUILD_INDEX = "ai/index/rebuild"; public final static String ADD_INDEX = "index/add"; + public final static String MODIFY_VECTOR_INDEX = "index/modifyVectorIndex"; } diff --git a/tcvectordb/src/main/java/com/tencent/tcvectordb/service/GrpcStub.java b/tcvectordb/src/main/java/com/tencent/tcvectordb/service/GrpcStub.java index 4a6d23d..0709d62 100644 --- a/tcvectordb/src/main/java/com/tencent/tcvectordb/service/GrpcStub.java +++ b/tcvectordb/src/main/java/com/tencent/tcvectordb/service/GrpcStub.java @@ -20,6 +20,7 @@ package com.tencent.tcvectordb.service; +import com.fasterxml.jackson.databind.JsonNode; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.MessageOrBuilder; @@ -40,6 +41,7 @@ import com.tencent.tcvectordb.rpc.proto.Olama; import com.tencent.tcvectordb.rpc.proto.SearchEngineGrpc; import com.tencent.tcvectordb.service.param.*; +import com.tencent.tcvectordb.utils.JsonUtils; import io.grpc.*; import io.grpc.okhttp.OkHttpChannelBuilder; import org.apache.commons.lang3.tuple.Pair; @@ -225,11 +227,15 @@ public void createCollection(CreateCollectionParam params) { requestOrBuilder.addAllAliasList(params.getAlias()); } if (params.getEmbedding()!=null){ - requestOrBuilder.setEmbeddingParams(Olama.EmbeddingParams.newBuilder() - .setField(params.getEmbedding().getField()) - .setModelName(params.getEmbedding().getModel().getModelName()) - .setVectorField(params.getEmbedding().getVectorField()) - .build()); + Olama.EmbeddingParams.Builder embeddingBuilder = Olama.EmbeddingParams.newBuilder() + .setField(params.getEmbedding().getField()) + .setVectorField(params.getEmbedding().getVectorField()); + if (params.getEmbedding().getModel() != null) { + embeddingBuilder.setModelName(params.getEmbedding().getModel().getModelName()); + }else{ + embeddingBuilder.setModelName(params.getEmbedding().getModelName()); + } + requestOrBuilder.setEmbeddingParams(embeddingBuilder.build()); } if (params.getTtlConfig()!=null){ requestOrBuilder.setTtlConfig(Olama.TTLConfig.newBuilder() @@ -238,11 +244,16 @@ public void createCollection(CreateCollectionParam params) { .build()); } if (params.getFilterIndexConfig()!=null){ - requestOrBuilder.setFilterIndexConfig(Olama.FilterIndexConfig.newBuilder() - .setFilterAll(params.getFilterIndexConfig().isFilterAll()) - .addAllFieldsWithoutIndex(params.getFilterIndexConfig().getFieldWithoutFilterIndex()) - .setMaxStrLen(params.getFilterIndexConfig().getMaxStrLen()) - .build()); + Olama.FilterIndexConfig.Builder filterBuilder = Olama.FilterIndexConfig.newBuilder(). + setFilterAll(params.getFilterIndexConfig().isFilterAll()); + if (params.getFilterIndexConfig().getFieldsWithoutIndex()!=null){ + filterBuilder.addAllFieldsWithoutIndex(params.getFilterIndexConfig().getFieldsWithoutIndex()); + } + if(params.getFilterIndexConfig().getMaxStrLen()!=null){ + filterBuilder.setMaxStrLen(params.getFilterIndexConfig().getMaxStrLen()); + } + requestOrBuilder.setFilterIndexConfig(filterBuilder.build()); + } if (params.getIndexes() != null && !params.getIndexes().isEmpty()){ for (IndexField index : params.getIndexes()) { @@ -269,34 +280,35 @@ public void createCollection(CreateCollectionParam params) { private static Olama.IndexColumn.Builder getRpcIndexBuilder(IndexField index) { Olama.IndexColumn.Builder indexBuilder = Olama.IndexColumn.newBuilder() .setFieldName(index.getFieldName()) - .setFieldType(index.getFieldType().getValue()) - .setIndexType(index.getIndexType().getValue()); + .setFieldType(index.getFieldType().getValue()); + if (index.getIndexType()!=null){ + indexBuilder.setIndexType(index.getIndexType().getValue()); + } if(index.isVectorField()){ - indexBuilder.setDimension(index.getDimension()); - indexBuilder.setMetricType(index.getMetricType().getValue()); + if(index.getDimension()!=null){ + indexBuilder.setDimension(index.getDimension()); + } + if (index.getMetricType()!=null) { + indexBuilder.setMetricType(index.getMetricType().getValue()); + } if(index.getParams()!=null){ - switch (index.getIndexType()) { - case HNSW: - HNSWParams hnswParams = (HNSWParams) index.getParams(); - indexBuilder.setParams(Olama.IndexParams.newBuilder() - .setM(hnswParams.getM()) - .setEfConstruction(hnswParams.getEfConstruction()).build()); - break; - case IVF_FLAT: - IVFFLATParams ivfflatParams = (IVFFLATParams) index.getParams(); - indexBuilder.setParams(Olama.IndexParams.newBuilder() - .setNlist(ivfflatParams.getNList()).build()); - break; - case IVF_PQ: - IVFPQParams ivfpqParams = (IVFPQParams) index.getParams(); - indexBuilder.setParams(Olama.IndexParams.newBuilder() - .setNlist(ivfpqParams.getNList()).setM(ivfpqParams.getM()).build()); - break; - case IVF_SQ8: - IVFSQ8Params ivfsq8Params = (IVFSQ8Params) index.getParams(); - indexBuilder.setParams(Olama.IndexParams.newBuilder() - .setNlist(ivfsq8Params.getNList()).build()); - break; + if(index.getParams() instanceof HNSWParams) { + HNSWParams hnswParams = (HNSWParams) index.getParams(); + indexBuilder.setParams(Olama.IndexParams.newBuilder() + .setM(hnswParams.getM()) + .setEfConstruction(hnswParams.getEfConstruction()).build()); + }else if(index.getParams() instanceof IVFFLATParams) { + IVFFLATParams ivfflatParams = (IVFFLATParams) index.getParams(); + indexBuilder.setParams(Olama.IndexParams.newBuilder() + .setNlist(ivfflatParams.getNList()).build()); + }else if (index.getParams() instanceof IVFPQParams) { + IVFPQParams ivfpqParams = (IVFPQParams) index.getParams(); + indexBuilder.setParams(Olama.IndexParams.newBuilder() + .setNlist(ivfpqParams.getNList()).setM(ivfpqParams.getM()).build()); + }else if(index.getParams() instanceof IVFSQ8Params) { + IVFSQ8Params ivfsq8Params = (IVFSQ8Params) index.getParams(); + indexBuilder.setParams(Olama.IndexParams.newBuilder() + .setNlist(ivfsq8Params.getNList()).build()); } } } @@ -567,6 +579,11 @@ public SearchRes searchDocument(SearchParamInner param, DataBaseTypeEnum dbType) searchConBuilder.setParams(Olama.SearchParams.newBuilder().setEf(params.getEf()).build()); } } + + if (searchParam.getRadius()!=null){ + searchConBuilder.setRange(true); + searchConBuilder.getParamsBuilder().setRadius(searchParam.getRadius()); + } builder.setSearch(searchConBuilder.build()); logQuery(ApiPath.DOC_SEARCH, builder); Olama.SearchResponse searchResponse = this.blockingStub.withDeadlineAfter(this.timeout, TimeUnit.SECONDS).search(builder.build()); @@ -611,7 +628,7 @@ public HybridSearchRes hybridSearchDocument(HybridSearchParamInner param, boolea } if (annOption.getData()!=null){ if (annOption.getData().get(0) instanceof String){ - annBuilder.addAllDataExpr(annOption.getData().stream().map(item->(String)item).collect(Collectors.toList())); + annBuilder.addAllEmbeddingItems(annOption.getData().stream().map(item->(String)item).collect(Collectors.toList())); }if (annOption.getData().get(0) instanceof List){ annBuilder.addAllData(annOption.getData().stream() .map(item-> Olama.VectorArray.newBuilder().addAllVector(((List