diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 23099c45c..fe5d42dca 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -91,7 +91,7 @@ jobs: strategy: fail-fast: false matrix: - WEAVIATE_VERSION: ["1.32.24", "1.33.11", "1.34.7", "1.35.2", "1.36.1"] + WEAVIATE_VERSION: ["1.32.24", "1.33.11", "1.34.7", "1.35.2", "1.36.9"] steps: - uses: actions/checkout@v4 diff --git a/src/it/java/io/weaviate/containers/Weaviate.java b/src/it/java/io/weaviate/containers/Weaviate.java index f7f444afb..4a177021c 100644 --- a/src/it/java/io/weaviate/containers/Weaviate.java +++ b/src/it/java/io/weaviate/containers/Weaviate.java @@ -44,7 +44,7 @@ public enum Version { V133(1, 33, 11), V134(1, 34, 7), V135(1, 35, 2), - V136(1, 36, 1); + V136(1, 36, 9); public final SemanticVersion semver; diff --git a/src/it/java/io/weaviate/integration/SearchITest.java b/src/it/java/io/weaviate/integration/SearchITest.java index 7bd873376..a812e5d91 100644 --- a/src/it/java/io/weaviate/integration/SearchITest.java +++ b/src/it/java/io/weaviate/integration/SearchITest.java @@ -36,7 +36,10 @@ import io.weaviate.client6.v1.api.collections.query.Filter; import io.weaviate.client6.v1.api.collections.query.GroupBy; import io.weaviate.client6.v1.api.collections.query.Metadata; +import io.weaviate.client6.v1.api.collections.query.QueryProfile; +import io.weaviate.client6.v1.api.collections.query.QueryResponse; import io.weaviate.client6.v1.api.collections.query.QueryResponseGroup; +import io.weaviate.client6.v1.api.collections.query.QueryResponseGrouped; import io.weaviate.client6.v1.api.collections.query.Rerank; import io.weaviate.client6.v1.api.collections.query.SortBy; import io.weaviate.client6.v1.api.collections.query.Target; @@ -48,6 +51,7 @@ import io.weaviate.containers.Img2VecNeural; import io.weaviate.containers.Model2Vec; import io.weaviate.containers.Weaviate; +import io.weaviate.containers.Weaviate.Version; public class SearchITest extends ConcurrentTest { private static final ContainerGroup compose = Container.compose( @@ -839,4 +843,45 @@ public void testVectorizerModel2VecPropeties() throws IOException { Assertions.assertThat(v.getSingle("title_vec")).isEqualTo(v.getSingle("author_vec")); }); } + + @Test + public void testQueryProfile() throws Exception { + Version.V136.orSkip(); + + var things = client.collections.use(COLLECTION); + var resp = things.query.nearVector(searchVector, + opt -> opt.distance(10f) + .returnMetadata(Metadata.QUERY_PROFILE)); + + Assertions.assertThat(resp) + .extracting(QueryResponse::queryProfile).isNotNull() + .extracting(QueryProfile::shards, InstanceOfAssertFactories.list(QueryProfile.ShardProfile.class)) + .hasSize(1) + .allSatisfy(shardProfile -> Assertions.assertThat(shardProfile) + .extracting(QueryProfile.ShardProfile::searches, + InstanceOfAssertFactories.map(String.class, String.class)) + .isNotEmpty()); + } + + @Test + @Ignore("v1.36.9 does not support query profiles for grouped queries") + public void testQueryProfile_groupBy() throws Exception { + Version.V136.orSkip(); + + var things = client.collections.use(COLLECTION); + var resp = things.query.nearVector(searchVector, + opt -> opt.distance(10f) + .returnMetadata(Metadata.QUERY_PROFILE), + GroupBy.property("category", 2, 5)); + + Assertions.assertThat(resp) + .extracting(QueryResponseGrouped::queryProfile).isNotNull() + .extracting(QueryProfile::shards, + InstanceOfAssertFactories.list(QueryProfile.ShardProfile.class)) + .hasSize(1) + .allSatisfy(shardProfile -> Assertions.assertThat(shardProfile) + .extracting(QueryProfile.ShardProfile::searches, + InstanceOfAssertFactories.map(String.class, String.class)) + .isNotEmpty()); + } } diff --git a/src/main/java/io/weaviate/client6/v1/api/collections/query/Metadata.java b/src/main/java/io/weaviate/client6/v1/api/collections/query/Metadata.java index 0c9e7bd4e..c4414bb3a 100644 --- a/src/main/java/io/weaviate/client6/v1/api/collections/query/Metadata.java +++ b/src/main/java/io/weaviate/client6/v1/api/collections/query/Metadata.java @@ -11,7 +11,13 @@ public interface Metadata { void appendTo(WeaviateProtoSearchGet.MetadataRequest.Builder metadata); - /** Include metadata in the metadata response. */ + /** + * Include all metadata in the metadata response. + * + *
+ * Collecting {@link #QUERY_PROFILE} involves significant overhead on the
+ * server side, so it is excluded from ALL and must be requested explicitly.
+ */
public static final Metadata ALL = MetadataField.ALL;
/** Include object creation time in the metadata response. */
public static final Metadata CREATION_TIME_UNIX = MetadataField.CREATION_TIME_UNIX;
@@ -64,6 +70,13 @@ public interface Metadata {
*/
public static final Metadata EXPLAIN_SCORE = MetadataField.EXPLAIN_SCORE;
+ /**
+ * Include a per-shard execution timing breakdowns for search queries.
+ *
+ * @see QueryProfile
+ */
+ public static final Metadata QUERY_PROFILE = MetadataField.QUERY_PROFILE;
+
/**
* MetadataField are collection properties that can be requested for any object.
*/
@@ -76,13 +89,15 @@ enum MetadataField implements Metadata {
DISTANCE,
CERTAINTY,
SCORE,
- EXPLAIN_SCORE;
+ EXPLAIN_SCORE,
+ QUERY_PROFILE;
public void appendTo(WeaviateProtoSearchGet.MetadataRequest.Builder metadata) {
switch (this) {
case ALL:
for (final var f : MetadataField.values()) {
- if (f != ALL) {
+ // QUERY_PROFILE is expensive, require an explicit opt-in.
+ if (f != ALL && f != QUERY_PROFILE) {
f.appendTo(metadata);
}
}
@@ -111,6 +126,8 @@ public void appendTo(WeaviateProtoSearchGet.MetadataRequest.Builder metadata) {
case SCORE:
metadata.setScore(true);
break;
+ case QUERY_PROFILE:
+ metadata.setQueryProfile(true);
}
}
}
diff --git a/src/main/java/io/weaviate/client6/v1/api/collections/query/QueryProfile.java b/src/main/java/io/weaviate/client6/v1/api/collections/query/QueryProfile.java
new file mode 100644
index 000000000..f14ab82ea
--- /dev/null
+++ b/src/main/java/io/weaviate/client6/v1/api/collections/query/QueryProfile.java
@@ -0,0 +1,44 @@
+package io.weaviate.client6.v1.api.collections.query;
+
+import java.util.List;
+import java.util.Map;
+
+/** Per-shard execution timing breakdowns for search queries. */
+public record QueryProfile(List
+ * Vector searches:
+ *
+ *
+ * Keyword (BM25) searches:
+ *
+ *
+ * Filtered searches (any type):
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ */
+ public static record ShardProfile(Map.weaviate.v1.Selection.MMR mmr = 1;
+ * @return Whether the mmr field is set.
+ */
+ boolean hasMmr();
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ * @return The mmr.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR getMmr();
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMROrBuilder getMmrOrBuilder();
+
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.SelectionCase getSelectionCase();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.Selection}
+ */
+ public static final class Selection extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.Selection)
+ SelectionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Selection.newBuilder() to construct.
+ private Selection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Selection() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Selection();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.internal_static_weaviate_v1_Selection_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.internal_static_weaviate_v1_Selection_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.class, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder.class);
+ }
+
+ public interface MMROrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.Selection.MMR)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional uint32 limit = 1;
+ * @return Whether the limit field is set.
+ */
+ boolean hasLimit();
+ /**
+ * optional uint32 limit = 1;
+ * @return The limit.
+ */
+ int getLimit();
+
+ /**
+ * optional float balance = 2;
+ * @return Whether the balance field is set.
+ */
+ boolean hasBalance();
+ /**
+ * optional float balance = 2;
+ * @return The balance.
+ */
+ float getBalance();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.Selection.MMR}
+ */
+ public static final class MMR extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.Selection.MMR)
+ MMROrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MMR.newBuilder() to construct.
+ private MMR(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MMR() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MMR();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.internal_static_weaviate_v1_Selection_MMR_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.internal_static_weaviate_v1_Selection_MMR_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.class, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int LIMIT_FIELD_NUMBER = 1;
+ private int limit_ = 0;
+ /**
+ * optional uint32 limit = 1;
+ * @return Whether the limit field is set.
+ */
+ @java.lang.Override
+ public boolean hasLimit() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional uint32 limit = 1;
+ * @return The limit.
+ */
+ @java.lang.Override
+ public int getLimit() {
+ return limit_;
+ }
+
+ public static final int BALANCE_FIELD_NUMBER = 2;
+ private float balance_ = 0F;
+ /**
+ * optional float balance = 2;
+ * @return Whether the balance field is set.
+ */
+ @java.lang.Override
+ public boolean hasBalance() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional float balance = 2;
+ * @return The balance.
+ */
+ @java.lang.Override
+ public float getBalance() {
+ return balance_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeUInt32(1, limit_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeFloat(2, balance_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, limit_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, balance_);
+ }
+ 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR other = (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) obj;
+
+ if (hasLimit() != other.hasLimit()) return false;
+ if (hasLimit()) {
+ if (getLimit()
+ != other.getLimit()) return false;
+ }
+ if (hasBalance() != other.hasBalance()) return false;
+ if (hasBalance()) {
+ if (java.lang.Float.floatToIntBits(getBalance())
+ != java.lang.Float.floatToIntBits(
+ other.getBalance())) 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();
+ if (hasLimit()) {
+ hash = (37 * hash) + LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getLimit();
+ }
+ if (hasBalance()) {
+ hash = (37 * hash) + BALANCE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getBalance());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR 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 weaviate.v1.Selection.MMR}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderoptional uint32 limit = 1;
+ * @return Whether the limit field is set.
+ */
+ @java.lang.Override
+ public boolean hasLimit() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional uint32 limit = 1;
+ * @return The limit.
+ */
+ @java.lang.Override
+ public int getLimit() {
+ return limit_;
+ }
+ /**
+ * optional uint32 limit = 1;
+ * @param value The limit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLimit(int value) {
+
+ limit_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional uint32 limit = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearLimit() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ limit_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private float balance_ ;
+ /**
+ * optional float balance = 2;
+ * @return Whether the balance field is set.
+ */
+ @java.lang.Override
+ public boolean hasBalance() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional float balance = 2;
+ * @return The balance.
+ */
+ @java.lang.Override
+ public float getBalance() {
+ return balance_;
+ }
+ /**
+ * optional float balance = 2;
+ * @param value The balance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBalance(float value) {
+
+ balance_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional float balance = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearBalance() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ balance_ = 0F;
+ 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:weaviate.v1.Selection.MMR)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.Selection.MMR)
+ private static final io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR();
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.weaviate.v1.Selection.MMR mmr = 1;
+ * @return Whether the mmr field is set.
+ */
+ @java.lang.Override
+ public boolean hasMmr() {
+ return selectionCase_ == 1;
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ * @return The mmr.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR getMmr() {
+ if (selectionCase_ == 1) {
+ return (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) selection_;
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMROrBuilder getMmrOrBuilder() {
+ if (selectionCase_ == 1) {
+ return (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) selection_;
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.getDefaultInstance();
+ }
+
+ 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 (selectionCase_ == 1) {
+ output.writeMessage(1, (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) selection_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (selectionCase_ == 1) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) selection_);
+ }
+ 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection other = (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection) obj;
+
+ if (!getSelectionCase().equals(other.getSelectionCase())) return false;
+ switch (selectionCase_) {
+ case 1:
+ if (!getMmr()
+ .equals(other.getMmr())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (selectionCase_) {
+ case 1:
+ hash = (37 * hash) + MMR_FIELD_NUMBER;
+ hash = (53 * hash) + getMmr().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection 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 weaviate.v1.Selection}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.weaviate.v1.Selection.MMR mmr = 1;
+ * @return Whether the mmr field is set.
+ */
+ @java.lang.Override
+ public boolean hasMmr() {
+ return selectionCase_ == 1;
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ * @return The mmr.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR getMmr() {
+ if (mmrBuilder_ == null) {
+ if (selectionCase_ == 1) {
+ return (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) selection_;
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.getDefaultInstance();
+ } else {
+ if (selectionCase_ == 1) {
+ return mmrBuilder_.getMessage();
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ public Builder setMmr(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR value) {
+ if (mmrBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ onChanged();
+ } else {
+ mmrBuilder_.setMessage(value);
+ }
+ selectionCase_ = 1;
+ return this;
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ public Builder setMmr(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.Builder builderForValue) {
+ if (mmrBuilder_ == null) {
+ selection_ = builderForValue.build();
+ onChanged();
+ } else {
+ mmrBuilder_.setMessage(builderForValue.build());
+ }
+ selectionCase_ = 1;
+ return this;
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ public Builder mergeMmr(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR value) {
+ if (mmrBuilder_ == null) {
+ if (selectionCase_ == 1 &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.getDefaultInstance()) {
+ selection_ = io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.newBuilder((io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) selection_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ selection_ = value;
+ }
+ onChanged();
+ } else {
+ if (selectionCase_ == 1) {
+ mmrBuilder_.mergeFrom(value);
+ } else {
+ mmrBuilder_.setMessage(value);
+ }
+ }
+ selectionCase_ = 1;
+ return this;
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ public Builder clearMmr() {
+ if (mmrBuilder_ == null) {
+ if (selectionCase_ == 1) {
+ selectionCase_ = 0;
+ selection_ = null;
+ onChanged();
+ }
+ } else {
+ if (selectionCase_ == 1) {
+ selectionCase_ = 0;
+ selection_ = null;
+ }
+ mmrBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.Builder getMmrBuilder() {
+ return getMmrFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMROrBuilder getMmrOrBuilder() {
+ if ((selectionCase_ == 1) && (mmrBuilder_ != null)) {
+ return mmrBuilder_.getMessageOrBuilder();
+ } else {
+ if (selectionCase_ == 1) {
+ return (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) selection_;
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.Selection.MMR mmr = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMROrBuilder>
+ getMmrFieldBuilder() {
+ if (mmrBuilder_ == null) {
+ if (!(selectionCase_ == 1)) {
+ selection_ = io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.getDefaultInstance();
+ }
+ mmrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMROrBuilder>(
+ (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.MMR) selection_,
+ getParentForChildren(),
+ isClean());
+ selection_ = null;
+ }
+ selectionCase_ = 1;
+ onChanged();
+ return mmrBuilder_;
+ }
+ @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:weaviate.v1.Selection)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.Selection)
+ private static final io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection();
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @return A list containing the vector.
*/
@java.lang.Deprecated java.util.Listrepeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @return The count of vector.
*/
@java.lang.Deprecated int getVectorCount();
@@ -3716,17 +5027,23 @@ public interface HybridOrBuilder extends
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@java.lang.Deprecated float getVector(int index);
/**
- * float alpha = 4;
+ *
+ * deprecated in 1.36.0 - use alpha_param
+ *
+ *
+ * float alpha = 4 [deprecated = true];
+ * @deprecated weaviate.v1.Hybrid.alpha is deprecated.
+ * See v1/base_search.proto;l=61
* @return The alpha.
*/
- float getAlpha();
+ @java.lang.Deprecated float getAlpha();
/**
* .weaviate.v1.Hybrid.FusionType fusion_type = 5;
@@ -3746,7 +5063,7 @@ public interface HybridOrBuilder extends
*
* bytes vector_bytes = 6 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector_bytes is deprecated.
- * See v1/base_search.proto;l=60
+ * See v1/base_search.proto;l=68
* @return The vectorBytes.
*/
@java.lang.Deprecated com.google.protobuf.ByteString getVectorBytes();
@@ -3758,7 +5075,7 @@ public interface HybridOrBuilder extends
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -3781,7 +5098,7 @@ public interface HybridOrBuilder extends
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -3793,7 +5110,7 @@ public interface HybridOrBuilder extends
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -3884,6 +5201,43 @@ public interface HybridOrBuilder extends
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SearchOperatorOptionsOrBuilder getBm25SearchOperatorOrBuilder();
+ /**
+ * optional float alpha_param = 12;
+ * @return Whether the alphaParam field is set.
+ */
+ boolean hasAlphaParam();
+ /**
+ * optional float alpha_param = 12;
+ * @return The alphaParam.
+ */
+ float getAlphaParam();
+
+ /**
+ *
+ * if true, alpha_param is used instead of alpha.
+ * This is for backward compatibility, as alpha was used before alpha_param was introduced.
+ *
+ *
+ * bool use_alpha_param = 13;
+ * @return The useAlphaParam.
+ */
+ boolean getUseAlphaParam();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
+
/**
* float vector_distance = 20;
* @return Whether the vectorDistance field is set.
@@ -4210,7 +5564,7 @@ public java.lang.String getProperties(int index) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @return A list containing the vector.
*/
@java.lang.Override
@@ -4225,7 +5579,7 @@ public java.lang.String getProperties(int index) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @return The count of vector.
*/
@java.lang.Deprecated public int getVectorCount() {
@@ -4238,7 +5592,7 @@ public java.lang.String getProperties(int index) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@@ -4250,11 +5604,17 @@ public java.lang.String getProperties(int index) {
public static final int ALPHA_FIELD_NUMBER = 4;
private float alpha_ = 0F;
/**
- * float alpha = 4;
+ *
+ * deprecated in 1.36.0 - use alpha_param
+ *
+ *
+ * float alpha = 4 [deprecated = true];
+ * @deprecated weaviate.v1.Hybrid.alpha is deprecated.
+ * See v1/base_search.proto;l=61
* @return The alpha.
*/
@java.lang.Override
- public float getAlpha() {
+ @java.lang.Deprecated public float getAlpha() {
return alpha_;
}
@@ -4285,7 +5645,7 @@ public float getAlpha() {
*
* bytes vector_bytes = 6 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector_bytes is deprecated.
- * See v1/base_search.proto;l=60
+ * See v1/base_search.proto;l=68
* @return The vectorBytes.
*/
@java.lang.Override
@@ -4304,7 +5664,7 @@ public float getAlpha() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -4318,7 +5678,7 @@ public float getAlpha() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -4331,7 +5691,7 @@ public float getAlpha() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -4345,7 +5705,7 @@ public float getAlpha() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -4482,6 +5842,67 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Sea
return bm25SearchOperator_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SearchOperatorOptions.getDefaultInstance() : bm25SearchOperator_;
}
+ public static final int ALPHA_PARAM_FIELD_NUMBER = 12;
+ private float alphaParam_ = 0F;
+ /**
+ * optional float alpha_param = 12;
+ * @return Whether the alphaParam field is set.
+ */
+ @java.lang.Override
+ public boolean hasAlphaParam() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional float alpha_param = 12;
+ * @return The alphaParam.
+ */
+ @java.lang.Override
+ public float getAlphaParam() {
+ return alphaParam_;
+ }
+
+ public static final int USE_ALPHA_PARAM_FIELD_NUMBER = 13;
+ private boolean useAlphaParam_ = false;
+ /**
+ *
+ * if true, alpha_param is used instead of alpha.
+ * This is for backward compatibility, as alpha was used before alpha_param was introduced.
+ *
+ *
+ * bool use_alpha_param = 13;
+ * @return The useAlphaParam.
+ */
+ @java.lang.Override
+ public boolean getUseAlphaParam() {
+ return useAlphaParam_;
+ }
+
+ public static final int SELECTION_FIELD_NUMBER = 14;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
public static final int VECTOR_DISTANCE_FIELD_NUMBER = 20;
/**
* float vector_distance = 20;
@@ -4596,6 +6017,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(11, getBm25SearchOperator());
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeFloat(12, alphaParam_);
+ }
+ if (useAlphaParam_ != false) {
+ output.writeBool(13, useAlphaParam_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(14, getSelection());
+ }
if (thresholdCase_ == 20) {
output.writeFloat(
20, (float)((java.lang.Float) threshold_));
@@ -4670,6 +6100,18 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getBm25SearchOperator());
}
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(12, alphaParam_);
+ }
+ if (useAlphaParam_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(13, useAlphaParam_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(14, getSelection());
+ }
if (thresholdCase_ == 20) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(
@@ -4728,6 +6170,19 @@ public boolean equals(final java.lang.Object obj) {
if (!getBm25SearchOperator()
.equals(other.getBm25SearchOperator())) return false;
}
+ if (hasAlphaParam() != other.hasAlphaParam()) return false;
+ if (hasAlphaParam()) {
+ if (java.lang.Float.floatToIntBits(getAlphaParam())
+ != java.lang.Float.floatToIntBits(
+ other.getAlphaParam())) return false;
+ }
+ if (getUseAlphaParam()
+ != other.getUseAlphaParam()) return false;
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getVectorsList()
.equals(other.getVectorsList())) return false;
if (!getThresholdCase().equals(other.getThresholdCase())) return false;
@@ -4788,6 +6243,18 @@ public int hashCode() {
hash = (37 * hash) + BM25_SEARCH_OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + getBm25SearchOperator().hashCode();
}
+ if (hasAlphaParam()) {
+ hash = (37 * hash) + ALPHA_PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getAlphaParam());
+ }
+ hash = (37 * hash) + USE_ALPHA_PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getUseAlphaParam());
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
if (getVectorsCount() > 0) {
hash = (37 * hash) + VECTORS_FIELD_NUMBER;
hash = (53 * hash) + getVectorsList().hashCode();
@@ -4935,6 +6402,7 @@ private void maybeForceBuilderInitialization() {
getNearVectorFieldBuilder();
getTargetsFieldBuilder();
getBm25SearchOperatorFieldBuilder();
+ getSelectionFieldBuilder();
getVectorsFieldBuilder();
}
}
@@ -4971,13 +6439,20 @@ public Builder clear() {
bm25SearchOperatorBuilder_.dispose();
bm25SearchOperatorBuilder_ = null;
}
+ alphaParam_ = 0F;
+ useAlphaParam_ = false;
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
if (vectorsBuilder_ == null) {
vectors_ = java.util.Collections.emptyList();
} else {
vectors_ = null;
vectorsBuilder_.clear();
}
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00008000);
thresholdCase_ = 0;
threshold_ = null;
return this;
@@ -5015,9 +6490,9 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Hyb
private void buildPartialRepeatedFields(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Hybrid result) {
if (vectorsBuilder_ == null) {
- if (((bitField0_ & 0x00001000) != 0)) {
+ if (((bitField0_ & 0x00008000) != 0)) {
vectors_ = java.util.Collections.unmodifiableList(vectors_);
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00008000);
}
result.vectors_ = vectors_;
} else {
@@ -5076,6 +6551,19 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: bm25SearchOperatorBuilder_.build();
to_bitField0_ |= 0x00000008;
}
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.alphaParam_ = alphaParam_;
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.useAlphaParam_ = useAlphaParam_;
+ }
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000020;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -5185,11 +6673,20 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasBm25SearchOperator()) {
mergeBm25SearchOperator(other.getBm25SearchOperator());
}
+ if (other.hasAlphaParam()) {
+ setAlphaParam(other.getAlphaParam());
+ }
+ if (other.getUseAlphaParam() != false) {
+ setUseAlphaParam(other.getUseAlphaParam());
+ }
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
if (vectorsBuilder_ == null) {
if (!other.vectors_.isEmpty()) {
if (vectors_.isEmpty()) {
vectors_ = other.vectors_;
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureVectorsIsMutable();
vectors_.addAll(other.vectors_);
@@ -5202,7 +6699,7 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
vectorsBuilder_.dispose();
vectorsBuilder_ = null;
vectors_ = other.vectors_;
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00008000);
vectorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getVectorsFieldBuilder() : null;
@@ -5323,6 +6820,23 @@ public Builder mergeFrom(
bitField0_ |= 0x00000400;
break;
} // case 90
+ case 101: {
+ alphaParam_ = input.readFloat();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 101
+ case 104: {
+ useAlphaParam_ = input.readBool();
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 104
+ case 114: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00002000;
+ break;
+ } // case 114
case 165: {
threshold_ = input.readFloat();
thresholdCase_ = 20;
@@ -5576,7 +7090,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @return A list containing the vector.
*/
@java.lang.Deprecated public java.util.Listrepeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @return The count of vector.
*/
@java.lang.Deprecated public int getVectorCount() {
@@ -5604,7 +7118,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@@ -5618,7 +7132,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @param index The index to set the value at.
* @param value The vector to set.
* @return This builder for chaining.
@@ -5639,7 +7153,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @param value The vector to add.
* @return This builder for chaining.
*/
@@ -5658,7 +7172,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @param values The vector to add.
* @return This builder for chaining.
*/
@@ -5678,7 +7192,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 3 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector is deprecated.
- * See v1/base_search.proto;l=51
+ * See v1/base_search.proto;l=60
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearVector() {
@@ -5690,19 +7204,31 @@ private void ensureVectorIsMutable(int capacity) {
private float alpha_ ;
/**
- * float alpha = 4;
+ *
+ * deprecated in 1.36.0 - use alpha_param
+ *
+ *
+ * float alpha = 4 [deprecated = true];
+ * @deprecated weaviate.v1.Hybrid.alpha is deprecated.
+ * See v1/base_search.proto;l=61
* @return The alpha.
*/
@java.lang.Override
- public float getAlpha() {
+ @java.lang.Deprecated public float getAlpha() {
return alpha_;
}
/**
- * float alpha = 4;
+ *
+ * deprecated in 1.36.0 - use alpha_param
+ *
+ *
+ * float alpha = 4 [deprecated = true];
+ * @deprecated weaviate.v1.Hybrid.alpha is deprecated.
+ * See v1/base_search.proto;l=61
* @param value The alpha to set.
* @return This builder for chaining.
*/
- public Builder setAlpha(float value) {
+ @java.lang.Deprecated public Builder setAlpha(float value) {
alpha_ = value;
bitField0_ |= 0x00000008;
@@ -5710,10 +7236,16 @@ public Builder setAlpha(float value) {
return this;
}
/**
- * float alpha = 4;
+ *
+ * deprecated in 1.36.0 - use alpha_param
+ *
+ *
+ * float alpha = 4 [deprecated = true];
+ * @deprecated weaviate.v1.Hybrid.alpha is deprecated.
+ * See v1/base_search.proto;l=61
* @return This builder for chaining.
*/
- public Builder clearAlpha() {
+ @java.lang.Deprecated public Builder clearAlpha() {
bitField0_ = (bitField0_ & ~0x00000008);
alpha_ = 0F;
onChanged();
@@ -5781,7 +7313,7 @@ public Builder clearFusionType() {
*
* bytes vector_bytes = 6 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector_bytes is deprecated.
- * See v1/base_search.proto;l=60
+ * See v1/base_search.proto;l=68
* @return The vectorBytes.
*/
@java.lang.Override
@@ -5795,7 +7327,7 @@ public Builder clearFusionType() {
*
* bytes vector_bytes = 6 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector_bytes is deprecated.
- * See v1/base_search.proto;l=60
+ * See v1/base_search.proto;l=68
* @param value The vectorBytes to set.
* @return This builder for chaining.
*/
@@ -5813,7 +7345,7 @@ public Builder clearFusionType() {
*
* bytes vector_bytes = 6 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.vector_bytes is deprecated.
- * See v1/base_search.proto;l=60
+ * See v1/base_search.proto;l=68
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearVectorBytes() {
@@ -5838,7 +7370,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -5853,7 +7385,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -5866,7 +7398,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -5880,7 +7412,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -5895,7 +7427,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -5916,7 +7448,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -5936,7 +7468,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -5956,7 +7488,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -5973,7 +7505,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 7 [deprecated = true];
* @deprecated weaviate.v1.Hybrid.target_vectors is deprecated.
- * See v1/base_search.proto;l=62
+ * See v1/base_search.proto;l=69
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -6544,6 +8076,214 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Sea
return bm25SearchOperatorBuilder_;
}
+ private float alphaParam_ ;
+ /**
+ * optional float alpha_param = 12;
+ * @return Whether the alphaParam field is set.
+ */
+ @java.lang.Override
+ public boolean hasAlphaParam() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ * optional float alpha_param = 12;
+ * @return The alphaParam.
+ */
+ @java.lang.Override
+ public float getAlphaParam() {
+ return alphaParam_;
+ }
+ /**
+ * optional float alpha_param = 12;
+ * @param value The alphaParam to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAlphaParam(float value) {
+
+ alphaParam_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional float alpha_param = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearAlphaParam() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ alphaParam_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private boolean useAlphaParam_ ;
+ /**
+ *
+ * if true, alpha_param is used instead of alpha.
+ * This is for backward compatibility, as alpha was used before alpha_param was introduced.
+ *
+ *
+ * bool use_alpha_param = 13;
+ * @return The useAlphaParam.
+ */
+ @java.lang.Override
+ public boolean getUseAlphaParam() {
+ return useAlphaParam_;
+ }
+ /**
+ *
+ * if true, alpha_param is used instead of alpha.
+ * This is for backward compatibility, as alpha was used before alpha_param was introduced.
+ *
+ *
+ * bool use_alpha_param = 13;
+ * @param value The useAlphaParam to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUseAlphaParam(boolean value) {
+
+ useAlphaParam_ = value;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * if true, alpha_param is used instead of alpha.
+ * This is for backward compatibility, as alpha was used before alpha_param was introduced.
+ *
+ *
+ * bool use_alpha_param = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearUseAlphaParam() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ useAlphaParam_ = false;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00002000) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00002000) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return getSelectionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
+ } else {
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 14;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
+ getParentForChildren(),
+ isClean());
+ selection_ = null;
+ }
+ return selectionBuilder_;
+ }
+
/**
* float vector_distance = 20;
* @return Whether the vectorDistance field is set.
@@ -6589,9 +8329,9 @@ public Builder clearVectorDistance() {
private java.util.Listrepeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @return A list containing the vector.
*/
@java.lang.Deprecated java.util.Listrepeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @return The count of vector.
*/
@java.lang.Deprecated int getVectorCount();
@@ -6922,7 +8662,7 @@ public interface NearVectorOrBuilder extends
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@@ -6957,7 +8697,7 @@ public interface NearVectorOrBuilder extends
*
* bytes vector_bytes = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector_bytes is deprecated.
- * See v1/base_search.proto;l=83
+ * See v1/base_search.proto;l=93
* @return The vectorBytes.
*/
@java.lang.Deprecated com.google.protobuf.ByteString getVectorBytes();
@@ -6969,7 +8709,7 @@ public interface NearVectorOrBuilder extends
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -6992,7 +8732,7 @@ public interface NearVectorOrBuilder extends
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -7004,7 +8744,7 @@ public interface NearVectorOrBuilder extends
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -7127,6 +8867,21 @@ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.VectorForT
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.VectorsOrBuilder getVectorsOrBuilder(
int index);
+
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearVector}
@@ -7193,7 +8948,7 @@ protected com.google.protobuf.MapField internalGetMapField(
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @return A list containing the vector.
*/
@java.lang.Override
@@ -7208,7 +8963,7 @@ protected com.google.protobuf.MapField internalGetMapField(
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @return The count of vector.
*/
@java.lang.Deprecated public int getVectorCount() {
@@ -7221,7 +8976,7 @@ protected com.google.protobuf.MapField internalGetMapField(
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@@ -7277,7 +9032,7 @@ public double getDistance() {
*
* bytes vector_bytes = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector_bytes is deprecated.
- * See v1/base_search.proto;l=83
+ * See v1/base_search.proto;l=93
* @return The vectorBytes.
*/
@java.lang.Override
@@ -7296,7 +9051,7 @@ public double getDistance() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -7310,7 +9065,7 @@ public double getDistance() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -7323,7 +9078,7 @@ public double getDistance() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -7337,7 +9092,7 @@ public double getDistance() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -7549,6 +9304,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.VectorsOr
return vectors_.get(index);
}
+ public static final int SELECTION_FIELD_NUMBER = 10;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -7598,6 +9379,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < vectors_.size(); i++) {
output.writeMessage(9, vectors_.get(i));
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(10, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -7660,6 +9444,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, vectors_.get(i));
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -7704,6 +9492,11 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getVectorForTargetsList())) return false;
if (!getVectorsList()
.equals(other.getVectorsList())) return false;
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -7751,6 +9544,10 @@ public int hashCode() {
hash = (37 * hash) + VECTORS_FIELD_NUMBER;
hash = (53 * hash) + getVectorsList().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -7906,6 +9703,7 @@ private void maybeForceBuilderInitialization() {
getTargetsFieldBuilder();
getVectorForTargetsFieldBuilder();
getVectorsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -7938,6 +9736,11 @@ public Builder clear() {
vectorsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -8023,6 +9826,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
result.vectorPerTarget_ = internalGetVectorPerTarget();
result.vectorPerTarget_.makeImmutable();
}
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -8158,6 +9967,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
}
}
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -8264,6 +10076,13 @@ public Builder mergeFrom(
}
break;
} // case 74
+ case 82: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -8301,7 +10120,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @return A list containing the vector.
*/
@java.lang.Deprecated public java.util.Listrepeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @return The count of vector.
*/
@java.lang.Deprecated public int getVectorCount() {
@@ -8329,7 +10148,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@@ -8343,7 +10162,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @param index The index to set the value at.
* @param value The vector to set.
* @return This builder for chaining.
@@ -8364,7 +10183,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @param value The vector to add.
* @return This builder for chaining.
*/
@@ -8383,7 +10202,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @param values The vector to add.
* @return This builder for chaining.
*/
@@ -8403,7 +10222,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 1 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector is deprecated.
- * See v1/base_search.proto;l=79
+ * See v1/base_search.proto;l=90
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearVector() {
@@ -8501,7 +10320,7 @@ public Builder clearDistance() {
*
* bytes vector_bytes = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector_bytes is deprecated.
- * See v1/base_search.proto;l=83
+ * See v1/base_search.proto;l=93
* @return The vectorBytes.
*/
@java.lang.Override
@@ -8515,7 +10334,7 @@ public Builder clearDistance() {
*
* bytes vector_bytes = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector_bytes is deprecated.
- * See v1/base_search.proto;l=83
+ * See v1/base_search.proto;l=93
* @param value The vectorBytes to set.
* @return This builder for chaining.
*/
@@ -8533,7 +10352,7 @@ public Builder clearDistance() {
*
* bytes vector_bytes = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVector.vector_bytes is deprecated.
- * See v1/base_search.proto;l=83
+ * See v1/base_search.proto;l=93
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearVectorBytes() {
@@ -8558,7 +10377,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -8573,7 +10392,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -8586,7 +10405,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -8600,7 +10419,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -8615,7 +10434,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -8636,7 +10455,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -8656,7 +10475,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -8676,7 +10495,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -8693,7 +10512,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 5 [deprecated = true];
* @deprecated weaviate.v1.NearVector.target_vectors is deprecated.
- * See v1/base_search.proto;l=85
+ * See v1/base_search.proto;l=94
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -9428,40 +11247,161 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.VectorsOr
}
}
/**
- * repeated .weaviate.v1.Vectors vectors = 9;
+ * repeated .weaviate.v1.Vectors vectors = 9;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.Vectors.Builder addVectorsBuilder() {
+ return getVectorsFieldBuilder().addBuilder(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.Vectors.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.Vectors vectors = 9;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.Vectors.Builder addVectorsBuilder(
+ int index) {
+ return getVectorsFieldBuilder().addBuilder(
+ index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.Vectors.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.Vectors vectors = 9;
+ */
+ public java.util.Listoptional .weaviate.v1.Selection selection = 10;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 10;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.Vectors.Builder addVectorsBuilder() {
- return getVectorsFieldBuilder().addBuilder(
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.Vectors.getDefaultInstance());
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
}
/**
- * repeated .weaviate.v1.Vectors vectors = 9;
+ * optional .weaviate.v1.Selection selection = 10;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.Vectors.Builder addVectorsBuilder(
- int index) {
- return getVectorsFieldBuilder().addBuilder(
- index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.Vectors.getDefaultInstance());
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getSelectionFieldBuilder().getBuilder();
}
/**
- * repeated .weaviate.v1.Vectors vectors = 9;
+ * optional .weaviate.v1.Selection selection = 10;
*/
- public java.util.Listoptional .weaviate.v1.Selection selection = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
getParentForChildren(),
isClean());
- vectors_ = null;
+ selection_ = null;
}
- return vectorsBuilder_;
+ return selectionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
@@ -9572,7 +11512,7 @@ public interface NearObjectOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -9595,7 +11535,7 @@ public interface NearObjectOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -9607,7 +11547,7 @@ public interface NearObjectOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -9628,6 +11568,21 @@ public interface NearObjectOrBuilder extends
* .weaviate.v1.Targets targets = 5;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearObject}
@@ -9756,7 +11711,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -9770,7 +11725,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -9783,7 +11738,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -9797,7 +11752,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -9832,6 +11787,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
return targets_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
}
+ public static final int SELECTION_FIELD_NUMBER = 6;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -9861,6 +11842,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -9893,6 +11877,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -9929,6 +11917,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTargets()
.equals(other.getTargets())) return false;
}
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -9960,6 +11953,10 @@ public int hashCode() {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargets().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -10091,6 +12088,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -10107,6 +12105,11 @@ public Builder clear() {
targetsBuilder_.dispose();
targetsBuilder_ = null;
}
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -10162,6 +12165,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: targetsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -10233,6 +12242,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTargets()) {
mergeTargets(other.getTargets());
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -10287,6 +12299,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -10471,7 +12490,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -10486,7 +12505,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -10499,7 +12518,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -10513,7 +12532,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -10528,7 +12547,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -10549,7 +12568,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -10569,7 +12588,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -10589,7 +12608,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -10606,7 +12625,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearObject.target_vectors is deprecated.
- * See v1/base_search.proto;l=98
+ * See v1/base_search.proto;l=106
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -10741,6 +12760,127 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
}
return targetsBuilder_;
}
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getSelectionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
+ } else {
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
+ getParentForChildren(),
+ isClean());
+ selection_ = null;
+ }
+ return selectionBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -10909,7 +13049,7 @@ public interface NearTextSearchOrBuilder extends
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -10932,7 +13072,7 @@ public interface NearTextSearchOrBuilder extends
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -10944,7 +13084,7 @@ public interface NearTextSearchOrBuilder extends
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -10965,6 +13105,21 @@ public interface NearTextSearchOrBuilder extends
* .weaviate.v1.Targets targets = 7;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearTextSearch}
@@ -12066,7 +14221,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Nea
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -12080,7 +14235,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Nea
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -12093,7 +14248,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Nea
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -12107,7 +14262,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Nea
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -12142,6 +14297,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
return targets_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
}
+ public static final int SELECTION_FIELD_NUMBER = 8;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -12177,6 +14358,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(7, getTargets());
}
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(8, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -12222,6 +14406,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getTargets());
}
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -12268,6 +14456,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTargets()
.equals(other.getTargets())) return false;
}
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -12309,6 +14502,10 @@ public int hashCode() {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargets().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -12442,6 +14639,7 @@ private void maybeForceBuilderInitialization() {
getMoveToFieldBuilder();
getMoveAwayFieldBuilder();
getTargetsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -12469,6 +14667,11 @@ public Builder clear() {
targetsBuilder_.dispose();
targetsBuilder_ = null;
}
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -12537,6 +14740,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: targetsBuilder_.build();
to_bitField0_ |= 0x00000010;
}
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000020;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -12619,6 +14828,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTargets()) {
mergeTargets(other.getTargets());
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -12688,6 +14900,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 58
+ case 66: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -13189,7 +15408,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -13204,7 +15423,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -13217,7 +15436,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -13231,7 +15450,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -13246,7 +15465,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -13267,7 +15486,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -13287,7 +15506,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -13307,7 +15526,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -13324,7 +15543,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 6 [deprecated = true];
* @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=116
+ * See v1/base_search.proto;l=124
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -13425,39 +15644,160 @@ public Builder clearTargets() {
return this;
}
/**
- * .weaviate.v1.Targets targets = 7;
+ * .weaviate.v1.Targets targets = 7;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder getTargetsBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getTargetsFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.Targets targets = 7;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder() {
+ if (targetsBuilder_ != null) {
+ return targetsBuilder_.getMessageOrBuilder();
+ } else {
+ return targets_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
+ }
+ }
+ /**
+ * .weaviate.v1.Targets targets = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>
+ getTargetsFieldBuilder() {
+ if (targetsBuilder_ == null) {
+ targetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>(
+ getTargets(),
+ getParentForChildren(),
+ isClean());
+ targets_ = null;
+ }
+ return targetsBuilder_;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
+ */
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 8;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder getTargetsBuilder() {
- bitField0_ |= 0x00000040;
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000080;
onChanged();
- return getTargetsFieldBuilder().getBuilder();
+ return getSelectionFieldBuilder().getBuilder();
}
/**
- * .weaviate.v1.Targets targets = 7;
+ * optional .weaviate.v1.Selection selection = 8;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder() {
- if (targetsBuilder_ != null) {
- return targetsBuilder_.getMessageOrBuilder();
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
} else {
- return targets_ == null ?
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
}
}
/**
- * .weaviate.v1.Targets targets = 7;
+ * optional .weaviate.v1.Selection selection = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>
- getTargetsFieldBuilder() {
- if (targetsBuilder_ == null) {
- targetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>(
- getTargets(),
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
getParentForChildren(),
isClean());
- targets_ = null;
+ selection_ = null;
}
- return targetsBuilder_;
+ return selectionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
@@ -13568,7 +15908,7 @@ public interface NearImageSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -13591,7 +15931,7 @@ public interface NearImageSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -13603,7 +15943,7 @@ public interface NearImageSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -13624,6 +15964,21 @@ public interface NearImageSearchOrBuilder extends
* .weaviate.v1.Targets targets = 5;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearImageSearch}
@@ -13752,7 +16107,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -13766,7 +16121,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -13779,7 +16134,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -13793,7 +16148,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -13828,6 +16183,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
return targets_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
}
+ public static final int SELECTION_FIELD_NUMBER = 6;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -13857,6 +16238,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -13889,6 +16273,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -13925,6 +16313,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTargets()
.equals(other.getTargets())) return false;
}
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -13956,6 +16349,10 @@ public int hashCode() {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargets().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -14087,6 +16484,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -14103,6 +16501,11 @@ public Builder clear() {
targetsBuilder_.dispose();
targetsBuilder_ = null;
}
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -14158,6 +16561,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: targetsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -14229,6 +16638,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTargets()) {
mergeTargets(other.getTargets());
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -14283,6 +16695,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -14467,7 +16886,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -14482,7 +16901,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -14495,7 +16914,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -14509,7 +16928,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -14524,7 +16943,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -14545,7 +16964,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -14565,7 +16984,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -14585,7 +17004,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -14602,7 +17021,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=125
+ * See v1/base_search.proto;l=133
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -14737,6 +17156,127 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
}
return targetsBuilder_;
}
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getSelectionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
+ } else {
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
+ getParentForChildren(),
+ isClean());
+ selection_ = null;
+ }
+ return selectionBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -14846,7 +17386,7 @@ public interface NearAudioSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -14869,7 +17409,7 @@ public interface NearAudioSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -14881,7 +17421,7 @@ public interface NearAudioSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -14902,6 +17442,21 @@ public interface NearAudioSearchOrBuilder extends
* .weaviate.v1.Targets targets = 5;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearAudioSearch}
@@ -15030,7 +17585,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -15044,7 +17599,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -15057,7 +17612,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -15071,7 +17626,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -15106,6 +17661,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
return targets_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
}
+ public static final int SELECTION_FIELD_NUMBER = 6;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -15135,6 +17716,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -15167,6 +17751,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -15203,6 +17791,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTargets()
.equals(other.getTargets())) return false;
}
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -15234,6 +17827,10 @@ public int hashCode() {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargets().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -15365,6 +17962,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -15381,6 +17979,11 @@ public Builder clear() {
targetsBuilder_.dispose();
targetsBuilder_ = null;
}
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -15436,6 +18039,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: targetsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -15507,6 +18116,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTargets()) {
mergeTargets(other.getTargets());
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -15561,6 +18173,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -15745,7 +18364,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -15760,7 +18379,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -15773,7 +18392,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -15787,7 +18406,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -15802,7 +18421,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -15823,7 +18442,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -15843,7 +18462,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -15863,7 +18482,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -15880,7 +18499,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=134
+ * See v1/base_search.proto;l=142
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -15956,64 +18575,185 @@ public Builder mergeTargets(io.weaviate.client6.v1.internal.grpc.protocol.Weavia
targets_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance()) {
getTargetsBuilder().mergeFrom(value);
} else {
- targets_ = value;
+ targets_ = value;
+ }
+ } else {
+ targetsBuilder_.mergeFrom(value);
+ }
+ if (targets_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.Targets targets = 5;
+ */
+ public Builder clearTargets() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ targets_ = null;
+ if (targetsBuilder_ != null) {
+ targetsBuilder_.dispose();
+ targetsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.Targets targets = 5;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder getTargetsBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getTargetsFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.Targets targets = 5;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder() {
+ if (targetsBuilder_ != null) {
+ return targetsBuilder_.getMessageOrBuilder();
+ } else {
+ return targets_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
+ }
+ }
+ /**
+ * .weaviate.v1.Targets targets = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>
+ getTargetsFieldBuilder() {
+ if (targetsBuilder_ == null) {
+ targetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>(
+ getTargets(),
+ getParentForChildren(),
+ isClean());
+ targets_ = null;
+ }
+ return targetsBuilder_;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
}
} else {
- targetsBuilder_.mergeFrom(value);
+ selectionBuilder_.mergeFrom(value);
}
- if (targets_ != null) {
- bitField0_ |= 0x00000010;
+ if (selection_ != null) {
+ bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
- * .weaviate.v1.Targets targets = 5;
+ * optional .weaviate.v1.Selection selection = 6;
*/
- public Builder clearTargets() {
- bitField0_ = (bitField0_ & ~0x00000010);
- targets_ = null;
- if (targetsBuilder_ != null) {
- targetsBuilder_.dispose();
- targetsBuilder_ = null;
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
}
onChanged();
return this;
}
/**
- * .weaviate.v1.Targets targets = 5;
+ * optional .weaviate.v1.Selection selection = 6;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder getTargetsBuilder() {
- bitField0_ |= 0x00000010;
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000020;
onChanged();
- return getTargetsFieldBuilder().getBuilder();
+ return getSelectionFieldBuilder().getBuilder();
}
/**
- * .weaviate.v1.Targets targets = 5;
+ * optional .weaviate.v1.Selection selection = 6;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder() {
- if (targetsBuilder_ != null) {
- return targetsBuilder_.getMessageOrBuilder();
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
} else {
- return targets_ == null ?
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
}
}
/**
- * .weaviate.v1.Targets targets = 5;
+ * optional .weaviate.v1.Selection selection = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>
- getTargetsFieldBuilder() {
- if (targetsBuilder_ == null) {
- targetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>(
- getTargets(),
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
getParentForChildren(),
isClean());
- targets_ = null;
+ selection_ = null;
}
- return targetsBuilder_;
+ return selectionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
@@ -16124,7 +18864,7 @@ public interface NearVideoSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -16147,7 +18887,7 @@ public interface NearVideoSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -16159,7 +18899,7 @@ public interface NearVideoSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -16180,6 +18920,21 @@ public interface NearVideoSearchOrBuilder extends
* .weaviate.v1.Targets targets = 5;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearVideoSearch}
@@ -16308,7 +19063,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -16322,7 +19077,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -16335,7 +19090,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -16349,7 +19104,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -16384,6 +19139,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
return targets_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
}
+ public static final int SELECTION_FIELD_NUMBER = 6;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -16413,6 +19194,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -16445,6 +19229,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -16481,6 +19269,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTargets()
.equals(other.getTargets())) return false;
}
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -16512,6 +19305,10 @@ public int hashCode() {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargets().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -16643,6 +19440,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -16659,6 +19457,11 @@ public Builder clear() {
targetsBuilder_.dispose();
targetsBuilder_ = null;
}
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -16714,6 +19517,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: targetsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -16785,6 +19594,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTargets()) {
mergeTargets(other.getTargets());
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -16839,6 +19651,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -17023,7 +19842,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -17038,7 +19857,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -17051,7 +19870,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -17065,7 +19884,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -17080,7 +19899,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -17101,7 +19920,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -17121,7 +19940,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -17141,7 +19960,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -17158,7 +19977,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=143
+ * See v1/base_search.proto;l=151
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -17293,6 +20112,127 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
}
return targetsBuilder_;
}
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getSelectionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
+ } else {
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
+ getParentForChildren(),
+ isClean());
+ selection_ = null;
+ }
+ return selectionBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -17402,7 +20342,7 @@ public interface NearDepthSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -17425,7 +20365,7 @@ public interface NearDepthSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -17437,7 +20377,7 @@ public interface NearDepthSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -17458,6 +20398,21 @@ public interface NearDepthSearchOrBuilder extends
* .weaviate.v1.Targets targets = 5;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearDepthSearch}
@@ -17586,7 +20541,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -17600,7 +20555,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -17613,7 +20568,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -17627,7 +20582,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -17662,6 +20617,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
return targets_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
}
+ public static final int SELECTION_FIELD_NUMBER = 6;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -17691,6 +20672,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -17723,6 +20707,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -17759,6 +20747,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTargets()
.equals(other.getTargets())) return false;
}
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -17790,6 +20783,10 @@ public int hashCode() {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargets().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -17921,6 +20918,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -17937,6 +20935,11 @@ public Builder clear() {
targetsBuilder_.dispose();
targetsBuilder_ = null;
}
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -17992,6 +20995,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: targetsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -18063,6 +21072,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTargets()) {
mergeTargets(other.getTargets());
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -18117,6 +21129,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -18301,7 +21320,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -18316,7 +21335,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -18329,7 +21348,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -18343,7 +21362,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -18358,7 +21377,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -18379,7 +21398,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -18399,7 +21418,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -18419,7 +21438,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -18436,7 +21455,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=152
+ * See v1/base_search.proto;l=160
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -18551,25 +21570,146 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
if (targetsBuilder_ != null) {
return targetsBuilder_.getMessageOrBuilder();
} else {
- return targets_ == null ?
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
+ return targets_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
+ }
+ }
+ /**
+ * .weaviate.v1.Targets targets = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>
+ getTargetsFieldBuilder() {
+ if (targetsBuilder_ == null) {
+ targetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>(
+ getTargets(),
+ getParentForChildren(),
+ isClean());
+ targets_ = null;
+ }
+ return targetsBuilder_;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getSelectionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
+ } else {
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
}
}
/**
- * .weaviate.v1.Targets targets = 5;
+ * optional .weaviate.v1.Selection selection = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>
- getTargetsFieldBuilder() {
- if (targetsBuilder_ == null) {
- targetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder>(
- getTargets(),
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
getParentForChildren(),
isClean());
- targets_ = null;
+ selection_ = null;
}
- return targetsBuilder_;
+ return selectionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
@@ -18680,7 +21820,7 @@ public interface NearThermalSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -18703,7 +21843,7 @@ public interface NearThermalSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -18715,7 +21855,7 @@ public interface NearThermalSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -18736,6 +21876,21 @@ public interface NearThermalSearchOrBuilder extends
* .weaviate.v1.Targets targets = 5;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearThermalSearch}
@@ -18864,7 +22019,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -18878,7 +22033,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -18891,7 +22046,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -18905,7 +22060,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -18940,6 +22095,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
return targets_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
}
+ public static final int SELECTION_FIELD_NUMBER = 6;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -18969,6 +22150,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -19001,6 +22185,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -19037,6 +22225,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTargets()
.equals(other.getTargets())) return false;
}
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -19068,6 +22261,10 @@ public int hashCode() {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargets().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -19199,6 +22396,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -19215,6 +22413,11 @@ public Builder clear() {
targetsBuilder_.dispose();
targetsBuilder_ = null;
}
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -19270,6 +22473,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: targetsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -19341,6 +22550,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTargets()) {
mergeTargets(other.getTargets());
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -19395,6 +22607,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -19579,7 +22798,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -19594,7 +22813,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -19607,7 +22826,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -19621,7 +22840,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -19636,7 +22855,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -19657,7 +22876,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -19677,7 +22896,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -19697,7 +22916,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -19714,7 +22933,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=161
+ * See v1/base_search.proto;l=169
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -19849,6 +23068,127 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
}
return targetsBuilder_;
}
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getSelectionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
+ } else {
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
+ getParentForChildren(),
+ isClean());
+ selection_ = null;
+ }
+ return selectionBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -19958,7 +23298,7 @@ public interface NearIMUSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated java.util.Listrepeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @return The count of targetVectors.
*/
@java.lang.Deprecated int getTargetVectorsCount();
@@ -19981,7 +23321,7 @@ public interface NearIMUSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -19993,7 +23333,7 @@ public interface NearIMUSearchOrBuilder extends
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -20014,6 +23354,21 @@ public interface NearIMUSearchOrBuilder extends
* .weaviate.v1.Targets targets = 5;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ boolean hasSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection();
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.NearIMUSearch}
@@ -20142,7 +23497,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -20156,7 +23511,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -20169,7 +23524,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -20183,7 +23538,7 @@ public double getDistance() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -20218,6 +23573,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
return targets_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Targets.getDefaultInstance() : targets_;
}
+ public static final int SELECTION_FIELD_NUMBER = 6;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ @java.lang.Override
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -20247,6 +23628,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getSelection());
+ }
getUnknownFields().writeTo(output);
}
@@ -20279,6 +23663,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTargets());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSelection());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -20315,6 +23703,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getTargets()
.equals(other.getTargets())) return false;
}
+ if (hasSelection() != other.hasSelection()) return false;
+ if (hasSelection()) {
+ if (!getSelection()
+ .equals(other.getSelection())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -20346,6 +23739,10 @@ public int hashCode() {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargets().hashCode();
}
+ if (hasSelection()) {
+ hash = (37 * hash) + SELECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSelection().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -20477,6 +23874,7 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetsFieldBuilder();
+ getSelectionFieldBuilder();
}
}
@java.lang.Override
@@ -20493,6 +23891,11 @@ public Builder clear() {
targetsBuilder_.dispose();
targetsBuilder_ = null;
}
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
return this;
}
@@ -20548,6 +23951,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: targetsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.selection_ = selectionBuilder_ == null
+ ? selection_
+ : selectionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -20619,6 +24028,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTargets()) {
mergeTargets(other.getTargets());
}
+ if (other.hasSelection()) {
+ mergeSelection(other.getSelection());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -20673,6 +24085,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50: {
+ input.readMessage(
+ getSelectionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -20857,7 +24276,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @return A list containing the targetVectors.
*/
@java.lang.Deprecated public com.google.protobuf.ProtocolStringList
@@ -20872,7 +24291,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @return The count of targetVectors.
*/
@java.lang.Deprecated public int getTargetVectorsCount() {
@@ -20885,7 +24304,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param index The index of the element to return.
* @return The targetVectors at the given index.
*/
@@ -20899,7 +24318,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param index The index of the value to return.
* @return The bytes of the targetVectors at the given index.
*/
@@ -20914,7 +24333,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param index The index to set the value at.
* @param value The targetVectors to set.
* @return This builder for chaining.
@@ -20935,7 +24354,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param value The targetVectors to add.
* @return This builder for chaining.
*/
@@ -20955,7 +24374,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param values The targetVectors to add.
* @return This builder for chaining.
*/
@@ -20975,7 +24394,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearTargetVectors() {
@@ -20992,7 +24411,7 @@ private void ensureTargetVectorsIsMutable() {
*
* repeated string target_vectors = 4 [deprecated = true];
* @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated.
- * See v1/base_search.proto;l=170
+ * See v1/base_search.proto;l=178
* @param value The bytes of the targetVectors to add.
* @return This builder for chaining.
*/
@@ -21127,6 +24546,127 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Tar
}
return targetsBuilder_;
}
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection selection_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder> selectionBuilder_;
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return Whether the selection field is set.
+ */
+ public boolean hasSelection() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ * @return The selection.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection getSelection() {
+ if (selectionBuilder_ == null) {
+ return selection_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ } else {
+ return selectionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ selection_ = value;
+ } else {
+ selectionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder setSelection(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder builderForValue) {
+ if (selectionBuilder_ == null) {
+ selection_ = builderForValue.build();
+ } else {
+ selectionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder mergeSelection(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection value) {
+ if (selectionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ selection_ != null &&
+ selection_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance()) {
+ getSelectionBuilder().mergeFrom(value);
+ } else {
+ selection_ = value;
+ }
+ } else {
+ selectionBuilder_.mergeFrom(value);
+ }
+ if (selection_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public Builder clearSelection() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ selection_ = null;
+ if (selectionBuilder_ != null) {
+ selectionBuilder_.dispose();
+ selectionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder getSelectionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getSelectionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder getSelectionOrBuilder() {
+ if (selectionBuilder_ != null) {
+ return selectionBuilder_.getMessageOrBuilder();
+ } else {
+ return selection_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.getDefaultInstance() : selection_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.Selection selection = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>
+ getSelectionFieldBuilder() {
+ if (selectionBuilder_ == null) {
+ selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.Selection.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.SelectionOrBuilder>(
+ getSelection(),
+ getParentForChildren(),
+ isClean());
+ selection_ = null;
+ }
+ return selectionBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -22180,6 +25720,16 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.BM2
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_weaviate_v1_VectorForTarget_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_Selection_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_Selection_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_Selection_MMR_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_Selection_MMR_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_weaviate_v1_SearchOperatorOptions_descriptor;
private static final
@@ -22267,90 +25817,111 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.BM2
"ts_for_targets\030\004 \003(\0132\035.weaviate.v1.Weigh" +
"tsForTargetJ\004\010\003\020\004\"`\n\017VectorForTarget\022\014\n\004" +
"name\030\001 \001(\t\022\030\n\014vector_bytes\030\002 \001(\014B\002\030\001\022%\n\007" +
- "vectors\030\003 \003(\0132\024.weaviate.v1.Vectors\"\341\001\n\025" +
- "SearchOperatorOptions\022=\n\010operator\030\001 \001(\0162" +
- "+.weaviate.v1.SearchOperatorOptions.Oper" +
- "ator\022$\n\027minimum_or_tokens_match\030\002 \001(\005H\000\210" +
- "\001\001\"G\n\010Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000" +
- "\022\017\n\013OPERATOR_OR\020\001\022\020\n\014OPERATOR_AND\020\002B\032\n\030_" +
- "minimum_or_tokens_match\"\320\004\n\006Hybrid\022\r\n\005qu" +
- "ery\030\001 \001(\t\022\022\n\nproperties\030\002 \003(\t\022\022\n\006vector\030" +
- "\003 \003(\002B\002\030\001\022\r\n\005alpha\030\004 \001(\002\0223\n\013fusion_type\030" +
- "\005 \001(\0162\036.weaviate.v1.Hybrid.FusionType\022\030\n" +
- "\014vector_bytes\030\006 \001(\014B\002\030\001\022\032\n\016target_vector" +
- "s\030\007 \003(\tB\002\030\001\022.\n\tnear_text\030\010 \001(\0132\033.weaviat" +
- "e.v1.NearTextSearch\022,\n\013near_vector\030\t \001(\013" +
- "2\027.weaviate.v1.NearVector\022%\n\007targets\030\n \001" +
- "(\0132\024.weaviate.v1.Targets\022E\n\024bm25_search_" +
- "operator\030\013 \001(\0132\".weaviate.v1.SearchOpera" +
- "torOptionsH\001\210\001\001\022\031\n\017vector_distance\030\024 \001(\002" +
- "H\000\022%\n\007vectors\030\025 \003(\0132\024.weaviate.v1.Vector" +
- "s\"a\n\nFusionType\022\033\n\027FUSION_TYPE_UNSPECIFI" +
- "ED\020\000\022\026\n\022FUSION_TYPE_RANKED\020\001\022\036\n\032FUSION_T" +
- "YPE_RELATIVE_SCORE\020\002B\013\n\tthresholdB\027\n\025_bm" +
- "25_search_operator\"\255\003\n\nNearVector\022\022\n\006vec" +
- "tor\030\001 \003(\002B\002\030\001\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n" +
- "\010distance\030\003 \001(\001H\001\210\001\001\022\030\n\014vector_bytes\030\004 \001" +
- "(\014B\002\030\001\022\032\n\016target_vectors\030\005 \003(\tB\002\030\001\022%\n\007ta" +
- "rgets\030\006 \001(\0132\024.weaviate.v1.Targets\022K\n\021vec" +
- "tor_per_target\030\007 \003(\0132,.weaviate.v1.NearV" +
- "ector.VectorPerTargetEntryB\002\030\001\0228\n\022vector" +
- "_for_targets\030\010 \003(\0132\034.weaviate.v1.VectorF" +
- "orTarget\022%\n\007vectors\030\t \003(\0132\024.weaviate.v1." +
- "Vectors\0326\n\024VectorPerTargetEntry\022\013\n\003key\030\001" +
- " \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001B\014\n\n_certaintyB\013\n" +
- "\t_distance\"\245\001\n\nNearObject\022\n\n\002id\030\001 \001(\t\022\026\n" +
- "\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001(\001H" +
- "\001\210\001\001\022\032\n\016target_vectors\030\004 \003(\tB\002\030\001\022%\n\007targ" +
- "ets\030\005 \001(\0132\024.weaviate.v1.TargetsB\014\n\n_cert" +
- "aintyB\013\n\t_distance\"\360\002\n\016NearTextSearch\022\r\n" +
- "\005query\030\001 \003(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010" +
- "distance\030\003 \001(\001H\001\210\001\001\0226\n\007move_to\030\004 \001(\0132 .w" +
- "eaviate.v1.NearTextSearch.MoveH\002\210\001\001\0228\n\tm" +
- "ove_away\030\005 \001(\0132 .weaviate.v1.NearTextSea" +
- "rch.MoveH\003\210\001\001\022\032\n\016target_vectors\030\006 \003(\tB\002\030" +
- "\001\022%\n\007targets\030\007 \001(\0132\024.weaviate.v1.Targets" +
- "\0326\n\004Move\022\r\n\005force\030\001 \001(\002\022\020\n\010concepts\030\002 \003(" +
- "\t\022\r\n\005uuids\030\003 \003(\tB\014\n\n_certaintyB\013\n\t_dista" +
- "nceB\n\n\010_move_toB\014\n\n_move_away\"\255\001\n\017NearIm" +
- "ageSearch\022\r\n\005image\030\001 \001(\t\022\026\n\tcertainty\030\002 " +
- "\001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001(\001H\001\210\001\001\022\032\n\016targe" +
- "t_vectors\030\004 \003(\tB\002\030\001\022%\n\007targets\030\005 \001(\0132\024.w" +
- "eaviate.v1.TargetsB\014\n\n_certaintyB\013\n\t_dis" +
- "tance\"\255\001\n\017NearAudioSearch\022\r\n\005audio\030\001 \001(\t" +
+ "vectors\030\003 \003(\0132\024.weaviate.v1.Vectors\"\212\001\n\t" +
+ "Selection\022)\n\003mmr\030\001 \001(\0132\032.weaviate.v1.Sel" +
+ "ection.MMRH\000\032E\n\003MMR\022\022\n\005limit\030\001 \001(\rH\000\210\001\001\022" +
+ "\024\n\007balance\030\002 \001(\002H\001\210\001\001B\010\n\006_limitB\n\n\010_bala" +
+ "nceB\013\n\tselection\"\341\001\n\025SearchOperatorOptio" +
+ "ns\022=\n\010operator\030\001 \001(\0162+.weaviate.v1.Searc" +
+ "hOperatorOptions.Operator\022$\n\027minimum_or_" +
+ "tokens_match\030\002 \001(\005H\000\210\001\001\"G\n\010Operator\022\030\n\024O" +
+ "PERATOR_UNSPECIFIED\020\000\022\017\n\013OPERATOR_OR\020\001\022\020" +
+ "\n\014OPERATOR_AND\020\002B\032\n\030_minimum_or_tokens_m" +
+ "atch\"\325\005\n\006Hybrid\022\r\n\005query\030\001 \001(\t\022\022\n\nproper" +
+ "ties\030\002 \003(\t\022\022\n\006vector\030\003 \003(\002B\002\030\001\022\021\n\005alpha\030" +
+ "\004 \001(\002B\002\030\001\0223\n\013fusion_type\030\005 \001(\0162\036.weaviat" +
+ "e.v1.Hybrid.FusionType\022\030\n\014vector_bytes\030\006" +
+ " \001(\014B\002\030\001\022\032\n\016target_vectors\030\007 \003(\tB\002\030\001\022.\n\t" +
+ "near_text\030\010 \001(\0132\033.weaviate.v1.NearTextSe" +
+ "arch\022,\n\013near_vector\030\t \001(\0132\027.weaviate.v1." +
+ "NearVector\022%\n\007targets\030\n \001(\0132\024.weaviate.v" +
+ "1.Targets\022E\n\024bm25_search_operator\030\013 \001(\0132" +
+ "\".weaviate.v1.SearchOperatorOptionsH\001\210\001\001" +
+ "\022\030\n\013alpha_param\030\014 \001(\002H\002\210\001\001\022\027\n\017use_alpha_" +
+ "param\030\r \001(\010\022.\n\tselection\030\016 \001(\0132\026.weaviat" +
+ "e.v1.SelectionH\003\210\001\001\022\031\n\017vector_distance\030\024" +
+ " \001(\002H\000\022%\n\007vectors\030\025 \003(\0132\024.weaviate.v1.Ve" +
+ "ctors\"a\n\nFusionType\022\033\n\027FUSION_TYPE_UNSPE" +
+ "CIFIED\020\000\022\026\n\022FUSION_TYPE_RANKED\020\001\022\036\n\032FUSI" +
+ "ON_TYPE_RELATIVE_SCORE\020\002B\013\n\tthresholdB\027\n" +
+ "\025_bm25_search_operatorB\016\n\014_alpha_paramB\014" +
+ "\n\n_selection\"\353\003\n\nNearVector\022\022\n\006vector\030\001 " +
+ "\003(\002B\002\030\001\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010dista" +
+ "nce\030\003 \001(\001H\001\210\001\001\022\030\n\014vector_bytes\030\004 \001(\014B\002\030\001" +
+ "\022\032\n\016target_vectors\030\005 \003(\tB\002\030\001\022%\n\007targets\030" +
+ "\006 \001(\0132\024.weaviate.v1.Targets\022K\n\021vector_pe" +
+ "r_target\030\007 \003(\0132,.weaviate.v1.NearVector." +
+ "VectorPerTargetEntryB\002\030\001\0228\n\022vector_for_t" +
+ "argets\030\010 \003(\0132\034.weaviate.v1.VectorForTarg" +
+ "et\022%\n\007vectors\030\t \003(\0132\024.weaviate.v1.Vector" +
+ "s\022.\n\tselection\030\n \001(\0132\026.weaviate.v1.Selec" +
+ "tionH\002\210\001\001\0326\n\024VectorPerTargetEntry\022\013\n\003key" +
+ "\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001B\014\n\n_certaintyB" +
+ "\013\n\t_distanceB\014\n\n_selection\"\343\001\n\nNearObjec" +
+ "t\022\n\n\002id\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n" +
+ "\010distance\030\003 \001(\001H\001\210\001\001\022\032\n\016target_vectors\030\004" +
+ " \003(\tB\002\030\001\022%\n\007targets\030\005 \001(\0132\024.weaviate.v1." +
+ "Targets\022.\n\tselection\030\006 \001(\0132\026.weaviate.v1" +
+ ".SelectionH\002\210\001\001B\014\n\n_certaintyB\013\n\t_distan" +
+ "ceB\014\n\n_selection\"\256\003\n\016NearTextSearch\022\r\n\005q" +
+ "uery\030\001 \003(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010di" +
+ "stance\030\003 \001(\001H\001\210\001\001\0226\n\007move_to\030\004 \001(\0132 .wea" +
+ "viate.v1.NearTextSearch.MoveH\002\210\001\001\0228\n\tmov" +
+ "e_away\030\005 \001(\0132 .weaviate.v1.NearTextSearc" +
+ "h.MoveH\003\210\001\001\022\032\n\016target_vectors\030\006 \003(\tB\002\030\001\022" +
+ "%\n\007targets\030\007 \001(\0132\024.weaviate.v1.Targets\022." +
+ "\n\tselection\030\010 \001(\0132\026.weaviate.v1.Selectio" +
+ "nH\004\210\001\001\0326\n\004Move\022\r\n\005force\030\001 \001(\002\022\020\n\010concept" +
+ "s\030\002 \003(\t\022\r\n\005uuids\030\003 \003(\tB\014\n\n_certaintyB\013\n\t" +
+ "_distanceB\n\n\010_move_toB\014\n\n_move_awayB\014\n\n_" +
+ "selection\"\353\001\n\017NearImageSearch\022\r\n\005image\030\001" +
+ " \001(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance" +
+ "\030\003 \001(\001H\001\210\001\001\022\032\n\016target_vectors\030\004 \003(\tB\002\030\001\022" +
+ "%\n\007targets\030\005 \001(\0132\024.weaviate.v1.Targets\022." +
+ "\n\tselection\030\006 \001(\0132\026.weaviate.v1.Selectio" +
+ "nH\002\210\001\001B\014\n\n_certaintyB\013\n\t_distanceB\014\n\n_se" +
+ "lection\"\353\001\n\017NearAudioSearch\022\r\n\005audio\030\001 \001" +
+ "(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance\030\003" +
+ " \001(\001H\001\210\001\001\022\032\n\016target_vectors\030\004 \003(\tB\002\030\001\022%\n" +
+ "\007targets\030\005 \001(\0132\024.weaviate.v1.Targets\022.\n\t" +
+ "selection\030\006 \001(\0132\026.weaviate.v1.SelectionH" +
+ "\002\210\001\001B\014\n\n_certaintyB\013\n\t_distanceB\014\n\n_sele" +
+ "ction\"\353\001\n\017NearVideoSearch\022\r\n\005video\030\001 \001(\t" +
"\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001" +
"(\001H\001\210\001\001\022\032\n\016target_vectors\030\004 \003(\tB\002\030\001\022%\n\007t" +
- "argets\030\005 \001(\0132\024.weaviate.v1.TargetsB\014\n\n_c" +
- "ertaintyB\013\n\t_distance\"\255\001\n\017NearVideoSearc" +
- "h\022\r\n\005video\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001" +
- "\022\025\n\010distance\030\003 \001(\001H\001\210\001\001\022\032\n\016target_vector" +
- "s\030\004 \003(\tB\002\030\001\022%\n\007targets\030\005 \001(\0132\024.weaviate." +
- "v1.TargetsB\014\n\n_certaintyB\013\n\t_distance\"\255\001" +
- "\n\017NearDepthSearch\022\r\n\005depth\030\001 \001(\t\022\026\n\tcert" +
- "ainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001(\001H\001\210\001\001\022" +
- "\032\n\016target_vectors\030\004 \003(\tB\002\030\001\022%\n\007targets\030\005" +
- " \001(\0132\024.weaviate.v1.TargetsB\014\n\n_certainty" +
- "B\013\n\t_distance\"\261\001\n\021NearThermalSearch\022\017\n\007t" +
- "hermal\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010" +
- "distance\030\003 \001(\001H\001\210\001\001\022\032\n\016target_vectors\030\004 " +
- "\003(\tB\002\030\001\022%\n\007targets\030\005 \001(\0132\024.weaviate.v1.T" +
- "argetsB\014\n\n_certaintyB\013\n\t_distance\"\251\001\n\rNe" +
- "arIMUSearch\022\013\n\003imu\030\001 \001(\t\022\026\n\tcertainty\030\002 " +
- "\001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001(\001H\001\210\001\001\022\032\n\016targe" +
- "t_vectors\030\004 \003(\tB\002\030\001\022%\n\007targets\030\005 \001(\0132\024.w" +
- "eaviate.v1.TargetsB\014\n\n_certaintyB\013\n\t_dis" +
- "tance\"\177\n\004BM25\022\r\n\005query\030\001 \001(\t\022\022\n\nproperti" +
- "es\030\002 \003(\t\022@\n\017search_operator\030\003 \001(\0132\".weav" +
- "iate.v1.SearchOperatorOptionsH\000\210\001\001B\022\n\020_s" +
- "earch_operator*\356\001\n\021CombinationMethod\022\"\n\036" +
- "COMBINATION_METHOD_UNSPECIFIED\020\000\022\037\n\033COMB" +
- "INATION_METHOD_TYPE_SUM\020\001\022\037\n\033COMBINATION" +
- "_METHOD_TYPE_MIN\020\002\022#\n\037COMBINATION_METHOD" +
- "_TYPE_AVERAGE\020\003\022*\n&COMBINATION_METHOD_TY" +
- "PE_RELATIVE_SCORE\020\004\022\"\n\036COMBINATION_METHO" +
- "D_TYPE_MANUAL\020\005BH\n-io.weaviate.client6.v" +
- "1.internal.grpc.protocolB\027WeaviateProtoB" +
- "aseSearchb\006proto3"
+ "argets\030\005 \001(\0132\024.weaviate.v1.Targets\022.\n\tse" +
+ "lection\030\006 \001(\0132\026.weaviate.v1.SelectionH\002\210" +
+ "\001\001B\014\n\n_certaintyB\013\n\t_distanceB\014\n\n_select" +
+ "ion\"\353\001\n\017NearDepthSearch\022\r\n\005depth\030\001 \001(\t\022\026" +
+ "\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001(\001" +
+ "H\001\210\001\001\022\032\n\016target_vectors\030\004 \003(\tB\002\030\001\022%\n\007tar" +
+ "gets\030\005 \001(\0132\024.weaviate.v1.Targets\022.\n\tsele" +
+ "ction\030\006 \001(\0132\026.weaviate.v1.SelectionH\002\210\001\001" +
+ "B\014\n\n_certaintyB\013\n\t_distanceB\014\n\n_selectio" +
+ "n\"\357\001\n\021NearThermalSearch\022\017\n\007thermal\030\001 \001(\t" +
+ "\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001" +
+ "(\001H\001\210\001\001\022\032\n\016target_vectors\030\004 \003(\tB\002\030\001\022%\n\007t" +
+ "argets\030\005 \001(\0132\024.weaviate.v1.Targets\022.\n\tse" +
+ "lection\030\006 \001(\0132\026.weaviate.v1.SelectionH\002\210" +
+ "\001\001B\014\n\n_certaintyB\013\n\t_distanceB\014\n\n_select" +
+ "ion\"\347\001\n\rNearIMUSearch\022\013\n\003imu\030\001 \001(\t\022\026\n\tce" +
+ "rtainty\030\002 \001(\001H\000\210\001\001\022\025\n\010distance\030\003 \001(\001H\001\210\001" +
+ "\001\022\032\n\016target_vectors\030\004 \003(\tB\002\030\001\022%\n\007targets" +
+ "\030\005 \001(\0132\024.weaviate.v1.Targets\022.\n\tselectio" +
+ "n\030\006 \001(\0132\026.weaviate.v1.SelectionH\002\210\001\001B\014\n\n" +
+ "_certaintyB\013\n\t_distanceB\014\n\n_selection\"\177\n" +
+ "\004BM25\022\r\n\005query\030\001 \001(\t\022\022\n\nproperties\030\002 \003(\t" +
+ "\022@\n\017search_operator\030\003 \001(\0132\".weaviate.v1." +
+ "SearchOperatorOptionsH\000\210\001\001B\022\n\020_search_op" +
+ "erator*\356\001\n\021CombinationMethod\022\"\n\036COMBINAT" +
+ "ION_METHOD_UNSPECIFIED\020\000\022\037\n\033COMBINATION_" +
+ "METHOD_TYPE_SUM\020\001\022\037\n\033COMBINATION_METHOD_" +
+ "TYPE_MIN\020\002\022#\n\037COMBINATION_METHOD_TYPE_AV" +
+ "ERAGE\020\003\022*\n&COMBINATION_METHOD_TYPE_RELAT" +
+ "IVE_SCORE\020\004\022\"\n\036COMBINATION_METHOD_TYPE_M" +
+ "ANUAL\020\005BH\n-io.weaviate.client6.v1.intern" +
+ "al.grpc.protocolB\027WeaviateProtoBaseSearc" +
+ "hb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -22375,24 +25946,36 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.BM2
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_VectorForTarget_descriptor,
new java.lang.String[] { "Name", "VectorBytes", "Vectors", });
- internal_static_weaviate_v1_SearchOperatorOptions_descriptor =
+ internal_static_weaviate_v1_Selection_descriptor =
getDescriptor().getMessageTypes().get(3);
+ internal_static_weaviate_v1_Selection_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_Selection_descriptor,
+ new java.lang.String[] { "Mmr", "Selection", });
+ internal_static_weaviate_v1_Selection_MMR_descriptor =
+ internal_static_weaviate_v1_Selection_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_Selection_MMR_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_Selection_MMR_descriptor,
+ new java.lang.String[] { "Limit", "Balance", "Limit", "Balance", });
+ internal_static_weaviate_v1_SearchOperatorOptions_descriptor =
+ getDescriptor().getMessageTypes().get(4);
internal_static_weaviate_v1_SearchOperatorOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_SearchOperatorOptions_descriptor,
new java.lang.String[] { "Operator", "MinimumOrTokensMatch", "MinimumOrTokensMatch", });
internal_static_weaviate_v1_Hybrid_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(5);
internal_static_weaviate_v1_Hybrid_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_Hybrid_descriptor,
- new java.lang.String[] { "Query", "Properties", "Vector", "Alpha", "FusionType", "VectorBytes", "TargetVectors", "NearText", "NearVector", "Targets", "Bm25SearchOperator", "VectorDistance", "Vectors", "Threshold", "Bm25SearchOperator", });
+ new java.lang.String[] { "Query", "Properties", "Vector", "Alpha", "FusionType", "VectorBytes", "TargetVectors", "NearText", "NearVector", "Targets", "Bm25SearchOperator", "AlphaParam", "UseAlphaParam", "Selection", "VectorDistance", "Vectors", "Threshold", "Bm25SearchOperator", "AlphaParam", "Selection", });
internal_static_weaviate_v1_NearVector_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(6);
internal_static_weaviate_v1_NearVector_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearVector_descriptor,
- new java.lang.String[] { "Vector", "Certainty", "Distance", "VectorBytes", "TargetVectors", "Targets", "VectorPerTarget", "VectorForTargets", "Vectors", "Certainty", "Distance", });
+ new java.lang.String[] { "Vector", "Certainty", "Distance", "VectorBytes", "TargetVectors", "Targets", "VectorPerTarget", "VectorForTargets", "Vectors", "Selection", "Certainty", "Distance", "Selection", });
internal_static_weaviate_v1_NearVector_VectorPerTargetEntry_descriptor =
internal_static_weaviate_v1_NearVector_descriptor.getNestedTypes().get(0);
internal_static_weaviate_v1_NearVector_VectorPerTargetEntry_fieldAccessorTable = new
@@ -22400,17 +25983,17 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.BM2
internal_static_weaviate_v1_NearVector_VectorPerTargetEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_weaviate_v1_NearObject_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(7);
internal_static_weaviate_v1_NearObject_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearObject_descriptor,
- new java.lang.String[] { "Id", "Certainty", "Distance", "TargetVectors", "Targets", "Certainty", "Distance", });
+ new java.lang.String[] { "Id", "Certainty", "Distance", "TargetVectors", "Targets", "Selection", "Certainty", "Distance", "Selection", });
internal_static_weaviate_v1_NearTextSearch_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(8);
internal_static_weaviate_v1_NearTextSearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearTextSearch_descriptor,
- new java.lang.String[] { "Query", "Certainty", "Distance", "MoveTo", "MoveAway", "TargetVectors", "Targets", "Certainty", "Distance", "MoveTo", "MoveAway", });
+ new java.lang.String[] { "Query", "Certainty", "Distance", "MoveTo", "MoveAway", "TargetVectors", "Targets", "Selection", "Certainty", "Distance", "MoveTo", "MoveAway", "Selection", });
internal_static_weaviate_v1_NearTextSearch_Move_descriptor =
internal_static_weaviate_v1_NearTextSearch_descriptor.getNestedTypes().get(0);
internal_static_weaviate_v1_NearTextSearch_Move_fieldAccessorTable = new
@@ -22418,43 +26001,43 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBaseSearch.BM2
internal_static_weaviate_v1_NearTextSearch_Move_descriptor,
new java.lang.String[] { "Force", "Concepts", "Uuids", });
internal_static_weaviate_v1_NearImageSearch_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(9);
internal_static_weaviate_v1_NearImageSearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearImageSearch_descriptor,
- new java.lang.String[] { "Image", "Certainty", "Distance", "TargetVectors", "Targets", "Certainty", "Distance", });
+ new java.lang.String[] { "Image", "Certainty", "Distance", "TargetVectors", "Targets", "Selection", "Certainty", "Distance", "Selection", });
internal_static_weaviate_v1_NearAudioSearch_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(10);
internal_static_weaviate_v1_NearAudioSearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearAudioSearch_descriptor,
- new java.lang.String[] { "Audio", "Certainty", "Distance", "TargetVectors", "Targets", "Certainty", "Distance", });
+ new java.lang.String[] { "Audio", "Certainty", "Distance", "TargetVectors", "Targets", "Selection", "Certainty", "Distance", "Selection", });
internal_static_weaviate_v1_NearVideoSearch_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(11);
internal_static_weaviate_v1_NearVideoSearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearVideoSearch_descriptor,
- new java.lang.String[] { "Video", "Certainty", "Distance", "TargetVectors", "Targets", "Certainty", "Distance", });
+ new java.lang.String[] { "Video", "Certainty", "Distance", "TargetVectors", "Targets", "Selection", "Certainty", "Distance", "Selection", });
internal_static_weaviate_v1_NearDepthSearch_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(12);
internal_static_weaviate_v1_NearDepthSearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearDepthSearch_descriptor,
- new java.lang.String[] { "Depth", "Certainty", "Distance", "TargetVectors", "Targets", "Certainty", "Distance", });
+ new java.lang.String[] { "Depth", "Certainty", "Distance", "TargetVectors", "Targets", "Selection", "Certainty", "Distance", "Selection", });
internal_static_weaviate_v1_NearThermalSearch_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(13);
internal_static_weaviate_v1_NearThermalSearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearThermalSearch_descriptor,
- new java.lang.String[] { "Thermal", "Certainty", "Distance", "TargetVectors", "Targets", "Certainty", "Distance", });
+ new java.lang.String[] { "Thermal", "Certainty", "Distance", "TargetVectors", "Targets", "Selection", "Certainty", "Distance", "Selection", });
internal_static_weaviate_v1_NearIMUSearch_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(14);
internal_static_weaviate_v1_NearIMUSearch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_NearIMUSearch_descriptor,
- new java.lang.String[] { "Imu", "Certainty", "Distance", "TargetVectors", "Targets", "Certainty", "Distance", });
+ new java.lang.String[] { "Imu", "Certainty", "Distance", "TargetVectors", "Targets", "Selection", "Certainty", "Distance", "Selection", });
internal_static_weaviate_v1_BM25_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(15);
internal_static_weaviate_v1_BM25_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_BM25_descriptor,
diff --git a/src/main/java/io/weaviate/client6/v1/internal/grpc/protocol/WeaviateProtoGenerative.java b/src/main/java/io/weaviate/client6/v1/internal/grpc/protocol/WeaviateProtoGenerative.java
index 7b35c27ec..d10174fc1 100644
--- a/src/main/java/io/weaviate/client6/v1/internal/grpc/protocol/WeaviateProtoGenerative.java
+++ b/src/main/java/io/weaviate/client6/v1/internal/grpc/protocol/WeaviateProtoGenerative.java
@@ -4050,6 +4050,21 @@ public interface GenerativeProviderOrBuilder extends
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAIOrBuilder getXaiOrBuilder();
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ * @return Whether the contextualai field is set.
+ */
+ boolean hasContextualai();
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ * @return The contextualai.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI getContextualai();
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAIOrBuilder getContextualaiOrBuilder();
+
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeProvider.KindCase getKindCase();
}
/**
@@ -4106,6 +4121,7 @@ public enum KindCase
FRIENDLIAI(12),
NVIDIA(13),
XAI(14),
+ CONTEXTUALAI(15),
KIND_NOT_SET(0);
private final int value;
private KindCase(int value) {
@@ -4136,6 +4152,7 @@ public static KindCase forNumber(int value) {
case 12: return FRIENDLIAI;
case 13: return NVIDIA;
case 14: return XAI;
+ case 15: return CONTEXTUALAI;
case 0: return KIND_NOT_SET;
default: return null;
}
@@ -4565,6 +4582,37 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.Gen
return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI.getDefaultInstance();
}
+ public static final int CONTEXTUALAI_FIELD_NUMBER = 15;
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ * @return Whether the contextualai field is set.
+ */
+ @java.lang.Override
+ public boolean hasContextualai() {
+ return kindCase_ == 15;
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ * @return The contextualai.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI getContextualai() {
+ if (kindCase_ == 15) {
+ return (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) kind_;
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAIOrBuilder getContextualaiOrBuilder() {
+ if (kindCase_ == 15) {
+ return (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) kind_;
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -4621,6 +4669,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (kindCase_ == 14) {
output.writeMessage(14, (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI) kind_);
}
+ if (kindCase_ == 15) {
+ output.writeMessage(15, (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) kind_);
+ }
getUnknownFields().writeTo(output);
}
@@ -4686,6 +4737,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI) kind_);
}
+ if (kindCase_ == 15) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(15, (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) kind_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -4757,6 +4812,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getXai()
.equals(other.getXai())) return false;
break;
+ case 15:
+ if (!getContextualai()
+ .equals(other.getContextualai())) return false;
+ break;
case 0:
default:
}
@@ -4827,6 +4886,10 @@ public int hashCode() {
hash = (37 * hash) + XAI_FIELD_NUMBER;
hash = (53 * hash) + getXai().hashCode();
break;
+ case 15:
+ hash = (37 * hash) + CONTEXTUALAI_FIELD_NUMBER;
+ hash = (53 * hash) + getContextualai().hashCode();
+ break;
case 0:
default:
}
@@ -5001,6 +5064,9 @@ public Builder clear() {
if (xaiBuilder_ != null) {
xaiBuilder_.clear();
}
+ if (contextualaiBuilder_ != null) {
+ contextualaiBuilder_.clear();
+ }
kindCase_ = 0;
kind_ = null;
return this;
@@ -5097,6 +5163,10 @@ private void buildPartialOneofs(io.weaviate.client6.v1.internal.grpc.protocol.We
xaiBuilder_ != null) {
result.kind_ = xaiBuilder_.build();
}
+ if (kindCase_ == 15 &&
+ contextualaiBuilder_ != null) {
+ result.kind_ = contextualaiBuilder_.build();
+ }
}
@java.lang.Override
@@ -5199,6 +5269,10 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
mergeXai(other.getXai());
break;
}
+ case CONTEXTUALAI: {
+ mergeContextualai(other.getContextualai());
+ break;
+ }
case KIND_NOT_SET: {
break;
}
@@ -5325,6 +5399,13 @@ public Builder mergeFrom(
kindCase_ = 14;
break;
} // case 114
+ case 122: {
+ input.readMessage(
+ getContextualaiFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 15;
+ break;
+ } // case 122
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -7234,6 +7315,148 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.Gen
onChanged();
return xaiBuilder_;
}
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAIOrBuilder> contextualaiBuilder_;
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ * @return Whether the contextualai field is set.
+ */
+ @java.lang.Override
+ public boolean hasContextualai() {
+ return kindCase_ == 15;
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ * @return The contextualai.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI getContextualai() {
+ if (contextualaiBuilder_ == null) {
+ if (kindCase_ == 15) {
+ return (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) kind_;
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.getDefaultInstance();
+ } else {
+ if (kindCase_ == 15) {
+ return contextualaiBuilder_.getMessage();
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ public Builder setContextualai(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI value) {
+ if (contextualaiBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ contextualaiBuilder_.setMessage(value);
+ }
+ kindCase_ = 15;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ public Builder setContextualai(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.Builder builderForValue) {
+ if (contextualaiBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ contextualaiBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 15;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ public Builder mergeContextualai(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI value) {
+ if (contextualaiBuilder_ == null) {
+ if (kindCase_ == 15 &&
+ kind_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.getDefaultInstance()) {
+ kind_ = io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.newBuilder((io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 15) {
+ contextualaiBuilder_.mergeFrom(value);
+ } else {
+ contextualaiBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 15;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ public Builder clearContextualai() {
+ if (contextualaiBuilder_ == null) {
+ if (kindCase_ == 15) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 15) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ contextualaiBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.Builder getContextualaiBuilder() {
+ return getContextualaiFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAIOrBuilder getContextualaiOrBuilder() {
+ if ((kindCase_ == 15) && (contextualaiBuilder_ != null)) {
+ return contextualaiBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 15) {
+ return (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) kind_;
+ }
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeContextualAI contextualai = 15;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAIOrBuilder>
+ getContextualaiFieldBuilder() {
+ if (contextualaiBuilder_ == null) {
+ if (!(kindCase_ == 15)) {
+ kind_ = io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.getDefaultInstance();
+ }
+ contextualaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAIOrBuilder>(
+ (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 15;
+ onChanged();
+ return contextualaiBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -10062,6 +10285,32 @@ public interface GenerativeAWSOrBuilder extends
* optional .weaviate.v1.TextArray image_properties = 15;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagePropertiesOrBuilder();
+
+ /**
+ * optional int64 max_tokens = 16;
+ * @return Whether the maxTokens field is set.
+ */
+ boolean hasMaxTokens();
+ /**
+ * optional int64 max_tokens = 16;
+ * @return The maxTokens.
+ */
+ long getMaxTokens();
+
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ * @return Whether the stopSequences field is set.
+ */
+ boolean hasStopSequences();
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ * @return The stopSequences.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getStopSequences();
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.GenerativeAWS}
@@ -10458,6 +10707,51 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray
return imageProperties_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
}
+ public static final int MAX_TOKENS_FIELD_NUMBER = 16;
+ private long maxTokens_ = 0L;
+ /**
+ * optional int64 max_tokens = 16;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 16;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+
+ public static final int STOP_SEQUENCES_FIELD_NUMBER = 17;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray stopSequences_;
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ * @return Whether the stopSequences field is set.
+ */
+ @java.lang.Override
+ public boolean hasStopSequences() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ * @return The stopSequences.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getStopSequences() {
+ return stopSequences_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() {
+ return stopSequences_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -10499,6 +10793,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(15, getImageProperties());
}
+ if (((bitField0_ & 0x00000200) != 0)) {
+ output.writeInt64(16, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ output.writeMessage(17, getStopSequences());
+ }
getUnknownFields().writeTo(output);
}
@@ -10538,6 +10838,14 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getImageProperties());
}
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(16, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(17, getStopSequences());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -10599,6 +10907,16 @@ public boolean equals(final java.lang.Object obj) {
if (!getImageProperties()
.equals(other.getImageProperties())) return false;
}
+ if (hasMaxTokens() != other.hasMaxTokens()) return false;
+ if (hasMaxTokens()) {
+ if (getMaxTokens()
+ != other.getMaxTokens()) return false;
+ }
+ if (hasStopSequences() != other.hasStopSequences()) return false;
+ if (hasStopSequences()) {
+ if (!getStopSequences()
+ .equals(other.getStopSequences())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -10647,6 +10965,15 @@ public int hashCode() {
hash = (37 * hash) + IMAGE_PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getImageProperties().hashCode();
}
+ if (hasMaxTokens()) {
+ hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxTokens());
+ }
+ if (hasStopSequences()) {
+ hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getStopSequences().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -10779,6 +11106,7 @@ private void maybeForceBuilderInitialization() {
.alwaysUseFieldBuilders) {
getImagesFieldBuilder();
getImagePropertiesFieldBuilder();
+ getStopSequencesFieldBuilder();
}
}
@java.lang.Override
@@ -10802,6 +11130,12 @@ public Builder clear() {
imagePropertiesBuilder_.dispose();
imagePropertiesBuilder_ = null;
}
+ maxTokens_ = 0L;
+ stopSequences_ = null;
+ if (stopSequencesBuilder_ != null) {
+ stopSequencesBuilder_.dispose();
+ stopSequencesBuilder_ = null;
+ }
return this;
}
@@ -10876,6 +11210,16 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: imagePropertiesBuilder_.build();
to_bitField0_ |= 0x00000100;
}
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.maxTokens_ = maxTokens_;
+ to_bitField0_ |= 0x00000200;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.stopSequences_ = stopSequencesBuilder_ == null
+ ? stopSequences_
+ : stopSequencesBuilder_.build();
+ to_bitField0_ |= 0x00000400;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -10962,6 +11306,12 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasImageProperties()) {
mergeImageProperties(other.getImageProperties());
}
+ if (other.hasMaxTokens()) {
+ setMaxTokens(other.getMaxTokens());
+ }
+ if (other.hasStopSequences()) {
+ mergeStopSequences(other.getStopSequences());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -11037,6 +11387,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000100;
break;
} // case 122
+ case 128: {
+ maxTokens_ = input.readInt64();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 128
+ case 138: {
+ input.readMessage(
+ getStopSequencesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 138
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -11809,6 +12171,167 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray
}
return imagePropertiesBuilder_;
}
+
+ private long maxTokens_ ;
+ /**
+ * optional int64 max_tokens = 16;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 16;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+ /**
+ * optional int64 max_tokens = 16;
+ * @param value The maxTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxTokens(long value) {
+
+ maxTokens_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 max_tokens = 16;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxTokens() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ maxTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray stopSequences_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder> stopSequencesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ * @return Whether the stopSequences field is set.
+ */
+ public boolean hasStopSequences() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ * @return The stopSequences.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getStopSequences() {
+ if (stopSequencesBuilder_ == null) {
+ return stopSequences_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ } else {
+ return stopSequencesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ public Builder setStopSequences(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (stopSequencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stopSequences_ = value;
+ } else {
+ stopSequencesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ public Builder setStopSequences(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (stopSequencesBuilder_ == null) {
+ stopSequences_ = builderForValue.build();
+ } else {
+ stopSequencesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ public Builder mergeStopSequences(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (stopSequencesBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0) &&
+ stopSequences_ != null &&
+ stopSequences_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getStopSequencesBuilder().mergeFrom(value);
+ } else {
+ stopSequences_ = value;
+ }
+ } else {
+ stopSequencesBuilder_.mergeFrom(value);
+ }
+ if (stopSequences_ != null) {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ public Builder clearStopSequences() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ stopSequences_ = null;
+ if (stopSequencesBuilder_ != null) {
+ stopSequencesBuilder_.dispose();
+ stopSequencesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return getStopSequencesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() {
+ if (stopSequencesBuilder_ != null) {
+ return stopSequencesBuilder_.getMessageOrBuilder();
+ } else {
+ return stopSequences_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 17;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>
+ getStopSequencesFieldBuilder() {
+ if (stopSequencesBuilder_ == null) {
+ stopSequencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>(
+ getStopSequences(),
+ getParentForChildren(),
+ isClean());
+ stopSequences_ = null;
+ }
+ return stopSequencesBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -11991,6 +12514,36 @@ public interface GenerativeCohereOrBuilder extends
* @return The temperature.
*/
double getTemperature();
+
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ * @return Whether the images field is set.
+ */
+ boolean hasImages();
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ * @return The images.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImages();
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagesOrBuilder();
+
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ * @return Whether the imageProperties field is set.
+ */
+ boolean hasImageProperties();
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ * @return The imageProperties.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImageProperties();
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagePropertiesOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.GenerativeCohere}
@@ -12264,6 +12817,58 @@ public double getTemperature() {
return temperature_;
}
+ public static final int IMAGES_FIELD_NUMBER = 10;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray images_;
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ * @return Whether the images field is set.
+ */
+ @java.lang.Override
+ public boolean hasImages() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ * @return The images.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImages() {
+ return images_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : images_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagesOrBuilder() {
+ return images_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : images_;
+ }
+
+ public static final int IMAGE_PROPERTIES_FIELD_NUMBER = 11;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray imageProperties_;
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ * @return Whether the imageProperties field is set.
+ */
+ @java.lang.Override
+ public boolean hasImageProperties() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ * @return The imageProperties.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImageProperties() {
+ return imageProperties_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagePropertiesOrBuilder() {
+ return imageProperties_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -12305,6 +12910,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000100) != 0)) {
output.writeDouble(9, temperature_);
}
+ if (((bitField0_ & 0x00000200) != 0)) {
+ output.writeMessage(10, getImages());
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ output.writeMessage(11, getImageProperties());
+ }
getUnknownFields().writeTo(output);
}
@@ -12348,6 +12959,14 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, temperature_);
}
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getImages());
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(11, getImageProperties());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -12412,6 +13031,16 @@ public boolean equals(final java.lang.Object obj) {
!= java.lang.Double.doubleToLongBits(
other.getTemperature())) return false;
}
+ if (hasImages() != other.hasImages()) return false;
+ if (hasImages()) {
+ if (!getImages()
+ .equals(other.getImages())) return false;
+ }
+ if (hasImageProperties() != other.hasImageProperties()) return false;
+ if (hasImageProperties()) {
+ if (!getImageProperties()
+ .equals(other.getImageProperties())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -12465,6 +13094,14 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTemperature()));
}
+ if (hasImages()) {
+ hash = (37 * hash) + IMAGES_FIELD_NUMBER;
+ hash = (53 * hash) + getImages().hashCode();
+ }
+ if (hasImageProperties()) {
+ hash = (37 * hash) + IMAGE_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getImageProperties().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -12596,6 +13233,8 @@ private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStopSequencesFieldBuilder();
+ getImagesFieldBuilder();
+ getImagePropertiesFieldBuilder();
}
}
@java.lang.Override
@@ -12615,6 +13254,16 @@ public Builder clear() {
stopSequencesBuilder_ = null;
}
temperature_ = 0D;
+ images_ = null;
+ if (imagesBuilder_ != null) {
+ imagesBuilder_.dispose();
+ imagesBuilder_ = null;
+ }
+ imageProperties_ = null;
+ if (imagePropertiesBuilder_ != null) {
+ imagePropertiesBuilder_.dispose();
+ imagePropertiesBuilder_ = null;
+ }
return this;
}
@@ -12687,6 +13336,18 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
result.temperature_ = temperature_;
to_bitField0_ |= 0x00000100;
}
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.images_ = imagesBuilder_ == null
+ ? images_
+ : imagesBuilder_.build();
+ to_bitField0_ |= 0x00000200;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.imageProperties_ = imagePropertiesBuilder_ == null
+ ? imageProperties_
+ : imagePropertiesBuilder_.build();
+ to_bitField0_ |= 0x00000400;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -12765,6 +13426,12 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasTemperature()) {
setTemperature(other.getTemperature());
}
+ if (other.hasImages()) {
+ mergeImages(other.getImages());
+ }
+ if (other.hasImageProperties()) {
+ mergeImageProperties(other.getImageProperties());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -12838,6 +13505,20 @@ public Builder mergeFrom(
bitField0_ |= 0x00000100;
break;
} // case 73
+ case 82: {
+ input.readMessage(
+ getImagesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
+ case 90: {
+ input.readMessage(
+ getImagePropertiesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -13373,6 +14054,248 @@ public Builder clearTemperature() {
onChanged();
return this;
}
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray images_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder> imagesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ * @return Whether the images field is set.
+ */
+ public boolean hasImages() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ * @return The images.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImages() {
+ if (imagesBuilder_ == null) {
+ return images_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : images_;
+ } else {
+ return imagesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ public Builder setImages(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (imagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ images_ = value;
+ } else {
+ imagesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ public Builder setImages(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (imagesBuilder_ == null) {
+ images_ = builderForValue.build();
+ } else {
+ imagesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ public Builder mergeImages(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (imagesBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0) &&
+ images_ != null &&
+ images_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getImagesBuilder().mergeFrom(value);
+ } else {
+ images_ = value;
+ }
+ } else {
+ imagesBuilder_.mergeFrom(value);
+ }
+ if (images_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ public Builder clearImages() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ images_ = null;
+ if (imagesBuilder_ != null) {
+ imagesBuilder_.dispose();
+ imagesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder getImagesBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getImagesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagesOrBuilder() {
+ if (imagesBuilder_ != null) {
+ return imagesBuilder_.getMessageOrBuilder();
+ } else {
+ return images_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : images_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>
+ getImagesFieldBuilder() {
+ if (imagesBuilder_ == null) {
+ imagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>(
+ getImages(),
+ getParentForChildren(),
+ isClean());
+ images_ = null;
+ }
+ return imagesBuilder_;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray imageProperties_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder> imagePropertiesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ * @return Whether the imageProperties field is set.
+ */
+ public boolean hasImageProperties() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ * @return The imageProperties.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImageProperties() {
+ if (imagePropertiesBuilder_ == null) {
+ return imageProperties_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
+ } else {
+ return imagePropertiesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ public Builder setImageProperties(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (imagePropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ imageProperties_ = value;
+ } else {
+ imagePropertiesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ public Builder setImageProperties(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (imagePropertiesBuilder_ == null) {
+ imageProperties_ = builderForValue.build();
+ } else {
+ imagePropertiesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ public Builder mergeImageProperties(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (imagePropertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0) &&
+ imageProperties_ != null &&
+ imageProperties_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getImagePropertiesBuilder().mergeFrom(value);
+ } else {
+ imageProperties_ = value;
+ }
+ } else {
+ imagePropertiesBuilder_.mergeFrom(value);
+ }
+ if (imageProperties_ != null) {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ public Builder clearImageProperties() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ imageProperties_ = null;
+ if (imagePropertiesBuilder_ != null) {
+ imagePropertiesBuilder_.dispose();
+ imagePropertiesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder getImagePropertiesBuilder() {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return getImagePropertiesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagePropertiesOrBuilder() {
+ if (imagePropertiesBuilder_ != null) {
+ return imagePropertiesBuilder_.getMessageOrBuilder();
+ } else {
+ return imageProperties_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 11;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>
+ getImagePropertiesFieldBuilder() {
+ if (imagePropertiesBuilder_ == null) {
+ imagePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>(
+ getImageProperties(),
+ getParentForChildren(),
+ isClean());
+ imageProperties_ = null;
+ }
+ return imagePropertiesBuilder_;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -16362,6 +17285,38 @@ public interface GenerativeOpenAIOrBuilder extends
* optional .weaviate.v1.TextArray image_properties = 15;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagePropertiesOrBuilder();
+
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return Whether the reasoningEffort field is set.
+ */
+ boolean hasReasoningEffort();
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return The enum numeric value on the wire for reasoningEffort.
+ */
+ int getReasoningEffortValue();
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return The reasoningEffort.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort getReasoningEffort();
+
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return Whether the verbosity field is set.
+ */
+ boolean hasVerbosity();
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return The enum numeric value on the wire for verbosity.
+ */
+ int getVerbosityValue();
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return The verbosity.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity getVerbosity();
}
/**
* Protobuf type {@code weaviate.v1.GenerativeOpenAI}
@@ -16381,6 +17336,8 @@ private GenerativeOpenAI() {
apiVersion_ = "";
resourceName_ = "";
deploymentId_ = "";
+ reasoningEffort_ = 0;
+ verbosity_ = 0;
}
@java.lang.Override
@@ -16403,6 +17360,267 @@ protected java.lang.Object newInstance(
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.class, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Builder.class);
}
+ /**
+ * Protobuf enum {@code weaviate.v1.GenerativeOpenAI.ReasoningEffort}
+ */
+ public enum ReasoningEffort
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * REASONING_EFFORT_UNSPECIFIED = 0;
+ */
+ REASONING_EFFORT_UNSPECIFIED(0),
+ /**
+ * REASONING_EFFORT_MINIMAL = 1;
+ */
+ REASONING_EFFORT_MINIMAL(1),
+ /**
+ * REASONING_EFFORT_LOW = 2;
+ */
+ REASONING_EFFORT_LOW(2),
+ /**
+ * REASONING_EFFORT_MEDIUM = 3;
+ */
+ REASONING_EFFORT_MEDIUM(3),
+ /**
+ * REASONING_EFFORT_HIGH = 4;
+ */
+ REASONING_EFFORT_HIGH(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * REASONING_EFFORT_UNSPECIFIED = 0;
+ */
+ public static final int REASONING_EFFORT_UNSPECIFIED_VALUE = 0;
+ /**
+ * REASONING_EFFORT_MINIMAL = 1;
+ */
+ public static final int REASONING_EFFORT_MINIMAL_VALUE = 1;
+ /**
+ * REASONING_EFFORT_LOW = 2;
+ */
+ public static final int REASONING_EFFORT_LOW_VALUE = 2;
+ /**
+ * REASONING_EFFORT_MEDIUM = 3;
+ */
+ public static final int REASONING_EFFORT_MEDIUM_VALUE = 3;
+ /**
+ * REASONING_EFFORT_HIGH = 4;
+ */
+ public static final int REASONING_EFFORT_HIGH_VALUE = 4;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ReasoningEffort valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ReasoningEffort forNumber(int value) {
+ switch (value) {
+ case 0: return REASONING_EFFORT_UNSPECIFIED;
+ case 1: return REASONING_EFFORT_MINIMAL;
+ case 2: return REASONING_EFFORT_LOW;
+ case 3: return REASONING_EFFORT_MEDIUM;
+ case 4: return REASONING_EFFORT_HIGH;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapVERBOSITY_UNSPECIFIED = 0;
+ */
+ VERBOSITY_UNSPECIFIED(0),
+ /**
+ * VERBOSITY_LOW = 1;
+ */
+ VERBOSITY_LOW(1),
+ /**
+ * VERBOSITY_MEDIUM = 2;
+ */
+ VERBOSITY_MEDIUM(2),
+ /**
+ * VERBOSITY_HIGH = 3;
+ */
+ VERBOSITY_HIGH(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * VERBOSITY_UNSPECIFIED = 0;
+ */
+ public static final int VERBOSITY_UNSPECIFIED_VALUE = 0;
+ /**
+ * VERBOSITY_LOW = 1;
+ */
+ public static final int VERBOSITY_LOW_VALUE = 1;
+ /**
+ * VERBOSITY_MEDIUM = 2;
+ */
+ public static final int VERBOSITY_MEDIUM_VALUE = 2;
+ /**
+ * VERBOSITY_HIGH = 3;
+ */
+ public static final int VERBOSITY_HIGH_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Verbosity valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Verbosity forNumber(int value) {
+ switch (value) {
+ case 0: return VERBOSITY_UNSPECIFIED;
+ case 1: return VERBOSITY_LOW;
+ case 2: return VERBOSITY_MEDIUM;
+ case 3: return VERBOSITY_HIGH;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapoptional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return Whether the reasoningEffort field is set.
+ */
+ @java.lang.Override public boolean hasReasoningEffort() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return The enum numeric value on the wire for reasoningEffort.
+ */
+ @java.lang.Override public int getReasoningEffortValue() {
+ return reasoningEffort_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return The reasoningEffort.
+ */
+ @java.lang.Override public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort getReasoningEffort() {
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort result = io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort.forNumber(reasoningEffort_);
+ return result == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort.UNRECOGNIZED : result;
+ }
+
+ public static final int VERBOSITY_FIELD_NUMBER = 17;
+ private int verbosity_ = 0;
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return Whether the verbosity field is set.
+ */
+ @java.lang.Override public boolean hasVerbosity() {
+ return ((bitField0_ & 0x00010000) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return The enum numeric value on the wire for verbosity.
+ */
+ @java.lang.Override public int getVerbosityValue() {
+ return verbosity_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return The verbosity.
+ */
+ @java.lang.Override public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity getVerbosity() {
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity result = io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity.forNumber(verbosity_);
+ return result == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity.UNRECOGNIZED : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -16909,6 +18177,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00004000) != 0)) {
output.writeMessage(15, getImageProperties());
}
+ if (((bitField0_ & 0x00008000) != 0)) {
+ output.writeEnum(16, reasoningEffort_);
+ }
+ if (((bitField0_ & 0x00010000) != 0)) {
+ output.writeEnum(17, verbosity_);
+ }
getUnknownFields().writeTo(output);
}
@@ -16973,6 +18247,14 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getImageProperties());
}
+ if (((bitField0_ & 0x00008000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(16, reasoningEffort_);
+ }
+ if (((bitField0_ & 0x00010000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(17, verbosity_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -17067,6 +18349,14 @@ public boolean equals(final java.lang.Object obj) {
if (!getImageProperties()
.equals(other.getImageProperties())) return false;
}
+ if (hasReasoningEffort() != other.hasReasoningEffort()) return false;
+ if (hasReasoningEffort()) {
+ if (reasoningEffort_ != other.reasoningEffort_) return false;
+ }
+ if (hasVerbosity() != other.hasVerbosity()) return false;
+ if (hasVerbosity()) {
+ if (verbosity_ != other.verbosity_) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -17145,6 +18435,14 @@ public int hashCode() {
hash = (37 * hash) + IMAGE_PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getImageProperties().hashCode();
}
+ if (hasReasoningEffort()) {
+ hash = (37 * hash) + REASONING_EFFORT_FIELD_NUMBER;
+ hash = (53 * hash) + reasoningEffort_;
+ }
+ if (hasVerbosity()) {
+ hash = (37 * hash) + VERBOSITY_FIELD_NUMBER;
+ hash = (53 * hash) + verbosity_;
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -17311,6 +18609,8 @@ public Builder clear() {
imagePropertiesBuilder_.dispose();
imagePropertiesBuilder_ = null;
}
+ reasoningEffort_ = 0;
+ verbosity_ = 0;
return this;
}
@@ -17411,6 +18711,14 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: imagePropertiesBuilder_.build();
to_bitField0_ |= 0x00004000;
}
+ if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.reasoningEffort_ = reasoningEffort_;
+ to_bitField0_ |= 0x00008000;
+ }
+ if (((from_bitField0_ & 0x00010000) != 0)) {
+ result.verbosity_ = verbosity_;
+ to_bitField0_ |= 0x00010000;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -17513,6 +18821,12 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasImageProperties()) {
mergeImageProperties(other.getImageProperties());
}
+ if (other.hasReasoningEffort()) {
+ setReasoningEffort(other.getReasoningEffort());
+ }
+ if (other.hasVerbosity()) {
+ setVerbosity(other.getVerbosity());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -17620,6 +18934,16 @@ public Builder mergeFrom(
bitField0_ |= 0x00004000;
break;
} // case 122
+ case 128: {
+ reasoningEffort_ = input.readEnum();
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 128
+ case 136: {
+ verbosity_ = input.readEnum();
+ bitField0_ |= 0x00010000;
+ break;
+ } // case 136
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -18674,6 +19998,126 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray
}
return imagePropertiesBuilder_;
}
+
+ private int reasoningEffort_ = 0;
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return Whether the reasoningEffort field is set.
+ */
+ @java.lang.Override public boolean hasReasoningEffort() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return The enum numeric value on the wire for reasoningEffort.
+ */
+ @java.lang.Override public int getReasoningEffortValue() {
+ return reasoningEffort_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @param value The enum numeric value on the wire for reasoningEffort to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReasoningEffortValue(int value) {
+ reasoningEffort_ = value;
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return The reasoningEffort.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort getReasoningEffort() {
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort result = io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort.forNumber(reasoningEffort_);
+ return result == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort.UNRECOGNIZED : result;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @param value The reasoningEffort to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReasoningEffort(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.ReasoningEffort value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00008000;
+ reasoningEffort_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.ReasoningEffort reasoning_effort = 16;
+ * @return This builder for chaining.
+ */
+ public Builder clearReasoningEffort() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ reasoningEffort_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int verbosity_ = 0;
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return Whether the verbosity field is set.
+ */
+ @java.lang.Override public boolean hasVerbosity() {
+ return ((bitField0_ & 0x00010000) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return The enum numeric value on the wire for verbosity.
+ */
+ @java.lang.Override public int getVerbosityValue() {
+ return verbosity_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @param value The enum numeric value on the wire for verbosity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVerbosityValue(int value) {
+ verbosity_ = value;
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return The verbosity.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity getVerbosity() {
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity result = io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity.forNumber(verbosity_);
+ return result == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity.UNRECOGNIZED : result;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @param value The verbosity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVerbosity(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeOpenAI.Verbosity value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00010000;
+ verbosity_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAI.Verbosity verbosity = 17;
+ * @return This builder for chaining.
+ */
+ public Builder clearVerbosity() {
+ bitField0_ = (bitField0_ & ~0x00010000);
+ verbosity_ = 0;
+ onChanged();
+ return this;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -26026,40 +27470,1483 @@ public Builder mergeFrom(
done = true;
break;
case 10: {
- baseUrl_ = input.readStringRequireUtf8();
+ baseUrl_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 25: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ case 33: {
+ topP_ = input.readDouble();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 33
+ case 40: {
+ maxTokens_ = input.readInt64();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 50: {
+ input.readMessage(
+ getImagesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58: {
+ input.readMessage(
+ getImagePropertiesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ 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 baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseUrl() {
+ baseUrl_ = getDefaultInstance().getBaseUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The bytes for baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 2;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string model = 2;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 2;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 2;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 2;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 3;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double temperature = 3;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 3;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double topP_ ;
+ /**
+ * optional double top_p = 4;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double top_p = 4;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+ /**
+ * optional double top_p = 4;
+ * @param value The topP to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopP(double value) {
+
+ topP_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double top_p = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopP() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ topP_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private long maxTokens_ ;
+ /**
+ * optional int64 max_tokens = 5;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 5;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+ /**
+ * optional int64 max_tokens = 5;
+ * @param value The maxTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxTokens(long value) {
+
+ maxTokens_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 max_tokens = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxTokens() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ maxTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray images_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder> imagesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ * @return Whether the images field is set.
+ */
+ public boolean hasImages() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ * @return The images.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImages() {
+ if (imagesBuilder_ == null) {
+ return images_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : images_;
+ } else {
+ return imagesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ */
+ public Builder setImages(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (imagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ images_ = value;
+ } else {
+ imagesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ */
+ public Builder setImages(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (imagesBuilder_ == null) {
+ images_ = builderForValue.build();
+ } else {
+ imagesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ */
+ public Builder mergeImages(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (imagesBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ images_ != null &&
+ images_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getImagesBuilder().mergeFrom(value);
+ } else {
+ images_ = value;
+ }
+ } else {
+ imagesBuilder_.mergeFrom(value);
+ }
+ if (images_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ */
+ public Builder clearImages() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ images_ = null;
+ if (imagesBuilder_ != null) {
+ imagesBuilder_.dispose();
+ imagesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder getImagesBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getImagesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagesOrBuilder() {
+ if (imagesBuilder_ != null) {
+ return imagesBuilder_.getMessageOrBuilder();
+ } else {
+ return images_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : images_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray images = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>
+ getImagesFieldBuilder() {
+ if (imagesBuilder_ == null) {
+ imagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>(
+ getImages(),
+ getParentForChildren(),
+ isClean());
+ images_ = null;
+ }
+ return imagesBuilder_;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray imageProperties_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder> imagePropertiesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ * @return Whether the imageProperties field is set.
+ */
+ public boolean hasImageProperties() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ * @return The imageProperties.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImageProperties() {
+ if (imagePropertiesBuilder_ == null) {
+ return imageProperties_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
+ } else {
+ return imagePropertiesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ */
+ public Builder setImageProperties(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (imagePropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ imageProperties_ = value;
+ } else {
+ imagePropertiesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ */
+ public Builder setImageProperties(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (imagePropertiesBuilder_ == null) {
+ imageProperties_ = builderForValue.build();
+ } else {
+ imagePropertiesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ */
+ public Builder mergeImageProperties(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (imagePropertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0) &&
+ imageProperties_ != null &&
+ imageProperties_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getImagePropertiesBuilder().mergeFrom(value);
+ } else {
+ imageProperties_ = value;
+ }
+ } else {
+ imagePropertiesBuilder_.mergeFrom(value);
+ }
+ if (imageProperties_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ */
+ public Builder clearImageProperties() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ imageProperties_ = null;
+ if (imagePropertiesBuilder_ != null) {
+ imagePropertiesBuilder_.dispose();
+ imagePropertiesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder getImagePropertiesBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getImagePropertiesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagePropertiesOrBuilder() {
+ if (imagePropertiesBuilder_ != null) {
+ return imagePropertiesBuilder_.getMessageOrBuilder();
+ } else {
+ return imageProperties_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray image_properties = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>
+ getImagePropertiesFieldBuilder() {
+ if (imagePropertiesBuilder_ == null) {
+ imagePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>(
+ getImageProperties(),
+ getParentForChildren(),
+ isClean());
+ imageProperties_ = null;
+ }
+ return imagePropertiesBuilder_;
+ }
+ @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:weaviate.v1.GenerativeXAI)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeXAI)
+ private static final io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI();
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseroptional string model = 1;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 1;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 1;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional double temperature = 2;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 2;
+ * @return The temperature.
+ */
+ double getTemperature();
+
+ /**
+ * optional double top_p = 3;
+ * @return Whether the topP field is set.
+ */
+ boolean hasTopP();
+ /**
+ * optional double top_p = 3;
+ * @return The topP.
+ */
+ double getTopP();
+
+ /**
+ * optional int64 max_new_tokens = 4;
+ * @return Whether the maxNewTokens field is set.
+ */
+ boolean hasMaxNewTokens();
+ /**
+ * optional int64 max_new_tokens = 4;
+ * @return The maxNewTokens.
+ */
+ long getMaxNewTokens();
+
+ /**
+ * optional string system_prompt = 5;
+ * @return Whether the systemPrompt field is set.
+ */
+ boolean hasSystemPrompt();
+ /**
+ * optional string system_prompt = 5;
+ * @return The systemPrompt.
+ */
+ java.lang.String getSystemPrompt();
+ /**
+ * optional string system_prompt = 5;
+ * @return The bytes for systemPrompt.
+ */
+ com.google.protobuf.ByteString
+ getSystemPromptBytes();
+
+ /**
+ * optional bool avoid_commentary = 6;
+ * @return Whether the avoidCommentary field is set.
+ */
+ boolean hasAvoidCommentary();
+ /**
+ * optional bool avoid_commentary = 6;
+ * @return The avoidCommentary.
+ */
+ boolean getAvoidCommentary();
+
+ /**
+ * optional .weaviate.v1.TextArray knowledge = 7;
+ * @return Whether the knowledge field is set.
+ */
+ boolean hasKnowledge();
+ /**
+ * optional .weaviate.v1.TextArray knowledge = 7;
+ * @return The knowledge.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getKnowledge();
+ /**
+ * optional .weaviate.v1.TextArray knowledge = 7;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getKnowledgeOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeContextualAI}
+ */
+ public static final class GenerativeContextualAI extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeContextualAI)
+ GenerativeContextualAIOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeContextualAI.newBuilder() to construct.
+ private GenerativeContextualAI(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeContextualAI() {
+ model_ = "";
+ systemPrompt_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeContextualAI();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeContextualAI_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeContextualAI_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.class, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int MODEL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 1;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string model = 1;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ 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();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 1;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 2;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 2;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double temperature = 2;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ public static final int TOP_P_FIELD_NUMBER = 3;
+ private double topP_ = 0D;
+ /**
+ * optional double top_p = 3;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double top_p = 3;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+
+ public static final int MAX_NEW_TOKENS_FIELD_NUMBER = 4;
+ private long maxNewTokens_ = 0L;
+ /**
+ * optional int64 max_new_tokens = 4;
+ * @return Whether the maxNewTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxNewTokens() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional int64 max_new_tokens = 4;
+ * @return The maxNewTokens.
+ */
+ @java.lang.Override
+ public long getMaxNewTokens() {
+ return maxNewTokens_;
+ }
+
+ public static final int SYSTEM_PROMPT_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object systemPrompt_ = "";
+ /**
+ * optional string system_prompt = 5;
+ * @return Whether the systemPrompt field is set.
+ */
+ @java.lang.Override
+ public boolean hasSystemPrompt() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional string system_prompt = 5;
+ * @return The systemPrompt.
+ */
+ @java.lang.Override
+ public java.lang.String getSystemPrompt() {
+ java.lang.Object ref = systemPrompt_;
+ 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();
+ systemPrompt_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string system_prompt = 5;
+ * @return The bytes for systemPrompt.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSystemPromptBytes() {
+ java.lang.Object ref = systemPrompt_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ systemPrompt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AVOID_COMMENTARY_FIELD_NUMBER = 6;
+ private boolean avoidCommentary_ = false;
+ /**
+ * optional bool avoid_commentary = 6;
+ * @return Whether the avoidCommentary field is set.
+ */
+ @java.lang.Override
+ public boolean hasAvoidCommentary() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional bool avoid_commentary = 6;
+ * @return The avoidCommentary.
+ */
+ @java.lang.Override
+ public boolean getAvoidCommentary() {
+ return avoidCommentary_;
+ }
+
+ public static final int KNOWLEDGE_FIELD_NUMBER = 7;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray knowledge_;
+ /**
+ * optional .weaviate.v1.TextArray knowledge = 7;
+ * @return Whether the knowledge field is set.
+ */
+ @java.lang.Override
+ public boolean hasKnowledge() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray knowledge = 7;
+ * @return The knowledge.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getKnowledge() {
+ return knowledge_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : knowledge_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray knowledge = 7;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getKnowledgeOrBuilder() {
+ return knowledge_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : knowledge_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(2, temperature_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeDouble(3, topP_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeInt64(4, maxNewTokens_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, systemPrompt_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeBool(6, avoidCommentary_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(7, getKnowledge());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, temperature_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, topP_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, maxNewTokens_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, systemPrompt_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, avoidCommentary_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getKnowledge());
+ }
+ 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI other = (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI) obj;
+
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (hasTopP() != other.hasTopP()) return false;
+ if (hasTopP()) {
+ if (java.lang.Double.doubleToLongBits(getTopP())
+ != java.lang.Double.doubleToLongBits(
+ other.getTopP())) return false;
+ }
+ if (hasMaxNewTokens() != other.hasMaxNewTokens()) return false;
+ if (hasMaxNewTokens()) {
+ if (getMaxNewTokens()
+ != other.getMaxNewTokens()) return false;
+ }
+ if (hasSystemPrompt() != other.hasSystemPrompt()) return false;
+ if (hasSystemPrompt()) {
+ if (!getSystemPrompt()
+ .equals(other.getSystemPrompt())) return false;
+ }
+ if (hasAvoidCommentary() != other.hasAvoidCommentary()) return false;
+ if (hasAvoidCommentary()) {
+ if (getAvoidCommentary()
+ != other.getAvoidCommentary()) return false;
+ }
+ if (hasKnowledge() != other.hasKnowledge()) return false;
+ if (hasKnowledge()) {
+ if (!getKnowledge()
+ .equals(other.getKnowledge())) 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();
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ if (hasTopP()) {
+ hash = (37 * hash) + TOP_P_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTopP()));
+ }
+ if (hasMaxNewTokens()) {
+ hash = (37 * hash) + MAX_NEW_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxNewTokens());
+ }
+ if (hasSystemPrompt()) {
+ hash = (37 * hash) + SYSTEM_PROMPT_FIELD_NUMBER;
+ hash = (53 * hash) + getSystemPrompt().hashCode();
+ }
+ if (hasAvoidCommentary()) {
+ hash = (37 * hash) + AVOID_COMMENTARY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAvoidCommentary());
+ }
+ if (hasKnowledge()) {
+ hash = (37 * hash) + KNOWLEDGE_FIELD_NUMBER;
+ hash = (53 * hash) + getKnowledge().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI 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 weaviate.v1.GenerativeContextualAI}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderoptional string base_url = 1;
- * @return Whether the baseUrl field is set.
- */
- public boolean hasBaseUrl() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional string base_url = 1;
- * @return The baseUrl.
- */
- public java.lang.String getBaseUrl() {
- java.lang.Object ref = baseUrl_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- baseUrl_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string base_url = 1;
- * @return The bytes for baseUrl.
- */
- public com.google.protobuf.ByteString
- getBaseUrlBytes() {
- java.lang.Object ref = baseUrl_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- baseUrl_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string base_url = 1;
- * @param value The baseUrl to set.
- * @return This builder for chaining.
- */
- public Builder setBaseUrl(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- baseUrl_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * optional string base_url = 1;
- * @return This builder for chaining.
- */
- public Builder clearBaseUrl() {
- baseUrl_ = getDefaultInstance().getBaseUrl();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
- /**
- * optional string base_url = 1;
- * @param value The bytes for baseUrl to set.
- * @return This builder for chaining.
- */
- public Builder setBaseUrlBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
- baseUrl_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
private java.lang.Object model_ = "";
/**
- * optional string model = 2;
+ * optional string model = 1;
* @return Whether the model field is set.
*/
public boolean hasModel() {
- return ((bitField0_ & 0x00000002) != 0);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional string model = 2;
+ * optional string model = 1;
* @return The model.
*/
public java.lang.String getModel() {
@@ -26185,7 +28993,7 @@ public java.lang.String getModel() {
}
}
/**
- * optional string model = 2;
+ * optional string model = 1;
* @return The bytes for model.
*/
public com.google.protobuf.ByteString
@@ -26202,7 +29010,7 @@ public java.lang.String getModel() {
}
}
/**
- * optional string model = 2;
+ * optional string model = 1;
* @param value The model to set.
* @return This builder for chaining.
*/
@@ -26210,22 +29018,22 @@ public Builder setModel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
model_ = value;
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- * optional string model = 2;
+ * optional string model = 1;
* @return This builder for chaining.
*/
public Builder clearModel() {
model_ = getDefaultInstance().getModel();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
- * optional string model = 2;
+ * optional string model = 1;
* @param value The bytes for model to set.
* @return This builder for chaining.
*/
@@ -26234,22 +29042,22 @@ public Builder setModelBytes(
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
model_ = value;
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
private double temperature_ ;
/**
- * optional double temperature = 3;
+ * optional double temperature = 2;
* @return Whether the temperature field is set.
*/
@java.lang.Override
public boolean hasTemperature() {
- return ((bitField0_ & 0x00000004) != 0);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
- * optional double temperature = 3;
+ * optional double temperature = 2;
* @return The temperature.
*/
@java.lang.Override
@@ -26257,23 +29065,23 @@ public double getTemperature() {
return temperature_;
}
/**
- * optional double temperature = 3;
+ * optional double temperature = 2;
* @param value The temperature to set.
* @return This builder for chaining.
*/
public Builder setTemperature(double value) {
temperature_ = value;
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
- * optional double temperature = 3;
+ * optional double temperature = 2;
* @return This builder for chaining.
*/
public Builder clearTemperature() {
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000002);
temperature_ = 0D;
onChanged();
return this;
@@ -26281,15 +29089,15 @@ public Builder clearTemperature() {
private double topP_ ;
/**
- * optional double top_p = 4;
+ * optional double top_p = 3;
* @return Whether the topP field is set.
*/
@java.lang.Override
public boolean hasTopP() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
- * optional double top_p = 4;
+ * optional double top_p = 3;
* @return The topP.
*/
@java.lang.Override
@@ -26297,308 +29105,306 @@ public double getTopP() {
return topP_;
}
/**
- * optional double top_p = 4;
+ * optional double top_p = 3;
* @param value The topP to set.
* @return This builder for chaining.
*/
public Builder setTopP(double value) {
topP_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
- * optional double top_p = 4;
+ * optional double top_p = 3;
* @return This builder for chaining.
*/
public Builder clearTopP() {
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000004);
topP_ = 0D;
onChanged();
return this;
}
- private long maxTokens_ ;
+ private long maxNewTokens_ ;
/**
- * optional int64 max_tokens = 5;
- * @return Whether the maxTokens field is set.
+ * optional int64 max_new_tokens = 4;
+ * @return Whether the maxNewTokens field is set.
*/
@java.lang.Override
- public boolean hasMaxTokens() {
- return ((bitField0_ & 0x00000010) != 0);
+ public boolean hasMaxNewTokens() {
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
- * optional int64 max_tokens = 5;
- * @return The maxTokens.
+ * optional int64 max_new_tokens = 4;
+ * @return The maxNewTokens.
*/
@java.lang.Override
- public long getMaxTokens() {
- return maxTokens_;
+ public long getMaxNewTokens() {
+ return maxNewTokens_;
}
/**
- * optional int64 max_tokens = 5;
- * @param value The maxTokens to set.
+ * optional int64 max_new_tokens = 4;
+ * @param value The maxNewTokens to set.
* @return This builder for chaining.
*/
- public Builder setMaxTokens(long value) {
+ public Builder setMaxNewTokens(long value) {
- maxTokens_ = value;
- bitField0_ |= 0x00000010;
+ maxNewTokens_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
- * optional int64 max_tokens = 5;
+ * optional int64 max_new_tokens = 4;
* @return This builder for chaining.
*/
- public Builder clearMaxTokens() {
- bitField0_ = (bitField0_ & ~0x00000010);
- maxTokens_ = 0L;
+ public Builder clearMaxNewTokens() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ maxNewTokens_ = 0L;
onChanged();
return this;
}
- private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray images_;
- private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder> imagesBuilder_;
+ private java.lang.Object systemPrompt_ = "";
/**
- * optional .weaviate.v1.TextArray images = 6;
- * @return Whether the images field is set.
+ * optional string system_prompt = 5;
+ * @return Whether the systemPrompt field is set.
*/
- public boolean hasImages() {
- return ((bitField0_ & 0x00000020) != 0);
+ public boolean hasSystemPrompt() {
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
- * optional .weaviate.v1.TextArray images = 6;
- * @return The images.
+ * optional string system_prompt = 5;
+ * @return The systemPrompt.
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImages() {
- if (imagesBuilder_ == null) {
- return images_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : images_;
+ public java.lang.String getSystemPrompt() {
+ java.lang.Object ref = systemPrompt_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ systemPrompt_ = s;
+ return s;
} else {
- return imagesBuilder_.getMessage();
+ return (java.lang.String) ref;
}
}
/**
- * optional .weaviate.v1.TextArray images = 6;
+ * optional string system_prompt = 5;
+ * @return The bytes for systemPrompt.
*/
- public Builder setImages(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
- if (imagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- images_ = value;
+ public com.google.protobuf.ByteString
+ getSystemPromptBytes() {
+ java.lang.Object ref = systemPrompt_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ systemPrompt_ = b;
+ return b;
} else {
- imagesBuilder_.setMessage(value);
+ return (com.google.protobuf.ByteString) ref;
}
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
}
/**
- * optional .weaviate.v1.TextArray images = 6;
+ * optional string system_prompt = 5;
+ * @param value The systemPrompt to set.
+ * @return This builder for chaining.
*/
- public Builder setImages(
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder builderForValue) {
- if (imagesBuilder_ == null) {
- images_ = builderForValue.build();
- } else {
- imagesBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000020;
+ public Builder setSystemPrompt(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ systemPrompt_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
- * optional .weaviate.v1.TextArray images = 6;
+ * optional string system_prompt = 5;
+ * @return This builder for chaining.
*/
- public Builder mergeImages(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
- if (imagesBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0) &&
- images_ != null &&
- images_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance()) {
- getImagesBuilder().mergeFrom(value);
- } else {
- images_ = value;
- }
- } else {
- imagesBuilder_.mergeFrom(value);
- }
- if (images_ != null) {
- bitField0_ |= 0x00000020;
- onChanged();
- }
+ public Builder clearSystemPrompt() {
+ systemPrompt_ = getDefaultInstance().getSystemPrompt();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
return this;
}
/**
- * optional .weaviate.v1.TextArray images = 6;
+ * optional string system_prompt = 5;
+ * @param value The bytes for systemPrompt to set.
+ * @return This builder for chaining.
*/
- public Builder clearImages() {
- bitField0_ = (bitField0_ & ~0x00000020);
- images_ = null;
- if (imagesBuilder_ != null) {
- imagesBuilder_.dispose();
- imagesBuilder_ = null;
- }
+ public Builder setSystemPromptBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ systemPrompt_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
+
+ private boolean avoidCommentary_ ;
/**
- * optional .weaviate.v1.TextArray images = 6;
+ * optional bool avoid_commentary = 6;
+ * @return Whether the avoidCommentary field is set.
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder getImagesBuilder() {
- bitField0_ |= 0x00000020;
- onChanged();
- return getImagesFieldBuilder().getBuilder();
+ @java.lang.Override
+ public boolean hasAvoidCommentary() {
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
- * optional .weaviate.v1.TextArray images = 6;
+ * optional bool avoid_commentary = 6;
+ * @return The avoidCommentary.
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagesOrBuilder() {
- if (imagesBuilder_ != null) {
- return imagesBuilder_.getMessageOrBuilder();
- } else {
- return images_ == null ?
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : images_;
- }
+ @java.lang.Override
+ public boolean getAvoidCommentary() {
+ return avoidCommentary_;
}
/**
- * optional .weaviate.v1.TextArray images = 6;
+ * optional bool avoid_commentary = 6;
+ * @param value The avoidCommentary to set.
+ * @return This builder for chaining.
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>
- getImagesFieldBuilder() {
- if (imagesBuilder_ == null) {
- imagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>(
- getImages(),
- getParentForChildren(),
- isClean());
- images_ = null;
- }
- return imagesBuilder_;
+ public Builder setAvoidCommentary(boolean value) {
+
+ avoidCommentary_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool avoid_commentary = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearAvoidCommentary() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ avoidCommentary_ = false;
+ onChanged();
+ return this;
}
- private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray imageProperties_;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray knowledge_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder> imagePropertiesBuilder_;
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder> knowledgeBuilder_;
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
- * @return Whether the imageProperties field is set.
+ * optional .weaviate.v1.TextArray knowledge = 7;
+ * @return Whether the knowledge field is set.
*/
- public boolean hasImageProperties() {
+ public boolean hasKnowledge() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
- * @return The imageProperties.
+ * optional .weaviate.v1.TextArray knowledge = 7;
+ * @return The knowledge.
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getImageProperties() {
- if (imagePropertiesBuilder_ == null) {
- return imageProperties_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray getKnowledge() {
+ if (knowledgeBuilder_ == null) {
+ return knowledge_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : knowledge_;
} else {
- return imagePropertiesBuilder_.getMessage();
+ return knowledgeBuilder_.getMessage();
}
}
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
+ * optional .weaviate.v1.TextArray knowledge = 7;
*/
- public Builder setImageProperties(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
- if (imagePropertiesBuilder_ == null) {
+ public Builder setKnowledge(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (knowledgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- imageProperties_ = value;
+ knowledge_ = value;
} else {
- imagePropertiesBuilder_.setMessage(value);
+ knowledgeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
+ * optional .weaviate.v1.TextArray knowledge = 7;
*/
- public Builder setImageProperties(
+ public Builder setKnowledge(
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder builderForValue) {
- if (imagePropertiesBuilder_ == null) {
- imageProperties_ = builderForValue.build();
+ if (knowledgeBuilder_ == null) {
+ knowledge_ = builderForValue.build();
} else {
- imagePropertiesBuilder_.setMessage(builderForValue.build());
+ knowledgeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
+ * optional .weaviate.v1.TextArray knowledge = 7;
*/
- public Builder mergeImageProperties(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
- if (imagePropertiesBuilder_ == null) {
+ public Builder mergeKnowledge(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray value) {
+ if (knowledgeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
- imageProperties_ != null &&
- imageProperties_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance()) {
- getImagePropertiesBuilder().mergeFrom(value);
+ knowledge_ != null &&
+ knowledge_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getKnowledgeBuilder().mergeFrom(value);
} else {
- imageProperties_ = value;
+ knowledge_ = value;
}
} else {
- imagePropertiesBuilder_.mergeFrom(value);
+ knowledgeBuilder_.mergeFrom(value);
}
- if (imageProperties_ != null) {
+ if (knowledge_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
+ * optional .weaviate.v1.TextArray knowledge = 7;
*/
- public Builder clearImageProperties() {
+ public Builder clearKnowledge() {
bitField0_ = (bitField0_ & ~0x00000040);
- imageProperties_ = null;
- if (imagePropertiesBuilder_ != null) {
- imagePropertiesBuilder_.dispose();
- imagePropertiesBuilder_ = null;
+ knowledge_ = null;
+ if (knowledgeBuilder_ != null) {
+ knowledgeBuilder_.dispose();
+ knowledgeBuilder_ = null;
}
onChanged();
return this;
}
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
+ * optional .weaviate.v1.TextArray knowledge = 7;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder getImagePropertiesBuilder() {
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder getKnowledgeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
- return getImagePropertiesFieldBuilder().getBuilder();
+ return getKnowledgeFieldBuilder().getBuilder();
}
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
+ * optional .weaviate.v1.TextArray knowledge = 7;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getImagePropertiesOrBuilder() {
- if (imagePropertiesBuilder_ != null) {
- return imagePropertiesBuilder_.getMessageOrBuilder();
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder getKnowledgeOrBuilder() {
+ if (knowledgeBuilder_ != null) {
+ return knowledgeBuilder_.getMessageOrBuilder();
} else {
- return imageProperties_ == null ?
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : imageProperties_;
+ return knowledge_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.getDefaultInstance() : knowledge_;
}
}
/**
- * optional .weaviate.v1.TextArray image_properties = 7;
+ * optional .weaviate.v1.TextArray knowledge = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>
- getImagePropertiesFieldBuilder() {
- if (imagePropertiesBuilder_ == null) {
- imagePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ getKnowledgeFieldBuilder() {
+ if (knowledgeBuilder_ == null) {
+ knowledgeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArray.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoBase.TextArrayOrBuilder>(
- getImageProperties(),
+ getKnowledge(),
getParentForChildren(),
isClean());
- imageProperties_ = null;
+ knowledge_ = null;
}
- return imagePropertiesBuilder_;
+ return knowledgeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
@@ -26613,23 +29419,23 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeXAI)
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeContextualAI)
}
- // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeXAI)
- private static final io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeContextualAI)
+ private static final io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI();
+ DEFAULT_INSTANCE = new io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI();
}
- public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeXAI getDefaultInstance() {
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeContextualAI getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
+ * query_profile enables per-shard query profiling. When true, the response includes
+ * timing breakdowns for each shard and search type.
+ *
+ *
+ * bool query_profile = 11;
+ * @return The queryProfile.
+ */
+ boolean getQueryProfile();
}
/**
* Protobuf type {@code weaviate.v1.MetadataRequest}
@@ -7488,6 +7499,22 @@ public java.lang.String getVectors(int index) {
return vectors_.getByteString(index);
}
+ public static final int QUERY_PROFILE_FIELD_NUMBER = 11;
+ private boolean queryProfile_ = false;
+ /**
+ *
+ * query_profile enables per-shard query profiling. When true, the response includes
+ * timing breakdowns for each shard and search type.
+ *
+ *
+ * bool query_profile = 11;
+ * @return The queryProfile.
+ */
+ @java.lang.Override
+ public boolean getQueryProfile() {
+ return queryProfile_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -7532,6 +7559,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < vectors_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, vectors_.getRaw(i));
}
+ if (queryProfile_ != false) {
+ output.writeBool(11, queryProfile_);
+ }
getUnknownFields().writeTo(output);
}
@@ -7585,6 +7615,10 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getVectorsList().size();
}
+ if (queryProfile_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(11, queryProfile_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -7620,6 +7654,8 @@ public boolean equals(final java.lang.Object obj) {
!= other.getIsConsistent()) return false;
if (!getVectorsList()
.equals(other.getVectorsList())) return false;
+ if (getQueryProfile()
+ != other.getQueryProfile()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -7662,6 +7698,9 @@ public int hashCode() {
hash = (37 * hash) + VECTORS_FIELD_NUMBER;
hash = (53 * hash) + getVectorsList().hashCode();
}
+ hash = (37 * hash) + QUERY_PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getQueryProfile());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -7804,6 +7843,7 @@ public Builder clear() {
isConsistent_ = false;
vectors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
+ queryProfile_ = false;
return this;
}
@@ -7868,6 +7908,9 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
vectors_.makeImmutable();
result.vectors_ = vectors_;
}
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.queryProfile_ = queryProfile_;
+ }
}
@java.lang.Override
@@ -7951,6 +7994,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
}
onChanged();
}
+ if (other.getQueryProfile() != false) {
+ setQueryProfile(other.getQueryProfile());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -8028,6 +8074,11 @@ public Builder mergeFrom(
vectors_.add(s);
break;
} // case 82
+ case 88: {
+ queryProfile_ = input.readBool();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 88
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -8443,6 +8494,53 @@ public Builder addVectorsBytes(
onChanged();
return this;
}
+
+ private boolean queryProfile_ ;
+ /**
+ *
+ * query_profile enables per-shard query profiling. When true, the response includes
+ * timing breakdowns for each shard and search type.
+ *
+ *
+ * bool query_profile = 11;
+ * @return The queryProfile.
+ */
+ @java.lang.Override
+ public boolean getQueryProfile() {
+ return queryProfile_;
+ }
+ /**
+ *
+ * query_profile enables per-shard query profiling. When true, the response includes
+ * timing breakdowns for each shard and search type.
+ *
+ *
+ * bool query_profile = 11;
+ * @param value The queryProfile to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryProfile(boolean value) {
+
+ queryProfile_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * query_profile enables per-shard query profiling. When true, the response includes
+ * timing breakdowns for each shard and search type.
+ *
+ *
+ * bool query_profile = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearQueryProfile() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ queryProfile_ = false;
+ onChanged();
+ return this;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -12968,21 +13066,21 @@ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.SearchResul
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return Whether the generativeGroupedResult field is set.
*/
@java.lang.Deprecated boolean hasGenerativeGroupedResult();
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return The generativeGroupedResult.
*/
@java.lang.Deprecated java.lang.String getGenerativeGroupedResult();
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return The bytes for generativeGroupedResult.
*/
@java.lang.Deprecated com.google.protobuf.ByteString
@@ -13026,6 +13124,21 @@ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResu
* optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
*/
io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeGroupedResultsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ * @return Whether the queryProfile field is set.
+ */
+ boolean hasQueryProfile();
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ * @return The queryProfile.
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile getQueryProfile();
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfileOrBuilder getQueryProfileOrBuilder();
}
/**
* Protobuf type {@code weaviate.v1.SearchReply}
@@ -13124,7 +13237,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return Whether the generativeGroupedResult field is set.
*/
@java.lang.Override
@@ -13134,7 +13247,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return The generativeGroupedResult.
*/
@java.lang.Override
@@ -13153,7 +13266,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return The bytes for generativeGroupedResult.
*/
@java.lang.Override
@@ -13238,6 +13351,32 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.Gen
return generativeGroupedResults_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_;
}
+ public static final int QUERY_PROFILE_FIELD_NUMBER = 6;
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile queryProfile_;
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ * @return Whether the queryProfile field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryProfile() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ * @return The queryProfile.
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile getQueryProfile() {
+ return queryProfile_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.getDefaultInstance() : queryProfile_;
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfileOrBuilder getQueryProfileOrBuilder() {
+ return queryProfile_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.getDefaultInstance() : queryProfile_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -13267,6 +13406,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getGenerativeGroupedResults());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(6, getQueryProfile());
+ }
getUnknownFields().writeTo(output);
}
@@ -13295,6 +13437,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getGenerativeGroupedResults());
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getQueryProfile());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -13327,6 +13473,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getGenerativeGroupedResults()
.equals(other.getGenerativeGroupedResults())) return false;
}
+ if (hasQueryProfile() != other.hasQueryProfile()) return false;
+ if (hasQueryProfile()) {
+ if (!getQueryProfile()
+ .equals(other.getQueryProfile())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -13357,6 +13508,10 @@ public int hashCode() {
hash = (37 * hash) + GENERATIVE_GROUPED_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getGenerativeGroupedResults().hashCode();
}
+ if (hasQueryProfile()) {
+ hash = (37 * hash) + QUERY_PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryProfile().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -13490,6 +13645,7 @@ private void maybeForceBuilderInitialization() {
getResultsFieldBuilder();
getGroupByResultsFieldBuilder();
getGenerativeGroupedResultsFieldBuilder();
+ getQueryProfileFieldBuilder();
}
}
@java.lang.Override
@@ -13517,6 +13673,11 @@ public Builder clear() {
generativeGroupedResultsBuilder_.dispose();
generativeGroupedResultsBuilder_ = null;
}
+ queryProfile_ = null;
+ if (queryProfileBuilder_ != null) {
+ queryProfileBuilder_.dispose();
+ queryProfileBuilder_ = null;
+ }
return this;
}
@@ -13586,6 +13747,12 @@ private void buildPartial0(io.weaviate.client6.v1.internal.grpc.protocol.Weaviat
: generativeGroupedResultsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.queryProfile_ = queryProfileBuilder_ == null
+ ? queryProfile_
+ : queryProfileBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -13696,6 +13863,9 @@ public Builder mergeFrom(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateP
if (other.hasGenerativeGroupedResults()) {
mergeGenerativeGroupedResults(other.getGenerativeGroupedResults());
}
+ if (other.hasQueryProfile()) {
+ mergeQueryProfile(other.getQueryProfile());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -13765,6 +13935,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000010;
break;
} // case 42
+ case 50: {
+ input.readMessage(
+ getQueryProfileFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -14058,7 +14235,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return Whether the generativeGroupedResult field is set.
*/
@java.lang.Deprecated public boolean hasGenerativeGroupedResult() {
@@ -14067,7 +14244,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return The generativeGroupedResult.
*/
@java.lang.Deprecated public java.lang.String getGenerativeGroupedResult() {
@@ -14085,7 +14262,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return The bytes for generativeGroupedResult.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
@@ -14104,7 +14281,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @param value The generativeGroupedResult to set.
* @return This builder for chaining.
*/
@@ -14119,7 +14296,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearGenerativeGroupedResult() {
@@ -14131,7 +14308,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Sear
/**
* optional string generative_grouped_result = 3 [deprecated = true];
* @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated.
- * See v1/search_get.proto;l=114
+ * See v1/search_get.proto;l=117
* @param value The bytes for generativeGroupedResult to set.
* @return This builder for chaining.
*/
@@ -14200,310 +14377,3169 @@ public Builder setGroupByResults(
groupByResults_.set(index, value);
onChanged();
} else {
- groupByResultsBuilder_.setMessage(index, value);
+ groupByResultsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public Builder setGroupByResults(
+ int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder builderForValue) {
+ if (groupByResultsBuilder_ == null) {
+ ensureGroupByResultsIsMutable();
+ groupByResults_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ groupByResultsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public Builder addGroupByResults(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult value) {
+ if (groupByResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroupByResultsIsMutable();
+ groupByResults_.add(value);
+ onChanged();
+ } else {
+ groupByResultsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public Builder addGroupByResults(
+ int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult value) {
+ if (groupByResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroupByResultsIsMutable();
+ groupByResults_.add(index, value);
+ onChanged();
+ } else {
+ groupByResultsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public Builder addGroupByResults(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder builderForValue) {
+ if (groupByResultsBuilder_ == null) {
+ ensureGroupByResultsIsMutable();
+ groupByResults_.add(builderForValue.build());
+ onChanged();
+ } else {
+ groupByResultsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public Builder addGroupByResults(
+ int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder builderForValue) {
+ if (groupByResultsBuilder_ == null) {
+ ensureGroupByResultsIsMutable();
+ groupByResults_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ groupByResultsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public Builder addAllGroupByResults(
+ java.lang.Iterable extends io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult> values) {
+ if (groupByResultsBuilder_ == null) {
+ ensureGroupByResultsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, groupByResults_);
+ onChanged();
+ } else {
+ groupByResultsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public Builder clearGroupByResults() {
+ if (groupByResultsBuilder_ == null) {
+ groupByResults_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ groupByResultsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public Builder removeGroupByResults(int index) {
+ if (groupByResultsBuilder_ == null) {
+ ensureGroupByResultsIsMutable();
+ groupByResults_.remove(index);
+ onChanged();
+ } else {
+ groupByResultsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder getGroupByResultsBuilder(
+ int index) {
+ return getGroupByResultsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResultOrBuilder getGroupByResultsOrBuilder(
+ int index) {
+ if (groupByResultsBuilder_ == null) {
+ return groupByResults_.get(index); } else {
+ return groupByResultsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public java.util.List extends io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResultOrBuilder>
+ getGroupByResultsOrBuilderList() {
+ if (groupByResultsBuilder_ != null) {
+ return groupByResultsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(groupByResults_);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder addGroupByResultsBuilder() {
+ return getGroupByResultsFieldBuilder().addBuilder(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder addGroupByResultsBuilder(
+ int index) {
+ return getGroupByResultsFieldBuilder().addBuilder(
+ index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ */
+ public java.util.Listoptional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ * @return Whether the generativeGroupedResults field is set.
+ */
+ public boolean hasGenerativeGroupedResults() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ * @return The generativeGroupedResults.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult getGenerativeGroupedResults() {
+ if (generativeGroupedResultsBuilder_ == null) {
+ return generativeGroupedResults_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_;
+ } else {
+ return generativeGroupedResultsBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ */
+ public Builder setGenerativeGroupedResults(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult value) {
+ if (generativeGroupedResultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ generativeGroupedResults_ = value;
+ } else {
+ generativeGroupedResultsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ */
+ public Builder setGenerativeGroupedResults(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.Builder builderForValue) {
+ if (generativeGroupedResultsBuilder_ == null) {
+ generativeGroupedResults_ = builderForValue.build();
+ } else {
+ generativeGroupedResultsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ */
+ public Builder mergeGenerativeGroupedResults(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult value) {
+ if (generativeGroupedResultsBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ generativeGroupedResults_ != null &&
+ generativeGroupedResults_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance()) {
+ getGenerativeGroupedResultsBuilder().mergeFrom(value);
+ } else {
+ generativeGroupedResults_ = value;
+ }
+ } else {
+ generativeGroupedResultsBuilder_.mergeFrom(value);
+ }
+ if (generativeGroupedResults_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ */
+ public Builder clearGenerativeGroupedResults() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ generativeGroupedResults_ = null;
+ if (generativeGroupedResultsBuilder_ != null) {
+ generativeGroupedResultsBuilder_.dispose();
+ generativeGroupedResultsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.Builder getGenerativeGroupedResultsBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getGenerativeGroupedResultsFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeGroupedResultsOrBuilder() {
+ if (generativeGroupedResultsBuilder_ != null) {
+ return generativeGroupedResultsBuilder_.getMessageOrBuilder();
+ } else {
+ return generativeGroupedResults_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResultOrBuilder>
+ getGenerativeGroupedResultsFieldBuilder() {
+ if (generativeGroupedResultsBuilder_ == null) {
+ generativeGroupedResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResultOrBuilder>(
+ getGenerativeGroupedResults(),
+ getParentForChildren(),
+ isClean());
+ generativeGroupedResults_ = null;
+ }
+ return generativeGroupedResultsBuilder_;
+ }
+
+ private io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile queryProfile_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfileOrBuilder> queryProfileBuilder_;
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ * @return Whether the queryProfile field is set.
+ */
+ public boolean hasQueryProfile() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ * @return The queryProfile.
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile getQueryProfile() {
+ if (queryProfileBuilder_ == null) {
+ return queryProfile_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.getDefaultInstance() : queryProfile_;
+ } else {
+ return queryProfileBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ public Builder setQueryProfile(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile value) {
+ if (queryProfileBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ queryProfile_ = value;
+ } else {
+ queryProfileBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ public Builder setQueryProfile(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.Builder builderForValue) {
+ if (queryProfileBuilder_ == null) {
+ queryProfile_ = builderForValue.build();
+ } else {
+ queryProfileBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ public Builder mergeQueryProfile(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile value) {
+ if (queryProfileBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ queryProfile_ != null &&
+ queryProfile_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.getDefaultInstance()) {
+ getQueryProfileBuilder().mergeFrom(value);
+ } else {
+ queryProfile_ = value;
+ }
+ } else {
+ queryProfileBuilder_.mergeFrom(value);
+ }
+ if (queryProfile_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ public Builder clearQueryProfile() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ queryProfile_ = null;
+ if (queryProfileBuilder_ != null) {
+ queryProfileBuilder_.dispose();
+ queryProfileBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.Builder getQueryProfileBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getQueryProfileFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfileOrBuilder getQueryProfileOrBuilder() {
+ if (queryProfileBuilder_ != null) {
+ return queryProfileBuilder_.getMessageOrBuilder();
+ } else {
+ return queryProfile_ == null ?
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.getDefaultInstance() : queryProfile_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.QueryProfile query_profile = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfileOrBuilder>
+ getQueryProfileFieldBuilder() {
+ if (queryProfileBuilder_ == null) {
+ queryProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfileOrBuilder>(
+ getQueryProfile(),
+ getParentForChildren(),
+ isClean());
+ queryProfile_ = null;
+ }
+ return queryProfileBuilder_;
+ }
+ @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:weaviate.v1.SearchReply)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.SearchReply)
+ private static final io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.SearchReply DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.SearchReply();
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.SearchReply getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ java.util.Listrepeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile getShards(int index);
+ /**
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ int getShardsCount();
+ /**
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ java.util.List extends io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfileOrBuilder>
+ getShardsOrBuilderList();
+ /**
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfileOrBuilder getShardsOrBuilder(
+ int index);
+ }
+ /**
+ *
+ * QueryProfile contains per-shard profiling data for a search query.
+ * Only populated when MetadataRequest.profile is true.
+ *
+ *
+ * Protobuf type {@code weaviate.v1.QueryProfile}
+ */
+ public static final class QueryProfile extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.QueryProfile)
+ QueryProfileOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QueryProfile.newBuilder() to construct.
+ private QueryProfile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private QueryProfile() {
+ shards_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new QueryProfile();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.internal_static_weaviate_v1_QueryProfile_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.internal_static_weaviate_v1_QueryProfile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.class, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.Builder.class);
+ }
+
+ public interface SearchProfileOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.QueryProfile.SearchProfile)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ int getDetailsCount();
+ /**
+ *
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ boolean containsDetails(
+ java.lang.String key);
+ /**
+ * Use {@link #getDetailsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ /* nullable */
+java.lang.String getDetailsOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue);
+ /**
+ *
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ java.lang.String getDetailsOrThrow(
+ java.lang.String key);
+ }
+ /**
+ *
+ * SearchProfile holds the profiling details for a single search type within a shard.
+ *
+ *
+ * Protobuf type {@code weaviate.v1.QueryProfile.SearchProfile}
+ */
+ public static final class SearchProfile extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.QueryProfile.SearchProfile)
+ SearchProfileOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SearchProfile.newBuilder() to construct.
+ private SearchProfile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private SearchProfile() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SearchProfile();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.internal_static_weaviate_v1_QueryProfile_SearchProfile_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapField internalGetMapField(
+ int number) {
+ switch (number) {
+ case 1:
+ return internalGetDetails();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.internal_static_weaviate_v1_QueryProfile_SearchProfile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile.class, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile.Builder.class);
+ }
+
+ public static final int DETAILS_FIELD_NUMBER = 1;
+ private static final class DetailsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ @java.lang.Override
+ public boolean containsDetails(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetDetails().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDetailsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getDetailsOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ @java.lang.Override
+ public java.lang.String getDetailsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * SearchProfile holds the profiling details for a single search type within a shard.
+ *
+ *
+ * Protobuf type {@code weaviate.v1.QueryProfile.SearchProfile}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ @java.lang.Override
+ public boolean containsDetails(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetDetails().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getDetailsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getDetailsOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ @java.lang.Override
+ public java.lang.String getDetailsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ public Builder removeDetails(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableDetails().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ public Builder putDetails(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableDetails().getMutableMap()
+ .put(key, value);
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ * details contains human-readable profiling metrics keyed by metric name.
+ *
+ *
+ * map<string, string> details = 1;
+ */
+ public Builder putAllDetails(
+ java.util.Map
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @return The node.
+ */
+ java.lang.String getNode();
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @return The bytes for node.
+ */
+ com.google.protobuf.ByteString
+ getNodeBytes();
+
+ /**
+ *
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ int getSearchesCount();
+ /**
+ *
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ boolean containsSearches(
+ java.lang.String key);
+ /**
+ * Use {@link #getSearchesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ /* nullable */
+io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile getSearchesOrDefault(
+ java.lang.String key,
+ /* nullable */
+io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile defaultValue);
+ /**
+ *
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile getSearchesOrThrow(
+ java.lang.String key);
+ }
+ /**
+ *
+ * ShardProfile holds profiling data for a single shard's contribution to a search query.
+ *
+ *
+ * Protobuf type {@code weaviate.v1.QueryProfile.ShardProfile}
+ */
+ public static final class ShardProfile extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.QueryProfile.ShardProfile)
+ ShardProfileOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ShardProfile.newBuilder() to construct.
+ private ShardProfile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ShardProfile() {
+ name_ = "";
+ node_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ShardProfile();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.internal_static_weaviate_v1_QueryProfile_ShardProfile_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapField internalGetMapField(
+ int number) {
+ switch (number) {
+ case 3:
+ return internalGetSearches();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.internal_static_weaviate_v1_QueryProfile_ShardProfile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.class, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NODE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object node_ = "";
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @return The node.
+ */
+ @java.lang.Override
+ public java.lang.String getNode() {
+ java.lang.Object ref = node_;
+ 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();
+ node_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @return The bytes for node.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNodeBytes() {
+ java.lang.Object ref = node_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ node_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SEARCHES_FIELD_NUMBER = 3;
+ private static final class SearchesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile> defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ @java.lang.Override
+ public boolean containsSearches(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetSearches().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getSearchesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ @java.lang.Override
+ public /* nullable */
+io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile getSearchesOrDefault(
+ java.lang.String key,
+ /* nullable */
+io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile getSearchesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * ShardProfile holds profiling data for a single shard's contribution to a search query.
+ *
+ *
+ * Protobuf type {@code weaviate.v1.QueryProfile.ShardProfile}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * name is the identifier of the shard that was searched.
+ *
+ *
+ * string name = 1;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object node_ = "";
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @return The node.
+ */
+ public java.lang.String getNode() {
+ java.lang.Object ref = node_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ node_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @return The bytes for node.
+ */
+ public com.google.protobuf.ByteString
+ getNodeBytes() {
+ java.lang.Object ref = node_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ node_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @param value The node to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNode(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ node_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearNode() {
+ node_ = getDefaultInstance().getNode();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * node is the name of the cluster node that executed this shard search.
+ *
+ *
+ * string node = 2;
+ * @param value The bytes for node to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ node_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile> searches_;
+ private com.google.protobuf.MapField
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ @java.lang.Override
+ public boolean containsSearches(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetSearches().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getSearchesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ @java.lang.Override
+ public /* nullable */
+io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile getSearchesOrDefault(
+ java.lang.String key,
+ /* nullable */
+io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile getSearchesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ public Builder removeSearches(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableSearches().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ public Builder putSearches(
+ java.lang.String key,
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.SearchProfile value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableSearches().getMutableMap()
+ .put(key, value);
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ *
+ * searches maps search type (e.g., "vector", "keyword") to its profiling details.
+ *
+ *
+ * map<string, .weaviate.v1.QueryProfile.SearchProfile> searches = 3;
+ */
+ public Builder putAllSearches(
+ java.util.Maprepeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfileOrBuilder>
+ getShardsOrBuilderList() {
+ return shards_;
+ }
+ /**
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ @java.lang.Override
+ public int getShardsCount() {
+ return shards_.size();
+ }
+ /**
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile getShards(int index) {
+ return shards_.get(index);
+ }
+ /**
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfileOrBuilder getShardsOrBuilder(
+ int index) {
+ return shards_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < shards_.size(); i++) {
+ output.writeMessage(1, shards_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < shards_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, shards_.get(i));
+ }
+ 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile other = (io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile) obj;
+
+ if (!getShardsList()
+ .equals(other.getShardsList())) 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();
+ if (getShardsCount() > 0) {
+ hash = (37 * hash) + SHARDS_FIELD_NUMBER;
+ hash = (53 * hash) + getShardsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile 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.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile 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;
+ }
+ /**
+ *
+ * QueryProfile contains per-shard profiling data for a search query.
+ * Only populated when MetadataRequest.profile is true.
+ *
+ *
+ * Protobuf type {@code weaviate.v1.QueryProfile}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ public java.util.Listrepeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ public int getShardsCount() {
+ if (shardsBuilder_ == null) {
+ return shards_.size();
+ } else {
+ return shardsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile getShards(int index) {
+ if (shardsBuilder_ == null) {
+ return shards_.get(index);
+ } else {
+ return shardsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
+ */
+ public Builder setShards(
+ int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile value) {
+ if (shardsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureShardsIsMutable();
+ shards_.set(index, value);
+ onChanged();
+ } else {
+ shardsBuilder_.setMessage(index, value);
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public Builder setGroupByResults(
- int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder builderForValue) {
- if (groupByResultsBuilder_ == null) {
- ensureGroupByResultsIsMutable();
- groupByResults_.set(index, builderForValue.build());
+ public Builder setShards(
+ int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder builderForValue) {
+ if (shardsBuilder_ == null) {
+ ensureShardsIsMutable();
+ shards_.set(index, builderForValue.build());
onChanged();
} else {
- groupByResultsBuilder_.setMessage(index, builderForValue.build());
+ shardsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public Builder addGroupByResults(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult value) {
- if (groupByResultsBuilder_ == null) {
+ public Builder addShards(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile value) {
+ if (shardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGroupByResultsIsMutable();
- groupByResults_.add(value);
+ ensureShardsIsMutable();
+ shards_.add(value);
onChanged();
} else {
- groupByResultsBuilder_.addMessage(value);
+ shardsBuilder_.addMessage(value);
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public Builder addGroupByResults(
- int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult value) {
- if (groupByResultsBuilder_ == null) {
+ public Builder addShards(
+ int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile value) {
+ if (shardsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGroupByResultsIsMutable();
- groupByResults_.add(index, value);
+ ensureShardsIsMutable();
+ shards_.add(index, value);
onChanged();
} else {
- groupByResultsBuilder_.addMessage(index, value);
+ shardsBuilder_.addMessage(index, value);
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public Builder addGroupByResults(
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder builderForValue) {
- if (groupByResultsBuilder_ == null) {
- ensureGroupByResultsIsMutable();
- groupByResults_.add(builderForValue.build());
+ public Builder addShards(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder builderForValue) {
+ if (shardsBuilder_ == null) {
+ ensureShardsIsMutable();
+ shards_.add(builderForValue.build());
onChanged();
} else {
- groupByResultsBuilder_.addMessage(builderForValue.build());
+ shardsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public Builder addGroupByResults(
- int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder builderForValue) {
- if (groupByResultsBuilder_ == null) {
- ensureGroupByResultsIsMutable();
- groupByResults_.add(index, builderForValue.build());
+ public Builder addShards(
+ int index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder builderForValue) {
+ if (shardsBuilder_ == null) {
+ ensureShardsIsMutable();
+ shards_.add(index, builderForValue.build());
onChanged();
} else {
- groupByResultsBuilder_.addMessage(index, builderForValue.build());
+ shardsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public Builder addAllGroupByResults(
- java.lang.Iterable extends io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult> values) {
- if (groupByResultsBuilder_ == null) {
- ensureGroupByResultsIsMutable();
+ public Builder addAllShards(
+ java.lang.Iterable extends io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile> values) {
+ if (shardsBuilder_ == null) {
+ ensureShardsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, groupByResults_);
+ values, shards_);
onChanged();
} else {
- groupByResultsBuilder_.addAllMessages(values);
+ shardsBuilder_.addAllMessages(values);
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public Builder clearGroupByResults() {
- if (groupByResultsBuilder_ == null) {
- groupByResults_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public Builder clearShards() {
+ if (shardsBuilder_ == null) {
+ shards_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
- groupByResultsBuilder_.clear();
+ shardsBuilder_.clear();
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public Builder removeGroupByResults(int index) {
- if (groupByResultsBuilder_ == null) {
- ensureGroupByResultsIsMutable();
- groupByResults_.remove(index);
+ public Builder removeShards(int index) {
+ if (shardsBuilder_ == null) {
+ ensureShardsIsMutable();
+ shards_.remove(index);
onChanged();
} else {
- groupByResultsBuilder_.remove(index);
+ shardsBuilder_.remove(index);
}
return this;
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder getGroupByResultsBuilder(
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder getShardsBuilder(
int index) {
- return getGroupByResultsFieldBuilder().getBuilder(index);
+ return getShardsFieldBuilder().getBuilder(index);
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResultOrBuilder getGroupByResultsOrBuilder(
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfileOrBuilder getShardsOrBuilder(
int index) {
- if (groupByResultsBuilder_ == null) {
- return groupByResults_.get(index); } else {
- return groupByResultsBuilder_.getMessageOrBuilder(index);
+ if (shardsBuilder_ == null) {
+ return shards_.get(index); } else {
+ return shardsBuilder_.getMessageOrBuilder(index);
}
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public java.util.List extends io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResultOrBuilder>
- getGroupByResultsOrBuilderList() {
- if (groupByResultsBuilder_ != null) {
- return groupByResultsBuilder_.getMessageOrBuilderList();
+ public java.util.List extends io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfileOrBuilder>
+ getShardsOrBuilderList() {
+ if (shardsBuilder_ != null) {
+ return shardsBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(groupByResults_);
+ return java.util.Collections.unmodifiableList(shards_);
}
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder addGroupByResultsBuilder() {
- return getGroupByResultsFieldBuilder().addBuilder(
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.getDefaultInstance());
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder addShardsBuilder() {
+ return getShardsFieldBuilder().addBuilder(
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.getDefaultInstance());
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.Builder addGroupByResultsBuilder(
+ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder addShardsBuilder(
int index) {
- return getGroupByResultsFieldBuilder().addBuilder(
- index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.GroupByResult.getDefaultInstance());
+ return getShardsFieldBuilder().addBuilder(
+ index, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.getDefaultInstance());
}
/**
- * repeated .weaviate.v1.GroupByResult group_by_results = 4;
+ * repeated .weaviate.v1.QueryProfile.ShardProfile shards = 1;
*/
- public java.util.Listoptional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- * @return Whether the generativeGroupedResults field is set.
- */
- public boolean hasGenerativeGroupedResults() {
- return ((bitField0_ & 0x00000010) != 0);
- }
- /**
- * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- * @return The generativeGroupedResults.
- */
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult getGenerativeGroupedResults() {
- if (generativeGroupedResultsBuilder_ == null) {
- return generativeGroupedResults_ == null ? io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_;
- } else {
- return generativeGroupedResultsBuilder_.getMessage();
- }
- }
- /**
- * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- */
- public Builder setGenerativeGroupedResults(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult value) {
- if (generativeGroupedResultsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- generativeGroupedResults_ = value;
- } else {
- generativeGroupedResultsBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- */
- public Builder setGenerativeGroupedResults(
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.Builder builderForValue) {
- if (generativeGroupedResultsBuilder_ == null) {
- generativeGroupedResults_ = builderForValue.build();
- } else {
- generativeGroupedResultsBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- */
- public Builder mergeGenerativeGroupedResults(io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult value) {
- if (generativeGroupedResultsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0) &&
- generativeGroupedResults_ != null &&
- generativeGroupedResults_ != io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance()) {
- getGenerativeGroupedResultsBuilder().mergeFrom(value);
- } else {
- generativeGroupedResults_ = value;
- }
- } else {
- generativeGroupedResultsBuilder_.mergeFrom(value);
- }
- if (generativeGroupedResults_ != null) {
- bitField0_ |= 0x00000010;
- onChanged();
- }
- return this;
- }
- /**
- * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- */
- public Builder clearGenerativeGroupedResults() {
- bitField0_ = (bitField0_ & ~0x00000010);
- generativeGroupedResults_ = null;
- if (generativeGroupedResultsBuilder_ != null) {
- generativeGroupedResultsBuilder_.dispose();
- generativeGroupedResultsBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- */
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.Builder getGenerativeGroupedResultsBuilder() {
- bitField0_ |= 0x00000010;
- onChanged();
- return getGenerativeGroupedResultsFieldBuilder().getBuilder();
- }
- /**
- * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- */
- public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeGroupedResultsOrBuilder() {
- if (generativeGroupedResultsBuilder_ != null) {
- return generativeGroupedResultsBuilder_.getMessageOrBuilder();
- } else {
- return generativeGroupedResults_ == null ?
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_;
- }
- }
- /**
- * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResultOrBuilder>
- getGenerativeGroupedResultsFieldBuilder() {
- if (generativeGroupedResultsBuilder_ == null) {
- generativeGroupedResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeResultOrBuilder>(
- getGenerativeGroupedResults(),
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfileOrBuilder>
+ getShardsFieldBuilder() {
+ if (shardsBuilder_ == null) {
+ shardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfile.Builder, io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile.ShardProfileOrBuilder>(
+ shards_,
+ ((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
- generativeGroupedResults_ = null;
+ shards_ = null;
}
- return generativeGroupedResultsBuilder_;
+ return shardsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
@@ -14518,23 +17554,23 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:weaviate.v1.SearchReply)
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.QueryProfile)
}
- // @@protoc_insertion_point(class_scope:weaviate.v1.SearchReply)
- private static final io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.SearchReply DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:weaviate.v1.QueryProfile)
+ private static final io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.SearchReply();
+ DEFAULT_INSTANCE = new io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile();
}
- public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.SearchReply getDefaultInstance() {
+ public static io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.QueryProfile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parseroptional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true];
* @deprecated weaviate.v1.GroupByResult.generative is deprecated.
- * See v1/search_get.proto;l=130
+ * See v1/search_get.proto;l=156
* @return Whether the generative field is set.
*/
@java.lang.Deprecated boolean hasGenerative();
/**
* optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true];
* @deprecated weaviate.v1.GroupByResult.generative is deprecated.
- * See v1/search_get.proto;l=130
+ * See v1/search_get.proto;l=156
* @return The generative.
*/
@java.lang.Deprecated io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeReply getGenerative();
@@ -15336,7 +18372,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Rera
/**
* optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true];
* @deprecated weaviate.v1.GroupByResult.generative is deprecated.
- * See v1/search_get.proto;l=130
+ * See v1/search_get.proto;l=156
* @return Whether the generative field is set.
*/
@java.lang.Override
@@ -15346,7 +18382,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Rera
/**
* optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true];
* @deprecated weaviate.v1.GroupByResult.generative is deprecated.
- * See v1/search_get.proto;l=130
+ * See v1/search_get.proto;l=156
* @return The generative.
*/
@java.lang.Override
@@ -16516,7 +19552,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Rera
/**
* optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true];
* @deprecated weaviate.v1.GroupByResult.generative is deprecated.
- * See v1/search_get.proto;l=130
+ * See v1/search_get.proto;l=156
* @return Whether the generative field is set.
*/
@java.lang.Deprecated public boolean hasGenerative() {
@@ -16525,7 +19561,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.Rera
/**
* optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true];
* @deprecated weaviate.v1.GroupByResult.generative is deprecated.
- * See v1/search_get.proto;l=130
+ * See v1/search_get.proto;l=156
* @return The generative.
*/
@java.lang.Deprecated public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoGenerative.GenerativeReply getGenerative() {
@@ -17854,7 +20890,7 @@ public interface MetadataResultOrBuilder extends
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @return A list containing the vector.
*/
@java.lang.Deprecated java.util.Listrepeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @return The count of vector.
*/
@java.lang.Deprecated int getVectorCount();
@@ -17876,7 +20912,7 @@ public interface MetadataResultOrBuilder extends
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@@ -17974,14 +21010,14 @@ public interface MetadataResultOrBuilder extends
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @return The generative.
*/
@java.lang.Deprecated java.lang.String getGenerative();
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @return The bytes for generative.
*/
@java.lang.Deprecated com.google.protobuf.ByteString
@@ -17990,7 +21026,7 @@ public interface MetadataResultOrBuilder extends
/**
* bool generative_present = 17 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative_present is deprecated.
- * See v1/search_get.proto;l=159
+ * See v1/search_get.proto;l=185
* @return The generativePresent.
*/
@java.lang.Deprecated boolean getGenerativePresent();
@@ -18142,7 +21178,7 @@ public java.lang.String getId() {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @return A list containing the vector.
*/
@java.lang.Override
@@ -18157,7 +21193,7 @@ public java.lang.String getId() {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @return The count of vector.
*/
@java.lang.Deprecated public int getVectorCount() {
@@ -18170,7 +21206,7 @@ public java.lang.String getId() {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@@ -18364,7 +21400,7 @@ public boolean getIsConsistent() {
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @return The generative.
*/
@java.lang.Override
@@ -18383,7 +21419,7 @@ public boolean getIsConsistent() {
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @return The bytes for generative.
*/
@java.lang.Override
@@ -18406,7 +21442,7 @@ public boolean getIsConsistent() {
/**
* bool generative_present = 17 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative_present is deprecated.
- * See v1/search_get.proto;l=159
+ * See v1/search_get.proto;l=185
* @return The generativePresent.
*/
@java.lang.Override
@@ -19548,7 +22584,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @return A list containing the vector.
*/
@java.lang.Deprecated public java.util.Listrepeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @return The count of vector.
*/
@java.lang.Deprecated public int getVectorCount() {
@@ -19576,7 +22612,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @param index The index of the element to return.
* @return The vector at the given index.
*/
@@ -19590,7 +22626,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @param index The index to set the value at.
* @param value The vector to set.
* @return This builder for chaining.
@@ -19611,7 +22647,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @param value The vector to add.
* @return This builder for chaining.
*/
@@ -19630,7 +22666,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @param values The vector to add.
* @return This builder for chaining.
*/
@@ -19650,7 +22686,7 @@ private void ensureVectorIsMutable(int capacity) {
*
* repeated float vector = 2 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.vector is deprecated.
- * See v1/search_get.proto;l=144
+ * See v1/search_get.proto;l=170
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearVector() {
@@ -20128,7 +23164,7 @@ public Builder clearIsConsistent() {
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @return The generative.
*/
@java.lang.Deprecated public java.lang.String getGenerative() {
@@ -20146,7 +23182,7 @@ public Builder clearIsConsistent() {
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @return The bytes for generative.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
@@ -20165,7 +23201,7 @@ public Builder clearIsConsistent() {
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @param value The generative to set.
* @return This builder for chaining.
*/
@@ -20180,7 +23216,7 @@ public Builder clearIsConsistent() {
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearGenerative() {
@@ -20192,7 +23228,7 @@ public Builder clearIsConsistent() {
/**
* string generative = 16 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative is deprecated.
- * See v1/search_get.proto;l=158
+ * See v1/search_get.proto;l=184
* @param value The bytes for generative to set.
* @return This builder for chaining.
*/
@@ -20210,7 +23246,7 @@ public Builder clearIsConsistent() {
/**
* bool generative_present = 17 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative_present is deprecated.
- * See v1/search_get.proto;l=159
+ * See v1/search_get.proto;l=185
* @return The generativePresent.
*/
@java.lang.Override
@@ -20220,7 +23256,7 @@ public Builder clearIsConsistent() {
/**
* bool generative_present = 17 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative_present is deprecated.
- * See v1/search_get.proto;l=159
+ * See v1/search_get.proto;l=185
* @param value The generativePresent to set.
* @return This builder for chaining.
*/
@@ -20234,7 +23270,7 @@ public Builder clearIsConsistent() {
/**
* bool generative_present = 17 [deprecated = true];
* @deprecated weaviate.v1.MetadataResult.generative_present is deprecated.
- * See v1/search_get.proto;l=159
+ * See v1/search_get.proto;l=185
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearGenerativePresent() {
@@ -23094,6 +26130,31 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.RefP
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_weaviate_v1_SearchReply_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_QueryProfile_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_QueryProfile_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_DetailsEntry_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_DetailsEntry_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_SearchesEntry_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_SearchesEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_weaviate_v1_RerankReply_descriptor;
private static final
@@ -23174,77 +26235,90 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.RefP
"ar_imuB\r\n\013_generativeB\t\n\007_rerank\"L\n\007Grou" +
"pBy\022\014\n\004path\030\001 \003(\t\022\030\n\020number_of_groups\030\002 " +
"\001(\005\022\031\n\021objects_per_group\030\003 \001(\005\")\n\006SortBy" +
- "\022\021\n\tascending\030\001 \001(\010\022\014\n\004path\030\002 \003(\t\"\335\001\n\017Me" +
+ "\022\021\n\tascending\030\001 \001(\010\022\014\n\004path\030\002 \003(\t\"\364\001\n\017Me" +
"tadataRequest\022\014\n\004uuid\030\001 \001(\010\022\016\n\006vector\030\002 " +
"\001(\010\022\032\n\022creation_time_unix\030\003 \001(\010\022\035\n\025last_" +
"update_time_unix\030\004 \001(\010\022\020\n\010distance\030\005 \001(\010" +
"\022\021\n\tcertainty\030\006 \001(\010\022\r\n\005score\030\007 \001(\010\022\025\n\rex" +
"plain_score\030\010 \001(\010\022\025\n\ris_consistent\030\t \001(\010" +
- "\022\017\n\007vectors\030\n \003(\t\"\321\001\n\021PropertiesRequest\022" +
- "\032\n\022non_ref_properties\030\001 \003(\t\0229\n\016ref_prope" +
- "rties\030\002 \003(\0132!.weaviate.v1.RefPropertiesR" +
- "equest\022?\n\021object_properties\030\003 \003(\0132$.weav" +
- "iate.v1.ObjectPropertiesRequest\022$\n\034retur" +
- "n_all_nonref_properties\030\013 \001(\010\"\213\001\n\027Object" +
- "PropertiesRequest\022\021\n\tprop_name\030\001 \001(\t\022\034\n\024" +
- "primitive_properties\030\002 \003(\t\022?\n\021object_pro" +
- "perties\030\003 \003(\0132$.weaviate.v1.ObjectProper" +
- "tiesRequest\"\261\001\n\024RefPropertiesRequest\022\032\n\022" +
- "reference_property\030\001 \001(\t\0222\n\nproperties\030\002" +
- " \001(\0132\036.weaviate.v1.PropertiesRequest\022.\n\010" +
- "metadata\030\003 \001(\0132\034.weaviate.v1.MetadataReq" +
- "uest\022\031\n\021target_collection\030\004 \001(\t\"8\n\006Reran" +
- "k\022\020\n\010property\030\001 \001(\t\022\022\n\005query\030\002 \001(\tH\000\210\001\001B" +
- "\010\n\006_query\"\256\002\n\013SearchReply\022\014\n\004took\030\001 \001(\002\022" +
- "*\n\007results\030\002 \003(\0132\031.weaviate.v1.SearchRes" +
- "ult\022*\n\031generative_grouped_result\030\003 \001(\tB\002" +
- "\030\001H\000\210\001\001\0224\n\020group_by_results\030\004 \003(\0132\032.weav" +
- "iate.v1.GroupByResult\022F\n\032generative_grou" +
- "ped_results\030\005 \001(\0132\035.weaviate.v1.Generati" +
- "veResultH\001\210\001\001B\034\n\032_generative_grouped_res" +
- "ultB\035\n\033_generative_grouped_results\"\034\n\013Re" +
- "rankReply\022\r\n\005score\030\001 \001(\001\"\351\002\n\rGroupByResu" +
- "lt\022\014\n\004name\030\001 \001(\t\022\024\n\014min_distance\030\002 \001(\002\022\024" +
- "\n\014max_distance\030\003 \001(\002\022\031\n\021number_of_object" +
- "s\030\004 \001(\003\022*\n\007objects\030\005 \003(\0132\031.weaviate.v1.S" +
- "earchResult\022-\n\006rerank\030\006 \001(\0132\030.weaviate.v" +
- "1.RerankReplyH\000\210\001\001\0229\n\ngenerative\030\007 \001(\0132\034" +
- ".weaviate.v1.GenerativeReplyB\002\030\001H\001\210\001\001\022=\n" +
- "\021generative_result\030\010 \001(\0132\035.weaviate.v1.G" +
- "enerativeResultH\002\210\001\001B\t\n\007_rerankB\r\n\013_gene" +
- "rativeB\024\n\022_generative_result\"\267\001\n\014SearchR" +
- "esult\0221\n\nproperties\030\001 \001(\0132\035.weaviate.v1." +
- "PropertiesResult\022-\n\010metadata\030\002 \001(\0132\033.wea" +
- "viate.v1.MetadataResult\0226\n\ngenerative\030\003 " +
- "\001(\0132\035.weaviate.v1.GenerativeResultH\000\210\001\001B" +
- "\r\n\013_generative\"\367\004\n\016MetadataResult\022\n\n\002id\030" +
- "\001 \001(\t\022\022\n\006vector\030\002 \003(\002B\002\030\001\022\032\n\022creation_ti" +
- "me_unix\030\003 \001(\003\022\"\n\032creation_time_unix_pres" +
- "ent\030\004 \001(\010\022\035\n\025last_update_time_unix\030\005 \001(\003" +
- "\022%\n\035last_update_time_unix_present\030\006 \001(\010\022" +
- "\020\n\010distance\030\007 \001(\002\022\030\n\020distance_present\030\010 " +
- "\001(\010\022\021\n\tcertainty\030\t \001(\002\022\031\n\021certainty_pres" +
- "ent\030\n \001(\010\022\r\n\005score\030\013 \001(\002\022\025\n\rscore_presen" +
- "t\030\014 \001(\010\022\025\n\rexplain_score\030\r \001(\t\022\035\n\025explai" +
- "n_score_present\030\016 \001(\010\022\032\n\ris_consistent\030\017" +
- " \001(\010H\000\210\001\001\022\026\n\ngenerative\030\020 \001(\tB\002\030\001\022\036\n\022gen" +
- "erative_present\030\021 \001(\010B\002\030\001\022\035\n\025is_consiste" +
- "nt_present\030\022 \001(\010\022\024\n\014vector_bytes\030\023 \001(\014\022\023" +
- "\n\013id_as_bytes\030\024 \001(\014\022\024\n\014rerank_score\030\025 \001(" +
- "\001\022\034\n\024rerank_score_present\030\026 \001(\010\022%\n\007vecto" +
- "rs\030\027 \003(\0132\024.weaviate.v1.VectorsB\020\n\016_is_co" +
- "nsistent\"\210\002\n\020PropertiesResult\0223\n\tref_pro" +
- "ps\030\002 \003(\0132 .weaviate.v1.RefPropertiesResu" +
- "lt\022\031\n\021target_collection\030\003 \001(\t\022-\n\010metadat" +
- "a\030\004 \001(\0132\033.weaviate.v1.MetadataResult\022.\n\r" +
- "non_ref_props\030\013 \001(\0132\027.weaviate.v1.Proper" +
- "ties\022\033\n\023ref_props_requested\030\014 \001(\010J\004\010\001\020\002J" +
- "\004\010\005\020\006J\004\010\006\020\007J\004\010\007\020\010J\004\010\010\020\tJ\004\010\t\020\nJ\004\010\n\020\013\"[\n\023R" +
- "efPropertiesResult\0221\n\nproperties\030\001 \003(\0132\035" +
- ".weaviate.v1.PropertiesResult\022\021\n\tprop_na" +
- "me\030\002 \001(\tBG\n-io.weaviate.client6.v1.inter" +
- "nal.grpc.protocolB\026WeaviateProtoSearchGe" +
- "tb\006proto3"
+ "\022\017\n\007vectors\030\n \003(\t\022\025\n\rquery_profile\030\013 \001(\010" +
+ "\"\321\001\n\021PropertiesRequest\022\032\n\022non_ref_proper" +
+ "ties\030\001 \003(\t\0229\n\016ref_properties\030\002 \003(\0132!.wea" +
+ "viate.v1.RefPropertiesRequest\022?\n\021object_" +
+ "properties\030\003 \003(\0132$.weaviate.v1.ObjectPro" +
+ "pertiesRequest\022$\n\034return_all_nonref_prop" +
+ "erties\030\013 \001(\010\"\213\001\n\027ObjectPropertiesRequest" +
+ "\022\021\n\tprop_name\030\001 \001(\t\022\034\n\024primitive_propert" +
+ "ies\030\002 \003(\t\022?\n\021object_properties\030\003 \003(\0132$.w" +
+ "eaviate.v1.ObjectPropertiesRequest\"\261\001\n\024R" +
+ "efPropertiesRequest\022\032\n\022reference_propert" +
+ "y\030\001 \001(\t\0222\n\nproperties\030\002 \001(\0132\036.weaviate.v" +
+ "1.PropertiesRequest\022.\n\010metadata\030\003 \001(\0132\034." +
+ "weaviate.v1.MetadataRequest\022\031\n\021target_co" +
+ "llection\030\004 \001(\t\"8\n\006Rerank\022\020\n\010property\030\001 \001" +
+ "(\t\022\022\n\005query\030\002 \001(\tH\000\210\001\001B\010\n\006_query\"\367\002\n\013Sea" +
+ "rchReply\022\014\n\004took\030\001 \001(\002\022*\n\007results\030\002 \003(\0132" +
+ "\031.weaviate.v1.SearchResult\022*\n\031generative" +
+ "_grouped_result\030\003 \001(\tB\002\030\001H\000\210\001\001\0224\n\020group_" +
+ "by_results\030\004 \003(\0132\032.weaviate.v1.GroupByRe" +
+ "sult\022F\n\032generative_grouped_results\030\005 \001(\013" +
+ "2\035.weaviate.v1.GenerativeResultH\001\210\001\001\0225\n\r" +
+ "query_profile\030\006 \001(\0132\031.weaviate.v1.QueryP" +
+ "rofileH\002\210\001\001B\034\n\032_generative_grouped_resul" +
+ "tB\035\n\033_generative_grouped_resultsB\020\n\016_que" +
+ "ry_profile\"\236\003\n\014QueryProfile\0226\n\006shards\030\001 " +
+ "\003(\0132&.weaviate.v1.QueryProfile.ShardProf" +
+ "ile\032\206\001\n\rSearchProfile\022E\n\007details\030\001 \003(\01324" +
+ ".weaviate.v1.QueryProfile.SearchProfile." +
+ "DetailsEntry\032.\n\014DetailsEntry\022\013\n\003key\030\001 \001(" +
+ "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032\314\001\n\014ShardProfile\022\014\n" +
+ "\004name\030\001 \001(\t\022\014\n\004node\030\002 \001(\t\022F\n\010searches\030\003 " +
+ "\003(\01324.weaviate.v1.QueryProfile.ShardProf" +
+ "ile.SearchesEntry\032X\n\rSearchesEntry\022\013\n\003ke" +
+ "y\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.weaviate.v1.Que" +
+ "ryProfile.SearchProfile:\0028\001\"\034\n\013RerankRep" +
+ "ly\022\r\n\005score\030\001 \001(\001\"\351\002\n\rGroupByResult\022\014\n\004n" +
+ "ame\030\001 \001(\t\022\024\n\014min_distance\030\002 \001(\002\022\024\n\014max_d" +
+ "istance\030\003 \001(\002\022\031\n\021number_of_objects\030\004 \001(\003" +
+ "\022*\n\007objects\030\005 \003(\0132\031.weaviate.v1.SearchRe" +
+ "sult\022-\n\006rerank\030\006 \001(\0132\030.weaviate.v1.Reran" +
+ "kReplyH\000\210\001\001\0229\n\ngenerative\030\007 \001(\0132\034.weavia" +
+ "te.v1.GenerativeReplyB\002\030\001H\001\210\001\001\022=\n\021genera" +
+ "tive_result\030\010 \001(\0132\035.weaviate.v1.Generati" +
+ "veResultH\002\210\001\001B\t\n\007_rerankB\r\n\013_generativeB" +
+ "\024\n\022_generative_result\"\267\001\n\014SearchResult\0221" +
+ "\n\nproperties\030\001 \001(\0132\035.weaviate.v1.Propert" +
+ "iesResult\022-\n\010metadata\030\002 \001(\0132\033.weaviate.v" +
+ "1.MetadataResult\0226\n\ngenerative\030\003 \001(\0132\035.w" +
+ "eaviate.v1.GenerativeResultH\000\210\001\001B\r\n\013_gen" +
+ "erative\"\367\004\n\016MetadataResult\022\n\n\002id\030\001 \001(\t\022\022" +
+ "\n\006vector\030\002 \003(\002B\002\030\001\022\032\n\022creation_time_unix" +
+ "\030\003 \001(\003\022\"\n\032creation_time_unix_present\030\004 \001" +
+ "(\010\022\035\n\025last_update_time_unix\030\005 \001(\003\022%\n\035las" +
+ "t_update_time_unix_present\030\006 \001(\010\022\020\n\010dist" +
+ "ance\030\007 \001(\002\022\030\n\020distance_present\030\010 \001(\010\022\021\n\t" +
+ "certainty\030\t \001(\002\022\031\n\021certainty_present\030\n \001" +
+ "(\010\022\r\n\005score\030\013 \001(\002\022\025\n\rscore_present\030\014 \001(\010" +
+ "\022\025\n\rexplain_score\030\r \001(\t\022\035\n\025explain_score" +
+ "_present\030\016 \001(\010\022\032\n\ris_consistent\030\017 \001(\010H\000\210" +
+ "\001\001\022\026\n\ngenerative\030\020 \001(\tB\002\030\001\022\036\n\022generative" +
+ "_present\030\021 \001(\010B\002\030\001\022\035\n\025is_consistent_pres" +
+ "ent\030\022 \001(\010\022\024\n\014vector_bytes\030\023 \001(\014\022\023\n\013id_as" +
+ "_bytes\030\024 \001(\014\022\024\n\014rerank_score\030\025 \001(\001\022\034\n\024re" +
+ "rank_score_present\030\026 \001(\010\022%\n\007vectors\030\027 \003(" +
+ "\0132\024.weaviate.v1.VectorsB\020\n\016_is_consisten" +
+ "t\"\210\002\n\020PropertiesResult\0223\n\tref_props\030\002 \003(" +
+ "\0132 .weaviate.v1.RefPropertiesResult\022\031\n\021t" +
+ "arget_collection\030\003 \001(\t\022-\n\010metadata\030\004 \001(\013" +
+ "2\033.weaviate.v1.MetadataResult\022.\n\rnon_ref" +
+ "_props\030\013 \001(\0132\027.weaviate.v1.Properties\022\033\n" +
+ "\023ref_props_requested\030\014 \001(\010J\004\010\001\020\002J\004\010\005\020\006J\004" +
+ "\010\006\020\007J\004\010\007\020\010J\004\010\010\020\tJ\004\010\t\020\nJ\004\010\n\020\013\"[\n\023RefPrope" +
+ "rtiesResult\0221\n\nproperties\030\001 \003(\0132\035.weavia" +
+ "te.v1.PropertiesResult\022\021\n\tprop_name\030\002 \001(" +
+ "\tBG\n-io.weaviate.client6.v1.internal.grp" +
+ "c.protocolB\026WeaviateProtoSearchGetb\006prot" +
+ "o3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -23277,7 +26351,7 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.RefP
internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_MetadataRequest_descriptor,
- new java.lang.String[] { "Uuid", "Vector", "CreationTimeUnix", "LastUpdateTimeUnix", "Distance", "Certainty", "Score", "ExplainScore", "IsConsistent", "Vectors", });
+ new java.lang.String[] { "Uuid", "Vector", "CreationTimeUnix", "LastUpdateTimeUnix", "Distance", "Certainty", "Score", "ExplainScore", "IsConsistent", "Vectors", "QueryProfile", });
internal_static_weaviate_v1_PropertiesRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable = new
@@ -23307,39 +26381,69 @@ public io.weaviate.client6.v1.internal.grpc.protocol.WeaviateProtoSearchGet.RefP
internal_static_weaviate_v1_SearchReply_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_SearchReply_descriptor,
- new java.lang.String[] { "Took", "Results", "GenerativeGroupedResult", "GroupByResults", "GenerativeGroupedResults", "GenerativeGroupedResult", "GenerativeGroupedResults", });
- internal_static_weaviate_v1_RerankReply_descriptor =
+ new java.lang.String[] { "Took", "Results", "GenerativeGroupedResult", "GroupByResults", "GenerativeGroupedResults", "QueryProfile", "GenerativeGroupedResult", "GenerativeGroupedResults", "QueryProfile", });
+ internal_static_weaviate_v1_QueryProfile_descriptor =
getDescriptor().getMessageTypes().get(9);
+ internal_static_weaviate_v1_QueryProfile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_QueryProfile_descriptor,
+ new java.lang.String[] { "Shards", });
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_descriptor =
+ internal_static_weaviate_v1_QueryProfile_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_descriptor,
+ new java.lang.String[] { "Details", });
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_DetailsEntry_descriptor =
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_DetailsEntry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_QueryProfile_SearchProfile_DetailsEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_descriptor =
+ internal_static_weaviate_v1_QueryProfile_descriptor.getNestedTypes().get(1);
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_descriptor,
+ new java.lang.String[] { "Name", "Node", "Searches", });
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_SearchesEntry_descriptor =
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_SearchesEntry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_QueryProfile_ShardProfile_SearchesEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_weaviate_v1_RerankReply_descriptor =
+ getDescriptor().getMessageTypes().get(10);
internal_static_weaviate_v1_RerankReply_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_RerankReply_descriptor,
new java.lang.String[] { "Score", });
internal_static_weaviate_v1_GroupByResult_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(11);
internal_static_weaviate_v1_GroupByResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_GroupByResult_descriptor,
new java.lang.String[] { "Name", "MinDistance", "MaxDistance", "NumberOfObjects", "Objects", "Rerank", "Generative", "GenerativeResult", "Rerank", "Generative", "GenerativeResult", });
internal_static_weaviate_v1_SearchResult_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(12);
internal_static_weaviate_v1_SearchResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_SearchResult_descriptor,
new java.lang.String[] { "Properties", "Metadata", "Generative", "Generative", });
internal_static_weaviate_v1_MetadataResult_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(13);
internal_static_weaviate_v1_MetadataResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_MetadataResult_descriptor,
new java.lang.String[] { "Id", "Vector", "CreationTimeUnix", "CreationTimeUnixPresent", "LastUpdateTimeUnix", "LastUpdateTimeUnixPresent", "Distance", "DistancePresent", "Certainty", "CertaintyPresent", "Score", "ScorePresent", "ExplainScore", "ExplainScorePresent", "IsConsistent", "Generative", "GenerativePresent", "IsConsistentPresent", "VectorBytes", "IdAsBytes", "RerankScore", "RerankScorePresent", "Vectors", "IsConsistent", });
internal_static_weaviate_v1_PropertiesResult_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(14);
internal_static_weaviate_v1_PropertiesResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_PropertiesResult_descriptor,
new java.lang.String[] { "RefProps", "TargetCollection", "Metadata", "NonRefProps", "RefPropsRequested", });
internal_static_weaviate_v1_RefPropertiesResult_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(15);
internal_static_weaviate_v1_RefPropertiesResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_weaviate_v1_RefPropertiesResult_descriptor,
diff --git a/src/main/proto/v1/base_search.proto b/src/main/proto/v1/base_search.proto
index f1b241b91..b4399050d 100644
--- a/src/main/proto/v1/base_search.proto
+++ b/src/main/proto/v1/base_search.proto
@@ -30,11 +30,20 @@ message Targets {
message VectorForTarget {
string name = 1;
- bytes vector_bytes = 2
- [ deprecated = true ]; // deprecated in 1.29.0 - use vectors
+ bytes vector_bytes = 2 [deprecated = true]; // deprecated in 1.29.0 - use vectors
repeated Vectors vectors = 3;
}
+message Selection {
+ message MMR {
+ optional uint32 limit = 1;
+ optional float balance = 2;
+ }
+ oneof selection {
+ MMR mmr = 1;
+ }
+}
+
message SearchOperatorOptions {
enum Operator {
OPERATOR_UNSPECIFIED = 0;
@@ -49,56 +58,55 @@ message Hybrid {
string query = 1;
repeated string properties = 2;
// protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
- repeated float vector = 3
- [ deprecated = true ]; // will be removed in the future, use vectors
- float alpha = 4;
+ repeated float vector = 3 [deprecated = true]; // will be removed in the future, use vectors
+ float alpha = 4 [deprecated = true]; // deprecated in 1.36.0 - use alpha_param
enum FusionType {
FUSION_TYPE_UNSPECIFIED = 0;
FUSION_TYPE_RANKED = 1;
FUSION_TYPE_RELATIVE_SCORE = 2;
}
FusionType fusion_type = 5;
- bytes vector_bytes = 6
- [ deprecated = true ]; // deprecated in 1.29.0 - use vectors
- repeated string target_vectors = 7
- [ deprecated = true ]; // deprecated in 1.26 - use targets
- NearTextSearch near_text =
- 8; // targets in msg is ignored and should not be set for hybrid
- NearVector near_vector =
- 9; // same as above. Use the target vector in the hybrid message
+ bytes vector_bytes = 6 [deprecated = true]; // deprecated in 1.29.0 - use vectors
+ repeated string target_vectors = 7 [deprecated = true]; // deprecated in 1.26 - use targets
+ NearTextSearch near_text = 8; // targets in msg is ignored and should not be set for hybrid
+ NearVector near_vector = 9; // same as above. Use the target vector in the hybrid message
Targets targets = 10;
optional SearchOperatorOptions bm25_search_operator = 11;
+ optional float alpha_param = 12;
+ // if true, alpha_param is used instead of alpha.
+ // This is for backward compatibility, as alpha was used before alpha_param was introduced.
+ bool use_alpha_param = 13;
+ optional Selection selection = 14;
// only vector distance, but keep it extendable
- oneof threshold { float vector_distance = 20; };
+ oneof threshold {
+ float vector_distance = 20;
+ };
repeated Vectors vectors = 21;
}
message NearVector {
// protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
- repeated float vector = 1
- [ deprecated = true ]; // will be removed in the future, use vectors
+ repeated float vector = 1 [deprecated = true]; // will be removed in the future, use vectors
optional double certainty = 2;
optional double distance = 3;
- bytes vector_bytes = 4
- [ deprecated = true ]; // deprecated in 1.29.0 - use vectors
- repeated string target_vectors = 5
- [ deprecated = true ]; // deprecated in 1.26 - use targets
+ bytes vector_bytes = 4 [deprecated = true]; // deprecated in 1.29.0 - use vectors
+ repeated string target_vectors = 5 [deprecated = true]; // deprecated in 1.26 - use targets
Targets targets = 6;
- map