io.milvus.grpc.SubSearchRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector database.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: milvus.proto
package io.milvus.grpc;
/**
* Protobuf type {@code milvus.proto.milvus.SubSearchRequest}
*/
public final class SubSearchRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:milvus.proto.milvus.SubSearchRequest)
SubSearchRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubSearchRequest.newBuilder() to construct.
private SubSearchRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubSearchRequest() {
dsl_ = "";
placeholderGroup_ = com.google.protobuf.ByteString.EMPTY;
dslType_ = 0;
searchParams_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SubSearchRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_SubSearchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_SubSearchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.SubSearchRequest.class, io.milvus.grpc.SubSearchRequest.Builder.class);
}
public static final int DSL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object dsl_ = "";
/**
*
* must
*
*
* string dsl = 1;
* @return The dsl.
*/
@java.lang.Override
public java.lang.String getDsl() {
java.lang.Object ref = dsl_;
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();
dsl_ = s;
return s;
}
}
/**
*
* must
*
*
* string dsl = 1;
* @return The bytes for dsl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDslBytes() {
java.lang.Object ref = dsl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dsl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLACEHOLDER_GROUP_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString placeholderGroup_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* serialized `PlaceholderGroup`
*
*
* bytes placeholder_group = 2;
* @return The placeholderGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPlaceholderGroup() {
return placeholderGroup_;
}
public static final int DSL_TYPE_FIELD_NUMBER = 3;
private int dslType_ = 0;
/**
*
* must
*
*
* .milvus.proto.common.DslType dsl_type = 3;
* @return The enum numeric value on the wire for dslType.
*/
@java.lang.Override public int getDslTypeValue() {
return dslType_;
}
/**
*
* must
*
*
* .milvus.proto.common.DslType dsl_type = 3;
* @return The dslType.
*/
@java.lang.Override public io.milvus.grpc.DslType getDslType() {
io.milvus.grpc.DslType result = io.milvus.grpc.DslType.forNumber(dslType_);
return result == null ? io.milvus.grpc.DslType.UNRECOGNIZED : result;
}
public static final int SEARCH_PARAMS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List searchParams_;
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
@java.lang.Override
public java.util.List getSearchParamsList() {
return searchParams_;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
@java.lang.Override
public java.util.List extends io.milvus.grpc.KeyValuePairOrBuilder>
getSearchParamsOrBuilderList() {
return searchParams_;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
@java.lang.Override
public int getSearchParamsCount() {
return searchParams_.size();
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
@java.lang.Override
public io.milvus.grpc.KeyValuePair getSearchParams(int index) {
return searchParams_.get(index);
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
@java.lang.Override
public io.milvus.grpc.KeyValuePairOrBuilder getSearchParamsOrBuilder(
int index) {
return searchParams_.get(index);
}
public static final int NQ_FIELD_NUMBER = 5;
private long nq_ = 0L;
/**
* int64 nq = 5;
* @return The nq.
*/
@java.lang.Override
public long getNq() {
return nq_;
}
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(dsl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dsl_);
}
if (!placeholderGroup_.isEmpty()) {
output.writeBytes(2, placeholderGroup_);
}
if (dslType_ != io.milvus.grpc.DslType.Dsl.getNumber()) {
output.writeEnum(3, dslType_);
}
for (int i = 0; i < searchParams_.size(); i++) {
output.writeMessage(4, searchParams_.get(i));
}
if (nq_ != 0L) {
output.writeInt64(5, nq_);
}
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(dsl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dsl_);
}
if (!placeholderGroup_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, placeholderGroup_);
}
if (dslType_ != io.milvus.grpc.DslType.Dsl.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, dslType_);
}
for (int i = 0; i < searchParams_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, searchParams_.get(i));
}
if (nq_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, nq_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.milvus.grpc.SubSearchRequest)) {
return super.equals(obj);
}
io.milvus.grpc.SubSearchRequest other = (io.milvus.grpc.SubSearchRequest) obj;
if (!getDsl()
.equals(other.getDsl())) return false;
if (!getPlaceholderGroup()
.equals(other.getPlaceholderGroup())) return false;
if (dslType_ != other.dslType_) return false;
if (!getSearchParamsList()
.equals(other.getSearchParamsList())) return false;
if (getNq()
!= other.getNq()) 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) + DSL_FIELD_NUMBER;
hash = (53 * hash) + getDsl().hashCode();
hash = (37 * hash) + PLACEHOLDER_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getPlaceholderGroup().hashCode();
hash = (37 * hash) + DSL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + dslType_;
if (getSearchParamsCount() > 0) {
hash = (37 * hash) + SEARCH_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getSearchParamsList().hashCode();
}
hash = (37 * hash) + NQ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNq());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.milvus.grpc.SubSearchRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.milvus.grpc.SubSearchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.milvus.grpc.SubSearchRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.milvus.grpc.SubSearchRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.milvus.grpc.SubSearchRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code milvus.proto.milvus.SubSearchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:milvus.proto.milvus.SubSearchRequest)
io.milvus.grpc.SubSearchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_SubSearchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_SubSearchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.milvus.grpc.SubSearchRequest.class, io.milvus.grpc.SubSearchRequest.Builder.class);
}
// Construct using io.milvus.grpc.SubSearchRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
dsl_ = "";
placeholderGroup_ = com.google.protobuf.ByteString.EMPTY;
dslType_ = 0;
if (searchParamsBuilder_ == null) {
searchParams_ = java.util.Collections.emptyList();
} else {
searchParams_ = null;
searchParamsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
nq_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_SubSearchRequest_descriptor;
}
@java.lang.Override
public io.milvus.grpc.SubSearchRequest getDefaultInstanceForType() {
return io.milvus.grpc.SubSearchRequest.getDefaultInstance();
}
@java.lang.Override
public io.milvus.grpc.SubSearchRequest build() {
io.milvus.grpc.SubSearchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.milvus.grpc.SubSearchRequest buildPartial() {
io.milvus.grpc.SubSearchRequest result = new io.milvus.grpc.SubSearchRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.milvus.grpc.SubSearchRequest result) {
if (searchParamsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
searchParams_ = java.util.Collections.unmodifiableList(searchParams_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.searchParams_ = searchParams_;
} else {
result.searchParams_ = searchParamsBuilder_.build();
}
}
private void buildPartial0(io.milvus.grpc.SubSearchRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.dsl_ = dsl_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.placeholderGroup_ = placeholderGroup_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.dslType_ = dslType_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.nq_ = nq_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.milvus.grpc.SubSearchRequest) {
return mergeFrom((io.milvus.grpc.SubSearchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.milvus.grpc.SubSearchRequest other) {
if (other == io.milvus.grpc.SubSearchRequest.getDefaultInstance()) return this;
if (!other.getDsl().isEmpty()) {
dsl_ = other.dsl_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPlaceholderGroup() != com.google.protobuf.ByteString.EMPTY) {
setPlaceholderGroup(other.getPlaceholderGroup());
}
if (other.dslType_ != 0) {
setDslTypeValue(other.getDslTypeValue());
}
if (searchParamsBuilder_ == null) {
if (!other.searchParams_.isEmpty()) {
if (searchParams_.isEmpty()) {
searchParams_ = other.searchParams_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSearchParamsIsMutable();
searchParams_.addAll(other.searchParams_);
}
onChanged();
}
} else {
if (!other.searchParams_.isEmpty()) {
if (searchParamsBuilder_.isEmpty()) {
searchParamsBuilder_.dispose();
searchParamsBuilder_ = null;
searchParams_ = other.searchParams_;
bitField0_ = (bitField0_ & ~0x00000008);
searchParamsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSearchParamsFieldBuilder() : null;
} else {
searchParamsBuilder_.addAllMessages(other.searchParams_);
}
}
}
if (other.getNq() != 0L) {
setNq(other.getNq());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
dsl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
placeholderGroup_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
dslType_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
io.milvus.grpc.KeyValuePair m =
input.readMessage(
io.milvus.grpc.KeyValuePair.parser(),
extensionRegistry);
if (searchParamsBuilder_ == null) {
ensureSearchParamsIsMutable();
searchParams_.add(m);
} else {
searchParamsBuilder_.addMessage(m);
}
break;
} // case 34
case 40: {
nq_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object dsl_ = "";
/**
*
* must
*
*
* string dsl = 1;
* @return The dsl.
*/
public java.lang.String getDsl() {
java.lang.Object ref = dsl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dsl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* must
*
*
* string dsl = 1;
* @return The bytes for dsl.
*/
public com.google.protobuf.ByteString
getDslBytes() {
java.lang.Object ref = dsl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dsl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* must
*
*
* string dsl = 1;
* @param value The dsl to set.
* @return This builder for chaining.
*/
public Builder setDsl(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
dsl_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* must
*
*
* string dsl = 1;
* @return This builder for chaining.
*/
public Builder clearDsl() {
dsl_ = getDefaultInstance().getDsl();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* must
*
*
* string dsl = 1;
* @param value The bytes for dsl to set.
* @return This builder for chaining.
*/
public Builder setDslBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
dsl_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.ByteString placeholderGroup_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* serialized `PlaceholderGroup`
*
*
* bytes placeholder_group = 2;
* @return The placeholderGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPlaceholderGroup() {
return placeholderGroup_;
}
/**
*
* serialized `PlaceholderGroup`
*
*
* bytes placeholder_group = 2;
* @param value The placeholderGroup to set.
* @return This builder for chaining.
*/
public Builder setPlaceholderGroup(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
placeholderGroup_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* serialized `PlaceholderGroup`
*
*
* bytes placeholder_group = 2;
* @return This builder for chaining.
*/
public Builder clearPlaceholderGroup() {
bitField0_ = (bitField0_ & ~0x00000002);
placeholderGroup_ = getDefaultInstance().getPlaceholderGroup();
onChanged();
return this;
}
private int dslType_ = 0;
/**
*
* must
*
*
* .milvus.proto.common.DslType dsl_type = 3;
* @return The enum numeric value on the wire for dslType.
*/
@java.lang.Override public int getDslTypeValue() {
return dslType_;
}
/**
*
* must
*
*
* .milvus.proto.common.DslType dsl_type = 3;
* @param value The enum numeric value on the wire for dslType to set.
* @return This builder for chaining.
*/
public Builder setDslTypeValue(int value) {
dslType_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* must
*
*
* .milvus.proto.common.DslType dsl_type = 3;
* @return The dslType.
*/
@java.lang.Override
public io.milvus.grpc.DslType getDslType() {
io.milvus.grpc.DslType result = io.milvus.grpc.DslType.forNumber(dslType_);
return result == null ? io.milvus.grpc.DslType.UNRECOGNIZED : result;
}
/**
*
* must
*
*
* .milvus.proto.common.DslType dsl_type = 3;
* @param value The dslType to set.
* @return This builder for chaining.
*/
public Builder setDslType(io.milvus.grpc.DslType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
dslType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* must
*
*
* .milvus.proto.common.DslType dsl_type = 3;
* @return This builder for chaining.
*/
public Builder clearDslType() {
bitField0_ = (bitField0_ & ~0x00000004);
dslType_ = 0;
onChanged();
return this;
}
private java.util.List searchParams_ =
java.util.Collections.emptyList();
private void ensureSearchParamsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
searchParams_ = new java.util.ArrayList(searchParams_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder> searchParamsBuilder_;
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public java.util.List getSearchParamsList() {
if (searchParamsBuilder_ == null) {
return java.util.Collections.unmodifiableList(searchParams_);
} else {
return searchParamsBuilder_.getMessageList();
}
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public int getSearchParamsCount() {
if (searchParamsBuilder_ == null) {
return searchParams_.size();
} else {
return searchParamsBuilder_.getCount();
}
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public io.milvus.grpc.KeyValuePair getSearchParams(int index) {
if (searchParamsBuilder_ == null) {
return searchParams_.get(index);
} else {
return searchParamsBuilder_.getMessage(index);
}
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder setSearchParams(
int index, io.milvus.grpc.KeyValuePair value) {
if (searchParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchParamsIsMutable();
searchParams_.set(index, value);
onChanged();
} else {
searchParamsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder setSearchParams(
int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) {
if (searchParamsBuilder_ == null) {
ensureSearchParamsIsMutable();
searchParams_.set(index, builderForValue.build());
onChanged();
} else {
searchParamsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder addSearchParams(io.milvus.grpc.KeyValuePair value) {
if (searchParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchParamsIsMutable();
searchParams_.add(value);
onChanged();
} else {
searchParamsBuilder_.addMessage(value);
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder addSearchParams(
int index, io.milvus.grpc.KeyValuePair value) {
if (searchParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchParamsIsMutable();
searchParams_.add(index, value);
onChanged();
} else {
searchParamsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder addSearchParams(
io.milvus.grpc.KeyValuePair.Builder builderForValue) {
if (searchParamsBuilder_ == null) {
ensureSearchParamsIsMutable();
searchParams_.add(builderForValue.build());
onChanged();
} else {
searchParamsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder addSearchParams(
int index, io.milvus.grpc.KeyValuePair.Builder builderForValue) {
if (searchParamsBuilder_ == null) {
ensureSearchParamsIsMutable();
searchParams_.add(index, builderForValue.build());
onChanged();
} else {
searchParamsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder addAllSearchParams(
java.lang.Iterable extends io.milvus.grpc.KeyValuePair> values) {
if (searchParamsBuilder_ == null) {
ensureSearchParamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, searchParams_);
onChanged();
} else {
searchParamsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder clearSearchParams() {
if (searchParamsBuilder_ == null) {
searchParams_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
searchParamsBuilder_.clear();
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public Builder removeSearchParams(int index) {
if (searchParamsBuilder_ == null) {
ensureSearchParamsIsMutable();
searchParams_.remove(index);
onChanged();
} else {
searchParamsBuilder_.remove(index);
}
return this;
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public io.milvus.grpc.KeyValuePair.Builder getSearchParamsBuilder(
int index) {
return getSearchParamsFieldBuilder().getBuilder(index);
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public io.milvus.grpc.KeyValuePairOrBuilder getSearchParamsOrBuilder(
int index) {
if (searchParamsBuilder_ == null) {
return searchParams_.get(index); } else {
return searchParamsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public java.util.List extends io.milvus.grpc.KeyValuePairOrBuilder>
getSearchParamsOrBuilderList() {
if (searchParamsBuilder_ != null) {
return searchParamsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(searchParams_);
}
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public io.milvus.grpc.KeyValuePair.Builder addSearchParamsBuilder() {
return getSearchParamsFieldBuilder().addBuilder(
io.milvus.grpc.KeyValuePair.getDefaultInstance());
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public io.milvus.grpc.KeyValuePair.Builder addSearchParamsBuilder(
int index) {
return getSearchParamsFieldBuilder().addBuilder(
index, io.milvus.grpc.KeyValuePair.getDefaultInstance());
}
/**
*
* must
*
*
* repeated .milvus.proto.common.KeyValuePair search_params = 4;
*/
public java.util.List
getSearchParamsBuilderList() {
return getSearchParamsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder>
getSearchParamsFieldBuilder() {
if (searchParamsBuilder_ == null) {
searchParamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.milvus.grpc.KeyValuePair, io.milvus.grpc.KeyValuePair.Builder, io.milvus.grpc.KeyValuePairOrBuilder>(
searchParams_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
searchParams_ = null;
}
return searchParamsBuilder_;
}
private long nq_ ;
/**
* int64 nq = 5;
* @return The nq.
*/
@java.lang.Override
public long getNq() {
return nq_;
}
/**
* int64 nq = 5;
* @param value The nq to set.
* @return This builder for chaining.
*/
public Builder setNq(long value) {
nq_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* int64 nq = 5;
* @return This builder for chaining.
*/
public Builder clearNq() {
bitField0_ = (bitField0_ & ~0x00000010);
nq_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:milvus.proto.milvus.SubSearchRequest)
}
// @@protoc_insertion_point(class_scope:milvus.proto.milvus.SubSearchRequest)
private static final io.milvus.grpc.SubSearchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.milvus.grpc.SubSearchRequest();
}
public static io.milvus.grpc.SubSearchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubSearchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.milvus.grpc.SubSearchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}