diff --git a/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoGenerative.java b/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoGenerative.java new file mode 100644 index 00000000..de0ce082 --- /dev/null +++ b/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoGenerative.java @@ -0,0 +1,36281 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: v1/generative.proto + +package io.weaviate.client.grpc.protocol.v1; + +public final class WeaviateProtoGenerative { + private WeaviateProtoGenerative() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface GenerativeSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @return The singleResponsePrompt. + */ + @java.lang.Deprecated java.lang.String getSingleResponsePrompt(); + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @return The bytes for singleResponsePrompt. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getSingleResponsePromptBytes(); + + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @return The groupedResponseTask. + */ + @java.lang.Deprecated java.lang.String getGroupedResponseTask(); + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @return The bytes for groupedResponseTask. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getGroupedResponseTaskBytes(); + + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @return A list containing the groupedProperties. + */ + @java.lang.Deprecated java.util.List + getGroupedPropertiesList(); + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @return The count of groupedProperties. + */ + @java.lang.Deprecated int getGroupedPropertiesCount(); + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param index The index of the element to return. + * @return The groupedProperties at the given index. + */ + @java.lang.Deprecated java.lang.String getGroupedProperties(int index); + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param index The index of the value to return. + * @return The bytes of the groupedProperties at the given index. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getGroupedPropertiesBytes(int index); + + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + * @return Whether the single field is set. + */ + boolean hasSingle(); + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + * @return The single. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getSingle(); + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder getSingleOrBuilder(); + + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + * @return Whether the grouped field is set. + */ + boolean hasGrouped(); + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + * @return The grouped. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getGrouped(); + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder getGroupedOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeSearch} + */ + public static final class GenerativeSearch extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeSearch) + GenerativeSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeSearch.newBuilder() to construct. + private GenerativeSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeSearch() { + singleResponsePrompt_ = ""; + groupedResponseTask_ = ""; + groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder.class); + } + + public interface SingleOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeSearch.Single) + com.google.protobuf.MessageOrBuilder { + + /** + * string prompt = 1; + * @return The prompt. + */ + java.lang.String getPrompt(); + /** + * string prompt = 1; + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString + getPromptBytes(); + + /** + * bool debug = 2; + * @return The debug. + */ + boolean getDebug(); + + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + java.util.List + getQueriesList(); + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getQueries(int index); + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + int getQueriesCount(); + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + java.util.List + getQueriesOrBuilderList(); + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder getQueriesOrBuilder( + int index); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeSearch.Single} + */ + public static final class Single extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeSearch.Single) + SingleOrBuilder { + private static final long serialVersionUID = 0L; + // Use Single.newBuilder() to construct. + private Single(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Single() { + prompt_ = ""; + queries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Single(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Single_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Single_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder.class); + } + + public static final int PROMPT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + /** + * string prompt = 1; + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + 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(); + prompt_ = s; + return s; + } + } + /** + * string prompt = 1; + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEBUG_FIELD_NUMBER = 2; + private boolean debug_ = false; + /** + * bool debug = 2; + * @return The debug. + */ + @java.lang.Override + public boolean getDebug() { + return debug_; + } + + public static final int QUERIES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List queries_; + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + @java.lang.Override + public java.util.List getQueriesList() { + return queries_; + } + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + @java.lang.Override + public java.util.List + getQueriesOrBuilderList() { + return queries_; + } + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + @java.lang.Override + public int getQueriesCount() { + return queries_.size(); + } + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getQueries(int index) { + return queries_.get(index); + } + /** + *
+       * only allow one at the beginning, but multiple in the future
+       * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder getQueriesOrBuilder( + int index) { + return queries_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prompt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, prompt_); + } + if (debug_ != false) { + output.writeBool(2, debug_); + } + for (int i = 0; i < queries_.size(); i++) { + output.writeMessage(3, queries_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prompt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, prompt_); + } + if (debug_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, debug_); + } + for (int i = 0; i < queries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, queries_.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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single) obj; + + if (!getPrompt() + .equals(other.getPrompt())) return false; + if (getDebug() + != other.getDebug()) return false; + if (!getQueriesList() + .equals(other.getQueriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + hash = (37 * hash) + DEBUG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDebug()); + if (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single 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.GenerativeSearch.Single} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeSearch.Single) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Single_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Single_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prompt_ = ""; + debug_ = false; + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + } else { + queries_ = null; + queriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Single_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single result) { + if (queriesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.queries_ = queries_; + } else { + result.queries_ = queriesBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prompt_ = prompt_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.debug_ = debug_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance()) return this; + if (!other.getPrompt().isEmpty()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDebug() != false) { + setDebug(other.getDebug()); + } + if (queriesBuilder_ == null) { + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + } else { + if (!other.queries_.isEmpty()) { + if (queriesBuilder_.isEmpty()) { + queriesBuilder_.dispose(); + queriesBuilder_ = null; + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000004); + queriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getQueriesFieldBuilder() : null; + } else { + queriesBuilder_.addAllMessages(other.queries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + debug_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider m = + input.readMessage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.parser(), + extensionRegistry); + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(m); + } else { + queriesBuilder_.addMessage(m); + } + break; + } // case 26 + 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 prompt_ = ""; + /** + * string prompt = 1; + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prompt = 1; + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString + getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prompt = 1; + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string prompt = 1; + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string prompt = 1; + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean debug_ ; + /** + * bool debug = 2; + * @return The debug. + */ + @java.lang.Override + public boolean getDebug() { + return debug_; + } + /** + * bool debug = 2; + * @param value The debug to set. + * @return This builder for chaining. + */ + public Builder setDebug(boolean value) { + + debug_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool debug = 2; + * @return This builder for chaining. + */ + public Builder clearDebug() { + bitField0_ = (bitField0_ & ~0x00000002); + debug_ = false; + onChanged(); + return this; + } + + private java.util.List queries_ = + java.util.Collections.emptyList(); + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + queries_ = new java.util.ArrayList(queries_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder> queriesBuilder_; + + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public java.util.List getQueriesList() { + if (queriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queries_); + } else { + return queriesBuilder_.getMessageList(); + } + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public int getQueriesCount() { + if (queriesBuilder_ == null) { + return queries_.size(); + } else { + return queriesBuilder_.getCount(); + } + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getQueries(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessage(index); + } + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder setQueries( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.set(index, value); + onChanged(); + } else { + queriesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder setQueries( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.set(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder addQueries(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + } else { + queriesBuilder_.addMessage(value); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder addQueries( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(index, value); + onChanged(); + } else { + queriesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder addQueries( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder addQueries( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder addAllQueries( + java.lang.Iterable values) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, queries_); + onChanged(); + } else { + queriesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder clearQueries() { + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + queriesBuilder_.clear(); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public Builder removeQueries(int index) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.remove(index); + onChanged(); + } else { + queriesBuilder_.remove(index); + } + return this; + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder getQueriesBuilder( + int index) { + return getQueriesFieldBuilder().getBuilder(index); + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder getQueriesOrBuilder( + int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); } else { + return queriesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public java.util.List + getQueriesOrBuilderList() { + if (queriesBuilder_ != null) { + return queriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queries_); + } + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder addQueriesBuilder() { + return getQueriesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.getDefaultInstance()); + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder addQueriesBuilder( + int index) { + return getQueriesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.getDefaultInstance()); + } + /** + *
+         * only allow one at the beginning, but multiple in the future
+         * 
+ * + * repeated .weaviate.v1.GenerativeProvider queries = 3; + */ + public java.util.List + getQueriesBuilderList() { + return getQueriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder> + getQueriesFieldBuilder() { + if (queriesBuilder_ == null) { + queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder>( + queries_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + queries_ = null; + } + return queriesBuilder_; + } + @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.GenerativeSearch.Single) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeSearch.Single) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Single parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GroupedOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeSearch.Grouped) + com.google.protobuf.MessageOrBuilder { + + /** + * string task = 1; + * @return The task. + */ + java.lang.String getTask(); + /** + * string task = 1; + * @return The bytes for task. + */ + com.google.protobuf.ByteString + getTaskBytes(); + + /** + * optional .weaviate.v1.TextArray properties = 2; + * @return Whether the properties field is set. + */ + boolean hasProperties(); + /** + * optional .weaviate.v1.TextArray properties = 2; + * @return The properties. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getProperties(); + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getPropertiesOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeSearch.Grouped} + */ + public static final class Grouped extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeSearch.Grouped) + GroupedOrBuilder { + private static final long serialVersionUID = 0L; + // Use Grouped.newBuilder() to construct. + private Grouped(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Grouped() { + task_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Grouped(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder.class); + } + + private int bitField0_; + public static final int TASK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object task_ = ""; + /** + * string task = 1; + * @return The task. + */ + @java.lang.Override + public java.lang.String getTask() { + java.lang.Object ref = task_; + 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(); + task_ = s; + return s; + } + } + /** + * string task = 1; + * @return The bytes for task. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTaskBytes() { + java.lang.Object ref = task_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + task_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray properties_; + /** + * optional .weaviate.v1.TextArray properties = 2; + * @return Whether the properties field is set. + */ + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.TextArray properties = 2; + * @return The properties. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getProperties() { + return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_; + } + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getPropertiesOrBuilder() { + return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(task_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, task_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getProperties()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(task_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, task_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProperties()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped) obj; + + if (!getTask() + .equals(other.getTask())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties() + .equals(other.getProperties())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TASK_FIELD_NUMBER; + hash = (53 * hash) + getTask().hashCode(); + if (hasProperties()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getProperties().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped 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.GenerativeSearch.Grouped} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeSearch.Grouped) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + task_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.task_ = task_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.properties_ = propertiesBuilder_ == null + ? properties_ + : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance()) return this; + if (!other.getTask().isEmpty()) { + task_ = other.task_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + task_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 task_ = ""; + /** + * string task = 1; + * @return The task. + */ + public java.lang.String getTask() { + java.lang.Object ref = task_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + task_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string task = 1; + * @return The bytes for task. + */ + public com.google.protobuf.ByteString + getTaskBytes() { + java.lang.Object ref = task_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + task_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string task = 1; + * @param value The task to set. + * @return This builder for chaining. + */ + public Builder setTask( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + task_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string task = 1; + * @return This builder for chaining. + */ + public Builder clearTask() { + task_ = getDefaultInstance().getTask(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string task = 1; + * @param value The bytes for task to set. + * @return This builder for chaining. + */ + public Builder setTaskBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + task_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray properties_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> propertiesBuilder_; + /** + * optional .weaviate.v1.TextArray properties = 2; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.TextArray properties = 2; + * @return The properties. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + public Builder setProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + public Builder setProperties( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + public Builder mergeProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + properties_ != null && + properties_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_; + } + } + /** + * optional .weaviate.v1.TextArray properties = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>( + getProperties(), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + @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.GenerativeSearch.Grouped) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeSearch.Grouped) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Grouped parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int SINGLE_RESPONSE_PROMPT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object singleResponsePrompt_ = ""; + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @return The singleResponsePrompt. + */ + @java.lang.Override + @java.lang.Deprecated public java.lang.String getSingleResponsePrompt() { + java.lang.Object ref = singleResponsePrompt_; + 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(); + singleResponsePrompt_ = s; + return s; + } + } + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @return The bytes for singleResponsePrompt. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString + getSingleResponsePromptBytes() { + java.lang.Object ref = singleResponsePrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singleResponsePrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUPED_RESPONSE_TASK_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object groupedResponseTask_ = ""; + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @return The groupedResponseTask. + */ + @java.lang.Override + @java.lang.Deprecated public java.lang.String getGroupedResponseTask() { + java.lang.Object ref = groupedResponseTask_; + 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(); + groupedResponseTask_ = s; + return s; + } + } + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @return The bytes for groupedResponseTask. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString + getGroupedResponseTaskBytes() { + java.lang.Object ref = groupedResponseTask_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupedResponseTask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUPED_PROPERTIES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @return A list containing the groupedProperties. + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getGroupedPropertiesList() { + return groupedProperties_; + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @return The count of groupedProperties. + */ + @java.lang.Deprecated public int getGroupedPropertiesCount() { + return groupedProperties_.size(); + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param index The index of the element to return. + * @return The groupedProperties at the given index. + */ + @java.lang.Deprecated public java.lang.String getGroupedProperties(int index) { + return groupedProperties_.get(index); + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param index The index of the value to return. + * @return The bytes of the groupedProperties at the given index. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getGroupedPropertiesBytes(int index) { + return groupedProperties_.getByteString(index); + } + + public static final int SINGLE_FIELD_NUMBER = 4; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single single_; + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + * @return Whether the single field is set. + */ + @java.lang.Override + public boolean hasSingle() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + * @return The single. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getSingle() { + return single_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance() : single_; + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder getSingleOrBuilder() { + return single_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance() : single_; + } + + public static final int GROUPED_FIELD_NUMBER = 5; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped grouped_; + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + * @return Whether the grouped field is set. + */ + @java.lang.Override + public boolean hasGrouped() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + * @return The grouped. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getGrouped() { + return grouped_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance() : grouped_; + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder getGroupedOrBuilder() { + return grouped_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance() : grouped_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleResponsePrompt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, singleResponsePrompt_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupedResponseTask_); + } + for (int i = 0; i < groupedProperties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupedProperties_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSingle()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getGrouped()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleResponsePrompt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, singleResponsePrompt_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupedResponseTask_); + } + { + int dataSize = 0; + for (int i = 0; i < groupedProperties_.size(); i++) { + dataSize += computeStringSizeNoTag(groupedProperties_.getRaw(i)); + } + size += dataSize; + size += 1 * getGroupedPropertiesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSingle()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getGrouped()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch) obj; + + if (!getSingleResponsePrompt() + .equals(other.getSingleResponsePrompt())) return false; + if (!getGroupedResponseTask() + .equals(other.getGroupedResponseTask())) return false; + if (!getGroupedPropertiesList() + .equals(other.getGroupedPropertiesList())) return false; + if (hasSingle() != other.hasSingle()) return false; + if (hasSingle()) { + if (!getSingle() + .equals(other.getSingle())) return false; + } + if (hasGrouped() != other.hasGrouped()) return false; + if (hasGrouped()) { + if (!getGrouped() + .equals(other.getGrouped())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SINGLE_RESPONSE_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getSingleResponsePrompt().hashCode(); + hash = (37 * hash) + GROUPED_RESPONSE_TASK_FIELD_NUMBER; + hash = (53 * hash) + getGroupedResponseTask().hashCode(); + if (getGroupedPropertiesCount() > 0) { + hash = (37 * hash) + GROUPED_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getGroupedPropertiesList().hashCode(); + } + if (hasSingle()) { + hash = (37 * hash) + SINGLE_FIELD_NUMBER; + hash = (53 * hash) + getSingle().hashCode(); + } + if (hasGrouped()) { + hash = (37 * hash) + GROUPED_FIELD_NUMBER; + hash = (53 * hash) + getGrouped().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch 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.GenerativeSearch} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeSearch) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSingleFieldBuilder(); + getGroupedFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + singleResponsePrompt_ = ""; + groupedResponseTask_ = ""; + groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + single_ = null; + if (singleBuilder_ != null) { + singleBuilder_.dispose(); + singleBuilder_ = null; + } + grouped_ = null; + if (groupedBuilder_ != null) { + groupedBuilder_.dispose(); + groupedBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.singleResponsePrompt_ = singleResponsePrompt_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.groupedResponseTask_ = groupedResponseTask_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + groupedProperties_.makeImmutable(); + result.groupedProperties_ = groupedProperties_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.single_ = singleBuilder_ == null + ? single_ + : singleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.grouped_ = groupedBuilder_ == null + ? grouped_ + : groupedBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance()) return this; + if (!other.getSingleResponsePrompt().isEmpty()) { + singleResponsePrompt_ = other.singleResponsePrompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGroupedResponseTask().isEmpty()) { + groupedResponseTask_ = other.groupedResponseTask_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.groupedProperties_.isEmpty()) { + if (groupedProperties_.isEmpty()) { + groupedProperties_ = other.groupedProperties_; + bitField0_ |= 0x00000004; + } else { + ensureGroupedPropertiesIsMutable(); + groupedProperties_.addAll(other.groupedProperties_); + } + onChanged(); + } + if (other.hasSingle()) { + mergeSingle(other.getSingle()); + } + if (other.hasGrouped()) { + mergeGrouped(other.getGrouped()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + singleResponsePrompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + groupedResponseTask_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureGroupedPropertiesIsMutable(); + groupedProperties_.add(s); + break; + } // case 26 + case 34: { + input.readMessage( + getSingleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getGroupedFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 singleResponsePrompt_ = ""; + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @return The singleResponsePrompt. + */ + @java.lang.Deprecated public java.lang.String getSingleResponsePrompt() { + java.lang.Object ref = singleResponsePrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + singleResponsePrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @return The bytes for singleResponsePrompt. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getSingleResponsePromptBytes() { + java.lang.Object ref = singleResponsePrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singleResponsePrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @param value The singleResponsePrompt to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setSingleResponsePrompt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + singleResponsePrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearSingleResponsePrompt() { + singleResponsePrompt_ = getDefaultInstance().getSingleResponsePrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string single_response_prompt = 1 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. + * See v1/generative.proto;l=23 + * @param value The bytes for singleResponsePrompt to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setSingleResponsePromptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + singleResponsePrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object groupedResponseTask_ = ""; + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @return The groupedResponseTask. + */ + @java.lang.Deprecated public java.lang.String getGroupedResponseTask() { + java.lang.Object ref = groupedResponseTask_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupedResponseTask_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @return The bytes for groupedResponseTask. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getGroupedResponseTaskBytes() { + java.lang.Object ref = groupedResponseTask_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupedResponseTask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @param value The groupedResponseTask to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setGroupedResponseTask( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + groupedResponseTask_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearGroupedResponseTask() { + groupedResponseTask_ = getDefaultInstance().getGroupedResponseTask(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string grouped_response_task = 2 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. + * See v1/generative.proto;l=24 + * @param value The bytes for groupedResponseTask to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setGroupedResponseTaskBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + groupedResponseTask_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGroupedPropertiesIsMutable() { + if (!groupedProperties_.isModifiable()) { + groupedProperties_ = new com.google.protobuf.LazyStringArrayList(groupedProperties_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @return A list containing the groupedProperties. + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getGroupedPropertiesList() { + groupedProperties_.makeImmutable(); + return groupedProperties_; + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @return The count of groupedProperties. + */ + @java.lang.Deprecated public int getGroupedPropertiesCount() { + return groupedProperties_.size(); + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param index The index of the element to return. + * @return The groupedProperties at the given index. + */ + @java.lang.Deprecated public java.lang.String getGroupedProperties(int index) { + return groupedProperties_.get(index); + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param index The index of the value to return. + * @return The bytes of the groupedProperties at the given index. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getGroupedPropertiesBytes(int index) { + return groupedProperties_.getByteString(index); + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param index The index to set the value at. + * @param value The groupedProperties to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setGroupedProperties( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureGroupedPropertiesIsMutable(); + groupedProperties_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param value The groupedProperties to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder addGroupedProperties( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureGroupedPropertiesIsMutable(); + groupedProperties_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param values The groupedProperties to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder addAllGroupedProperties( + java.lang.Iterable values) { + ensureGroupedPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupedProperties_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearGroupedProperties() { + groupedProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string grouped_properties = 3 [deprecated = true]; + * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. + * See v1/generative.proto;l=25 + * @param value The bytes of the groupedProperties to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder addGroupedPropertiesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureGroupedPropertiesIsMutable(); + groupedProperties_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single single_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder> singleBuilder_; + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + * @return Whether the single field is set. + */ + public boolean hasSingle() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + * @return The single. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getSingle() { + if (singleBuilder_ == null) { + return single_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance() : single_; + } else { + return singleBuilder_.getMessage(); + } + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + public Builder setSingle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single value) { + if (singleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + single_ = value; + } else { + singleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + public Builder setSingle( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder builderForValue) { + if (singleBuilder_ == null) { + single_ = builderForValue.build(); + } else { + singleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + public Builder mergeSingle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single value) { + if (singleBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + single_ != null && + single_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance()) { + getSingleBuilder().mergeFrom(value); + } else { + single_ = value; + } + } else { + singleBuilder_.mergeFrom(value); + } + if (single_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + public Builder clearSingle() { + bitField0_ = (bitField0_ & ~0x00000008); + single_ = null; + if (singleBuilder_ != null) { + singleBuilder_.dispose(); + singleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder getSingleBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSingleFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder getSingleOrBuilder() { + if (singleBuilder_ != null) { + return singleBuilder_.getMessageOrBuilder(); + } else { + return single_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance() : single_; + } + } + /** + * .weaviate.v1.GenerativeSearch.Single single = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder> + getSingleFieldBuilder() { + if (singleBuilder_ == null) { + singleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder>( + getSingle(), + getParentForChildren(), + isClean()); + single_ = null; + } + return singleBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped grouped_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder> groupedBuilder_; + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + * @return Whether the grouped field is set. + */ + public boolean hasGrouped() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + * @return The grouped. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getGrouped() { + if (groupedBuilder_ == null) { + return grouped_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance() : grouped_; + } else { + return groupedBuilder_.getMessage(); + } + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + public Builder setGrouped(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped value) { + if (groupedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + grouped_ = value; + } else { + groupedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + public Builder setGrouped( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder builderForValue) { + if (groupedBuilder_ == null) { + grouped_ = builderForValue.build(); + } else { + groupedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + public Builder mergeGrouped(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped value) { + if (groupedBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + grouped_ != null && + grouped_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance()) { + getGroupedBuilder().mergeFrom(value); + } else { + grouped_ = value; + } + } else { + groupedBuilder_.mergeFrom(value); + } + if (grouped_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + public Builder clearGrouped() { + bitField0_ = (bitField0_ & ~0x00000010); + grouped_ = null; + if (groupedBuilder_ != null) { + groupedBuilder_.dispose(); + groupedBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder getGroupedBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getGroupedFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder getGroupedOrBuilder() { + if (groupedBuilder_ != null) { + return groupedBuilder_.getMessageOrBuilder(); + } else { + return grouped_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance() : grouped_; + } + } + /** + * .weaviate.v1.GenerativeSearch.Grouped grouped = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder> + getGroupedFieldBuilder() { + if (groupedBuilder_ == null) { + groupedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder>( + getGrouped(), + getParentForChildren(), + isClean()); + grouped_ = null; + } + return groupedBuilder_; + } + @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.GenerativeSearch) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeSearch) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeProviderOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * bool return_metadata = 1; + * @return The returnMetadata. + */ + boolean getReturnMetadata(); + + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + * @return Whether the anthropic field is set. + */ + boolean hasAnthropic(); + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + * @return The anthropic. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getAnthropic(); + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder getAnthropicOrBuilder(); + + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + * @return Whether the anyscale field is set. + */ + boolean hasAnyscale(); + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + * @return The anyscale. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getAnyscale(); + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder getAnyscaleOrBuilder(); + + /** + * .weaviate.v1.GenerativeAWS aws = 4; + * @return Whether the aws field is set. + */ + boolean hasAws(); + /** + * .weaviate.v1.GenerativeAWS aws = 4; + * @return The aws. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getAws(); + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder getAwsOrBuilder(); + + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + * @return Whether the cohere field is set. + */ + boolean hasCohere(); + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + * @return The cohere. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getCohere(); + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder getCohereOrBuilder(); + + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + * @return Whether the dummy field is set. + */ + boolean hasDummy(); + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + * @return The dummy. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDummy(); + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder getDummyOrBuilder(); + + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + * @return Whether the mistral field is set. + */ + boolean hasMistral(); + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + * @return The mistral. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getMistral(); + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder getMistralOrBuilder(); + + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + * @return Whether the octoai field is set. + */ + boolean hasOctoai(); + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + * @return The octoai. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getOctoai(); + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder getOctoaiOrBuilder(); + + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + * @return Whether the ollama field is set. + */ + boolean hasOllama(); + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + * @return The ollama. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama(); + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder(); + + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + * @return Whether the openai field is set. + */ + boolean hasOpenai(); + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + * @return The openai. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai(); + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder(); + + /** + * .weaviate.v1.GenerativeGoogle google = 11; + * @return Whether the google field is set. + */ + boolean hasGoogle(); + /** + * .weaviate.v1.GenerativeGoogle google = 11; + * @return The google. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle(); + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder(); + + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.KindCase getKindCase(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeProvider} + */ + public static final class GenerativeProvider extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeProvider) + GenerativeProviderOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeProvider.newBuilder() to construct. + private GenerativeProvider(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeProvider() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeProvider(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder.class); + } + + private int kindCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object kind_; + public enum KindCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ANTHROPIC(2), + ANYSCALE(3), + AWS(4), + COHERE(5), + DUMMY(6), + MISTRAL(7), + OCTOAI(8), + OLLAMA(9), + OPENAI(10), + GOOGLE(11), + KIND_NOT_SET(0); + private final int value; + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 2: return ANTHROPIC; + case 3: return ANYSCALE; + case 4: return AWS; + case 5: return COHERE; + case 6: return DUMMY; + case 7: return MISTRAL; + case 8: return OCTOAI; + case 9: return OLLAMA; + case 10: return OPENAI; + case 11: return GOOGLE; + case 0: return KIND_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public static final int RETURN_METADATA_FIELD_NUMBER = 1; + private boolean returnMetadata_ = false; + /** + * bool return_metadata = 1; + * @return The returnMetadata. + */ + @java.lang.Override + public boolean getReturnMetadata() { + return returnMetadata_; + } + + public static final int ANTHROPIC_FIELD_NUMBER = 2; + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + * @return Whether the anthropic field is set. + */ + @java.lang.Override + public boolean hasAnthropic() { + return kindCase_ == 2; + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + * @return The anthropic. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getAnthropic() { + if (kindCase_ == 2) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder getAnthropicOrBuilder() { + if (kindCase_ == 2) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance(); + } + + public static final int ANYSCALE_FIELD_NUMBER = 3; + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + * @return Whether the anyscale field is set. + */ + @java.lang.Override + public boolean hasAnyscale() { + return kindCase_ == 3; + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + * @return The anyscale. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getAnyscale() { + if (kindCase_ == 3) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder getAnyscaleOrBuilder() { + if (kindCase_ == 3) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance(); + } + + public static final int AWS_FIELD_NUMBER = 4; + /** + * .weaviate.v1.GenerativeAWS aws = 4; + * @return Whether the aws field is set. + */ + @java.lang.Override + public boolean hasAws() { + return kindCase_ == 4; + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + * @return The aws. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getAws() { + if (kindCase_ == 4) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder getAwsOrBuilder() { + if (kindCase_ == 4) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance(); + } + + public static final int COHERE_FIELD_NUMBER = 5; + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + * @return Whether the cohere field is set. + */ + @java.lang.Override + public boolean hasCohere() { + return kindCase_ == 5; + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + * @return The cohere. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getCohere() { + if (kindCase_ == 5) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder getCohereOrBuilder() { + if (kindCase_ == 5) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance(); + } + + public static final int DUMMY_FIELD_NUMBER = 6; + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + * @return Whether the dummy field is set. + */ + @java.lang.Override + public boolean hasDummy() { + return kindCase_ == 6; + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + * @return The dummy. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDummy() { + if (kindCase_ == 6) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder getDummyOrBuilder() { + if (kindCase_ == 6) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance(); + } + + public static final int MISTRAL_FIELD_NUMBER = 7; + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + * @return Whether the mistral field is set. + */ + @java.lang.Override + public boolean hasMistral() { + return kindCase_ == 7; + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + * @return The mistral. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getMistral() { + if (kindCase_ == 7) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder getMistralOrBuilder() { + if (kindCase_ == 7) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance(); + } + + public static final int OCTOAI_FIELD_NUMBER = 8; + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + * @return Whether the octoai field is set. + */ + @java.lang.Override + public boolean hasOctoai() { + return kindCase_ == 8; + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + * @return The octoai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getOctoai() { + if (kindCase_ == 8) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder getOctoaiOrBuilder() { + if (kindCase_ == 8) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + } + + public static final int OLLAMA_FIELD_NUMBER = 9; + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + * @return Whether the ollama field is set. + */ + @java.lang.Override + public boolean hasOllama() { + return kindCase_ == 9; + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + * @return The ollama. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama() { + if (kindCase_ == 9) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder() { + if (kindCase_ == 9) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + } + + public static final int OPENAI_FIELD_NUMBER = 10; + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + * @return Whether the openai field is set. + */ + @java.lang.Override + public boolean hasOpenai() { + return kindCase_ == 10; + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + * @return The openai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai() { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder() { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + } + + public static final int GOOGLE_FIELD_NUMBER = 11; + /** + * .weaviate.v1.GenerativeGoogle google = 11; + * @return Whether the google field is set. + */ + @java.lang.Override + public boolean hasGoogle() { + return kindCase_ == 11; + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + * @return The google. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle() { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder() { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.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 (returnMetadata_ != false) { + output.writeBool(1, returnMetadata_); + } + if (kindCase_ == 2) { + output.writeMessage(2, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_); + } + if (kindCase_ == 3) { + output.writeMessage(3, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_); + } + if (kindCase_ == 4) { + output.writeMessage(4, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_); + } + if (kindCase_ == 5) { + output.writeMessage(5, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_); + } + if (kindCase_ == 6) { + output.writeMessage(6, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_); + } + if (kindCase_ == 7) { + output.writeMessage(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_); + } + if (kindCase_ == 8) { + output.writeMessage(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_); + } + if (kindCase_ == 9) { + output.writeMessage(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_); + } + if (kindCase_ == 10) { + output.writeMessage(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_); + } + if (kindCase_ == 11) { + output.writeMessage(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (returnMetadata_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, returnMetadata_); + } + if (kindCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_); + } + if (kindCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_); + } + if (kindCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_); + } + if (kindCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_); + } + if (kindCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_); + } + if (kindCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_); + } + if (kindCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_); + } + if (kindCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_); + } + if (kindCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_); + } + if (kindCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider) obj; + + if (getReturnMetadata() + != other.getReturnMetadata()) return false; + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 2: + if (!getAnthropic() + .equals(other.getAnthropic())) return false; + break; + case 3: + if (!getAnyscale() + .equals(other.getAnyscale())) return false; + break; + case 4: + if (!getAws() + .equals(other.getAws())) return false; + break; + case 5: + if (!getCohere() + .equals(other.getCohere())) return false; + break; + case 6: + if (!getDummy() + .equals(other.getDummy())) return false; + break; + case 7: + if (!getMistral() + .equals(other.getMistral())) return false; + break; + case 8: + if (!getOctoai() + .equals(other.getOctoai())) return false; + break; + case 9: + if (!getOllama() + .equals(other.getOllama())) return false; + break; + case 10: + if (!getOpenai() + .equals(other.getOpenai())) return false; + break; + case 11: + if (!getGoogle() + .equals(other.getGoogle())) 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(); + hash = (37 * hash) + RETURN_METADATA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnMetadata()); + switch (kindCase_) { + case 2: + hash = (37 * hash) + ANTHROPIC_FIELD_NUMBER; + hash = (53 * hash) + getAnthropic().hashCode(); + break; + case 3: + hash = (37 * hash) + ANYSCALE_FIELD_NUMBER; + hash = (53 * hash) + getAnyscale().hashCode(); + break; + case 4: + hash = (37 * hash) + AWS_FIELD_NUMBER; + hash = (53 * hash) + getAws().hashCode(); + break; + case 5: + hash = (37 * hash) + COHERE_FIELD_NUMBER; + hash = (53 * hash) + getCohere().hashCode(); + break; + case 6: + hash = (37 * hash) + DUMMY_FIELD_NUMBER; + hash = (53 * hash) + getDummy().hashCode(); + break; + case 7: + hash = (37 * hash) + MISTRAL_FIELD_NUMBER; + hash = (53 * hash) + getMistral().hashCode(); + break; + case 8: + hash = (37 * hash) + OCTOAI_FIELD_NUMBER; + hash = (53 * hash) + getOctoai().hashCode(); + break; + case 9: + hash = (37 * hash) + OLLAMA_FIELD_NUMBER; + hash = (53 * hash) + getOllama().hashCode(); + break; + case 10: + hash = (37 * hash) + OPENAI_FIELD_NUMBER; + hash = (53 * hash) + getOpenai().hashCode(); + break; + case 11: + hash = (37 * hash) + GOOGLE_FIELD_NUMBER; + hash = (53 * hash) + getGoogle().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider 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.GenerativeProvider} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeProvider) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + returnMetadata_ = false; + if (anthropicBuilder_ != null) { + anthropicBuilder_.clear(); + } + if (anyscaleBuilder_ != null) { + anyscaleBuilder_.clear(); + } + if (awsBuilder_ != null) { + awsBuilder_.clear(); + } + if (cohereBuilder_ != null) { + cohereBuilder_.clear(); + } + if (dummyBuilder_ != null) { + dummyBuilder_.clear(); + } + if (mistralBuilder_ != null) { + mistralBuilder_.clear(); + } + if (octoaiBuilder_ != null) { + octoaiBuilder_.clear(); + } + if (ollamaBuilder_ != null) { + ollamaBuilder_.clear(); + } + if (openaiBuilder_ != null) { + openaiBuilder_.clear(); + } + if (googleBuilder_ != null) { + googleBuilder_.clear(); + } + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.returnMetadata_ = returnMetadata_; + } + } + + private void buildPartialOneofs(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + if (kindCase_ == 2 && + anthropicBuilder_ != null) { + result.kind_ = anthropicBuilder_.build(); + } + if (kindCase_ == 3 && + anyscaleBuilder_ != null) { + result.kind_ = anyscaleBuilder_.build(); + } + if (kindCase_ == 4 && + awsBuilder_ != null) { + result.kind_ = awsBuilder_.build(); + } + if (kindCase_ == 5 && + cohereBuilder_ != null) { + result.kind_ = cohereBuilder_.build(); + } + if (kindCase_ == 6 && + dummyBuilder_ != null) { + result.kind_ = dummyBuilder_.build(); + } + if (kindCase_ == 7 && + mistralBuilder_ != null) { + result.kind_ = mistralBuilder_.build(); + } + if (kindCase_ == 8 && + octoaiBuilder_ != null) { + result.kind_ = octoaiBuilder_.build(); + } + if (kindCase_ == 9 && + ollamaBuilder_ != null) { + result.kind_ = ollamaBuilder_.build(); + } + if (kindCase_ == 10 && + openaiBuilder_ != null) { + result.kind_ = openaiBuilder_.build(); + } + if (kindCase_ == 11 && + googleBuilder_ != null) { + result.kind_ = googleBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.getDefaultInstance()) return this; + if (other.getReturnMetadata() != false) { + setReturnMetadata(other.getReturnMetadata()); + } + switch (other.getKindCase()) { + case ANTHROPIC: { + mergeAnthropic(other.getAnthropic()); + break; + } + case ANYSCALE: { + mergeAnyscale(other.getAnyscale()); + break; + } + case AWS: { + mergeAws(other.getAws()); + break; + } + case COHERE: { + mergeCohere(other.getCohere()); + break; + } + case DUMMY: { + mergeDummy(other.getDummy()); + break; + } + case MISTRAL: { + mergeMistral(other.getMistral()); + break; + } + case OCTOAI: { + mergeOctoai(other.getOctoai()); + break; + } + case OLLAMA: { + mergeOllama(other.getOllama()); + break; + } + case OPENAI: { + mergeOpenai(other.getOpenai()); + break; + } + case GOOGLE: { + mergeGoogle(other.getGoogle()); + break; + } + case KIND_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + returnMetadata_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getAnthropicFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getAnyscaleFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getAwsFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getCohereFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getDummyFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getMistralFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getOctoaiFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getOllamaFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getOpenaiFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 10; + break; + } // case 82 + case 90: { + input.readMessage( + getGoogleFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 11; + break; + } // case 90 + 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 kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private boolean returnMetadata_ ; + /** + * bool return_metadata = 1; + * @return The returnMetadata. + */ + @java.lang.Override + public boolean getReturnMetadata() { + return returnMetadata_; + } + /** + * bool return_metadata = 1; + * @param value The returnMetadata to set. + * @return This builder for chaining. + */ + public Builder setReturnMetadata(boolean value) { + + returnMetadata_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool return_metadata = 1; + * @return This builder for chaining. + */ + public Builder clearReturnMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + returnMetadata_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder> anthropicBuilder_; + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + * @return Whether the anthropic field is set. + */ + @java.lang.Override + public boolean hasAnthropic() { + return kindCase_ == 2; + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + * @return The anthropic. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getAnthropic() { + if (anthropicBuilder_ == null) { + if (kindCase_ == 2) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance(); + } else { + if (kindCase_ == 2) { + return anthropicBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + public Builder setAnthropic(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic value) { + if (anthropicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + anthropicBuilder_.setMessage(value); + } + kindCase_ = 2; + return this; + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + public Builder setAnthropic( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder builderForValue) { + if (anthropicBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + anthropicBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 2; + return this; + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + public Builder mergeAnthropic(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic value) { + if (anthropicBuilder_ == null) { + if (kindCase_ == 2 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 2) { + anthropicBuilder_.mergeFrom(value); + } else { + anthropicBuilder_.setMessage(value); + } + } + kindCase_ = 2; + return this; + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + public Builder clearAnthropic() { + if (anthropicBuilder_ == null) { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + } + anthropicBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder getAnthropicBuilder() { + return getAnthropicFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder getAnthropicOrBuilder() { + if ((kindCase_ == 2) && (anthropicBuilder_ != null)) { + return anthropicBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 2) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAnthropic anthropic = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder> + getAnthropicFieldBuilder() { + if (anthropicBuilder_ == null) { + if (!(kindCase_ == 2)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance(); + } + anthropicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 2; + onChanged(); + return anthropicBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder> anyscaleBuilder_; + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + * @return Whether the anyscale field is set. + */ + @java.lang.Override + public boolean hasAnyscale() { + return kindCase_ == 3; + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + * @return The anyscale. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getAnyscale() { + if (anyscaleBuilder_ == null) { + if (kindCase_ == 3) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance(); + } else { + if (kindCase_ == 3) { + return anyscaleBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + public Builder setAnyscale(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale value) { + if (anyscaleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + anyscaleBuilder_.setMessage(value); + } + kindCase_ = 3; + return this; + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + public Builder setAnyscale( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder builderForValue) { + if (anyscaleBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + anyscaleBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 3; + return this; + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + public Builder mergeAnyscale(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale value) { + if (anyscaleBuilder_ == null) { + if (kindCase_ == 3 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 3) { + anyscaleBuilder_.mergeFrom(value); + } else { + anyscaleBuilder_.setMessage(value); + } + } + kindCase_ = 3; + return this; + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + public Builder clearAnyscale() { + if (anyscaleBuilder_ == null) { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + } + anyscaleBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder getAnyscaleBuilder() { + return getAnyscaleFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder getAnyscaleOrBuilder() { + if ((kindCase_ == 3) && (anyscaleBuilder_ != null)) { + return anyscaleBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 3) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAnyscale anyscale = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder> + getAnyscaleFieldBuilder() { + if (anyscaleBuilder_ == null) { + if (!(kindCase_ == 3)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance(); + } + anyscaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 3; + onChanged(); + return anyscaleBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder> awsBuilder_; + /** + * .weaviate.v1.GenerativeAWS aws = 4; + * @return Whether the aws field is set. + */ + @java.lang.Override + public boolean hasAws() { + return kindCase_ == 4; + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + * @return The aws. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getAws() { + if (awsBuilder_ == null) { + if (kindCase_ == 4) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance(); + } else { + if (kindCase_ == 4) { + return awsBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + public Builder setAws(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS value) { + if (awsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + awsBuilder_.setMessage(value); + } + kindCase_ = 4; + return this; + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + public Builder setAws( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder builderForValue) { + if (awsBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + awsBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 4; + return this; + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + public Builder mergeAws(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS value) { + if (awsBuilder_ == null) { + if (kindCase_ == 4 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 4) { + awsBuilder_.mergeFrom(value); + } else { + awsBuilder_.setMessage(value); + } + } + kindCase_ = 4; + return this; + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + public Builder clearAws() { + if (awsBuilder_ == null) { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + } + awsBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder getAwsBuilder() { + return getAwsFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder getAwsOrBuilder() { + if ((kindCase_ == 4) && (awsBuilder_ != null)) { + return awsBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 4) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAWS aws = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder> + getAwsFieldBuilder() { + if (awsBuilder_ == null) { + if (!(kindCase_ == 4)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance(); + } + awsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 4; + onChanged(); + return awsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder> cohereBuilder_; + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + * @return Whether the cohere field is set. + */ + @java.lang.Override + public boolean hasCohere() { + return kindCase_ == 5; + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + * @return The cohere. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getCohere() { + if (cohereBuilder_ == null) { + if (kindCase_ == 5) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance(); + } else { + if (kindCase_ == 5) { + return cohereBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + public Builder setCohere(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere value) { + if (cohereBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + cohereBuilder_.setMessage(value); + } + kindCase_ = 5; + return this; + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + public Builder setCohere( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder builderForValue) { + if (cohereBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + cohereBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 5; + return this; + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + public Builder mergeCohere(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere value) { + if (cohereBuilder_ == null) { + if (kindCase_ == 5 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 5) { + cohereBuilder_.mergeFrom(value); + } else { + cohereBuilder_.setMessage(value); + } + } + kindCase_ = 5; + return this; + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + public Builder clearCohere() { + if (cohereBuilder_ == null) { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + } + cohereBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder getCohereBuilder() { + return getCohereFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder getCohereOrBuilder() { + if ((kindCase_ == 5) && (cohereBuilder_ != null)) { + return cohereBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 5) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeCohere cohere = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder> + getCohereFieldBuilder() { + if (cohereBuilder_ == null) { + if (!(kindCase_ == 5)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance(); + } + cohereBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 5; + onChanged(); + return cohereBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder> dummyBuilder_; + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + * @return Whether the dummy field is set. + */ + @java.lang.Override + public boolean hasDummy() { + return kindCase_ == 6; + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + * @return The dummy. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDummy() { + if (dummyBuilder_ == null) { + if (kindCase_ == 6) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance(); + } else { + if (kindCase_ == 6) { + return dummyBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + public Builder setDummy(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy value) { + if (dummyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + dummyBuilder_.setMessage(value); + } + kindCase_ = 6; + return this; + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + public Builder setDummy( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder builderForValue) { + if (dummyBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + dummyBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 6; + return this; + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + public Builder mergeDummy(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy value) { + if (dummyBuilder_ == null) { + if (kindCase_ == 6 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 6) { + dummyBuilder_.mergeFrom(value); + } else { + dummyBuilder_.setMessage(value); + } + } + kindCase_ = 6; + return this; + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + public Builder clearDummy() { + if (dummyBuilder_ == null) { + if (kindCase_ == 6) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 6) { + kindCase_ = 0; + kind_ = null; + } + dummyBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder getDummyBuilder() { + return getDummyFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder getDummyOrBuilder() { + if ((kindCase_ == 6) && (dummyBuilder_ != null)) { + return dummyBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 6) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeDummy dummy = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder> + getDummyFieldBuilder() { + if (dummyBuilder_ == null) { + if (!(kindCase_ == 6)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance(); + } + dummyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 6; + onChanged(); + return dummyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder> mistralBuilder_; + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + * @return Whether the mistral field is set. + */ + @java.lang.Override + public boolean hasMistral() { + return kindCase_ == 7; + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + * @return The mistral. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getMistral() { + if (mistralBuilder_ == null) { + if (kindCase_ == 7) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance(); + } else { + if (kindCase_ == 7) { + return mistralBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + public Builder setMistral(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral value) { + if (mistralBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + mistralBuilder_.setMessage(value); + } + kindCase_ = 7; + return this; + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + public Builder setMistral( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder builderForValue) { + if (mistralBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + mistralBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 7; + return this; + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + public Builder mergeMistral(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral value) { + if (mistralBuilder_ == null) { + if (kindCase_ == 7 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 7) { + mistralBuilder_.mergeFrom(value); + } else { + mistralBuilder_.setMessage(value); + } + } + kindCase_ = 7; + return this; + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + public Builder clearMistral() { + if (mistralBuilder_ == null) { + if (kindCase_ == 7) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 7) { + kindCase_ = 0; + kind_ = null; + } + mistralBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder getMistralBuilder() { + return getMistralFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder getMistralOrBuilder() { + if ((kindCase_ == 7) && (mistralBuilder_ != null)) { + return mistralBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 7) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeMistral mistral = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder> + getMistralFieldBuilder() { + if (mistralBuilder_ == null) { + if (!(kindCase_ == 7)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance(); + } + mistralBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 7; + onChanged(); + return mistralBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder> octoaiBuilder_; + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + * @return Whether the octoai field is set. + */ + @java.lang.Override + public boolean hasOctoai() { + return kindCase_ == 8; + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + * @return The octoai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getOctoai() { + if (octoaiBuilder_ == null) { + if (kindCase_ == 8) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + } else { + if (kindCase_ == 8) { + return octoaiBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + public Builder setOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI value) { + if (octoaiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + octoaiBuilder_.setMessage(value); + } + kindCase_ = 8; + return this; + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + public Builder setOctoai( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder builderForValue) { + if (octoaiBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + octoaiBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 8; + return this; + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + public Builder mergeOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI value) { + if (octoaiBuilder_ == null) { + if (kindCase_ == 8 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 8) { + octoaiBuilder_.mergeFrom(value); + } else { + octoaiBuilder_.setMessage(value); + } + } + kindCase_ = 8; + return this; + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + public Builder clearOctoai() { + if (octoaiBuilder_ == null) { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + } + octoaiBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder getOctoaiBuilder() { + return getOctoaiFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder getOctoaiOrBuilder() { + if ((kindCase_ == 8) && (octoaiBuilder_ != null)) { + return octoaiBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 8) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOctoAI octoai = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder> + getOctoaiFieldBuilder() { + if (octoaiBuilder_ == null) { + if (!(kindCase_ == 8)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + } + octoaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 8; + onChanged(); + return octoaiBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder> ollamaBuilder_; + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + * @return Whether the ollama field is set. + */ + @java.lang.Override + public boolean hasOllama() { + return kindCase_ == 9; + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + * @return The ollama. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama() { + if (ollamaBuilder_ == null) { + if (kindCase_ == 9) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + } else { + if (kindCase_ == 9) { + return ollamaBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + public Builder setOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama value) { + if (ollamaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + ollamaBuilder_.setMessage(value); + } + kindCase_ = 9; + return this; + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + public Builder setOllama( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder builderForValue) { + if (ollamaBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + ollamaBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 9; + return this; + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama value) { + if (ollamaBuilder_ == null) { + if (kindCase_ == 9 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 9) { + ollamaBuilder_.mergeFrom(value); + } else { + ollamaBuilder_.setMessage(value); + } + } + kindCase_ = 9; + return this; + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + public Builder clearOllama() { + if (ollamaBuilder_ == null) { + if (kindCase_ == 9) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 9) { + kindCase_ = 0; + kind_ = null; + } + ollamaBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder getOllamaBuilder() { + return getOllamaFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder() { + if ((kindCase_ == 9) && (ollamaBuilder_ != null)) { + return ollamaBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 9) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOllama ollama = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder> + getOllamaFieldBuilder() { + if (ollamaBuilder_ == null) { + if (!(kindCase_ == 9)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + } + ollamaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 9; + onChanged(); + return ollamaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder> openaiBuilder_; + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + * @return Whether the openai field is set. + */ + @java.lang.Override + public boolean hasOpenai() { + return kindCase_ == 10; + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + * @return The openai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai() { + if (openaiBuilder_ == null) { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + } else { + if (kindCase_ == 10) { + return openaiBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + public Builder setOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI value) { + if (openaiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + openaiBuilder_.setMessage(value); + } + kindCase_ = 10; + return this; + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + public Builder setOpenai( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder builderForValue) { + if (openaiBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + openaiBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 10; + return this; + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI value) { + if (openaiBuilder_ == null) { + if (kindCase_ == 10 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 10) { + openaiBuilder_.mergeFrom(value); + } else { + openaiBuilder_.setMessage(value); + } + } + kindCase_ = 10; + return this; + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + public Builder clearOpenai() { + if (openaiBuilder_ == null) { + if (kindCase_ == 10) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 10) { + kindCase_ = 0; + kind_ = null; + } + openaiBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder getOpenaiBuilder() { + return getOpenaiFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder() { + if ((kindCase_ == 10) && (openaiBuilder_ != null)) { + return openaiBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOpenAI openai = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder> + getOpenaiFieldBuilder() { + if (openaiBuilder_ == null) { + if (!(kindCase_ == 10)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + } + openaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 10; + onChanged(); + return openaiBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder> googleBuilder_; + /** + * .weaviate.v1.GenerativeGoogle google = 11; + * @return Whether the google field is set. + */ + @java.lang.Override + public boolean hasGoogle() { + return kindCase_ == 11; + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + * @return The google. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle() { + if (googleBuilder_ == null) { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + } else { + if (kindCase_ == 11) { + return googleBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + public Builder setGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle value) { + if (googleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + googleBuilder_.setMessage(value); + } + kindCase_ = 11; + return this; + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + public Builder setGoogle( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder builderForValue) { + if (googleBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + googleBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 11; + return this; + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle value) { + if (googleBuilder_ == null) { + if (kindCase_ == 11 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 11) { + googleBuilder_.mergeFrom(value); + } else { + googleBuilder_.setMessage(value); + } + } + kindCase_ = 11; + return this; + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + public Builder clearGoogle() { + if (googleBuilder_ == null) { + if (kindCase_ == 11) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 11) { + kindCase_ = 0; + kind_ = null; + } + googleBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder getGoogleBuilder() { + return getGoogleFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder() { + if ((kindCase_ == 11) && (googleBuilder_ != null)) { + return googleBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeGoogle google = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder> + getGoogleFieldBuilder() { + if (googleBuilder_ == null) { + if (!(kindCase_ == 11)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + } + googleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 11; + onChanged(); + return googleBuilder_; + } + @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.GenerativeProvider) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeProvider) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeAnthropicOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnthropic) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + boolean hasBaseUrl(); + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + java.lang.String getBaseUrl(); + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + com.google.protobuf.ByteString + getBaseUrlBytes(); + + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + boolean hasMaxTokens(); + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + long getMaxTokens(); + + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 3; + * @return The model. + */ + java.lang.String getModel(); + /** + * optional string model = 3; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional double temperature = 4; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 4; + * @return The temperature. + */ + double getTemperature(); + + /** + * optional int64 top_k = 5; + * @return Whether the topK field is set. + */ + boolean hasTopK(); + /** + * optional int64 top_k = 5; + * @return The topK. + */ + long getTopK(); + + /** + * optional double top_p = 6; + * @return Whether the topP field is set. + */ + boolean hasTopP(); + /** + * optional double top_p = 6; + * @return The topP. + */ + double getTopP(); + + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + * @return Whether the stopSequences field is set. + */ + boolean hasStopSequences(); + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + * @return The stopSequences. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences(); + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeAnthropic} + */ + public static final class GenerativeAnthropic extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnthropic) + GenerativeAnthropicOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeAnthropic.newBuilder() to construct. + private GenerativeAnthropic(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeAnthropic() { + baseUrl_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeAnthropic(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder.class); + } + + private int bitField0_; + public static final int BASE_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object baseUrl_ = ""; + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + @java.lang.Override + public boolean hasBaseUrl() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + @java.lang.Override + public java.lang.String getBaseUrl() { + java.lang.Object ref = baseUrl_; + 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(); + baseUrl_ = s; + return s; + } + } + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBaseUrlBytes() { + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.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; + } + } + + public static final int MAX_TOKENS_FIELD_NUMBER = 2; + private long maxTokens_ = 0L; + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + + public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 = 4; + private double temperature_ = 0D; + /** + * optional double temperature = 4; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double temperature = 4; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + public static final int TOP_K_FIELD_NUMBER = 5; + private long topK_ = 0L; + /** + * optional int64 top_k = 5; + * @return Whether the topK field is set. + */ + @java.lang.Override + public boolean hasTopK() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 top_k = 5; + * @return The topK. + */ + @java.lang.Override + public long getTopK() { + return topK_; + } + + public static final int TOP_P_FIELD_NUMBER = 6; + private double topP_ = 0D; + /** + * optional double top_p = 6; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double top_p = 6; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + public static final int STOP_SEQUENCES_FIELD_NUMBER = 7; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_; + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + * @return Whether the stopSequences field is set. + */ + @java.lang.Override + public boolean hasStopSequences() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + * @return The stopSequences. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, maxTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, temperature_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, topK_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, topP_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getStopSequences()); + } + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, temperature_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, topK_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, topP_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getStopSequences()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) obj; + + if (hasBaseUrl() != other.hasBaseUrl()) return false; + if (hasBaseUrl()) { + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; + } + if (hasMaxTokens() != other.hasMaxTokens()) return false; + if (hasMaxTokens()) { + if (getMaxTokens() + != other.getMaxTokens()) return false; + } + 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 (hasTopK() != other.hasTopK()) return false; + if (hasTopK()) { + if (getTopK() + != other.getTopK()) 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 (hasStopSequences() != other.hasStopSequences()) return false; + if (hasStopSequences()) { + if (!getStopSequences() + .equals(other.getStopSequences())) 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 (hasBaseUrl()) { + hash = (37 * hash) + BASE_URL_FIELD_NUMBER; + hash = (53 * hash) + getBaseUrl().hashCode(); + } + if (hasMaxTokens()) { + hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxTokens()); + } + 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 (hasTopK()) { + hash = (37 * hash) + TOP_K_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTopK()); + } + if (hasTopP()) { + hash = (37 * hash) + TOP_P_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTopP())); + } + if (hasStopSequences()) { + hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER; + hash = (53 * hash) + getStopSequences().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic 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.GenerativeAnthropic} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnthropic) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStopSequencesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + baseUrl_ = ""; + maxTokens_ = 0L; + model_ = ""; + temperature_ = 0D; + topK_ = 0L; + topP_ = 0D; + stopSequences_ = null; + if (stopSequencesBuilder_ != null) { + stopSequencesBuilder_.dispose(); + stopSequencesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseUrl_ = baseUrl_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxTokens_ = maxTokens_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.topK_ = topK_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.stopSequences_ = stopSequencesBuilder_ == null + ? stopSequences_ + : stopSequencesBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance()) return this; + if (other.hasBaseUrl()) { + baseUrl_ = other.baseUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxTokens()) { + setMaxTokens(other.getMaxTokens()); + } + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + if (other.hasTopK()) { + setTopK(other.getTopK()); + } + if (other.hasTopP()) { + setTopP(other.getTopP()); + } + if (other.hasStopSequences()) { + mergeStopSequences(other.getStopSequences()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + baseUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + maxTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 33: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 40: { + topK_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 49: { + topP_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 58: { + input.readMessage( + getStopSequencesFieldBuilder().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 long maxTokens_ ; + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + /** + * optional int64 max_tokens = 2; + * @param value The maxTokens to set. + * @return This builder for chaining. + */ + public Builder setMaxTokens(long value) { + + maxTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 max_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearMaxTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + maxTokens_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string model = 3; + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string model = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private double temperature_ ; + /** + * optional double temperature = 4; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double temperature = 4; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + /** + * optional double temperature = 4; + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional double temperature = 4; + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000008); + temperature_ = 0D; + onChanged(); + return this; + } + + private long topK_ ; + /** + * optional int64 top_k = 5; + * @return Whether the topK field is set. + */ + @java.lang.Override + public boolean hasTopK() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 top_k = 5; + * @return The topK. + */ + @java.lang.Override + public long getTopK() { + return topK_; + } + /** + * optional int64 top_k = 5; + * @param value The topK to set. + * @return This builder for chaining. + */ + public Builder setTopK(long value) { + + topK_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional int64 top_k = 5; + * @return This builder for chaining. + */ + public Builder clearTopK() { + bitField0_ = (bitField0_ & ~0x00000010); + topK_ = 0L; + onChanged(); + return this; + } + + private double topP_ ; + /** + * optional double top_p = 6; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double top_p = 6; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + /** + * optional double top_p = 6; + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + + topP_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional double top_p = 6; + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000020); + topP_ = 0D; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> stopSequencesBuilder_; + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + * @return Whether the stopSequences field is set. + */ + public boolean hasStopSequences() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + * @return The stopSequences. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() { + if (stopSequencesBuilder_ == null) { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } else { + return stopSequencesBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + public Builder setStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopSequencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopSequences_ = value; + } else { + stopSequencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + public Builder setStopSequences( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) { + if (stopSequencesBuilder_ == null) { + stopSequences_ = builderForValue.build(); + } else { + stopSequencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + public Builder mergeStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopSequencesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + stopSequences_ != null && + stopSequences_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) { + getStopSequencesBuilder().mergeFrom(value); + } else { + stopSequences_ = value; + } + } else { + stopSequencesBuilder_.mergeFrom(value); + } + if (stopSequences_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + public Builder clearStopSequences() { + bitField0_ = (bitField0_ & ~0x00000040); + stopSequences_ = null; + if (stopSequencesBuilder_ != null) { + stopSequencesBuilder_.dispose(); + stopSequencesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getStopSequencesFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() { + if (stopSequencesBuilder_ != null) { + return stopSequencesBuilder_.getMessageOrBuilder(); + } else { + return stopSequences_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> + getStopSequencesFieldBuilder() { + if (stopSequencesBuilder_ == null) { + stopSequencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>( + getStopSequences(), + getParentForChildren(), + isClean()); + stopSequences_ = null; + } + return stopSequencesBuilder_; + } + @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.GenerativeAnthropic) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnthropic) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeAnthropic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeAnyscaleOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnyscale) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + boolean hasBaseUrl(); + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + java.lang.String getBaseUrl(); + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + com.google.protobuf.ByteString + getBaseUrlBytes(); + + /** + * optional string model = 2; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 2; + * @return The model. + */ + java.lang.String getModel(); + /** + * optional string model = 2; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional double temperature = 3; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 3; + * @return The temperature. + */ + double getTemperature(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeAnyscale} + */ + public static final class GenerativeAnyscale extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnyscale) + GenerativeAnyscaleOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeAnyscale.newBuilder() to construct. + private GenerativeAnyscale(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeAnyscale() { + baseUrl_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeAnyscale(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder.class); + } + + private int bitField0_; + public static final int BASE_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object baseUrl_ = ""; + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + @java.lang.Override + public boolean hasBaseUrl() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + @java.lang.Override + public java.lang.String getBaseUrl() { + java.lang.Object ref = baseUrl_; + 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(); + baseUrl_ = s; + return s; + } + } + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBaseUrlBytes() { + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.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; + } + } + + public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * optional string model = 2; + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string model = 2; + * @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 = 2; + * @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 = 3; + private double temperature_ = 0D; + /** + * 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_; + } + + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, temperature_); + } + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, temperature_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) obj; + + if (hasBaseUrl() != other.hasBaseUrl()) return false; + if (hasBaseUrl()) { + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; + } + 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 (!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 (hasBaseUrl()) { + hash = (37 * hash) + BASE_URL_FIELD_NUMBER; + hash = (53 * hash) + getBaseUrl().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())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale 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.GenerativeAnyscale} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnyscale) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + baseUrl_ = ""; + model_ = ""; + temperature_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseUrl_ = baseUrl_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance()) return this; + if (other.hasBaseUrl()) { + baseUrl_ = other.baseUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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 + 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; + } + @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.GenerativeAnyscale) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnyscale) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeAnyscale parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeAWSOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAWS) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 3; + * @return The model. + */ + java.lang.String getModel(); + /** + * optional string model = 3; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional double temperature = 8; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 8; + * @return The temperature. + */ + double getTemperature(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeAWS} + */ + public static final class GenerativeAWS extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAWS) + GenerativeAWSOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeAWS.newBuilder() to construct. + private GenerativeAWS(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeAWS() { + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeAWS(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder.class); + } + + private int bitField0_; + public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 = 8; + private double temperature_ = 0D; + /** + * optional double temperature = 8; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double temperature = 8; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + 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, 3, model_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(8, temperature_); + } + 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(3, model_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, temperature_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) 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 (!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())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS 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.GenerativeAWS} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAWS) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + model_ = ""; + temperature_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance()) return this; + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + case 65: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 65 + 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 model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 = 3; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string model = 3; + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string model = 3; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private double temperature_ ; + /** + * optional double temperature = 8; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double temperature = 8; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + /** + * optional double temperature = 8; + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double temperature = 8; + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000002); + temperature_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAWS) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAWS) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeAWS parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeCohereOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohere) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + boolean hasBaseUrl(); + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + java.lang.String getBaseUrl(); + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + com.google.protobuf.ByteString + getBaseUrlBytes(); + + /** + * optional double frequency_penalty = 2; + * @return Whether the frequencyPenalty field is set. + */ + boolean hasFrequencyPenalty(); + /** + * optional double frequency_penalty = 2; + * @return The frequencyPenalty. + */ + double getFrequencyPenalty(); + + /** + * optional int64 max_tokens = 3; + * @return Whether the maxTokens field is set. + */ + boolean hasMaxTokens(); + /** + * optional int64 max_tokens = 3; + * @return The maxTokens. + */ + long getMaxTokens(); + + /** + * optional string model = 4; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 4; + * @return The model. + */ + java.lang.String getModel(); + /** + * optional string model = 4; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional int64 k = 5; + * @return Whether the k field is set. + */ + boolean hasK(); + /** + * optional int64 k = 5; + * @return The k. + */ + long getK(); + + /** + * optional double p = 6; + * @return Whether the p field is set. + */ + boolean hasP(); + /** + * optional double p = 6; + * @return The p. + */ + double getP(); + + /** + * optional double presence_penalty = 7; + * @return Whether the presencePenalty field is set. + */ + boolean hasPresencePenalty(); + /** + * optional double presence_penalty = 7; + * @return The presencePenalty. + */ + double getPresencePenalty(); + + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return Whether the stopSequences field is set. + */ + boolean hasStopSequences(); + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return The stopSequences. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences(); + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder(); + + /** + * optional double temperature = 9; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 9; + * @return The temperature. + */ + double getTemperature(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeCohere} + */ + public static final class GenerativeCohere extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohere) + GenerativeCohereOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeCohere.newBuilder() to construct. + private GenerativeCohere(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeCohere() { + baseUrl_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeCohere(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder.class); + } + + private int bitField0_; + public static final int BASE_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object baseUrl_ = ""; + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + @java.lang.Override + public boolean hasBaseUrl() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + @java.lang.Override + public java.lang.String getBaseUrl() { + java.lang.Object ref = baseUrl_; + 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(); + baseUrl_ = s; + return s; + } + } + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBaseUrlBytes() { + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.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; + } + } + + public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 2; + private double frequencyPenalty_ = 0D; + /** + * optional double frequency_penalty = 2; + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double frequency_penalty = 2; + * @return The frequencyPenalty. + */ + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; + } + + public static final int MAX_TOKENS_FIELD_NUMBER = 3; + private long maxTokens_ = 0L; + /** + * optional int64 max_tokens = 3; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 max_tokens = 3; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + + public static final int MODEL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * optional string model = 4; + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string model = 4; + * @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 = 4; + * @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 K_FIELD_NUMBER = 5; + private long k_ = 0L; + /** + * optional int64 k = 5; + * @return Whether the k field is set. + */ + @java.lang.Override + public boolean hasK() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 k = 5; + * @return The k. + */ + @java.lang.Override + public long getK() { + return k_; + } + + public static final int P_FIELD_NUMBER = 6; + private double p_ = 0D; + /** + * optional double p = 6; + * @return Whether the p field is set. + */ + @java.lang.Override + public boolean hasP() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double p = 6; + * @return The p. + */ + @java.lang.Override + public double getP() { + return p_; + } + + public static final int PRESENCE_PENALTY_FIELD_NUMBER = 7; + private double presencePenalty_ = 0D; + /** + * optional double presence_penalty = 7; + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double presence_penalty = 7; + * @return The presencePenalty. + */ + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + + public static final int STOP_SEQUENCES_FIELD_NUMBER = 8; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_; + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return Whether the stopSequences field is set. + */ + @java.lang.Override + public boolean hasStopSequences() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return The stopSequences. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + + public static final int TEMPERATURE_FIELD_NUMBER = 9; + private double temperature_ = 0D; + /** + * optional double temperature = 9; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double temperature = 9; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, frequencyPenalty_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, maxTokens_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, model_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, k_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, p_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(7, presencePenalty_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getStopSequences()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeDouble(9, temperature_); + } + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, frequencyPenalty_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxTokens_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, k_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, p_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, presencePenalty_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getStopSequences()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, temperature_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) obj; + + if (hasBaseUrl() != other.hasBaseUrl()) return false; + if (hasBaseUrl()) { + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; + } + if (hasFrequencyPenalty() != other.hasFrequencyPenalty()) return false; + if (hasFrequencyPenalty()) { + if (java.lang.Double.doubleToLongBits(getFrequencyPenalty()) + != java.lang.Double.doubleToLongBits( + other.getFrequencyPenalty())) return false; + } + if (hasMaxTokens() != other.hasMaxTokens()) return false; + if (hasMaxTokens()) { + if (getMaxTokens() + != other.getMaxTokens()) return false; + } + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel() + .equals(other.getModel())) return false; + } + if (hasK() != other.hasK()) return false; + if (hasK()) { + if (getK() + != other.getK()) return false; + } + if (hasP() != other.hasP()) return false; + if (hasP()) { + if (java.lang.Double.doubleToLongBits(getP()) + != java.lang.Double.doubleToLongBits( + other.getP())) return false; + } + if (hasPresencePenalty() != other.hasPresencePenalty()) return false; + if (hasPresencePenalty()) { + if (java.lang.Double.doubleToLongBits(getPresencePenalty()) + != java.lang.Double.doubleToLongBits( + other.getPresencePenalty())) return false; + } + if (hasStopSequences() != other.hasStopSequences()) return false; + if (hasStopSequences()) { + if (!getStopSequences() + .equals(other.getStopSequences())) 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 (!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 (hasBaseUrl()) { + hash = (37 * hash) + BASE_URL_FIELD_NUMBER; + hash = (53 * hash) + getBaseUrl().hashCode(); + } + if (hasFrequencyPenalty()) { + hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFrequencyPenalty())); + } + if (hasMaxTokens()) { + hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxTokens()); + } + if (hasModel()) { + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + } + if (hasK()) { + hash = (37 * hash) + K_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getK()); + } + if (hasP()) { + hash = (37 * hash) + P_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getP())); + } + if (hasPresencePenalty()) { + hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPresencePenalty())); + } + if (hasStopSequences()) { + hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER; + hash = (53 * hash) + getStopSequences().hashCode(); + } + if (hasTemperature()) { + hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTemperature())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere 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.GenerativeCohere} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohere) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStopSequencesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + baseUrl_ = ""; + frequencyPenalty_ = 0D; + maxTokens_ = 0L; + model_ = ""; + k_ = 0L; + p_ = 0D; + presencePenalty_ = 0D; + stopSequences_ = null; + if (stopSequencesBuilder_ != null) { + stopSequencesBuilder_.dispose(); + stopSequencesBuilder_ = null; + } + temperature_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseUrl_ = baseUrl_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.frequencyPenalty_ = frequencyPenalty_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxTokens_ = maxTokens_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.k_ = k_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.p_ = p_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.presencePenalty_ = presencePenalty_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.stopSequences_ = stopSequencesBuilder_ == null + ? stopSequences_ + : stopSequencesBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance()) return this; + if (other.hasBaseUrl()) { + baseUrl_ = other.baseUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFrequencyPenalty()) { + setFrequencyPenalty(other.getFrequencyPenalty()); + } + if (other.hasMaxTokens()) { + setMaxTokens(other.getMaxTokens()); + } + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasK()) { + setK(other.getK()); + } + if (other.hasP()) { + setP(other.getP()); + } + if (other.hasPresencePenalty()) { + setPresencePenalty(other.getPresencePenalty()); + } + if (other.hasStopSequences()) { + mergeStopSequences(other.getStopSequences()); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + baseUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + frequencyPenalty_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 24: { + maxTokens_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + k_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 49: { + p_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 57: { + presencePenalty_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 66: { + input.readMessage( + getStopSequencesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 73: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 73 + 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 double frequencyPenalty_ ; + /** + * optional double frequency_penalty = 2; + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double frequency_penalty = 2; + * @return The frequencyPenalty. + */ + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; + } + /** + * optional double frequency_penalty = 2; + * @param value The frequencyPenalty to set. + * @return This builder for chaining. + */ + public Builder setFrequencyPenalty(double value) { + + frequencyPenalty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double frequency_penalty = 2; + * @return This builder for chaining. + */ + public Builder clearFrequencyPenalty() { + bitField0_ = (bitField0_ & ~0x00000002); + frequencyPenalty_ = 0D; + onChanged(); + return this; + } + + private long maxTokens_ ; + /** + * optional int64 max_tokens = 3; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 max_tokens = 3; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + /** + * optional int64 max_tokens = 3; + * @param value The maxTokens to set. + * @return This builder for chaining. + */ + public Builder setMaxTokens(long value) { + + maxTokens_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int64 max_tokens = 3; + * @return This builder for chaining. + */ + public Builder clearMaxTokens() { + bitField0_ = (bitField0_ & ~0x00000004); + maxTokens_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * optional string model = 4; + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string model = 4; + * @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 = 4; + * @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 = 4; + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional string model = 4; + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * optional string model = 4; + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private long k_ ; + /** + * optional int64 k = 5; + * @return Whether the k field is set. + */ + @java.lang.Override + public boolean hasK() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 k = 5; + * @return The k. + */ + @java.lang.Override + public long getK() { + return k_; + } + /** + * optional int64 k = 5; + * @param value The k to set. + * @return This builder for chaining. + */ + public Builder setK(long value) { + + k_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional int64 k = 5; + * @return This builder for chaining. + */ + public Builder clearK() { + bitField0_ = (bitField0_ & ~0x00000010); + k_ = 0L; + onChanged(); + return this; + } + + private double p_ ; + /** + * optional double p = 6; + * @return Whether the p field is set. + */ + @java.lang.Override + public boolean hasP() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double p = 6; + * @return The p. + */ + @java.lang.Override + public double getP() { + return p_; + } + /** + * optional double p = 6; + * @param value The p to set. + * @return This builder for chaining. + */ + public Builder setP(double value) { + + p_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional double p = 6; + * @return This builder for chaining. + */ + public Builder clearP() { + bitField0_ = (bitField0_ & ~0x00000020); + p_ = 0D; + onChanged(); + return this; + } + + private double presencePenalty_ ; + /** + * optional double presence_penalty = 7; + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double presence_penalty = 7; + * @return The presencePenalty. + */ + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + /** + * optional double presence_penalty = 7; + * @param value The presencePenalty to set. + * @return This builder for chaining. + */ + public Builder setPresencePenalty(double value) { + + presencePenalty_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional double presence_penalty = 7; + * @return This builder for chaining. + */ + public Builder clearPresencePenalty() { + bitField0_ = (bitField0_ & ~0x00000040); + presencePenalty_ = 0D; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> stopSequencesBuilder_; + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return Whether the stopSequences field is set. + */ + public boolean hasStopSequences() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return The stopSequences. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() { + if (stopSequencesBuilder_ == null) { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } else { + return stopSequencesBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public Builder setStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopSequencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopSequences_ = value; + } else { + stopSequencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public Builder setStopSequences( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) { + if (stopSequencesBuilder_ == null) { + stopSequences_ = builderForValue.build(); + } else { + stopSequencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public Builder mergeStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopSequencesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + stopSequences_ != null && + stopSequences_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) { + getStopSequencesBuilder().mergeFrom(value); + } else { + stopSequences_ = value; + } + } else { + stopSequencesBuilder_.mergeFrom(value); + } + if (stopSequences_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public Builder clearStopSequences() { + bitField0_ = (bitField0_ & ~0x00000080); + stopSequences_ = null; + if (stopSequencesBuilder_ != null) { + stopSequencesBuilder_.dispose(); + stopSequencesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getStopSequencesFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() { + if (stopSequencesBuilder_ != null) { + return stopSequencesBuilder_.getMessageOrBuilder(); + } else { + return stopSequences_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> + getStopSequencesFieldBuilder() { + if (stopSequencesBuilder_ == null) { + stopSequencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>( + getStopSequences(), + getParentForChildren(), + isClean()); + stopSequences_ = null; + } + return stopSequencesBuilder_; + } + + private double temperature_ ; + /** + * optional double temperature = 9; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double temperature = 9; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + /** + * optional double temperature = 9; + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional double temperature = 9; + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000100); + temperature_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohere) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohere) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeCohere parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeDummyOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDummy) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code weaviate.v1.GenerativeDummy} + */ + public static final class GenerativeDummy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDummy) + GenerativeDummyOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeDummy.newBuilder() to construct. + private GenerativeDummy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeDummy() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeDummy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy 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.GenerativeDummy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDummy) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + @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.GenerativeDummy) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDummy) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeDummy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeMistralOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMistral) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + boolean hasBaseUrl(); + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + java.lang.String getBaseUrl(); + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + com.google.protobuf.ByteString + getBaseUrlBytes(); + + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + boolean hasMaxTokens(); + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + long getMaxTokens(); + + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 3; + * @return The model. + */ + java.lang.String getModel(); + /** + * optional string model = 3; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional double temperature = 4; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 4; + * @return The temperature. + */ + double getTemperature(); + + /** + * optional double top_p = 5; + * @return Whether the topP field is set. + */ + boolean hasTopP(); + /** + * optional double top_p = 5; + * @return The topP. + */ + double getTopP(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeMistral} + */ + public static final class GenerativeMistral extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeMistral) + GenerativeMistralOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeMistral.newBuilder() to construct. + private GenerativeMistral(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeMistral() { + baseUrl_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeMistral(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder.class); + } + + private int bitField0_; + public static final int BASE_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object baseUrl_ = ""; + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + @java.lang.Override + public boolean hasBaseUrl() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + @java.lang.Override + public java.lang.String getBaseUrl() { + java.lang.Object ref = baseUrl_; + 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(); + baseUrl_ = s; + return s; + } + } + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBaseUrlBytes() { + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.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; + } + } + + public static final int MAX_TOKENS_FIELD_NUMBER = 2; + private long maxTokens_ = 0L; + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + + public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 = 4; + private double temperature_ = 0D; + /** + * optional double temperature = 4; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double temperature = 4; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + public static final int TOP_P_FIELD_NUMBER = 5; + private double topP_ = 0D; + /** + * optional double top_p = 5; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double top_p = 5; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, maxTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, temperature_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, topP_); + } + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, temperature_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, topP_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) obj; + + if (hasBaseUrl() != other.hasBaseUrl()) return false; + if (hasBaseUrl()) { + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; + } + if (hasMaxTokens() != other.hasMaxTokens()) return false; + if (hasMaxTokens()) { + if (getMaxTokens() + != other.getMaxTokens()) return false; + } + 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 (!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 (hasBaseUrl()) { + hash = (37 * hash) + BASE_URL_FIELD_NUMBER; + hash = (53 * hash) + getBaseUrl().hashCode(); + } + if (hasMaxTokens()) { + hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxTokens()); + } + 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())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral 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.GenerativeMistral} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeMistral) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + baseUrl_ = ""; + maxTokens_ = 0L; + model_ = ""; + temperature_ = 0D; + topP_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseUrl_ = baseUrl_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxTokens_ = maxTokens_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance()) return this; + if (other.hasBaseUrl()) { + baseUrl_ = other.baseUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxTokens()) { + setMaxTokens(other.getMaxTokens()); + } + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + if (other.hasTopP()) { + setTopP(other.getTopP()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + baseUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + maxTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 33: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: { + topP_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + 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 long maxTokens_ ; + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + /** + * optional int64 max_tokens = 2; + * @param value The maxTokens to set. + * @return This builder for chaining. + */ + public Builder setMaxTokens(long value) { + + maxTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 max_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearMaxTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + maxTokens_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string model = 3; + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string model = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private double temperature_ ; + /** + * optional double temperature = 4; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double temperature = 4; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + /** + * optional double temperature = 4; + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional double temperature = 4; + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000008); + temperature_ = 0D; + onChanged(); + return this; + } + + private double topP_ ; + /** + * optional double top_p = 5; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double top_p = 5; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + /** + * optional double top_p = 5; + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + + topP_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional double top_p = 5; + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000010); + topP_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeMistral) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeMistral) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeMistral parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeOctoAIOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOctoAI) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + boolean hasBaseUrl(); + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + java.lang.String getBaseUrl(); + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + com.google.protobuf.ByteString + getBaseUrlBytes(); + + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + boolean hasMaxTokens(); + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + long getMaxTokens(); + + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 3; + * @return The model. + */ + java.lang.String getModel(); + /** + * optional string model = 3; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional int64 n = 4; + * @return Whether the n field is set. + */ + boolean hasN(); + /** + * optional int64 n = 4; + * @return The n. + */ + long getN(); + + /** + * optional double temperature = 5; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 5; + * @return The temperature. + */ + double getTemperature(); + + /** + * optional double top_p = 6; + * @return Whether the topP field is set. + */ + boolean hasTopP(); + /** + * optional double top_p = 6; + * @return The topP. + */ + double getTopP(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeOctoAI} + */ + public static final class GenerativeOctoAI extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOctoAI) + GenerativeOctoAIOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeOctoAI.newBuilder() to construct. + private GenerativeOctoAI(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeOctoAI() { + baseUrl_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeOctoAI(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder.class); + } + + private int bitField0_; + public static final int BASE_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object baseUrl_ = ""; + /** + * optional string base_url = 1; + * @return Whether the baseUrl field is set. + */ + @java.lang.Override + public boolean hasBaseUrl() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string base_url = 1; + * @return The baseUrl. + */ + @java.lang.Override + public java.lang.String getBaseUrl() { + java.lang.Object ref = baseUrl_; + 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(); + baseUrl_ = s; + return s; + } + } + /** + * optional string base_url = 1; + * @return The bytes for baseUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBaseUrlBytes() { + java.lang.Object ref = baseUrl_; + if (ref instanceof java.lang.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; + } + } + + public static final int MAX_TOKENS_FIELD_NUMBER = 2; + private long maxTokens_ = 0L; + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + + public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 N_FIELD_NUMBER = 4; + private long n_ = 0L; + /** + * optional int64 n = 4; + * @return Whether the n field is set. + */ + @java.lang.Override + public boolean hasN() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 n = 4; + * @return The n. + */ + @java.lang.Override + public long getN() { + return n_; + } + + public static final int TEMPERATURE_FIELD_NUMBER = 5; + private double temperature_ = 0D; + /** + * optional double temperature = 5; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double temperature = 5; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + public static final int TOP_P_FIELD_NUMBER = 6; + private double topP_ = 0D; + /** + * optional double top_p = 6; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double top_p = 6; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, maxTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, n_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, temperature_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, topP_); + } + 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, baseUrl_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, n_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, temperature_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, topP_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) obj; + + if (hasBaseUrl() != other.hasBaseUrl()) return false; + if (hasBaseUrl()) { + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; + } + if (hasMaxTokens() != other.hasMaxTokens()) return false; + if (hasMaxTokens()) { + if (getMaxTokens() + != other.getMaxTokens()) return false; + } + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel() + .equals(other.getModel())) return false; + } + if (hasN() != other.hasN()) return false; + if (hasN()) { + if (getN() + != other.getN()) 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 (!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 (hasBaseUrl()) { + hash = (37 * hash) + BASE_URL_FIELD_NUMBER; + hash = (53 * hash) + getBaseUrl().hashCode(); + } + if (hasMaxTokens()) { + hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxTokens()); + } + if (hasModel()) { + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + } + if (hasN()) { + hash = (37 * hash) + N_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getN()); + } + 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())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI 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.GenerativeOctoAI} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOctoAI) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + baseUrl_ = ""; + maxTokens_ = 0L; + model_ = ""; + n_ = 0L; + temperature_ = 0D; + topP_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseUrl_ = baseUrl_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxTokens_ = maxTokens_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.n_ = n_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance()) return this; + if (other.hasBaseUrl()) { + baseUrl_ = other.baseUrl_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMaxTokens()) { + setMaxTokens(other.getMaxTokens()); + } + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasN()) { + setN(other.getN()); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + if (other.hasTopP()) { + setTopP(other.getTopP()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + baseUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + maxTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + n_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 41: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 49: { + topP_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + 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 long maxTokens_ ; + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + /** + * optional int64 max_tokens = 2; + * @param value The maxTokens to set. + * @return This builder for chaining. + */ + public Builder setMaxTokens(long value) { + + maxTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 max_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearMaxTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + maxTokens_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string model = 3; + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string model = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private long n_ ; + /** + * optional int64 n = 4; + * @return Whether the n field is set. + */ + @java.lang.Override + public boolean hasN() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 n = 4; + * @return The n. + */ + @java.lang.Override + public long getN() { + return n_; + } + /** + * optional int64 n = 4; + * @param value The n to set. + * @return This builder for chaining. + */ + public Builder setN(long value) { + + n_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional int64 n = 4; + * @return This builder for chaining. + */ + public Builder clearN() { + bitField0_ = (bitField0_ & ~0x00000008); + n_ = 0L; + onChanged(); + return this; + } + + private double temperature_ ; + /** + * optional double temperature = 5; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double temperature = 5; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + /** + * optional double temperature = 5; + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional double temperature = 5; + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000010); + temperature_ = 0D; + onChanged(); + return this; + } + + private double topP_ ; + /** + * optional double top_p = 6; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double top_p = 6; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + /** + * optional double top_p = 6; + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + + topP_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional double top_p = 6; + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000020); + topP_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOctoAI) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAI) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeOctoAI parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeOllamaOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOllama) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string api_endpoint = 1; + * @return Whether the apiEndpoint field is set. + */ + boolean hasApiEndpoint(); + /** + * optional string api_endpoint = 1; + * @return The apiEndpoint. + */ + java.lang.String getApiEndpoint(); + /** + * optional string api_endpoint = 1; + * @return The bytes for apiEndpoint. + */ + com.google.protobuf.ByteString + getApiEndpointBytes(); + + /** + * optional string model = 2; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 2; + * @return The model. + */ + java.lang.String getModel(); + /** + * optional string model = 2; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional double temperature = 3; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 3; + * @return The temperature. + */ + double getTemperature(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeOllama} + */ + public static final class GenerativeOllama extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOllama) + GenerativeOllamaOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeOllama.newBuilder() to construct. + private GenerativeOllama(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeOllama() { + apiEndpoint_ = ""; + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeOllama(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder.class); + } + + private int bitField0_; + public static final int API_ENDPOINT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object apiEndpoint_ = ""; + /** + * optional string api_endpoint = 1; + * @return Whether the apiEndpoint field is set. + */ + @java.lang.Override + public boolean hasApiEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string api_endpoint = 1; + * @return The apiEndpoint. + */ + @java.lang.Override + public java.lang.String getApiEndpoint() { + java.lang.Object ref = apiEndpoint_; + 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(); + apiEndpoint_ = s; + return s; + } + } + /** + * optional string api_endpoint = 1; + * @return The bytes for apiEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getApiEndpointBytes() { + java.lang.Object ref = apiEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * optional string model = 2; + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string model = 2; + * @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 = 2; + * @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 = 3; + private double temperature_ = 0D; + /** + * 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_; + } + + 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, apiEndpoint_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, temperature_); + } + 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, apiEndpoint_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, temperature_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) obj; + + if (hasApiEndpoint() != other.hasApiEndpoint()) return false; + if (hasApiEndpoint()) { + if (!getApiEndpoint() + .equals(other.getApiEndpoint())) return false; + } + 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 (!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 (hasApiEndpoint()) { + hash = (37 * hash) + API_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getApiEndpoint().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())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama 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.GenerativeOllama} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOllama) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiEndpoint_ = ""; + model_ = ""; + temperature_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiEndpoint_ = apiEndpoint_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance()) return this; + if (other.hasApiEndpoint()) { + apiEndpoint_ = other.apiEndpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + apiEndpoint_ = 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 + 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 apiEndpoint_ = ""; + /** + * optional string api_endpoint = 1; + * @return Whether the apiEndpoint field is set. + */ + public boolean hasApiEndpoint() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string api_endpoint = 1; + * @return The apiEndpoint. + */ + public java.lang.String getApiEndpoint() { + java.lang.Object ref = apiEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string api_endpoint = 1; + * @return The bytes for apiEndpoint. + */ + public com.google.protobuf.ByteString + getApiEndpointBytes() { + java.lang.Object ref = apiEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string api_endpoint = 1; + * @param value The apiEndpoint to set. + * @return This builder for chaining. + */ + public Builder setApiEndpoint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + apiEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string api_endpoint = 1; + * @return This builder for chaining. + */ + public Builder clearApiEndpoint() { + apiEndpoint_ = getDefaultInstance().getApiEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string api_endpoint = 1; + * @param value The bytes for apiEndpoint to set. + * @return This builder for chaining. + */ + public Builder setApiEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + apiEndpoint_ = 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; + } + @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.GenerativeOllama) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOllama) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeOllama parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeOpenAIOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOpenAI) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. + */ + boolean hasFrequencyPenalty(); + /** + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. + */ + double getFrequencyPenalty(); + + /** + * optional bool log_probs = 2; + * @return Whether the logProbs field is set. + */ + boolean hasLogProbs(); + /** + * optional bool log_probs = 2; + * @return The logProbs. + */ + boolean getLogProbs(); + + /** + * optional int64 max_tokens = 3; + * @return Whether the maxTokens field is set. + */ + boolean hasMaxTokens(); + /** + * optional int64 max_tokens = 3; + * @return The maxTokens. + */ + long getMaxTokens(); + + /** + * string model = 4; + * @return The model. + */ + java.lang.String getModel(); + /** + * string model = 4; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional int64 n = 5; + * @return Whether the n field is set. + */ + boolean hasN(); + /** + * optional int64 n = 5; + * @return The n. + */ + long getN(); + + /** + * optional double presence_penalty = 6; + * @return Whether the presencePenalty field is set. + */ + boolean hasPresencePenalty(); + /** + * optional double presence_penalty = 6; + * @return The presencePenalty. + */ + double getPresencePenalty(); + + /** + * optional .weaviate.v1.TextArray stop = 7; + * @return Whether the stop field is set. + */ + boolean hasStop(); + /** + * optional .weaviate.v1.TextArray stop = 7; + * @return The stop. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop(); + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder(); + + /** + * optional double temperature = 8; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 8; + * @return The temperature. + */ + double getTemperature(); + + /** + * optional double top_p = 9; + * @return Whether the topP field is set. + */ + boolean hasTopP(); + /** + * optional double top_p = 9; + * @return The topP. + */ + double getTopP(); + + /** + * optional int64 top_log_probs = 10; + * @return Whether the topLogProbs field is set. + */ + boolean hasTopLogProbs(); + /** + * optional int64 top_log_probs = 10; + * @return The topLogProbs. + */ + long getTopLogProbs(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeOpenAI} + */ + public static final class GenerativeOpenAI extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAI) + GenerativeOpenAIOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeOpenAI.newBuilder() to construct. + private GenerativeOpenAI(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeOpenAI() { + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeOpenAI(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder.class); + } + + private int bitField0_; + public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 1; + private double frequencyPenalty_ = 0D; + /** + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. + */ + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; + } + + public static final int LOG_PROBS_FIELD_NUMBER = 2; + private boolean logProbs_ = false; + /** + * optional bool log_probs = 2; + * @return Whether the logProbs field is set. + */ + @java.lang.Override + public boolean hasLogProbs() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool log_probs = 2; + * @return The logProbs. + */ + @java.lang.Override + public boolean getLogProbs() { + return logProbs_; + } + + public static final int MAX_TOKENS_FIELD_NUMBER = 3; + private long maxTokens_ = 0L; + /** + * optional int64 max_tokens = 3; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 max_tokens = 3; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + + public static final int MODEL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * string model = 4; + * @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; + } + } + /** + * string model = 4; + * @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 N_FIELD_NUMBER = 5; + private long n_ = 0L; + /** + * optional int64 n = 5; + * @return Whether the n field is set. + */ + @java.lang.Override + public boolean hasN() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 n = 5; + * @return The n. + */ + @java.lang.Override + public long getN() { + return n_; + } + + public static final int PRESENCE_PENALTY_FIELD_NUMBER = 6; + private double presencePenalty_ = 0D; + /** + * optional double presence_penalty = 6; + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double presence_penalty = 6; + * @return The presencePenalty. + */ + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + + public static final int STOP_FIELD_NUMBER = 7; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stop_; + /** + * optional .weaviate.v1.TextArray stop = 7; + * @return Whether the stop field is set. + */ + @java.lang.Override + public boolean hasStop() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .weaviate.v1.TextArray stop = 7; + * @return The stop. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop() { + return stop_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_; + } + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder() { + return stop_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_; + } + + public static final int TEMPERATURE_FIELD_NUMBER = 8; + private double temperature_ = 0D; + /** + * optional double temperature = 8; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double temperature = 8; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + public static final int TOP_P_FIELD_NUMBER = 9; + private double topP_ = 0D; + /** + * optional double top_p = 9; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double top_p = 9; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + public static final int TOP_LOG_PROBS_FIELD_NUMBER = 10; + private long topLogProbs_ = 0L; + /** + * optional int64 top_log_probs = 10; + * @return Whether the topLogProbs field is set. + */ + @java.lang.Override + public boolean hasTopLogProbs() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional int64 top_log_probs = 10; + * @return The topLogProbs. + */ + @java.lang.Override + public long getTopLogProbs() { + return topLogProbs_; + } + + 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.writeDouble(1, frequencyPenalty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, logProbs_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, maxTokens_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(5, n_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(6, presencePenalty_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(7, getStop()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(8, temperature_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeDouble(9, topP_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt64(10, topLogProbs_); + } + 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 + .computeDoubleSize(1, frequencyPenalty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, logProbs_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxTokens_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, n_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, presencePenalty_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getStop()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, temperature_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, topP_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, topLogProbs_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) obj; + + if (hasFrequencyPenalty() != other.hasFrequencyPenalty()) return false; + if (hasFrequencyPenalty()) { + if (java.lang.Double.doubleToLongBits(getFrequencyPenalty()) + != java.lang.Double.doubleToLongBits( + other.getFrequencyPenalty())) return false; + } + if (hasLogProbs() != other.hasLogProbs()) return false; + if (hasLogProbs()) { + if (getLogProbs() + != other.getLogProbs()) return false; + } + if (hasMaxTokens() != other.hasMaxTokens()) return false; + if (hasMaxTokens()) { + if (getMaxTokens() + != other.getMaxTokens()) return false; + } + if (!getModel() + .equals(other.getModel())) return false; + if (hasN() != other.hasN()) return false; + if (hasN()) { + if (getN() + != other.getN()) return false; + } + if (hasPresencePenalty() != other.hasPresencePenalty()) return false; + if (hasPresencePenalty()) { + if (java.lang.Double.doubleToLongBits(getPresencePenalty()) + != java.lang.Double.doubleToLongBits( + other.getPresencePenalty())) return false; + } + if (hasStop() != other.hasStop()) return false; + if (hasStop()) { + if (!getStop() + .equals(other.getStop())) 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 (hasTopLogProbs() != other.hasTopLogProbs()) return false; + if (hasTopLogProbs()) { + if (getTopLogProbs() + != other.getTopLogProbs()) 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 (hasFrequencyPenalty()) { + hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFrequencyPenalty())); + } + if (hasLogProbs()) { + hash = (37 * hash) + LOG_PROBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLogProbs()); + } + if (hasMaxTokens()) { + hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxTokens()); + } + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + if (hasN()) { + hash = (37 * hash) + N_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getN()); + } + if (hasPresencePenalty()) { + hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPresencePenalty())); + } + if (hasStop()) { + hash = (37 * hash) + STOP_FIELD_NUMBER; + hash = (53 * hash) + getStop().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 (hasTopLogProbs()) { + hash = (37 * hash) + TOP_LOG_PROBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTopLogProbs()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI 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.GenerativeOpenAI} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOpenAI) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStopFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + frequencyPenalty_ = 0D; + logProbs_ = false; + maxTokens_ = 0L; + model_ = ""; + n_ = 0L; + presencePenalty_ = 0D; + stop_ = null; + if (stopBuilder_ != null) { + stopBuilder_.dispose(); + stopBuilder_ = null; + } + temperature_ = 0D; + topP_ = 0D; + topLogProbs_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.frequencyPenalty_ = frequencyPenalty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.logProbs_ = logProbs_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxTokens_ = maxTokens_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.n_ = n_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.presencePenalty_ = presencePenalty_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.stop_ = stopBuilder_ == null + ? stop_ + : stopBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.topLogProbs_ = topLogProbs_; + to_bitField0_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance()) return this; + if (other.hasFrequencyPenalty()) { + setFrequencyPenalty(other.getFrequencyPenalty()); + } + if (other.hasLogProbs()) { + setLogProbs(other.getLogProbs()); + } + if (other.hasMaxTokens()) { + setMaxTokens(other.getMaxTokens()); + } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasN()) { + setN(other.getN()); + } + if (other.hasPresencePenalty()) { + setPresencePenalty(other.getPresencePenalty()); + } + if (other.hasStop()) { + mergeStop(other.getStop()); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + if (other.hasTopP()) { + setTopP(other.getTopP()); + } + if (other.hasTopLogProbs()) { + setTopLogProbs(other.getTopLogProbs()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: { + frequencyPenalty_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 16: { + logProbs_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maxTokens_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + n_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 49: { + presencePenalty_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 + case 58: { + input.readMessage( + getStopFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 65: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 73: { + topP_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 73 + case 80: { + topLogProbs_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 80 + 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 double frequencyPenalty_ ; + /** + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. + */ + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; + } + /** + * optional double frequency_penalty = 1; + * @param value The frequencyPenalty to set. + * @return This builder for chaining. + */ + public Builder setFrequencyPenalty(double value) { + + frequencyPenalty_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional double frequency_penalty = 1; + * @return This builder for chaining. + */ + public Builder clearFrequencyPenalty() { + bitField0_ = (bitField0_ & ~0x00000001); + frequencyPenalty_ = 0D; + onChanged(); + return this; + } + + private boolean logProbs_ ; + /** + * optional bool log_probs = 2; + * @return Whether the logProbs field is set. + */ + @java.lang.Override + public boolean hasLogProbs() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool log_probs = 2; + * @return The logProbs. + */ + @java.lang.Override + public boolean getLogProbs() { + return logProbs_; + } + /** + * optional bool log_probs = 2; + * @param value The logProbs to set. + * @return This builder for chaining. + */ + public Builder setLogProbs(boolean value) { + + logProbs_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional bool log_probs = 2; + * @return This builder for chaining. + */ + public Builder clearLogProbs() { + bitField0_ = (bitField0_ & ~0x00000002); + logProbs_ = false; + onChanged(); + return this; + } + + private long maxTokens_ ; + /** + * optional int64 max_tokens = 3; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 max_tokens = 3; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + /** + * optional int64 max_tokens = 3; + * @param value The maxTokens to set. + * @return This builder for chaining. + */ + public Builder setMaxTokens(long value) { + + maxTokens_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int64 max_tokens = 3; + * @return This builder for chaining. + */ + public Builder clearMaxTokens() { + bitField0_ = (bitField0_ & ~0x00000004); + maxTokens_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * string model = 4; + * @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; + } + } + /** + * string model = 4; + * @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; + } + } + /** + * string model = 4; + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string model = 4; + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string model = 4; + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private long n_ ; + /** + * optional int64 n = 5; + * @return Whether the n field is set. + */ + @java.lang.Override + public boolean hasN() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 n = 5; + * @return The n. + */ + @java.lang.Override + public long getN() { + return n_; + } + /** + * optional int64 n = 5; + * @param value The n to set. + * @return This builder for chaining. + */ + public Builder setN(long value) { + + n_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional int64 n = 5; + * @return This builder for chaining. + */ + public Builder clearN() { + bitField0_ = (bitField0_ & ~0x00000010); + n_ = 0L; + onChanged(); + return this; + } + + private double presencePenalty_ ; + /** + * optional double presence_penalty = 6; + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional double presence_penalty = 6; + * @return The presencePenalty. + */ + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + /** + * optional double presence_penalty = 6; + * @param value The presencePenalty to set. + * @return This builder for chaining. + */ + public Builder setPresencePenalty(double value) { + + presencePenalty_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional double presence_penalty = 6; + * @return This builder for chaining. + */ + public Builder clearPresencePenalty() { + bitField0_ = (bitField0_ & ~0x00000020); + presencePenalty_ = 0D; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stop_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> stopBuilder_; + /** + * optional .weaviate.v1.TextArray stop = 7; + * @return Whether the stop field is set. + */ + public boolean hasStop() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .weaviate.v1.TextArray stop = 7; + * @return The stop. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop() { + if (stopBuilder_ == null) { + return stop_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_; + } else { + return stopBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + public Builder setStop(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stop_ = value; + } else { + stopBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + public Builder setStop( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) { + if (stopBuilder_ == null) { + stop_ = builderForValue.build(); + } else { + stopBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + public Builder mergeStop(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + stop_ != null && + stop_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) { + getStopBuilder().mergeFrom(value); + } else { + stop_ = value; + } + } else { + stopBuilder_.mergeFrom(value); + } + if (stop_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + public Builder clearStop() { + bitField0_ = (bitField0_ & ~0x00000040); + stop_ = null; + if (stopBuilder_ != null) { + stopBuilder_.dispose(); + stopBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getStopFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder() { + if (stopBuilder_ != null) { + return stopBuilder_.getMessageOrBuilder(); + } else { + return stop_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_; + } + } + /** + * optional .weaviate.v1.TextArray stop = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> + getStopFieldBuilder() { + if (stopBuilder_ == null) { + stopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>( + getStop(), + getParentForChildren(), + isClean()); + stop_ = null; + } + return stopBuilder_; + } + + private double temperature_ ; + /** + * optional double temperature = 8; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double temperature = 8; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + /** + * optional double temperature = 8; + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional double temperature = 8; + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000080); + temperature_ = 0D; + onChanged(); + return this; + } + + private double topP_ ; + /** + * optional double top_p = 9; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double top_p = 9; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + /** + * optional double top_p = 9; + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + + topP_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional double top_p = 9; + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000100); + topP_ = 0D; + onChanged(); + return this; + } + + private long topLogProbs_ ; + /** + * optional int64 top_log_probs = 10; + * @return Whether the topLogProbs field is set. + */ + @java.lang.Override + public boolean hasTopLogProbs() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional int64 top_log_probs = 10; + * @return The topLogProbs. + */ + @java.lang.Override + public long getTopLogProbs() { + return topLogProbs_; + } + /** + * optional int64 top_log_probs = 10; + * @param value The topLogProbs to set. + * @return This builder for chaining. + */ + public Builder setTopLogProbs(long value) { + + topLogProbs_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * optional int64 top_log_probs = 10; + * @return This builder for chaining. + */ + public Builder clearTopLogProbs() { + bitField0_ = (bitField0_ & ~0x00000200); + topLogProbs_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOpenAI) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOpenAI) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeOpenAI parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeGoogleOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogle) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. + */ + boolean hasFrequencyPenalty(); + /** + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. + */ + double getFrequencyPenalty(); + + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + boolean hasMaxTokens(); + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + long getMaxTokens(); + + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 3; + * @return The model. + */ + java.lang.String getModel(); + /** + * optional string model = 3; + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + * optional double presence_penalty = 4; + * @return Whether the presencePenalty field is set. + */ + boolean hasPresencePenalty(); + /** + * optional double presence_penalty = 4; + * @return The presencePenalty. + */ + double getPresencePenalty(); + + /** + * optional double temperature = 5; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 5; + * @return The temperature. + */ + double getTemperature(); + + /** + * optional int64 top_k = 6; + * @return Whether the topK field is set. + */ + boolean hasTopK(); + /** + * optional int64 top_k = 6; + * @return The topK. + */ + long getTopK(); + + /** + * optional double top_p = 7; + * @return Whether the topP field is set. + */ + boolean hasTopP(); + /** + * optional double top_p = 7; + * @return The topP. + */ + double getTopP(); + + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return Whether the stopSequences field is set. + */ + boolean hasStopSequences(); + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return The stopSequences. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences(); + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeGoogle} + */ + public static final class GenerativeGoogle extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogle) + GenerativeGoogleOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeGoogle.newBuilder() to construct. + private GenerativeGoogle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeGoogle() { + model_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeGoogle(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder.class); + } + + private int bitField0_; + public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 1; + private double frequencyPenalty_ = 0D; + /** + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. + */ + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; + } + + public static final int MAX_TOKENS_FIELD_NUMBER = 2; + private long maxTokens_ = 0L; + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + + public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + @java.lang.Override + public boolean hasModel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 PRESENCE_PENALTY_FIELD_NUMBER = 4; + private double presencePenalty_ = 0D; + /** + * optional double presence_penalty = 4; + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double presence_penalty = 4; + * @return The presencePenalty. + */ + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + + public static final int TEMPERATURE_FIELD_NUMBER = 5; + private double temperature_ = 0D; + /** + * optional double temperature = 5; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double temperature = 5; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + public static final int TOP_K_FIELD_NUMBER = 6; + private long topK_ = 0L; + /** + * optional int64 top_k = 6; + * @return Whether the topK field is set. + */ + @java.lang.Override + public boolean hasTopK() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional int64 top_k = 6; + * @return The topK. + */ + @java.lang.Override + public long getTopK() { + return topK_; + } + + public static final int TOP_P_FIELD_NUMBER = 7; + private double topP_ = 0D; + /** + * optional double top_p = 7; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double top_p = 7; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + public static final int STOP_SEQUENCES_FIELD_NUMBER = 8; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_; + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return Whether the stopSequences field is set. + */ + @java.lang.Override + public boolean hasStopSequences() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return The stopSequences. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + + 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.writeDouble(1, frequencyPenalty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, maxTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, presencePenalty_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeDouble(5, temperature_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt64(6, topK_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(7, topP_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getStopSequences()); + } + 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 + .computeDoubleSize(1, frequencyPenalty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, maxTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, presencePenalty_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, temperature_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, topK_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, topP_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getStopSequences()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) obj; + + if (hasFrequencyPenalty() != other.hasFrequencyPenalty()) return false; + if (hasFrequencyPenalty()) { + if (java.lang.Double.doubleToLongBits(getFrequencyPenalty()) + != java.lang.Double.doubleToLongBits( + other.getFrequencyPenalty())) return false; + } + if (hasMaxTokens() != other.hasMaxTokens()) return false; + if (hasMaxTokens()) { + if (getMaxTokens() + != other.getMaxTokens()) return false; + } + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel() + .equals(other.getModel())) return false; + } + if (hasPresencePenalty() != other.hasPresencePenalty()) return false; + if (hasPresencePenalty()) { + if (java.lang.Double.doubleToLongBits(getPresencePenalty()) + != java.lang.Double.doubleToLongBits( + other.getPresencePenalty())) 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 (hasTopK() != other.hasTopK()) return false; + if (hasTopK()) { + if (getTopK() + != other.getTopK()) 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 (hasStopSequences() != other.hasStopSequences()) return false; + if (hasStopSequences()) { + if (!getStopSequences() + .equals(other.getStopSequences())) 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 (hasFrequencyPenalty()) { + hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFrequencyPenalty())); + } + if (hasMaxTokens()) { + hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxTokens()); + } + if (hasModel()) { + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + } + if (hasPresencePenalty()) { + hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPresencePenalty())); + } + if (hasTemperature()) { + hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTemperature())); + } + if (hasTopK()) { + hash = (37 * hash) + TOP_K_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTopK()); + } + if (hasTopP()) { + hash = (37 * hash) + TOP_P_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTopP())); + } + if (hasStopSequences()) { + hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER; + hash = (53 * hash) + getStopSequences().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle 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.GenerativeGoogle} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogle) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStopSequencesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + frequencyPenalty_ = 0D; + maxTokens_ = 0L; + model_ = ""; + presencePenalty_ = 0D; + temperature_ = 0D; + topK_ = 0L; + topP_ = 0D; + stopSequences_ = null; + if (stopSequencesBuilder_ != null) { + stopSequencesBuilder_.dispose(); + stopSequencesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.frequencyPenalty_ = frequencyPenalty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxTokens_ = maxTokens_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.presencePenalty_ = presencePenalty_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.topK_ = topK_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.stopSequences_ = stopSequencesBuilder_ == null + ? stopSequences_ + : stopSequencesBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance()) return this; + if (other.hasFrequencyPenalty()) { + setFrequencyPenalty(other.getFrequencyPenalty()); + } + if (other.hasMaxTokens()) { + setMaxTokens(other.getMaxTokens()); + } + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPresencePenalty()) { + setPresencePenalty(other.getPresencePenalty()); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + if (other.hasTopK()) { + setTopK(other.getTopK()); + } + if (other.hasTopP()) { + setTopP(other.getTopP()); + } + if (other.hasStopSequences()) { + mergeStopSequences(other.getStopSequences()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: { + frequencyPenalty_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 16: { + maxTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 33: { + presencePenalty_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 48: { + topK_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 57: { + topP_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 66: { + input.readMessage( + getStopSequencesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + 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 double frequencyPenalty_ ; + /** + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. + */ + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; + } + /** + * optional double frequency_penalty = 1; + * @param value The frequencyPenalty to set. + * @return This builder for chaining. + */ + public Builder setFrequencyPenalty(double value) { + + frequencyPenalty_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional double frequency_penalty = 1; + * @return This builder for chaining. + */ + public Builder clearFrequencyPenalty() { + bitField0_ = (bitField0_ & ~0x00000001); + frequencyPenalty_ = 0D; + onChanged(); + return this; + } + + private long maxTokens_ ; + /** + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. + */ + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 max_tokens = 2; + * @return The maxTokens. + */ + @java.lang.Override + public long getMaxTokens() { + return maxTokens_; + } + /** + * optional int64 max_tokens = 2; + * @param value The maxTokens to set. + * @return This builder for chaining. + */ + public Builder setMaxTokens(long value) { + + maxTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 max_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearMaxTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + maxTokens_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * optional string model = 3; + * @return Whether the model field is set. + */ + public boolean hasModel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string model = 3; + * @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 = 3; + * @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 = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string model = 3; + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string model = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private double presencePenalty_ ; + /** + * optional double presence_penalty = 4; + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double presence_penalty = 4; + * @return The presencePenalty. + */ + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + /** + * optional double presence_penalty = 4; + * @param value The presencePenalty to set. + * @return This builder for chaining. + */ + public Builder setPresencePenalty(double value) { + + presencePenalty_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional double presence_penalty = 4; + * @return This builder for chaining. + */ + public Builder clearPresencePenalty() { + bitField0_ = (bitField0_ & ~0x00000008); + presencePenalty_ = 0D; + onChanged(); + return this; + } + + private double temperature_ ; + /** + * optional double temperature = 5; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double temperature = 5; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + /** + * optional double temperature = 5; + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional double temperature = 5; + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000010); + temperature_ = 0D; + onChanged(); + return this; + } + + private long topK_ ; + /** + * optional int64 top_k = 6; + * @return Whether the topK field is set. + */ + @java.lang.Override + public boolean hasTopK() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional int64 top_k = 6; + * @return The topK. + */ + @java.lang.Override + public long getTopK() { + return topK_; + } + /** + * optional int64 top_k = 6; + * @param value The topK to set. + * @return This builder for chaining. + */ + public Builder setTopK(long value) { + + topK_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional int64 top_k = 6; + * @return This builder for chaining. + */ + public Builder clearTopK() { + bitField0_ = (bitField0_ & ~0x00000020); + topK_ = 0L; + onChanged(); + return this; + } + + private double topP_ ; + /** + * optional double top_p = 7; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double top_p = 7; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + /** + * optional double top_p = 7; + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + + topP_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional double top_p = 7; + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000040); + topP_ = 0D; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> stopSequencesBuilder_; + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return Whether the stopSequences field is set. + */ + public boolean hasStopSequences() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return The stopSequences. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() { + if (stopSequencesBuilder_ == null) { + return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } else { + return stopSequencesBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public Builder setStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopSequencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopSequences_ = value; + } else { + stopSequencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public Builder setStopSequences( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) { + if (stopSequencesBuilder_ == null) { + stopSequences_ = builderForValue.build(); + } else { + stopSequencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public Builder mergeStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopSequencesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + stopSequences_ != null && + stopSequences_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) { + getStopSequencesBuilder().mergeFrom(value); + } else { + stopSequences_ = value; + } + } else { + stopSequencesBuilder_.mergeFrom(value); + } + if (stopSequences_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public Builder clearStopSequences() { + bitField0_ = (bitField0_ & ~0x00000080); + stopSequences_ = null; + if (stopSequencesBuilder_ != null) { + stopSequencesBuilder_.dispose(); + stopSequencesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getStopSequencesFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() { + if (stopSequencesBuilder_ != null) { + return stopSequencesBuilder_.getMessageOrBuilder(); + } else { + return stopSequences_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + } + } + /** + * optional .weaviate.v1.TextArray stop_sequences = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> + getStopSequencesFieldBuilder() { + if (stopSequencesBuilder_ == null) { + stopSequencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>( + getStopSequences(), + getParentForChildren(), + isClean()); + stopSequences_ = null; + } + return stopSequencesBuilder_; + } + @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.GenerativeGoogle) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogle) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeGoogle parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeAnthropicMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnthropicMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + boolean hasUsage(); + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * @return The usage. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getUsage(); + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder getUsageOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata} + */ + public static final class GenerativeAnthropicMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnthropicMetadata) + GenerativeAnthropicMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeAnthropicMetadata.newBuilder() to construct. + private GenerativeAnthropicMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeAnthropicMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeAnthropicMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder.class); + } + + public interface UsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnthropicMetadata.Usage) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 input_tokens = 1; + * @return The inputTokens. + */ + long getInputTokens(); + + /** + * int64 output_tokens = 2; + * @return The outputTokens. + */ + long getOutputTokens(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata.Usage} + */ + public static final class Usage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnthropicMetadata.Usage) + UsageOrBuilder { + private static final long serialVersionUID = 0L; + // Use Usage.newBuilder() to construct. + private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Usage() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Usage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder.class); + } + + public static final int INPUT_TOKENS_FIELD_NUMBER = 1; + private long inputTokens_ = 0L; + /** + * int64 input_tokens = 1; + * @return The inputTokens. + */ + @java.lang.Override + public long getInputTokens() { + return inputTokens_; + } + + public static final int OUTPUT_TOKENS_FIELD_NUMBER = 2; + private long outputTokens_ = 0L; + /** + * int64 output_tokens = 2; + * @return The outputTokens. + */ + @java.lang.Override + public long getOutputTokens() { + return outputTokens_; + } + + 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 (inputTokens_ != 0L) { + output.writeInt64(1, inputTokens_); + } + if (outputTokens_ != 0L) { + output.writeInt64(2, outputTokens_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputTokens_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, inputTokens_); + } + if (outputTokens_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, outputTokens_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage) obj; + + if (getInputTokens() + != other.getInputTokens()) return false; + if (getOutputTokens() + != other.getOutputTokens()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInputTokens()); + hash = (37 * hash) + OUTPUT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOutputTokens()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage 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.GenerativeAnthropicMetadata.Usage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnthropicMetadata.Usage) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputTokens_ = 0L; + outputTokens_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputTokens_ = inputTokens_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputTokens_ = outputTokens_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance()) return this; + if (other.getInputTokens() != 0L) { + setInputTokens(other.getInputTokens()); + } + if (other.getOutputTokens() != 0L) { + setOutputTokens(other.getOutputTokens()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + inputTokens_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + outputTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 long inputTokens_ ; + /** + * int64 input_tokens = 1; + * @return The inputTokens. + */ + @java.lang.Override + public long getInputTokens() { + return inputTokens_; + } + /** + * int64 input_tokens = 1; + * @param value The inputTokens to set. + * @return This builder for chaining. + */ + public Builder setInputTokens(long value) { + + inputTokens_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int64 input_tokens = 1; + * @return This builder for chaining. + */ + public Builder clearInputTokens() { + bitField0_ = (bitField0_ & ~0x00000001); + inputTokens_ = 0L; + onChanged(); + return this; + } + + private long outputTokens_ ; + /** + * int64 output_tokens = 2; + * @return The outputTokens. + */ + @java.lang.Override + public long getOutputTokens() { + return outputTokens_; + } + /** + * int64 output_tokens = 2; + * @param value The outputTokens to set. + * @return This builder for chaining. + */ + public Builder setOutputTokens(long value) { + + outputTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 output_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearOutputTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + outputTokens_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAnthropicMetadata.Usage) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnthropicMetadata.Usage) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Usage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int USAGE_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage usage_; + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + @java.lang.Override + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * @return The usage. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getUsage() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance() : usage_; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder getUsageOrBuilder() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance() : usage_; + } + + 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.writeMessage(1, getUsage()); + } + 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 + .computeMessageSize(1, getUsage()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) obj; + + if (hasUsage() != other.hasUsage()) return false; + if (hasUsage()) { + if (!getUsage() + .equals(other.getUsage())) 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 (hasUsage()) { + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + getUsage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata 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.GenerativeAnthropicMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnthropicMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUsageFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.usage_ = usageBuilder_ == null + ? usage_ + : usageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance()) return this; + if (other.hasUsage()) { + mergeUsage(other.getUsage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUsageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage usage_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder> usageBuilder_; + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * @return The usage. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getUsage() { + if (usageBuilder_ == null) { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance() : usage_; + } else { + return usageBuilder_.getMessage(); + } + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage value) { + if (usageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usage_ = value; + } else { + usageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + public Builder setUsage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder builderForValue) { + if (usageBuilder_ == null) { + usage_ = builderForValue.build(); + } else { + usageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage value) { + if (usageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + usage_ != null && + usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance()) { + getUsageBuilder().mergeFrom(value); + } else { + usage_ = value; + } + } else { + usageBuilder_.mergeFrom(value); + } + if (usage_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + public Builder clearUsage() { + bitField0_ = (bitField0_ & ~0x00000001); + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder getUsageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUsageFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder getUsageOrBuilder() { + if (usageBuilder_ != null) { + return usageBuilder_.getMessageOrBuilder(); + } else { + return usage_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance() : usage_; + } + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder> + getUsageFieldBuilder() { + if (usageBuilder_ == null) { + usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder>( + getUsage(), + getParentForChildren(), + isClean()); + usage_ = null; + } + return usageBuilder_; + } + @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.GenerativeAnthropicMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnthropicMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeAnthropicMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeAnyscaleMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnyscaleMetadata) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code weaviate.v1.GenerativeAnyscaleMetadata} + */ + public static final class GenerativeAnyscaleMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnyscaleMetadata) + GenerativeAnyscaleMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeAnyscaleMetadata.newBuilder() to construct. + private GenerativeAnyscaleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeAnyscaleMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeAnyscaleMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata 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.GenerativeAnyscaleMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnyscaleMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + @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.GenerativeAnyscaleMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnyscaleMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeAnyscaleMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeAWSMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAWSMetadata) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code weaviate.v1.GenerativeAWSMetadata} + */ + public static final class GenerativeAWSMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAWSMetadata) + GenerativeAWSMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeAWSMetadata.newBuilder() to construct. + private GenerativeAWSMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeAWSMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeAWSMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata 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.GenerativeAWSMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAWSMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + @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.GenerativeAWSMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAWSMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeAWSMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeCohereMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + * @return Whether the apiVersion field is set. + */ + boolean hasApiVersion(); + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + * @return The apiVersion. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getApiVersion(); + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder getApiVersionOrBuilder(); + + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + * @return Whether the billedUnits field is set. + */ + boolean hasBilledUnits(); + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + * @return The billedUnits. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getBilledUnits(); + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder getBilledUnitsOrBuilder(); + + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + * @return Whether the tokens field is set. + */ + boolean hasTokens(); + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + * @return The tokens. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getTokens(); + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder getTokensOrBuilder(); + + /** + * optional .weaviate.v1.TextArray warnings = 4; + * @return Whether the warnings field is set. + */ + boolean hasWarnings(); + /** + * optional .weaviate.v1.TextArray warnings = 4; + * @return The warnings. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getWarnings(); + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getWarningsOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata} + */ + public static final class GenerativeCohereMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata) + GenerativeCohereMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeCohereMetadata.newBuilder() to construct. + private GenerativeCohereMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeCohereMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeCohereMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder.class); + } + + public interface ApiVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.ApiVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string version = 1; + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + * optional string version = 1; + * @return The version. + */ + java.lang.String getVersion(); + /** + * optional string version = 1; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * optional bool is_deprecated = 2; + * @return Whether the isDeprecated field is set. + */ + boolean hasIsDeprecated(); + /** + * optional bool is_deprecated = 2; + * @return The isDeprecated. + */ + boolean getIsDeprecated(); + + /** + * optional bool is_experimental = 3; + * @return Whether the isExperimental field is set. + */ + boolean hasIsExperimental(); + /** + * optional bool is_experimental = 3; + * @return The isExperimental. + */ + boolean getIsExperimental(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.ApiVersion} + */ + public static final class ApiVersion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata.ApiVersion) + ApiVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiVersion.newBuilder() to construct. + private ApiVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ApiVersion() { + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ApiVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder.class); + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * optional string version = 1; + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string version = 1; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + * optional string version = 1; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_DEPRECATED_FIELD_NUMBER = 2; + private boolean isDeprecated_ = false; + /** + * optional bool is_deprecated = 2; + * @return Whether the isDeprecated field is set. + */ + @java.lang.Override + public boolean hasIsDeprecated() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool is_deprecated = 2; + * @return The isDeprecated. + */ + @java.lang.Override + public boolean getIsDeprecated() { + return isDeprecated_; + } + + public static final int IS_EXPERIMENTAL_FIELD_NUMBER = 3; + private boolean isExperimental_ = false; + /** + * optional bool is_experimental = 3; + * @return Whether the isExperimental field is set. + */ + @java.lang.Override + public boolean hasIsExperimental() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional bool is_experimental = 3; + * @return The isExperimental. + */ + @java.lang.Override + public boolean getIsExperimental() { + return isExperimental_; + } + + 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, version_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, isDeprecated_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, isExperimental_); + } + 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, version_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isDeprecated_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isExperimental_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion) obj; + + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) return false; + } + if (hasIsDeprecated() != other.hasIsDeprecated()) return false; + if (hasIsDeprecated()) { + if (getIsDeprecated() + != other.getIsDeprecated()) return false; + } + if (hasIsExperimental() != other.hasIsExperimental()) return false; + if (hasIsExperimental()) { + if (getIsExperimental() + != other.getIsExperimental()) 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 (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (hasIsDeprecated()) { + hash = (37 * hash) + IS_DEPRECATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDeprecated()); + } + if (hasIsExperimental()) { + hash = (37 * hash) + IS_EXPERIMENTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsExperimental()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion 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.GenerativeCohereMetadata.ApiVersion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohereMetadata.ApiVersion) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = ""; + isDeprecated_ = false; + isExperimental_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isDeprecated_ = isDeprecated_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isExperimental_ = isExperimental_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance()) return this; + if (other.hasVersion()) { + version_ = other.version_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIsDeprecated()) { + setIsDeprecated(other.getIsDeprecated()); + } + if (other.hasIsExperimental()) { + setIsExperimental(other.getIsExperimental()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isDeprecated_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + isExperimental_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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 version_ = ""; + /** + * optional string version = 1; + * @return Whether the version field is set. + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string version = 1; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string version = 1; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string version = 1; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string version = 1; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean isDeprecated_ ; + /** + * optional bool is_deprecated = 2; + * @return Whether the isDeprecated field is set. + */ + @java.lang.Override + public boolean hasIsDeprecated() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool is_deprecated = 2; + * @return The isDeprecated. + */ + @java.lang.Override + public boolean getIsDeprecated() { + return isDeprecated_; + } + /** + * optional bool is_deprecated = 2; + * @param value The isDeprecated to set. + * @return This builder for chaining. + */ + public Builder setIsDeprecated(boolean value) { + + isDeprecated_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional bool is_deprecated = 2; + * @return This builder for chaining. + */ + public Builder clearIsDeprecated() { + bitField0_ = (bitField0_ & ~0x00000002); + isDeprecated_ = false; + onChanged(); + return this; + } + + private boolean isExperimental_ ; + /** + * optional bool is_experimental = 3; + * @return Whether the isExperimental field is set. + */ + @java.lang.Override + public boolean hasIsExperimental() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional bool is_experimental = 3; + * @return The isExperimental. + */ + @java.lang.Override + public boolean getIsExperimental() { + return isExperimental_; + } + /** + * optional bool is_experimental = 3; + * @param value The isExperimental to set. + * @return This builder for chaining. + */ + public Builder setIsExperimental(boolean value) { + + isExperimental_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional bool is_experimental = 3; + * @return This builder for chaining. + */ + public Builder clearIsExperimental() { + bitField0_ = (bitField0_ & ~0x00000004); + isExperimental_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.ApiVersion) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata.ApiVersion) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BilledUnitsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.BilledUnits) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double input_tokens = 1; + * @return Whether the inputTokens field is set. + */ + boolean hasInputTokens(); + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + double getInputTokens(); + + /** + * optional double output_tokens = 2; + * @return Whether the outputTokens field is set. + */ + boolean hasOutputTokens(); + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + double getOutputTokens(); + + /** + * optional double search_units = 3; + * @return Whether the searchUnits field is set. + */ + boolean hasSearchUnits(); + /** + * optional double search_units = 3; + * @return The searchUnits. + */ + double getSearchUnits(); + + /** + * optional double classifications = 4; + * @return Whether the classifications field is set. + */ + boolean hasClassifications(); + /** + * optional double classifications = 4; + * @return The classifications. + */ + double getClassifications(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.BilledUnits} + */ + public static final class BilledUnits extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata.BilledUnits) + BilledUnitsOrBuilder { + private static final long serialVersionUID = 0L; + // Use BilledUnits.newBuilder() to construct. + private BilledUnits(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BilledUnits() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BilledUnits(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder.class); + } + + private int bitField0_; + public static final int INPUT_TOKENS_FIELD_NUMBER = 1; + private double inputTokens_ = 0D; + /** + * optional double input_tokens = 1; + * @return Whether the inputTokens field is set. + */ + @java.lang.Override + public boolean hasInputTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + @java.lang.Override + public double getInputTokens() { + return inputTokens_; + } + + public static final int OUTPUT_TOKENS_FIELD_NUMBER = 2; + private double outputTokens_ = 0D; + /** + * optional double output_tokens = 2; + * @return Whether the outputTokens field is set. + */ + @java.lang.Override + public boolean hasOutputTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + @java.lang.Override + public double getOutputTokens() { + return outputTokens_; + } + + public static final int SEARCH_UNITS_FIELD_NUMBER = 3; + private double searchUnits_ = 0D; + /** + * optional double search_units = 3; + * @return Whether the searchUnits field is set. + */ + @java.lang.Override + public boolean hasSearchUnits() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double search_units = 3; + * @return The searchUnits. + */ + @java.lang.Override + public double getSearchUnits() { + return searchUnits_; + } + + public static final int CLASSIFICATIONS_FIELD_NUMBER = 4; + private double classifications_ = 0D; + /** + * optional double classifications = 4; + * @return Whether the classifications field is set. + */ + @java.lang.Override + public boolean hasClassifications() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double classifications = 4; + * @return The classifications. + */ + @java.lang.Override + public double getClassifications() { + return classifications_; + } + + 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.writeDouble(1, inputTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, outputTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, searchUnits_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, classifications_); + } + 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 + .computeDoubleSize(1, inputTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, outputTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, searchUnits_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, classifications_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits) obj; + + if (hasInputTokens() != other.hasInputTokens()) return false; + if (hasInputTokens()) { + if (java.lang.Double.doubleToLongBits(getInputTokens()) + != java.lang.Double.doubleToLongBits( + other.getInputTokens())) return false; + } + if (hasOutputTokens() != other.hasOutputTokens()) return false; + if (hasOutputTokens()) { + if (java.lang.Double.doubleToLongBits(getOutputTokens()) + != java.lang.Double.doubleToLongBits( + other.getOutputTokens())) return false; + } + if (hasSearchUnits() != other.hasSearchUnits()) return false; + if (hasSearchUnits()) { + if (java.lang.Double.doubleToLongBits(getSearchUnits()) + != java.lang.Double.doubleToLongBits( + other.getSearchUnits())) return false; + } + if (hasClassifications() != other.hasClassifications()) return false; + if (hasClassifications()) { + if (java.lang.Double.doubleToLongBits(getClassifications()) + != java.lang.Double.doubleToLongBits( + other.getClassifications())) 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 (hasInputTokens()) { + hash = (37 * hash) + INPUT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getInputTokens())); + } + if (hasOutputTokens()) { + hash = (37 * hash) + OUTPUT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOutputTokens())); + } + if (hasSearchUnits()) { + hash = (37 * hash) + SEARCH_UNITS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSearchUnits())); + } + if (hasClassifications()) { + hash = (37 * hash) + CLASSIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getClassifications())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits 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.GenerativeCohereMetadata.BilledUnits} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohereMetadata.BilledUnits) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputTokens_ = 0D; + outputTokens_ = 0D; + searchUnits_ = 0D; + classifications_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputTokens_ = inputTokens_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputTokens_ = outputTokens_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchUnits_ = searchUnits_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.classifications_ = classifications_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance()) return this; + if (other.hasInputTokens()) { + setInputTokens(other.getInputTokens()); + } + if (other.hasOutputTokens()) { + setOutputTokens(other.getOutputTokens()); + } + if (other.hasSearchUnits()) { + setSearchUnits(other.getSearchUnits()); + } + if (other.hasClassifications()) { + setClassifications(other.getClassifications()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: { + inputTokens_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + outputTokens_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + searchUnits_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 33: { + classifications_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + 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 double inputTokens_ ; + /** + * optional double input_tokens = 1; + * @return Whether the inputTokens field is set. + */ + @java.lang.Override + public boolean hasInputTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + @java.lang.Override + public double getInputTokens() { + return inputTokens_; + } + /** + * optional double input_tokens = 1; + * @param value The inputTokens to set. + * @return This builder for chaining. + */ + public Builder setInputTokens(double value) { + + inputTokens_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional double input_tokens = 1; + * @return This builder for chaining. + */ + public Builder clearInputTokens() { + bitField0_ = (bitField0_ & ~0x00000001); + inputTokens_ = 0D; + onChanged(); + return this; + } + + private double outputTokens_ ; + /** + * optional double output_tokens = 2; + * @return Whether the outputTokens field is set. + */ + @java.lang.Override + public boolean hasOutputTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + @java.lang.Override + public double getOutputTokens() { + return outputTokens_; + } + /** + * optional double output_tokens = 2; + * @param value The outputTokens to set. + * @return This builder for chaining. + */ + public Builder setOutputTokens(double value) { + + outputTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double output_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearOutputTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + outputTokens_ = 0D; + onChanged(); + return this; + } + + private double searchUnits_ ; + /** + * optional double search_units = 3; + * @return Whether the searchUnits field is set. + */ + @java.lang.Override + public boolean hasSearchUnits() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double search_units = 3; + * @return The searchUnits. + */ + @java.lang.Override + public double getSearchUnits() { + return searchUnits_; + } + /** + * optional double search_units = 3; + * @param value The searchUnits to set. + * @return This builder for chaining. + */ + public Builder setSearchUnits(double value) { + + searchUnits_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double search_units = 3; + * @return This builder for chaining. + */ + public Builder clearSearchUnits() { + bitField0_ = (bitField0_ & ~0x00000004); + searchUnits_ = 0D; + onChanged(); + return this; + } + + private double classifications_ ; + /** + * optional double classifications = 4; + * @return Whether the classifications field is set. + */ + @java.lang.Override + public boolean hasClassifications() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double classifications = 4; + * @return The classifications. + */ + @java.lang.Override + public double getClassifications() { + return classifications_; + } + /** + * optional double classifications = 4; + * @param value The classifications to set. + * @return This builder for chaining. + */ + public Builder setClassifications(double value) { + + classifications_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional double classifications = 4; + * @return This builder for chaining. + */ + public Builder clearClassifications() { + bitField0_ = (bitField0_ & ~0x00000008); + classifications_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.BilledUnits) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata.BilledUnits) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BilledUnits parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokensOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.Tokens) + com.google.protobuf.MessageOrBuilder { + + /** + * optional double input_tokens = 1; + * @return Whether the inputTokens field is set. + */ + boolean hasInputTokens(); + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + double getInputTokens(); + + /** + * optional double output_tokens = 2; + * @return Whether the outputTokens field is set. + */ + boolean hasOutputTokens(); + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + double getOutputTokens(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.Tokens} + */ + public static final class Tokens extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata.Tokens) + TokensOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tokens.newBuilder() to construct. + private Tokens(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Tokens() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Tokens(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder.class); + } + + private int bitField0_; + public static final int INPUT_TOKENS_FIELD_NUMBER = 1; + private double inputTokens_ = 0D; + /** + * optional double input_tokens = 1; + * @return Whether the inputTokens field is set. + */ + @java.lang.Override + public boolean hasInputTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + @java.lang.Override + public double getInputTokens() { + return inputTokens_; + } + + public static final int OUTPUT_TOKENS_FIELD_NUMBER = 2; + private double outputTokens_ = 0D; + /** + * optional double output_tokens = 2; + * @return Whether the outputTokens field is set. + */ + @java.lang.Override + public boolean hasOutputTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + @java.lang.Override + public double getOutputTokens() { + return outputTokens_; + } + + 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.writeDouble(1, inputTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, outputTokens_); + } + 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 + .computeDoubleSize(1, inputTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, outputTokens_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens) obj; + + if (hasInputTokens() != other.hasInputTokens()) return false; + if (hasInputTokens()) { + if (java.lang.Double.doubleToLongBits(getInputTokens()) + != java.lang.Double.doubleToLongBits( + other.getInputTokens())) return false; + } + if (hasOutputTokens() != other.hasOutputTokens()) return false; + if (hasOutputTokens()) { + if (java.lang.Double.doubleToLongBits(getOutputTokens()) + != java.lang.Double.doubleToLongBits( + other.getOutputTokens())) 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 (hasInputTokens()) { + hash = (37 * hash) + INPUT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getInputTokens())); + } + if (hasOutputTokens()) { + hash = (37 * hash) + OUTPUT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOutputTokens())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens 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.GenerativeCohereMetadata.Tokens} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohereMetadata.Tokens) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputTokens_ = 0D; + outputTokens_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputTokens_ = inputTokens_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputTokens_ = outputTokens_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance()) return this; + if (other.hasInputTokens()) { + setInputTokens(other.getInputTokens()); + } + if (other.hasOutputTokens()) { + setOutputTokens(other.getOutputTokens()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: { + inputTokens_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + outputTokens_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + 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 double inputTokens_ ; + /** + * optional double input_tokens = 1; + * @return Whether the inputTokens field is set. + */ + @java.lang.Override + public boolean hasInputTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + @java.lang.Override + public double getInputTokens() { + return inputTokens_; + } + /** + * optional double input_tokens = 1; + * @param value The inputTokens to set. + * @return This builder for chaining. + */ + public Builder setInputTokens(double value) { + + inputTokens_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional double input_tokens = 1; + * @return This builder for chaining. + */ + public Builder clearInputTokens() { + bitField0_ = (bitField0_ & ~0x00000001); + inputTokens_ = 0D; + onChanged(); + return this; + } + + private double outputTokens_ ; + /** + * optional double output_tokens = 2; + * @return Whether the outputTokens field is set. + */ + @java.lang.Override + public boolean hasOutputTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + @java.lang.Override + public double getOutputTokens() { + return outputTokens_; + } + /** + * optional double output_tokens = 2; + * @param value The outputTokens to set. + * @return This builder for chaining. + */ + public Builder setOutputTokens(double value) { + + outputTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double output_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearOutputTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + outputTokens_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.Tokens) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata.Tokens) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tokens parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int API_VERSION_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion apiVersion_; + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + * @return Whether the apiVersion field is set. + */ + @java.lang.Override + public boolean hasApiVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + * @return The apiVersion. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getApiVersion() { + return apiVersion_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance() : apiVersion_; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder getApiVersionOrBuilder() { + return apiVersion_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance() : apiVersion_; + } + + public static final int BILLED_UNITS_FIELD_NUMBER = 2; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits billedUnits_; + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + * @return Whether the billedUnits field is set. + */ + @java.lang.Override + public boolean hasBilledUnits() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + * @return The billedUnits. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getBilledUnits() { + return billedUnits_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance() : billedUnits_; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder getBilledUnitsOrBuilder() { + return billedUnits_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance() : billedUnits_; + } + + public static final int TOKENS_FIELD_NUMBER = 3; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens tokens_; + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + * @return Whether the tokens field is set. + */ + @java.lang.Override + public boolean hasTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + * @return The tokens. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getTokens() { + return tokens_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance() : tokens_; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder getTokensOrBuilder() { + return tokens_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance() : tokens_; + } + + public static final int WARNINGS_FIELD_NUMBER = 4; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray warnings_; + /** + * optional .weaviate.v1.TextArray warnings = 4; + * @return Whether the warnings field is set. + */ + @java.lang.Override + public boolean hasWarnings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + * @return The warnings. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getWarnings() { + return warnings_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : warnings_; + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getWarningsOrBuilder() { + return warnings_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : warnings_; + } + + 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.writeMessage(1, getApiVersion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getBilledUnits()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getTokens()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getWarnings()); + } + 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 + .computeMessageSize(1, getApiVersion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBilledUnits()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTokens()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getWarnings()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) obj; + + if (hasApiVersion() != other.hasApiVersion()) return false; + if (hasApiVersion()) { + if (!getApiVersion() + .equals(other.getApiVersion())) return false; + } + if (hasBilledUnits() != other.hasBilledUnits()) return false; + if (hasBilledUnits()) { + if (!getBilledUnits() + .equals(other.getBilledUnits())) return false; + } + if (hasTokens() != other.hasTokens()) return false; + if (hasTokens()) { + if (!getTokens() + .equals(other.getTokens())) return false; + } + if (hasWarnings() != other.hasWarnings()) return false; + if (hasWarnings()) { + if (!getWarnings() + .equals(other.getWarnings())) 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 (hasApiVersion()) { + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + } + if (hasBilledUnits()) { + hash = (37 * hash) + BILLED_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getBilledUnits().hashCode(); + } + if (hasTokens()) { + hash = (37 * hash) + TOKENS_FIELD_NUMBER; + hash = (53 * hash) + getTokens().hashCode(); + } + if (hasWarnings()) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarnings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata 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.GenerativeCohereMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohereMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getApiVersionFieldBuilder(); + getBilledUnitsFieldBuilder(); + getTokensFieldBuilder(); + getWarningsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiVersion_ = null; + if (apiVersionBuilder_ != null) { + apiVersionBuilder_.dispose(); + apiVersionBuilder_ = null; + } + billedUnits_ = null; + if (billedUnitsBuilder_ != null) { + billedUnitsBuilder_.dispose(); + billedUnitsBuilder_ = null; + } + tokens_ = null; + if (tokensBuilder_ != null) { + tokensBuilder_.dispose(); + tokensBuilder_ = null; + } + warnings_ = null; + if (warningsBuilder_ != null) { + warningsBuilder_.dispose(); + warningsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiVersion_ = apiVersionBuilder_ == null + ? apiVersion_ + : apiVersionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.billedUnits_ = billedUnitsBuilder_ == null + ? billedUnits_ + : billedUnitsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tokens_ = tokensBuilder_ == null + ? tokens_ + : tokensBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.warnings_ = warningsBuilder_ == null + ? warnings_ + : warningsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance()) return this; + if (other.hasApiVersion()) { + mergeApiVersion(other.getApiVersion()); + } + if (other.hasBilledUnits()) { + mergeBilledUnits(other.getBilledUnits()); + } + if (other.hasTokens()) { + mergeTokens(other.getTokens()); + } + if (other.hasWarnings()) { + mergeWarnings(other.getWarnings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getApiVersionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getBilledUnitsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getTokensFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getWarningsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion apiVersion_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder> apiVersionBuilder_; + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + * @return Whether the apiVersion field is set. + */ + public boolean hasApiVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + * @return The apiVersion. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getApiVersion() { + if (apiVersionBuilder_ == null) { + return apiVersion_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance() : apiVersion_; + } else { + return apiVersionBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + public Builder setApiVersion(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion value) { + if (apiVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + apiVersion_ = value; + } else { + apiVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + public Builder setApiVersion( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder builderForValue) { + if (apiVersionBuilder_ == null) { + apiVersion_ = builderForValue.build(); + } else { + apiVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + public Builder mergeApiVersion(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion value) { + if (apiVersionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + apiVersion_ != null && + apiVersion_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance()) { + getApiVersionBuilder().mergeFrom(value); + } else { + apiVersion_ = value; + } + } else { + apiVersionBuilder_.mergeFrom(value); + } + if (apiVersion_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + public Builder clearApiVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + apiVersion_ = null; + if (apiVersionBuilder_ != null) { + apiVersionBuilder_.dispose(); + apiVersionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder getApiVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getApiVersionFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder getApiVersionOrBuilder() { + if (apiVersionBuilder_ != null) { + return apiVersionBuilder_.getMessageOrBuilder(); + } else { + return apiVersion_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance() : apiVersion_; + } + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder> + getApiVersionFieldBuilder() { + if (apiVersionBuilder_ == null) { + apiVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder>( + getApiVersion(), + getParentForChildren(), + isClean()); + apiVersion_ = null; + } + return apiVersionBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits billedUnits_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder> billedUnitsBuilder_; + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + * @return Whether the billedUnits field is set. + */ + public boolean hasBilledUnits() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + * @return The billedUnits. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getBilledUnits() { + if (billedUnitsBuilder_ == null) { + return billedUnits_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance() : billedUnits_; + } else { + return billedUnitsBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + public Builder setBilledUnits(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits value) { + if (billedUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + billedUnits_ = value; + } else { + billedUnitsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + public Builder setBilledUnits( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder builderForValue) { + if (billedUnitsBuilder_ == null) { + billedUnits_ = builderForValue.build(); + } else { + billedUnitsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + public Builder mergeBilledUnits(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits value) { + if (billedUnitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + billedUnits_ != null && + billedUnits_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance()) { + getBilledUnitsBuilder().mergeFrom(value); + } else { + billedUnits_ = value; + } + } else { + billedUnitsBuilder_.mergeFrom(value); + } + if (billedUnits_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + public Builder clearBilledUnits() { + bitField0_ = (bitField0_ & ~0x00000002); + billedUnits_ = null; + if (billedUnitsBuilder_ != null) { + billedUnitsBuilder_.dispose(); + billedUnitsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder getBilledUnitsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getBilledUnitsFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder getBilledUnitsOrBuilder() { + if (billedUnitsBuilder_ != null) { + return billedUnitsBuilder_.getMessageOrBuilder(); + } else { + return billedUnits_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance() : billedUnits_; + } + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder> + getBilledUnitsFieldBuilder() { + if (billedUnitsBuilder_ == null) { + billedUnitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder>( + getBilledUnits(), + getParentForChildren(), + isClean()); + billedUnits_ = null; + } + return billedUnitsBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens tokens_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder> tokensBuilder_; + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + * @return Whether the tokens field is set. + */ + public boolean hasTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + * @return The tokens. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getTokens() { + if (tokensBuilder_ == null) { + return tokens_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance() : tokens_; + } else { + return tokensBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + public Builder setTokens(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens value) { + if (tokensBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokens_ = value; + } else { + tokensBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + public Builder setTokens( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder builderForValue) { + if (tokensBuilder_ == null) { + tokens_ = builderForValue.build(); + } else { + tokensBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + public Builder mergeTokens(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens value) { + if (tokensBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + tokens_ != null && + tokens_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance()) { + getTokensBuilder().mergeFrom(value); + } else { + tokens_ = value; + } + } else { + tokensBuilder_.mergeFrom(value); + } + if (tokens_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + public Builder clearTokens() { + bitField0_ = (bitField0_ & ~0x00000004); + tokens_ = null; + if (tokensBuilder_ != null) { + tokensBuilder_.dispose(); + tokensBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder getTokensBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTokensFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder getTokensOrBuilder() { + if (tokensBuilder_ != null) { + return tokensBuilder_.getMessageOrBuilder(); + } else { + return tokens_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance() : tokens_; + } + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder> + getTokensFieldBuilder() { + if (tokensBuilder_ == null) { + tokensBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder>( + getTokens(), + getParentForChildren(), + isClean()); + tokens_ = null; + } + return tokensBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray warnings_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> warningsBuilder_; + /** + * optional .weaviate.v1.TextArray warnings = 4; + * @return Whether the warnings field is set. + */ + public boolean hasWarnings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + * @return The warnings. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getWarnings() { + if (warningsBuilder_ == null) { + return warnings_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : warnings_; + } else { + return warningsBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + public Builder setWarnings(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + warnings_ = value; + } else { + warningsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + public Builder setWarnings( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) { + if (warningsBuilder_ == null) { + warnings_ = builderForValue.build(); + } else { + warningsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + public Builder mergeWarnings(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (warningsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + warnings_ != null && + warnings_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) { + getWarningsBuilder().mergeFrom(value); + } else { + warnings_ = value; + } + } else { + warningsBuilder_.mergeFrom(value); + } + if (warnings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + public Builder clearWarnings() { + bitField0_ = (bitField0_ & ~0x00000008); + warnings_ = null; + if (warningsBuilder_ != null) { + warningsBuilder_.dispose(); + warningsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getWarningsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getWarningsFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getWarningsOrBuilder() { + if (warningsBuilder_ != null) { + return warningsBuilder_.getMessageOrBuilder(); + } else { + return warnings_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : warnings_; + } + } + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> + getWarningsFieldBuilder() { + if (warningsBuilder_ == null) { + warningsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>( + getWarnings(), + getParentForChildren(), + isClean()); + warnings_ = null; + } + return warningsBuilder_; + } + @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.GenerativeCohereMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeCohereMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeDummyMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDummyMetadata) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code weaviate.v1.GenerativeDummyMetadata} + */ + public static final class GenerativeDummyMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDummyMetadata) + GenerativeDummyMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeDummyMetadata.newBuilder() to construct. + private GenerativeDummyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeDummyMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeDummyMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata 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.GenerativeDummyMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDummyMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + @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.GenerativeDummyMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDummyMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeDummyMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeMistralMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMistralMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + boolean hasUsage(); + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + * @return The usage. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getUsage(); + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder getUsageOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeMistralMetadata} + */ + public static final class GenerativeMistralMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeMistralMetadata) + GenerativeMistralMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeMistralMetadata.newBuilder() to construct. + private GenerativeMistralMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeMistralMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeMistralMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder.class); + } + + public interface UsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMistralMetadata.Usage) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + boolean hasPromptTokens(); + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + long getPromptTokens(); + + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + boolean hasCompletionTokens(); + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + long getCompletionTokens(); + + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + boolean hasTotalTokens(); + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + long getTotalTokens(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeMistralMetadata.Usage} + */ + public static final class Usage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeMistralMetadata.Usage) + UsageOrBuilder { + private static final long serialVersionUID = 0L; + // Use Usage.newBuilder() to construct. + private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Usage() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Usage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder.class); + } + + private int bitField0_; + public static final int PROMPT_TOKENS_FIELD_NUMBER = 1; + private long promptTokens_ = 0L; + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + @java.lang.Override + public boolean hasPromptTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + @java.lang.Override + public long getPromptTokens() { + return promptTokens_; + } + + public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2; + private long completionTokens_ = 0L; + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + @java.lang.Override + public boolean hasCompletionTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + @java.lang.Override + public long getCompletionTokens() { + return completionTokens_; + } + + public static final int TOTAL_TOKENS_FIELD_NUMBER = 3; + private long totalTokens_ = 0L; + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; + } + + 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.writeInt64(1, promptTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, totalTokens_); + } + 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 + .computeInt64Size(1, promptTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, totalTokens_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage) obj; + + if (hasPromptTokens() != other.hasPromptTokens()) return false; + if (hasPromptTokens()) { + if (getPromptTokens() + != other.getPromptTokens()) return false; + } + if (hasCompletionTokens() != other.hasCompletionTokens()) return false; + if (hasCompletionTokens()) { + if (getCompletionTokens() + != other.getCompletionTokens()) return false; + } + if (hasTotalTokens() != other.hasTotalTokens()) return false; + if (hasTotalTokens()) { + if (getTotalTokens() + != other.getTotalTokens()) 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 (hasPromptTokens()) { + hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPromptTokens()); + } + if (hasCompletionTokens()) { + hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompletionTokens()); + } + if (hasTotalTokens()) { + hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalTokens()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage 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.GenerativeMistralMetadata.Usage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeMistralMetadata.Usage) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokens_ = 0L; + completionTokens_ = 0L; + totalTokens_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokens_ = promptTokens_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.completionTokens_ = completionTokens_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokens_ = totalTokens_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance()) return this; + if (other.hasPromptTokens()) { + setPromptTokens(other.getPromptTokens()); + } + if (other.hasCompletionTokens()) { + setCompletionTokens(other.getCompletionTokens()); + } + if (other.hasTotalTokens()) { + setTotalTokens(other.getTotalTokens()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + promptTokens_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + completionTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + totalTokens_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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 long promptTokens_ ; + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + @java.lang.Override + public boolean hasPromptTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + @java.lang.Override + public long getPromptTokens() { + return promptTokens_; + } + /** + * optional int64 prompt_tokens = 1; + * @param value The promptTokens to set. + * @return This builder for chaining. + */ + public Builder setPromptTokens(long value) { + + promptTokens_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional int64 prompt_tokens = 1; + * @return This builder for chaining. + */ + public Builder clearPromptTokens() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokens_ = 0L; + onChanged(); + return this; + } + + private long completionTokens_ ; + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + @java.lang.Override + public boolean hasCompletionTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + @java.lang.Override + public long getCompletionTokens() { + return completionTokens_; + } + /** + * optional int64 completion_tokens = 2; + * @param value The completionTokens to set. + * @return This builder for chaining. + */ + public Builder setCompletionTokens(long value) { + + completionTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 completion_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearCompletionTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + completionTokens_ = 0L; + onChanged(); + return this; + } + + private long totalTokens_ ; + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; + } + /** + * optional int64 total_tokens = 3; + * @param value The totalTokens to set. + * @return This builder for chaining. + */ + public Builder setTotalTokens(long value) { + + totalTokens_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int64 total_tokens = 3; + * @return This builder for chaining. + */ + public Builder clearTotalTokens() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokens_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeMistralMetadata.Usage) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeMistralMetadata.Usage) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Usage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int USAGE_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage usage_; + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + @java.lang.Override + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + * @return The usage. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getUsage() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_; + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder getUsageOrBuilder() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_; + } + + 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.writeMessage(1, getUsage()); + } + 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 + .computeMessageSize(1, getUsage()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) obj; + + if (hasUsage() != other.hasUsage()) return false; + if (hasUsage()) { + if (!getUsage() + .equals(other.getUsage())) 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 (hasUsage()) { + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + getUsage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata 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.GenerativeMistralMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeMistralMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUsageFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.usage_ = usageBuilder_ == null + ? usage_ + : usageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance()) return this; + if (other.hasUsage()) { + mergeUsage(other.getUsage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUsageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage usage_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder> usageBuilder_; + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + * @return The usage. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getUsage() { + if (usageBuilder_ == null) { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_; + } else { + return usageBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage value) { + if (usageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usage_ = value; + } else { + usageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + public Builder setUsage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder builderForValue) { + if (usageBuilder_ == null) { + usage_ = builderForValue.build(); + } else { + usageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage value) { + if (usageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + usage_ != null && + usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance()) { + getUsageBuilder().mergeFrom(value); + } else { + usage_ = value; + } + } else { + usageBuilder_.mergeFrom(value); + } + if (usage_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + public Builder clearUsage() { + bitField0_ = (bitField0_ & ~0x00000001); + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder getUsageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUsageFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder getUsageOrBuilder() { + if (usageBuilder_ != null) { + return usageBuilder_.getMessageOrBuilder(); + } else { + return usage_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_; + } + } + /** + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder> + getUsageFieldBuilder() { + if (usageBuilder_ == null) { + usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder>( + getUsage(), + getParentForChildren(), + isClean()); + usage_ = null; + } + return usageBuilder_; + } + @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.GenerativeMistralMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeMistralMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeMistralMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeOctoAIMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOctoAIMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + boolean hasUsage(); + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * @return The usage. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getUsage(); + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder getUsageOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeOctoAIMetadata} + */ + public static final class GenerativeOctoAIMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOctoAIMetadata) + GenerativeOctoAIMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeOctoAIMetadata.newBuilder() to construct. + private GenerativeOctoAIMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeOctoAIMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeOctoAIMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder.class); + } + + public interface UsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOctoAIMetadata.Usage) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + boolean hasPromptTokens(); + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + long getPromptTokens(); + + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + boolean hasCompletionTokens(); + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + long getCompletionTokens(); + + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + boolean hasTotalTokens(); + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + long getTotalTokens(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeOctoAIMetadata.Usage} + */ + public static final class Usage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOctoAIMetadata.Usage) + UsageOrBuilder { + private static final long serialVersionUID = 0L; + // Use Usage.newBuilder() to construct. + private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Usage() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Usage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder.class); + } + + private int bitField0_; + public static final int PROMPT_TOKENS_FIELD_NUMBER = 1; + private long promptTokens_ = 0L; + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + @java.lang.Override + public boolean hasPromptTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + @java.lang.Override + public long getPromptTokens() { + return promptTokens_; + } + + public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2; + private long completionTokens_ = 0L; + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + @java.lang.Override + public boolean hasCompletionTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + @java.lang.Override + public long getCompletionTokens() { + return completionTokens_; + } + + public static final int TOTAL_TOKENS_FIELD_NUMBER = 3; + private long totalTokens_ = 0L; + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; + } + + 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.writeInt64(1, promptTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, totalTokens_); + } + 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 + .computeInt64Size(1, promptTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, totalTokens_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage) obj; + + if (hasPromptTokens() != other.hasPromptTokens()) return false; + if (hasPromptTokens()) { + if (getPromptTokens() + != other.getPromptTokens()) return false; + } + if (hasCompletionTokens() != other.hasCompletionTokens()) return false; + if (hasCompletionTokens()) { + if (getCompletionTokens() + != other.getCompletionTokens()) return false; + } + if (hasTotalTokens() != other.hasTotalTokens()) return false; + if (hasTotalTokens()) { + if (getTotalTokens() + != other.getTotalTokens()) 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 (hasPromptTokens()) { + hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPromptTokens()); + } + if (hasCompletionTokens()) { + hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompletionTokens()); + } + if (hasTotalTokens()) { + hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalTokens()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage 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.GenerativeOctoAIMetadata.Usage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOctoAIMetadata.Usage) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokens_ = 0L; + completionTokens_ = 0L; + totalTokens_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokens_ = promptTokens_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.completionTokens_ = completionTokens_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokens_ = totalTokens_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance()) return this; + if (other.hasPromptTokens()) { + setPromptTokens(other.getPromptTokens()); + } + if (other.hasCompletionTokens()) { + setCompletionTokens(other.getCompletionTokens()); + } + if (other.hasTotalTokens()) { + setTotalTokens(other.getTotalTokens()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + promptTokens_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + completionTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + totalTokens_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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 long promptTokens_ ; + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + @java.lang.Override + public boolean hasPromptTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + @java.lang.Override + public long getPromptTokens() { + return promptTokens_; + } + /** + * optional int64 prompt_tokens = 1; + * @param value The promptTokens to set. + * @return This builder for chaining. + */ + public Builder setPromptTokens(long value) { + + promptTokens_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional int64 prompt_tokens = 1; + * @return This builder for chaining. + */ + public Builder clearPromptTokens() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokens_ = 0L; + onChanged(); + return this; + } + + private long completionTokens_ ; + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + @java.lang.Override + public boolean hasCompletionTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + @java.lang.Override + public long getCompletionTokens() { + return completionTokens_; + } + /** + * optional int64 completion_tokens = 2; + * @param value The completionTokens to set. + * @return This builder for chaining. + */ + public Builder setCompletionTokens(long value) { + + completionTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 completion_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearCompletionTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + completionTokens_ = 0L; + onChanged(); + return this; + } + + private long totalTokens_ ; + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; + } + /** + * optional int64 total_tokens = 3; + * @param value The totalTokens to set. + * @return This builder for chaining. + */ + public Builder setTotalTokens(long value) { + + totalTokens_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int64 total_tokens = 3; + * @return This builder for chaining. + */ + public Builder clearTotalTokens() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokens_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOctoAIMetadata.Usage) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAIMetadata.Usage) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Usage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int USAGE_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage usage_; + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + @java.lang.Override + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * @return The usage. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getUsage() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_; + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder getUsageOrBuilder() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_; + } + + 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.writeMessage(1, getUsage()); + } + 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 + .computeMessageSize(1, getUsage()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) obj; + + if (hasUsage() != other.hasUsage()) return false; + if (hasUsage()) { + if (!getUsage() + .equals(other.getUsage())) 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 (hasUsage()) { + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + getUsage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata 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.GenerativeOctoAIMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOctoAIMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUsageFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.usage_ = usageBuilder_ == null + ? usage_ + : usageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance()) return this; + if (other.hasUsage()) { + mergeUsage(other.getUsage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUsageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage usage_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder> usageBuilder_; + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * @return The usage. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getUsage() { + if (usageBuilder_ == null) { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_; + } else { + return usageBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage value) { + if (usageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usage_ = value; + } else { + usageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + public Builder setUsage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder builderForValue) { + if (usageBuilder_ == null) { + usage_ = builderForValue.build(); + } else { + usageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage value) { + if (usageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + usage_ != null && + usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance()) { + getUsageBuilder().mergeFrom(value); + } else { + usage_ = value; + } + } else { + usageBuilder_.mergeFrom(value); + } + if (usage_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + public Builder clearUsage() { + bitField0_ = (bitField0_ & ~0x00000001); + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder getUsageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUsageFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder getUsageOrBuilder() { + if (usageBuilder_ != null) { + return usageBuilder_.getMessageOrBuilder(); + } else { + return usage_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_; + } + } + /** + * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder> + getUsageFieldBuilder() { + if (usageBuilder_ == null) { + usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder>( + getUsage(), + getParentForChildren(), + isClean()); + usage_ = null; + } + return usageBuilder_; + } + @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.GenerativeOctoAIMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAIMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeOctoAIMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeOllamaMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOllamaMetadata) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code weaviate.v1.GenerativeOllamaMetadata} + */ + public static final class GenerativeOllamaMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOllamaMetadata) + GenerativeOllamaMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeOllamaMetadata.newBuilder() to construct. + private GenerativeOllamaMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeOllamaMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeOllamaMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata 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.GenerativeOllamaMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOllamaMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + @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.GenerativeOllamaMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOllamaMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeOllamaMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeOpenAIMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOpenAIMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + boolean hasUsage(); + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + * @return The usage. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getUsage(); + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder getUsageOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeOpenAIMetadata} + */ + public static final class GenerativeOpenAIMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAIMetadata) + GenerativeOpenAIMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeOpenAIMetadata.newBuilder() to construct. + private GenerativeOpenAIMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeOpenAIMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeOpenAIMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder.class); + } + + public interface UsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOpenAIMetadata.Usage) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + boolean hasPromptTokens(); + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + long getPromptTokens(); + + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + boolean hasCompletionTokens(); + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + long getCompletionTokens(); + + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + boolean hasTotalTokens(); + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + long getTotalTokens(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeOpenAIMetadata.Usage} + */ + public static final class Usage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAIMetadata.Usage) + UsageOrBuilder { + private static final long serialVersionUID = 0L; + // Use Usage.newBuilder() to construct. + private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Usage() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Usage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder.class); + } + + private int bitField0_; + public static final int PROMPT_TOKENS_FIELD_NUMBER = 1; + private long promptTokens_ = 0L; + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + @java.lang.Override + public boolean hasPromptTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + @java.lang.Override + public long getPromptTokens() { + return promptTokens_; + } + + public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2; + private long completionTokens_ = 0L; + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + @java.lang.Override + public boolean hasCompletionTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + @java.lang.Override + public long getCompletionTokens() { + return completionTokens_; + } + + public static final int TOTAL_TOKENS_FIELD_NUMBER = 3; + private long totalTokens_ = 0L; + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; + } + + 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.writeInt64(1, promptTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, totalTokens_); + } + 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 + .computeInt64Size(1, promptTokens_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, totalTokens_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage) obj; + + if (hasPromptTokens() != other.hasPromptTokens()) return false; + if (hasPromptTokens()) { + if (getPromptTokens() + != other.getPromptTokens()) return false; + } + if (hasCompletionTokens() != other.hasCompletionTokens()) return false; + if (hasCompletionTokens()) { + if (getCompletionTokens() + != other.getCompletionTokens()) return false; + } + if (hasTotalTokens() != other.hasTotalTokens()) return false; + if (hasTotalTokens()) { + if (getTotalTokens() + != other.getTotalTokens()) 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 (hasPromptTokens()) { + hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPromptTokens()); + } + if (hasCompletionTokens()) { + hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompletionTokens()); + } + if (hasTotalTokens()) { + hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalTokens()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage 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.GenerativeOpenAIMetadata.Usage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOpenAIMetadata.Usage) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokens_ = 0L; + completionTokens_ = 0L; + totalTokens_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokens_ = promptTokens_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.completionTokens_ = completionTokens_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokens_ = totalTokens_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance()) return this; + if (other.hasPromptTokens()) { + setPromptTokens(other.getPromptTokens()); + } + if (other.hasCompletionTokens()) { + setCompletionTokens(other.getCompletionTokens()); + } + if (other.hasTotalTokens()) { + setTotalTokens(other.getTotalTokens()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + promptTokens_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + completionTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + totalTokens_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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 long promptTokens_ ; + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + @java.lang.Override + public boolean hasPromptTokens() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + @java.lang.Override + public long getPromptTokens() { + return promptTokens_; + } + /** + * optional int64 prompt_tokens = 1; + * @param value The promptTokens to set. + * @return This builder for chaining. + */ + public Builder setPromptTokens(long value) { + + promptTokens_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional int64 prompt_tokens = 1; + * @return This builder for chaining. + */ + public Builder clearPromptTokens() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokens_ = 0L; + onChanged(); + return this; + } + + private long completionTokens_ ; + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + @java.lang.Override + public boolean hasCompletionTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + @java.lang.Override + public long getCompletionTokens() { + return completionTokens_; + } + /** + * optional int64 completion_tokens = 2; + * @param value The completionTokens to set. + * @return This builder for chaining. + */ + public Builder setCompletionTokens(long value) { + + completionTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 completion_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearCompletionTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + completionTokens_ = 0L; + onChanged(); + return this; + } + + private long totalTokens_ ; + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; + } + /** + * optional int64 total_tokens = 3; + * @param value The totalTokens to set. + * @return This builder for chaining. + */ + public Builder setTotalTokens(long value) { + + totalTokens_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int64 total_tokens = 3; + * @return This builder for chaining. + */ + public Builder clearTotalTokens() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokens_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOpenAIMetadata.Usage) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOpenAIMetadata.Usage) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Usage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int USAGE_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage usage_; + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + @java.lang.Override + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + * @return The usage. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getUsage() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance() : usage_; + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder getUsageOrBuilder() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance() : usage_; + } + + 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.writeMessage(1, getUsage()); + } + 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 + .computeMessageSize(1, getUsage()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) obj; + + if (hasUsage() != other.hasUsage()) return false; + if (hasUsage()) { + if (!getUsage() + .equals(other.getUsage())) 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 (hasUsage()) { + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + getUsage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata 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.GenerativeOpenAIMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOpenAIMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUsageFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.usage_ = usageBuilder_ == null + ? usage_ + : usageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance()) return this; + if (other.hasUsage()) { + mergeUsage(other.getUsage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getUsageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage usage_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder> usageBuilder_; + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + * @return The usage. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getUsage() { + if (usageBuilder_ == null) { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance() : usage_; + } else { + return usageBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage value) { + if (usageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usage_ = value; + } else { + usageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + public Builder setUsage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder builderForValue) { + if (usageBuilder_ == null) { + usage_ = builderForValue.build(); + } else { + usageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage value) { + if (usageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + usage_ != null && + usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance()) { + getUsageBuilder().mergeFrom(value); + } else { + usage_ = value; + } + } else { + usageBuilder_.mergeFrom(value); + } + if (usage_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + public Builder clearUsage() { + bitField0_ = (bitField0_ & ~0x00000001); + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder getUsageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUsageFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder getUsageOrBuilder() { + if (usageBuilder_ != null) { + return usageBuilder_.getMessageOrBuilder(); + } else { + return usage_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance() : usage_; + } + } + /** + * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder> + getUsageFieldBuilder() { + if (usageBuilder_ == null) { + usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder>( + getUsage(), + getParentForChildren(), + isClean()); + usage_ = null; + } + return usageBuilder_; + } + @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.GenerativeOpenAIMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOpenAIMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeOpenAIMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeGoogleMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * @return The metadata. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getMetadata(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder getMetadataOrBuilder(); + + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * @return Whether the usageMetadata field is set. + */ + boolean hasUsageMetadata(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * @return The usageMetadata. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getUsageMetadata(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder getUsageMetadataOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata} + */ + public static final class GenerativeGoogleMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata) + GenerativeGoogleMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeGoogleMetadata.newBuilder() to construct. + private GenerativeGoogleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeGoogleMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeGoogleMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder.class); + } + + public interface TokenCountOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.TokenCount) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int64 total_billable_characters = 1; + * @return Whether the totalBillableCharacters field is set. + */ + boolean hasTotalBillableCharacters(); + /** + * optional int64 total_billable_characters = 1; + * @return The totalBillableCharacters. + */ + long getTotalBillableCharacters(); + + /** + * optional int64 total_tokens = 2; + * @return Whether the totalTokens field is set. + */ + boolean hasTotalTokens(); + /** + * optional int64 total_tokens = 2; + * @return The totalTokens. + */ + long getTotalTokens(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.TokenCount} + */ + public static final class TokenCount extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.TokenCount) + TokenCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use TokenCount.newBuilder() to construct. + private TokenCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TokenCount() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TokenCount(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder.class); + } + + private int bitField0_; + public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 1; + private long totalBillableCharacters_ = 0L; + /** + * optional int64 total_billable_characters = 1; + * @return Whether the totalBillableCharacters field is set. + */ + @java.lang.Override + public boolean hasTotalBillableCharacters() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 total_billable_characters = 1; + * @return The totalBillableCharacters. + */ + @java.lang.Override + public long getTotalBillableCharacters() { + return totalBillableCharacters_; + } + + public static final int TOTAL_TOKENS_FIELD_NUMBER = 2; + private long totalTokens_ = 0L; + /** + * optional int64 total_tokens = 2; + * @return Whether the totalTokens field is set. + */ + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 total_tokens = 2; + * @return The totalTokens. + */ + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; + } + + 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.writeInt64(1, totalBillableCharacters_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, totalTokens_); + } + 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 + .computeInt64Size(1, totalBillableCharacters_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, totalTokens_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount) obj; + + if (hasTotalBillableCharacters() != other.hasTotalBillableCharacters()) return false; + if (hasTotalBillableCharacters()) { + if (getTotalBillableCharacters() + != other.getTotalBillableCharacters()) return false; + } + if (hasTotalTokens() != other.hasTotalTokens()) return false; + if (hasTotalTokens()) { + if (getTotalTokens() + != other.getTotalTokens()) 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 (hasTotalBillableCharacters()) { + hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalBillableCharacters()); + } + if (hasTotalTokens()) { + hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalTokens()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount 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.GenerativeGoogleMetadata.TokenCount} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata.TokenCount) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalBillableCharacters_ = 0L; + totalTokens_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalBillableCharacters_ = totalBillableCharacters_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalTokens_ = totalTokens_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance()) return this; + if (other.hasTotalBillableCharacters()) { + setTotalBillableCharacters(other.getTotalBillableCharacters()); + } + if (other.hasTotalTokens()) { + setTotalTokens(other.getTotalTokens()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalBillableCharacters_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + totalTokens_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 long totalBillableCharacters_ ; + /** + * optional int64 total_billable_characters = 1; + * @return Whether the totalBillableCharacters field is set. + */ + @java.lang.Override + public boolean hasTotalBillableCharacters() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 total_billable_characters = 1; + * @return The totalBillableCharacters. + */ + @java.lang.Override + public long getTotalBillableCharacters() { + return totalBillableCharacters_; + } + /** + * optional int64 total_billable_characters = 1; + * @param value The totalBillableCharacters to set. + * @return This builder for chaining. + */ + public Builder setTotalBillableCharacters(long value) { + + totalBillableCharacters_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional int64 total_billable_characters = 1; + * @return This builder for chaining. + */ + public Builder clearTotalBillableCharacters() { + bitField0_ = (bitField0_ & ~0x00000001); + totalBillableCharacters_ = 0L; + onChanged(); + return this; + } + + private long totalTokens_ ; + /** + * optional int64 total_tokens = 2; + * @return Whether the totalTokens field is set. + */ + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 total_tokens = 2; + * @return The totalTokens. + */ + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; + } + /** + * optional int64 total_tokens = 2; + * @param value The totalTokens to set. + * @return This builder for chaining. + */ + public Builder setTotalTokens(long value) { + + totalTokens_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 total_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearTotalTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + totalTokens_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.TokenCount) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.TokenCount) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokenMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * @return Whether the inputTokenCount field is set. + */ + boolean hasInputTokenCount(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * @return The inputTokenCount. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getInputTokenCount(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getInputTokenCountOrBuilder(); + + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * @return Whether the outputTokenCount field is set. + */ + boolean hasOutputTokenCount(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * @return The outputTokenCount. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getOutputTokenCount(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getOutputTokenCountOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.TokenMetadata} + */ + public static final class TokenMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata) + TokenMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TokenMetadata.newBuilder() to construct. + private TokenMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TokenMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TokenMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder.class); + } + + private int bitField0_; + public static final int INPUT_TOKEN_COUNT_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount inputTokenCount_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * @return Whether the inputTokenCount field is set. + */ + @java.lang.Override + public boolean hasInputTokenCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * @return The inputTokenCount. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getInputTokenCount() { + return inputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : inputTokenCount_; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getInputTokenCountOrBuilder() { + return inputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : inputTokenCount_; + } + + public static final int OUTPUT_TOKEN_COUNT_FIELD_NUMBER = 2; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount outputTokenCount_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * @return Whether the outputTokenCount field is set. + */ + @java.lang.Override + public boolean hasOutputTokenCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * @return The outputTokenCount. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getOutputTokenCount() { + return outputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : outputTokenCount_; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getOutputTokenCountOrBuilder() { + return outputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : outputTokenCount_; + } + + 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.writeMessage(1, getInputTokenCount()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getOutputTokenCount()); + } + 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 + .computeMessageSize(1, getInputTokenCount()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputTokenCount()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata) obj; + + if (hasInputTokenCount() != other.hasInputTokenCount()) return false; + if (hasInputTokenCount()) { + if (!getInputTokenCount() + .equals(other.getInputTokenCount())) return false; + } + if (hasOutputTokenCount() != other.hasOutputTokenCount()) return false; + if (hasOutputTokenCount()) { + if (!getOutputTokenCount() + .equals(other.getOutputTokenCount())) 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 (hasInputTokenCount()) { + hash = (37 * hash) + INPUT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getInputTokenCount().hashCode(); + } + if (hasOutputTokenCount()) { + hash = (37 * hash) + OUTPUT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getOutputTokenCount().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata 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.GenerativeGoogleMetadata.TokenMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInputTokenCountFieldBuilder(); + getOutputTokenCountFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputTokenCount_ = null; + if (inputTokenCountBuilder_ != null) { + inputTokenCountBuilder_.dispose(); + inputTokenCountBuilder_ = null; + } + outputTokenCount_ = null; + if (outputTokenCountBuilder_ != null) { + outputTokenCountBuilder_.dispose(); + outputTokenCountBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inputTokenCount_ = inputTokenCountBuilder_ == null + ? inputTokenCount_ + : inputTokenCountBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputTokenCount_ = outputTokenCountBuilder_ == null + ? outputTokenCount_ + : outputTokenCountBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance()) return this; + if (other.hasInputTokenCount()) { + mergeInputTokenCount(other.getInputTokenCount()); + } + if (other.hasOutputTokenCount()) { + mergeOutputTokenCount(other.getOutputTokenCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getInputTokenCountFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getOutputTokenCountFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount inputTokenCount_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder> inputTokenCountBuilder_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * @return Whether the inputTokenCount field is set. + */ + public boolean hasInputTokenCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * @return The inputTokenCount. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getInputTokenCount() { + if (inputTokenCountBuilder_ == null) { + return inputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : inputTokenCount_; + } else { + return inputTokenCountBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + public Builder setInputTokenCount(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount value) { + if (inputTokenCountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputTokenCount_ = value; + } else { + inputTokenCountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + public Builder setInputTokenCount( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder builderForValue) { + if (inputTokenCountBuilder_ == null) { + inputTokenCount_ = builderForValue.build(); + } else { + inputTokenCountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + public Builder mergeInputTokenCount(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount value) { + if (inputTokenCountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + inputTokenCount_ != null && + inputTokenCount_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance()) { + getInputTokenCountBuilder().mergeFrom(value); + } else { + inputTokenCount_ = value; + } + } else { + inputTokenCountBuilder_.mergeFrom(value); + } + if (inputTokenCount_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + public Builder clearInputTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + inputTokenCount_ = null; + if (inputTokenCountBuilder_ != null) { + inputTokenCountBuilder_.dispose(); + inputTokenCountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder getInputTokenCountBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getInputTokenCountFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getInputTokenCountOrBuilder() { + if (inputTokenCountBuilder_ != null) { + return inputTokenCountBuilder_.getMessageOrBuilder(); + } else { + return inputTokenCount_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : inputTokenCount_; + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder> + getInputTokenCountFieldBuilder() { + if (inputTokenCountBuilder_ == null) { + inputTokenCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder>( + getInputTokenCount(), + getParentForChildren(), + isClean()); + inputTokenCount_ = null; + } + return inputTokenCountBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount outputTokenCount_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder> outputTokenCountBuilder_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * @return Whether the outputTokenCount field is set. + */ + public boolean hasOutputTokenCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * @return The outputTokenCount. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getOutputTokenCount() { + if (outputTokenCountBuilder_ == null) { + return outputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : outputTokenCount_; + } else { + return outputTokenCountBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + public Builder setOutputTokenCount(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount value) { + if (outputTokenCountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputTokenCount_ = value; + } else { + outputTokenCountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + public Builder setOutputTokenCount( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder builderForValue) { + if (outputTokenCountBuilder_ == null) { + outputTokenCount_ = builderForValue.build(); + } else { + outputTokenCountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + public Builder mergeOutputTokenCount(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount value) { + if (outputTokenCountBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + outputTokenCount_ != null && + outputTokenCount_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance()) { + getOutputTokenCountBuilder().mergeFrom(value); + } else { + outputTokenCount_ = value; + } + } else { + outputTokenCountBuilder_.mergeFrom(value); + } + if (outputTokenCount_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + public Builder clearOutputTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + outputTokenCount_ = null; + if (outputTokenCountBuilder_ != null) { + outputTokenCountBuilder_.dispose(); + outputTokenCountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder getOutputTokenCountBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOutputTokenCountFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getOutputTokenCountOrBuilder() { + if (outputTokenCountBuilder_ != null) { + return outputTokenCountBuilder_.getMessageOrBuilder(); + } else { + return outputTokenCount_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : outputTokenCount_; + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder> + getOutputTokenCountFieldBuilder() { + if (outputTokenCountBuilder_ == null) { + outputTokenCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder>( + getOutputTokenCount(), + getParentForChildren(), + isClean()); + outputTokenCount_ = null; + } + return outputTokenCountBuilder_; + } + @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.GenerativeGoogleMetadata.TokenMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return Whether the tokenMetadata field is set. + */ + boolean hasTokenMetadata(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return The tokenMetadata. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getTokenMetadata(); + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder getTokenMetadataOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.Metadata} + */ + public static final class Metadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.Metadata) + MetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Metadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Metadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder.class); + } + + private int bitField0_; + public static final int TOKEN_METADATA_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata tokenMetadata_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return Whether the tokenMetadata field is set. + */ + @java.lang.Override + public boolean hasTokenMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return The tokenMetadata. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getTokenMetadata() { + return tokenMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance() : tokenMetadata_; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder getTokenMetadataOrBuilder() { + return tokenMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance() : tokenMetadata_; + } + + 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.writeMessage(1, getTokenMetadata()); + } + 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 + .computeMessageSize(1, getTokenMetadata()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata) obj; + + if (hasTokenMetadata() != other.hasTokenMetadata()) return false; + if (hasTokenMetadata()) { + if (!getTokenMetadata() + .equals(other.getTokenMetadata())) 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 (hasTokenMetadata()) { + hash = (37 * hash) + TOKEN_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTokenMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata 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.GenerativeGoogleMetadata.Metadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata.Metadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTokenMetadataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tokenMetadata_ = null; + if (tokenMetadataBuilder_ != null) { + tokenMetadataBuilder_.dispose(); + tokenMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tokenMetadata_ = tokenMetadataBuilder_ == null + ? tokenMetadata_ + : tokenMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance()) return this; + if (other.hasTokenMetadata()) { + mergeTokenMetadata(other.getTokenMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getTokenMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata tokenMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder> tokenMetadataBuilder_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return Whether the tokenMetadata field is set. + */ + public boolean hasTokenMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return The tokenMetadata. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getTokenMetadata() { + if (tokenMetadataBuilder_ == null) { + return tokenMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance() : tokenMetadata_; + } else { + return tokenMetadataBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + public Builder setTokenMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata value) { + if (tokenMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokenMetadata_ = value; + } else { + tokenMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + public Builder setTokenMetadata( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder builderForValue) { + if (tokenMetadataBuilder_ == null) { + tokenMetadata_ = builderForValue.build(); + } else { + tokenMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + public Builder mergeTokenMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata value) { + if (tokenMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + tokenMetadata_ != null && + tokenMetadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance()) { + getTokenMetadataBuilder().mergeFrom(value); + } else { + tokenMetadata_ = value; + } + } else { + tokenMetadataBuilder_.mergeFrom(value); + } + if (tokenMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + public Builder clearTokenMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + tokenMetadata_ = null; + if (tokenMetadataBuilder_ != null) { + tokenMetadataBuilder_.dispose(); + tokenMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder getTokenMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenMetadataFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder getTokenMetadataOrBuilder() { + if (tokenMetadataBuilder_ != null) { + return tokenMetadataBuilder_.getMessageOrBuilder(); + } else { + return tokenMetadata_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance() : tokenMetadata_; + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder> + getTokenMetadataFieldBuilder() { + if (tokenMetadataBuilder_ == null) { + tokenMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder>( + getTokenMetadata(), + getParentForChildren(), + isClean()); + tokenMetadata_ = null; + } + return tokenMetadataBuilder_; + } + @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.GenerativeGoogleMetadata.Metadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.Metadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UsageMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional int64 prompt_token_count = 1; + * @return Whether the promptTokenCount field is set. + */ + boolean hasPromptTokenCount(); + /** + * optional int64 prompt_token_count = 1; + * @return The promptTokenCount. + */ + long getPromptTokenCount(); + + /** + * optional int64 candidates_token_count = 2; + * @return Whether the candidatesTokenCount field is set. + */ + boolean hasCandidatesTokenCount(); + /** + * optional int64 candidates_token_count = 2; + * @return The candidatesTokenCount. + */ + long getCandidatesTokenCount(); + + /** + * optional int64 total_token_count = 3; + * @return Whether the totalTokenCount field is set. + */ + boolean hasTotalTokenCount(); + /** + * optional int64 total_token_count = 3; + * @return The totalTokenCount. + */ + long getTotalTokenCount(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.UsageMetadata} + */ + public static final class UsageMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) + UsageMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsageMetadata.newBuilder() to construct. + private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UsageMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UsageMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder.class); + } + + private int bitField0_; + public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1; + private long promptTokenCount_ = 0L; + /** + * optional int64 prompt_token_count = 1; + * @return Whether the promptTokenCount field is set. + */ + @java.lang.Override + public boolean hasPromptTokenCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 prompt_token_count = 1; + * @return The promptTokenCount. + */ + @java.lang.Override + public long getPromptTokenCount() { + return promptTokenCount_; + } + + public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2; + private long candidatesTokenCount_ = 0L; + /** + * optional int64 candidates_token_count = 2; + * @return Whether the candidatesTokenCount field is set. + */ + @java.lang.Override + public boolean hasCandidatesTokenCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 candidates_token_count = 2; + * @return The candidatesTokenCount. + */ + @java.lang.Override + public long getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3; + private long totalTokenCount_ = 0L; + /** + * optional int64 total_token_count = 3; + * @return Whether the totalTokenCount field is set. + */ + @java.lang.Override + public boolean hasTotalTokenCount() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 total_token_count = 3; + * @return The totalTokenCount. + */ + @java.lang.Override + public long getTotalTokenCount() { + return totalTokenCount_; + } + + 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.writeInt64(1, promptTokenCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, candidatesTokenCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, totalTokenCount_); + } + 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 + .computeInt64Size(1, promptTokenCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, candidatesTokenCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, totalTokenCount_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata) obj; + + if (hasPromptTokenCount() != other.hasPromptTokenCount()) return false; + if (hasPromptTokenCount()) { + if (getPromptTokenCount() + != other.getPromptTokenCount()) return false; + } + if (hasCandidatesTokenCount() != other.hasCandidatesTokenCount()) return false; + if (hasCandidatesTokenCount()) { + if (getCandidatesTokenCount() + != other.getCandidatesTokenCount()) return false; + } + if (hasTotalTokenCount() != other.hasTotalTokenCount()) return false; + if (hasTotalTokenCount()) { + if (getTotalTokenCount() + != other.getTotalTokenCount()) 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 (hasPromptTokenCount()) { + hash = (37 * hash) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPromptTokenCount()); + } + if (hasCandidatesTokenCount()) { + hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCandidatesTokenCount()); + } + if (hasTotalTokenCount()) { + hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalTokenCount()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata 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.GenerativeGoogleMetadata.UsageMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokenCount_ = 0L; + candidatesTokenCount_ = 0L; + totalTokenCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokenCount_ = promptTokenCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.candidatesTokenCount_ = candidatesTokenCount_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokenCount_ = totalTokenCount_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance()) return this; + if (other.hasPromptTokenCount()) { + setPromptTokenCount(other.getPromptTokenCount()); + } + if (other.hasCandidatesTokenCount()) { + setCandidatesTokenCount(other.getCandidatesTokenCount()); + } + if (other.hasTotalTokenCount()) { + setTotalTokenCount(other.getTotalTokenCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + promptTokenCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + candidatesTokenCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + totalTokenCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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 long promptTokenCount_ ; + /** + * optional int64 prompt_token_count = 1; + * @return Whether the promptTokenCount field is set. + */ + @java.lang.Override + public boolean hasPromptTokenCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int64 prompt_token_count = 1; + * @return The promptTokenCount. + */ + @java.lang.Override + public long getPromptTokenCount() { + return promptTokenCount_; + } + /** + * optional int64 prompt_token_count = 1; + * @param value The promptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setPromptTokenCount(long value) { + + promptTokenCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional int64 prompt_token_count = 1; + * @return This builder for chaining. + */ + public Builder clearPromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokenCount_ = 0L; + onChanged(); + return this; + } + + private long candidatesTokenCount_ ; + /** + * optional int64 candidates_token_count = 2; + * @return Whether the candidatesTokenCount field is set. + */ + @java.lang.Override + public boolean hasCandidatesTokenCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int64 candidates_token_count = 2; + * @return The candidatesTokenCount. + */ + @java.lang.Override + public long getCandidatesTokenCount() { + return candidatesTokenCount_; + } + /** + * optional int64 candidates_token_count = 2; + * @param value The candidatesTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCandidatesTokenCount(long value) { + + candidatesTokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int64 candidates_token_count = 2; + * @return This builder for chaining. + */ + public Builder clearCandidatesTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + candidatesTokenCount_ = 0L; + onChanged(); + return this; + } + + private long totalTokenCount_ ; + /** + * optional int64 total_token_count = 3; + * @return Whether the totalTokenCount field is set. + */ + @java.lang.Override + public boolean hasTotalTokenCount() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 total_token_count = 3; + * @return The totalTokenCount. + */ + @java.lang.Override + public long getTotalTokenCount() { + return totalTokenCount_; + } + /** + * optional int64 total_token_count = 3; + * @param value The totalTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTokenCount(long value) { + + totalTokenCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int64 total_token_count = 3; + * @return This builder for chaining. + */ + public Builder clearTotalTokenCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokenCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsageMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata metadata_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * @return The metadata. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getMetadata() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance() : metadata_; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance() : metadata_; + } + + public static final int USAGE_METADATA_FIELD_NUMBER = 2; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata usageMetadata_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * @return Whether the usageMetadata field is set. + */ + @java.lang.Override + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * @return The usageMetadata. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getUsageMetadata() { + return usageMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder getUsageMetadataOrBuilder() { + return usageMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_; + } + + 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.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUsageMetadata()); + } + 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 + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUsageMetadata()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) obj; + + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (hasUsageMetadata() != other.hasUsageMetadata()) return false; + if (hasUsageMetadata()) { + if (!getUsageMetadata() + .equals(other.getUsageMetadata())) 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 (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasUsageMetadata()) { + hash = (37 * hash) + USAGE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getUsageMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata 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.GenerativeGoogleMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getUsageMetadataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + usageMetadata_ = null; + if (usageMetadataBuilder_ != null) { + usageMetadataBuilder_.dispose(); + usageMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usageMetadata_ = usageMetadataBuilder_ == null + ? usageMetadata_ + : usageMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasUsageMetadata()) { + mergeUsageMetadata(other.getUsageMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUsageMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder> metadataBuilder_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * @return The metadata. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + public Builder setMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + public Builder setMetadata( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + public Builder mergeMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + metadata_ != null && + metadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance() : metadata_; + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata usageMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder> usageMetadataBuilder_; + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * @return Whether the usageMetadata field is set. + */ + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * @return The usageMetadata. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getUsageMetadata() { + if (usageMetadataBuilder_ == null) { + return usageMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_; + } else { + return usageMetadataBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + public Builder setUsageMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata value) { + if (usageMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usageMetadata_ = value; + } else { + usageMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + public Builder setUsageMetadata( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder builderForValue) { + if (usageMetadataBuilder_ == null) { + usageMetadata_ = builderForValue.build(); + } else { + usageMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + public Builder mergeUsageMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata value) { + if (usageMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + usageMetadata_ != null && + usageMetadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance()) { + getUsageMetadataBuilder().mergeFrom(value); + } else { + usageMetadata_ = value; + } + } else { + usageMetadataBuilder_.mergeFrom(value); + } + if (usageMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + public Builder clearUsageMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + usageMetadata_ = null; + if (usageMetadataBuilder_ != null) { + usageMetadataBuilder_.dispose(); + usageMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder getUsageMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUsageMetadataFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder getUsageMetadataOrBuilder() { + if (usageMetadataBuilder_ != null) { + return usageMetadataBuilder_.getMessageOrBuilder(); + } else { + return usageMetadata_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_; + } + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder> + getUsageMetadataFieldBuilder() { + if (usageMetadataBuilder_ == null) { + usageMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder>( + getUsageMetadata(), + getParentForChildren(), + isClean()); + usageMetadata_ = null; + } + return usageMetadataBuilder_; + } + @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.GenerativeGoogleMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeGoogleMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + * @return Whether the anthropic field is set. + */ + boolean hasAnthropic(); + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + * @return The anthropic. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getAnthropic(); + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder getAnthropicOrBuilder(); + + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + * @return Whether the anyscale field is set. + */ + boolean hasAnyscale(); + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + * @return The anyscale. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getAnyscale(); + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder getAnyscaleOrBuilder(); + + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + * @return Whether the aws field is set. + */ + boolean hasAws(); + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + * @return The aws. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getAws(); + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder getAwsOrBuilder(); + + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + * @return Whether the cohere field is set. + */ + boolean hasCohere(); + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + * @return The cohere. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getCohere(); + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder getCohereOrBuilder(); + + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + * @return Whether the dummy field is set. + */ + boolean hasDummy(); + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + * @return The dummy. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDummy(); + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder getDummyOrBuilder(); + + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + * @return Whether the mistral field is set. + */ + boolean hasMistral(); + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + * @return The mistral. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getMistral(); + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder getMistralOrBuilder(); + + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * @return Whether the octoai field is set. + */ + boolean hasOctoai(); + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * @return The octoai. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getOctoai(); + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder getOctoaiOrBuilder(); + + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * @return Whether the ollama field is set. + */ + boolean hasOllama(); + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * @return The ollama. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama(); + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder(); + + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * @return Whether the openai field is set. + */ + boolean hasOpenai(); + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * @return The openai. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai(); + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder(); + + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * @return Whether the google field is set. + */ + boolean hasGoogle(); + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * @return The google. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle(); + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder(); + + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.KindCase getKindCase(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeMetadata} + */ + public static final class GenerativeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeMetadata) + GenerativeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeMetadata.newBuilder() to construct. + private GenerativeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder.class); + } + + private int kindCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object kind_; + public enum KindCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ANTHROPIC(1), + ANYSCALE(2), + AWS(3), + COHERE(4), + DUMMY(5), + MISTRAL(6), + OCTOAI(7), + OLLAMA(8), + OPENAI(9), + GOOGLE(10), + KIND_NOT_SET(0); + private final int value; + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 1: return ANTHROPIC; + case 2: return ANYSCALE; + case 3: return AWS; + case 4: return COHERE; + case 5: return DUMMY; + case 6: return MISTRAL; + case 7: return OCTOAI; + case 8: return OLLAMA; + case 9: return OPENAI; + case 10: return GOOGLE; + case 0: return KIND_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public static final int ANTHROPIC_FIELD_NUMBER = 1; + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + * @return Whether the anthropic field is set. + */ + @java.lang.Override + public boolean hasAnthropic() { + return kindCase_ == 1; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + * @return The anthropic. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getAnthropic() { + if (kindCase_ == 1) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder getAnthropicOrBuilder() { + if (kindCase_ == 1) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance(); + } + + public static final int ANYSCALE_FIELD_NUMBER = 2; + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + * @return Whether the anyscale field is set. + */ + @java.lang.Override + public boolean hasAnyscale() { + return kindCase_ == 2; + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + * @return The anyscale. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getAnyscale() { + if (kindCase_ == 2) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder getAnyscaleOrBuilder() { + if (kindCase_ == 2) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); + } + + public static final int AWS_FIELD_NUMBER = 3; + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + * @return Whether the aws field is set. + */ + @java.lang.Override + public boolean hasAws() { + return kindCase_ == 3; + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + * @return The aws. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getAws() { + if (kindCase_ == 3) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder getAwsOrBuilder() { + if (kindCase_ == 3) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); + } + + public static final int COHERE_FIELD_NUMBER = 4; + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + * @return Whether the cohere field is set. + */ + @java.lang.Override + public boolean hasCohere() { + return kindCase_ == 4; + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + * @return The cohere. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getCohere() { + if (kindCase_ == 4) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder getCohereOrBuilder() { + if (kindCase_ == 4) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance(); + } + + public static final int DUMMY_FIELD_NUMBER = 5; + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + * @return Whether the dummy field is set. + */ + @java.lang.Override + public boolean hasDummy() { + return kindCase_ == 5; + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + * @return The dummy. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDummy() { + if (kindCase_ == 5) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder getDummyOrBuilder() { + if (kindCase_ == 5) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); + } + + public static final int MISTRAL_FIELD_NUMBER = 6; + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + * @return Whether the mistral field is set. + */ + @java.lang.Override + public boolean hasMistral() { + return kindCase_ == 6; + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + * @return The mistral. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getMistral() { + if (kindCase_ == 6) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder getMistralOrBuilder() { + if (kindCase_ == 6) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance(); + } + + public static final int OCTOAI_FIELD_NUMBER = 7; + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * @return Whether the octoai field is set. + */ + @java.lang.Override + public boolean hasOctoai() { + return kindCase_ == 7; + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * @return The octoai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getOctoai() { + if (kindCase_ == 7) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder getOctoaiOrBuilder() { + if (kindCase_ == 7) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + } + + public static final int OLLAMA_FIELD_NUMBER = 8; + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * @return Whether the ollama field is set. + */ + @java.lang.Override + public boolean hasOllama() { + return kindCase_ == 8; + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * @return The ollama. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama() { + if (kindCase_ == 8) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder() { + if (kindCase_ == 8) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + } + + public static final int OPENAI_FIELD_NUMBER = 9; + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * @return Whether the openai field is set. + */ + @java.lang.Override + public boolean hasOpenai() { + return kindCase_ == 9; + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * @return The openai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai() { + if (kindCase_ == 9) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder() { + if (kindCase_ == 9) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + } + + public static final int GOOGLE_FIELD_NUMBER = 10; + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * @return Whether the google field is set. + */ + @java.lang.Override + public boolean hasGoogle() { + return kindCase_ == 10; + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * @return The google. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle() { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder() { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.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 (kindCase_ == 1) { + output.writeMessage(1, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_); + } + if (kindCase_ == 2) { + output.writeMessage(2, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_); + } + if (kindCase_ == 3) { + output.writeMessage(3, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_); + } + if (kindCase_ == 4) { + output.writeMessage(4, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_); + } + if (kindCase_ == 5) { + output.writeMessage(5, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_); + } + if (kindCase_ == 6) { + output.writeMessage(6, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_); + } + if (kindCase_ == 7) { + output.writeMessage(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_); + } + if (kindCase_ == 8) { + output.writeMessage(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_); + } + if (kindCase_ == 9) { + output.writeMessage(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_); + } + if (kindCase_ == 10) { + output.writeMessage(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kindCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_); + } + if (kindCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_); + } + if (kindCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_); + } + if (kindCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_); + } + if (kindCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_); + } + if (kindCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_); + } + if (kindCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_); + } + if (kindCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_); + } + if (kindCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_); + } + if (kindCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata) obj; + + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 1: + if (!getAnthropic() + .equals(other.getAnthropic())) return false; + break; + case 2: + if (!getAnyscale() + .equals(other.getAnyscale())) return false; + break; + case 3: + if (!getAws() + .equals(other.getAws())) return false; + break; + case 4: + if (!getCohere() + .equals(other.getCohere())) return false; + break; + case 5: + if (!getDummy() + .equals(other.getDummy())) return false; + break; + case 6: + if (!getMistral() + .equals(other.getMistral())) return false; + break; + case 7: + if (!getOctoai() + .equals(other.getOctoai())) return false; + break; + case 8: + if (!getOllama() + .equals(other.getOllama())) return false; + break; + case 9: + if (!getOpenai() + .equals(other.getOpenai())) return false; + break; + case 10: + if (!getGoogle() + .equals(other.getGoogle())) 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 (kindCase_) { + case 1: + hash = (37 * hash) + ANTHROPIC_FIELD_NUMBER; + hash = (53 * hash) + getAnthropic().hashCode(); + break; + case 2: + hash = (37 * hash) + ANYSCALE_FIELD_NUMBER; + hash = (53 * hash) + getAnyscale().hashCode(); + break; + case 3: + hash = (37 * hash) + AWS_FIELD_NUMBER; + hash = (53 * hash) + getAws().hashCode(); + break; + case 4: + hash = (37 * hash) + COHERE_FIELD_NUMBER; + hash = (53 * hash) + getCohere().hashCode(); + break; + case 5: + hash = (37 * hash) + DUMMY_FIELD_NUMBER; + hash = (53 * hash) + getDummy().hashCode(); + break; + case 6: + hash = (37 * hash) + MISTRAL_FIELD_NUMBER; + hash = (53 * hash) + getMistral().hashCode(); + break; + case 7: + hash = (37 * hash) + OCTOAI_FIELD_NUMBER; + hash = (53 * hash) + getOctoai().hashCode(); + break; + case 8: + hash = (37 * hash) + OLLAMA_FIELD_NUMBER; + hash = (53 * hash) + getOllama().hashCode(); + break; + case 9: + hash = (37 * hash) + OPENAI_FIELD_NUMBER; + hash = (53 * hash) + getOpenai().hashCode(); + break; + case 10: + hash = (37 * hash) + GOOGLE_FIELD_NUMBER; + hash = (53 * hash) + getGoogle().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata 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.GenerativeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (anthropicBuilder_ != null) { + anthropicBuilder_.clear(); + } + if (anyscaleBuilder_ != null) { + anyscaleBuilder_.clear(); + } + if (awsBuilder_ != null) { + awsBuilder_.clear(); + } + if (cohereBuilder_ != null) { + cohereBuilder_.clear(); + } + if (dummyBuilder_ != null) { + dummyBuilder_.clear(); + } + if (mistralBuilder_ != null) { + mistralBuilder_.clear(); + } + if (octoaiBuilder_ != null) { + octoaiBuilder_.clear(); + } + if (ollamaBuilder_ != null) { + ollamaBuilder_.clear(); + } + if (openaiBuilder_ != null) { + openaiBuilder_.clear(); + } + if (googleBuilder_ != null) { + googleBuilder_.clear(); + } + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + if (kindCase_ == 1 && + anthropicBuilder_ != null) { + result.kind_ = anthropicBuilder_.build(); + } + if (kindCase_ == 2 && + anyscaleBuilder_ != null) { + result.kind_ = anyscaleBuilder_.build(); + } + if (kindCase_ == 3 && + awsBuilder_ != null) { + result.kind_ = awsBuilder_.build(); + } + if (kindCase_ == 4 && + cohereBuilder_ != null) { + result.kind_ = cohereBuilder_.build(); + } + if (kindCase_ == 5 && + dummyBuilder_ != null) { + result.kind_ = dummyBuilder_.build(); + } + if (kindCase_ == 6 && + mistralBuilder_ != null) { + result.kind_ = mistralBuilder_.build(); + } + if (kindCase_ == 7 && + octoaiBuilder_ != null) { + result.kind_ = octoaiBuilder_.build(); + } + if (kindCase_ == 8 && + ollamaBuilder_ != null) { + result.kind_ = ollamaBuilder_.build(); + } + if (kindCase_ == 9 && + openaiBuilder_ != null) { + result.kind_ = openaiBuilder_.build(); + } + if (kindCase_ == 10 && + googleBuilder_ != null) { + result.kind_ = googleBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance()) return this; + switch (other.getKindCase()) { + case ANTHROPIC: { + mergeAnthropic(other.getAnthropic()); + break; + } + case ANYSCALE: { + mergeAnyscale(other.getAnyscale()); + break; + } + case AWS: { + mergeAws(other.getAws()); + break; + } + case COHERE: { + mergeCohere(other.getCohere()); + break; + } + case DUMMY: { + mergeDummy(other.getDummy()); + break; + } + case MISTRAL: { + mergeMistral(other.getMistral()); + break; + } + case OCTOAI: { + mergeOctoai(other.getOctoai()); + break; + } + case OLLAMA: { + mergeOllama(other.getOllama()); + break; + } + case OPENAI: { + mergeOpenai(other.getOpenai()); + break; + } + case GOOGLE: { + mergeGoogle(other.getGoogle()); + break; + } + case KIND_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getAnthropicFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getAnyscaleFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getAwsFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getCohereFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getDummyFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getMistralFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getOctoaiFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 7; + break; + } // case 58 + case 66: { + input.readMessage( + getOllamaFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getOpenaiFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getGoogleFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 10; + break; + } // case 82 + 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 kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder> anthropicBuilder_; + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + * @return Whether the anthropic field is set. + */ + @java.lang.Override + public boolean hasAnthropic() { + return kindCase_ == 1; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + * @return The anthropic. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getAnthropic() { + if (anthropicBuilder_ == null) { + if (kindCase_ == 1) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 1) { + return anthropicBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + public Builder setAnthropic(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata value) { + if (anthropicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + anthropicBuilder_.setMessage(value); + } + kindCase_ = 1; + return this; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + public Builder setAnthropic( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder builderForValue) { + if (anthropicBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + anthropicBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 1; + return this; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + public Builder mergeAnthropic(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata value) { + if (anthropicBuilder_ == null) { + if (kindCase_ == 1 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 1) { + anthropicBuilder_.mergeFrom(value); + } else { + anthropicBuilder_.setMessage(value); + } + } + kindCase_ = 1; + return this; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + public Builder clearAnthropic() { + if (anthropicBuilder_ == null) { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + } + anthropicBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder getAnthropicBuilder() { + return getAnthropicFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder getAnthropicOrBuilder() { + if ((kindCase_ == 1) && (anthropicBuilder_ != null)) { + return anthropicBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 1) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder> + getAnthropicFieldBuilder() { + if (anthropicBuilder_ == null) { + if (!(kindCase_ == 1)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance(); + } + anthropicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 1; + onChanged(); + return anthropicBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder> anyscaleBuilder_; + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + * @return Whether the anyscale field is set. + */ + @java.lang.Override + public boolean hasAnyscale() { + return kindCase_ == 2; + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + * @return The anyscale. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getAnyscale() { + if (anyscaleBuilder_ == null) { + if (kindCase_ == 2) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 2) { + return anyscaleBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + public Builder setAnyscale(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata value) { + if (anyscaleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + anyscaleBuilder_.setMessage(value); + } + kindCase_ = 2; + return this; + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + public Builder setAnyscale( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder builderForValue) { + if (anyscaleBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + anyscaleBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 2; + return this; + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + public Builder mergeAnyscale(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata value) { + if (anyscaleBuilder_ == null) { + if (kindCase_ == 2 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 2) { + anyscaleBuilder_.mergeFrom(value); + } else { + anyscaleBuilder_.setMessage(value); + } + } + kindCase_ = 2; + return this; + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + public Builder clearAnyscale() { + if (anyscaleBuilder_ == null) { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + } + anyscaleBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder getAnyscaleBuilder() { + return getAnyscaleFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder getAnyscaleOrBuilder() { + if ((kindCase_ == 2) && (anyscaleBuilder_ != null)) { + return anyscaleBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 2) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder> + getAnyscaleFieldBuilder() { + if (anyscaleBuilder_ == null) { + if (!(kindCase_ == 2)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); + } + anyscaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 2; + onChanged(); + return anyscaleBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder> awsBuilder_; + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + * @return Whether the aws field is set. + */ + @java.lang.Override + public boolean hasAws() { + return kindCase_ == 3; + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + * @return The aws. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getAws() { + if (awsBuilder_ == null) { + if (kindCase_ == 3) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 3) { + return awsBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + public Builder setAws(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata value) { + if (awsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + awsBuilder_.setMessage(value); + } + kindCase_ = 3; + return this; + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + public Builder setAws( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder builderForValue) { + if (awsBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + awsBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 3; + return this; + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + public Builder mergeAws(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata value) { + if (awsBuilder_ == null) { + if (kindCase_ == 3 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 3) { + awsBuilder_.mergeFrom(value); + } else { + awsBuilder_.setMessage(value); + } + } + kindCase_ = 3; + return this; + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + public Builder clearAws() { + if (awsBuilder_ == null) { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + } + awsBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder getAwsBuilder() { + return getAwsFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder getAwsOrBuilder() { + if ((kindCase_ == 3) && (awsBuilder_ != null)) { + return awsBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 3) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeAWSMetadata aws = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder> + getAwsFieldBuilder() { + if (awsBuilder_ == null) { + if (!(kindCase_ == 3)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); + } + awsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 3; + onChanged(); + return awsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder> cohereBuilder_; + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + * @return Whether the cohere field is set. + */ + @java.lang.Override + public boolean hasCohere() { + return kindCase_ == 4; + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + * @return The cohere. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getCohere() { + if (cohereBuilder_ == null) { + if (kindCase_ == 4) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 4) { + return cohereBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + public Builder setCohere(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata value) { + if (cohereBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + cohereBuilder_.setMessage(value); + } + kindCase_ = 4; + return this; + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + public Builder setCohere( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder builderForValue) { + if (cohereBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + cohereBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 4; + return this; + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + public Builder mergeCohere(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata value) { + if (cohereBuilder_ == null) { + if (kindCase_ == 4 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 4) { + cohereBuilder_.mergeFrom(value); + } else { + cohereBuilder_.setMessage(value); + } + } + kindCase_ = 4; + return this; + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + public Builder clearCohere() { + if (cohereBuilder_ == null) { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + } + cohereBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder getCohereBuilder() { + return getCohereFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder getCohereOrBuilder() { + if ((kindCase_ == 4) && (cohereBuilder_ != null)) { + return cohereBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 4) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeCohereMetadata cohere = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder> + getCohereFieldBuilder() { + if (cohereBuilder_ == null) { + if (!(kindCase_ == 4)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance(); + } + cohereBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 4; + onChanged(); + return cohereBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder> dummyBuilder_; + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + * @return Whether the dummy field is set. + */ + @java.lang.Override + public boolean hasDummy() { + return kindCase_ == 5; + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + * @return The dummy. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDummy() { + if (dummyBuilder_ == null) { + if (kindCase_ == 5) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 5) { + return dummyBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + public Builder setDummy(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata value) { + if (dummyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + dummyBuilder_.setMessage(value); + } + kindCase_ = 5; + return this; + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + public Builder setDummy( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder builderForValue) { + if (dummyBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + dummyBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 5; + return this; + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + public Builder mergeDummy(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata value) { + if (dummyBuilder_ == null) { + if (kindCase_ == 5 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 5) { + dummyBuilder_.mergeFrom(value); + } else { + dummyBuilder_.setMessage(value); + } + } + kindCase_ = 5; + return this; + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + public Builder clearDummy() { + if (dummyBuilder_ == null) { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 5) { + kindCase_ = 0; + kind_ = null; + } + dummyBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder getDummyBuilder() { + return getDummyFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder getDummyOrBuilder() { + if ((kindCase_ == 5) && (dummyBuilder_ != null)) { + return dummyBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 5) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeDummyMetadata dummy = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder> + getDummyFieldBuilder() { + if (dummyBuilder_ == null) { + if (!(kindCase_ == 5)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); + } + dummyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 5; + onChanged(); + return dummyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder> mistralBuilder_; + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + * @return Whether the mistral field is set. + */ + @java.lang.Override + public boolean hasMistral() { + return kindCase_ == 6; + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + * @return The mistral. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getMistral() { + if (mistralBuilder_ == null) { + if (kindCase_ == 6) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 6) { + return mistralBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + public Builder setMistral(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata value) { + if (mistralBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + mistralBuilder_.setMessage(value); + } + kindCase_ = 6; + return this; + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + public Builder setMistral( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder builderForValue) { + if (mistralBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + mistralBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 6; + return this; + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + public Builder mergeMistral(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata value) { + if (mistralBuilder_ == null) { + if (kindCase_ == 6 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 6) { + mistralBuilder_.mergeFrom(value); + } else { + mistralBuilder_.setMessage(value); + } + } + kindCase_ = 6; + return this; + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + public Builder clearMistral() { + if (mistralBuilder_ == null) { + if (kindCase_ == 6) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 6) { + kindCase_ = 0; + kind_ = null; + } + mistralBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder getMistralBuilder() { + return getMistralFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder getMistralOrBuilder() { + if ((kindCase_ == 6) && (mistralBuilder_ != null)) { + return mistralBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 6) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeMistralMetadata mistral = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder> + getMistralFieldBuilder() { + if (mistralBuilder_ == null) { + if (!(kindCase_ == 6)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance(); + } + mistralBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 6; + onChanged(); + return mistralBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder> octoaiBuilder_; + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * @return Whether the octoai field is set. + */ + @java.lang.Override + public boolean hasOctoai() { + return kindCase_ == 7; + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * @return The octoai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getOctoai() { + if (octoaiBuilder_ == null) { + if (kindCase_ == 7) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 7) { + return octoaiBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + public Builder setOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata value) { + if (octoaiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + octoaiBuilder_.setMessage(value); + } + kindCase_ = 7; + return this; + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + public Builder setOctoai( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder builderForValue) { + if (octoaiBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + octoaiBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 7; + return this; + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + public Builder mergeOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata value) { + if (octoaiBuilder_ == null) { + if (kindCase_ == 7 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 7) { + octoaiBuilder_.mergeFrom(value); + } else { + octoaiBuilder_.setMessage(value); + } + } + kindCase_ = 7; + return this; + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + public Builder clearOctoai() { + if (octoaiBuilder_ == null) { + if (kindCase_ == 7) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 7) { + kindCase_ = 0; + kind_ = null; + } + octoaiBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder getOctoaiBuilder() { + return getOctoaiFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder getOctoaiOrBuilder() { + if ((kindCase_ == 7) && (octoaiBuilder_ != null)) { + return octoaiBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 7) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder> + getOctoaiFieldBuilder() { + if (octoaiBuilder_ == null) { + if (!(kindCase_ == 7)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + } + octoaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 7; + onChanged(); + return octoaiBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder> ollamaBuilder_; + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * @return Whether the ollama field is set. + */ + @java.lang.Override + public boolean hasOllama() { + return kindCase_ == 8; + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * @return The ollama. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama() { + if (ollamaBuilder_ == null) { + if (kindCase_ == 8) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 8) { + return ollamaBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + public Builder setOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata value) { + if (ollamaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + ollamaBuilder_.setMessage(value); + } + kindCase_ = 8; + return this; + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + public Builder setOllama( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder builderForValue) { + if (ollamaBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + ollamaBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 8; + return this; + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata value) { + if (ollamaBuilder_ == null) { + if (kindCase_ == 8 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 8) { + ollamaBuilder_.mergeFrom(value); + } else { + ollamaBuilder_.setMessage(value); + } + } + kindCase_ = 8; + return this; + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + public Builder clearOllama() { + if (ollamaBuilder_ == null) { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + } + ollamaBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder getOllamaBuilder() { + return getOllamaFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder() { + if ((kindCase_ == 8) && (ollamaBuilder_ != null)) { + return ollamaBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 8) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder> + getOllamaFieldBuilder() { + if (ollamaBuilder_ == null) { + if (!(kindCase_ == 8)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + } + ollamaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 8; + onChanged(); + return ollamaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder> openaiBuilder_; + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * @return Whether the openai field is set. + */ + @java.lang.Override + public boolean hasOpenai() { + return kindCase_ == 9; + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * @return The openai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai() { + if (openaiBuilder_ == null) { + if (kindCase_ == 9) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 9) { + return openaiBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + public Builder setOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata value) { + if (openaiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + openaiBuilder_.setMessage(value); + } + kindCase_ = 9; + return this; + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + public Builder setOpenai( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder builderForValue) { + if (openaiBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + openaiBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 9; + return this; + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata value) { + if (openaiBuilder_ == null) { + if (kindCase_ == 9 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 9) { + openaiBuilder_.mergeFrom(value); + } else { + openaiBuilder_.setMessage(value); + } + } + kindCase_ = 9; + return this; + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + public Builder clearOpenai() { + if (openaiBuilder_ == null) { + if (kindCase_ == 9) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 9) { + kindCase_ = 0; + kind_ = null; + } + openaiBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder getOpenaiBuilder() { + return getOpenaiFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder() { + if ((kindCase_ == 9) && (openaiBuilder_ != null)) { + return openaiBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 9) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder> + getOpenaiFieldBuilder() { + if (openaiBuilder_ == null) { + if (!(kindCase_ == 9)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + } + openaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 9; + onChanged(); + return openaiBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder> googleBuilder_; + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * @return Whether the google field is set. + */ + @java.lang.Override + public boolean hasGoogle() { + return kindCase_ == 10; + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * @return The google. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle() { + if (googleBuilder_ == null) { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 10) { + return googleBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + public Builder setGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata value) { + if (googleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + googleBuilder_.setMessage(value); + } + kindCase_ = 10; + return this; + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + public Builder setGoogle( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder builderForValue) { + if (googleBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + googleBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 10; + return this; + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata value) { + if (googleBuilder_ == null) { + if (kindCase_ == 10 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 10) { + googleBuilder_.mergeFrom(value); + } else { + googleBuilder_.setMessage(value); + } + } + kindCase_ = 10; + return this; + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + public Builder clearGoogle() { + if (googleBuilder_ == null) { + if (kindCase_ == 10) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 10) { + kindCase_ = 0; + kind_ = null; + } + googleBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder getGoogleBuilder() { + return getGoogleFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder() { + if ((kindCase_ == 10) && (googleBuilder_ != null)) { + return googleBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeGoogleMetadata google = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder> + getGoogleFieldBuilder() { + if (googleBuilder_ == null) { + if (!(kindCase_ == 10)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + } + googleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 10; + onChanged(); + return googleBuilder_; + } + @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.GenerativeMetadata) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeReply) + com.google.protobuf.MessageOrBuilder { + + /** + * string result = 1; + * @return The result. + */ + java.lang.String getResult(); + /** + * string result = 1; + * @return The bytes for result. + */ + com.google.protobuf.ByteString + getResultBytes(); + + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + * @return Whether the debug field is set. + */ + boolean hasDebug(); + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + * @return The debug. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDebug(); + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder getDebugOrBuilder(); + + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + * @return The metadata. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getMetadata(); + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder getMetadataOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeReply} + */ + public static final class GenerativeReply extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeReply) + GenerativeReplyOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeReply.newBuilder() to construct. + private GenerativeReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeReply() { + result_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeReply(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder.class); + } + + private int bitField0_; + public static final int RESULT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object result_ = ""; + /** + * string result = 1; + * @return The result. + */ + @java.lang.Override + public java.lang.String getResult() { + java.lang.Object ref = result_; + 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(); + result_ = s; + return s; + } + } + /** + * string result = 1; + * @return The bytes for result. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResultBytes() { + java.lang.Object ref = result_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + result_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEBUG_FIELD_NUMBER = 2; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug debug_; + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + * @return Whether the debug field is set. + */ + @java.lang.Override + public boolean hasDebug() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + * @return The debug. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDebug() { + return debug_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance() : debug_; + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder getDebugOrBuilder() { + return debug_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance() : debug_; + } + + public static final int METADATA_FIELD_NUMBER = 3; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata metadata_; + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + * @return The metadata. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getMetadata() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance() : metadata_; + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance() : metadata_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(result_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, result_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDebug()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(result_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, result_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDebug()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply) obj; + + if (!getResult() + .equals(other.getResult())) return false; + if (hasDebug() != other.hasDebug()) return false; + if (hasDebug()) { + if (!getDebug() + .equals(other.getDebug())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + if (hasDebug()) { + hash = (37 * hash) + DEBUG_FIELD_NUMBER; + hash = (53 * hash) + getDebug().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply 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.GenerativeReply} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeReply) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDebugFieldBuilder(); + getMetadataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = ""; + debug_ = null; + if (debugBuilder_ != null) { + debugBuilder_.dispose(); + debugBuilder_ = null; + } + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = result_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.debug_ = debugBuilder_ == null + ? debug_ + : debugBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance()) return this; + if (!other.getResult().isEmpty()) { + result_ = other.result_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDebug()) { + mergeDebug(other.getDebug()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + result_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDebugFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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 result_ = ""; + /** + * string result = 1; + * @return The result. + */ + public java.lang.String getResult() { + java.lang.Object ref = result_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + result_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string result = 1; + * @return The bytes for result. + */ + public com.google.protobuf.ByteString + getResultBytes() { + java.lang.Object ref = result_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + result_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string result = 1; + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + result_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string result = 1; + * @return This builder for chaining. + */ + public Builder clearResult() { + result_ = getDefaultInstance().getResult(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string result = 1; + * @param value The bytes for result to set. + * @return This builder for chaining. + */ + public Builder setResultBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + result_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug debug_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder> debugBuilder_; + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + * @return Whether the debug field is set. + */ + public boolean hasDebug() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + * @return The debug. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDebug() { + if (debugBuilder_ == null) { + return debug_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance() : debug_; + } else { + return debugBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + public Builder setDebug(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug value) { + if (debugBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + debug_ = value; + } else { + debugBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + public Builder setDebug( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder builderForValue) { + if (debugBuilder_ == null) { + debug_ = builderForValue.build(); + } else { + debugBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + public Builder mergeDebug(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug value) { + if (debugBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + debug_ != null && + debug_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance()) { + getDebugBuilder().mergeFrom(value); + } else { + debug_ = value; + } + } else { + debugBuilder_.mergeFrom(value); + } + if (debug_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + public Builder clearDebug() { + bitField0_ = (bitField0_ & ~0x00000002); + debug_ = null; + if (debugBuilder_ != null) { + debugBuilder_.dispose(); + debugBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder getDebugBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDebugFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder getDebugOrBuilder() { + if (debugBuilder_ != null) { + return debugBuilder_.getMessageOrBuilder(); + } else { + return debug_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance() : debug_; + } + } + /** + * optional .weaviate.v1.GenerativeDebug debug = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder> + getDebugFieldBuilder() { + if (debugBuilder_ == null) { + debugBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder>( + getDebug(), + getParentForChildren(), + isClean()); + debug_ = null; + } + return debugBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder> metadataBuilder_; + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + * @return The metadata. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + public Builder setMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + public Builder setMetadata( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + public Builder mergeMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + metadata_ != null && + metadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance() : metadata_; + } + } + /** + * optional .weaviate.v1.GenerativeMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @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.GenerativeReply) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeReply) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeReply parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeResult) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + java.util.List + getValuesList(); + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getValues(int index); + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + int getValuesCount(); + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + java.util.List + getValuesOrBuilderList(); + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getValuesOrBuilder( + int index); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeResult} + */ + public static final class GenerativeResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeResult) + GenerativeResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeResult.newBuilder() to construct. + private GenerativeResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeResult() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List values_; + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + @java.lang.Override + public java.util.List getValuesList() { + return values_; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + @java.lang.Override + public java.util.List + getValuesOrBuilderList() { + return values_; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getValues(int index) { + return values_.get(index); + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getValuesOrBuilder( + int index) { + return values_.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 < values_.size(); i++) { + output.writeMessage(1, values_.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 < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values_.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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult) obj; + + if (!getValuesList() + .equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult 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.GenerativeResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeResult) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult result) { + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance()) return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValuesFieldBuilder() : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply m = + input.readMessage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 10 + 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.util.List values_ = + java.util.Collections.emptyList(); + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder> valuesBuilder_; + + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder setValues( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder setValues( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder addValues(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder addValues( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder addValues( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder addValues( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder addAllValues( + java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder getValuesBuilder( + int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getValuesOrBuilder( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public java.util.List + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder addValuesBuilder( + int index) { + return getValuesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.GenerativeReply values = 1; + */ + public java.util.List + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder>( + values_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + values_ = null; + } + return valuesBuilder_; + } + @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.GenerativeResult) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeResult) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeDebugOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDebug) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string full_prompt = 1; + * @return Whether the fullPrompt field is set. + */ + boolean hasFullPrompt(); + /** + * optional string full_prompt = 1; + * @return The fullPrompt. + */ + java.lang.String getFullPrompt(); + /** + * optional string full_prompt = 1; + * @return The bytes for fullPrompt. + */ + com.google.protobuf.ByteString + getFullPromptBytes(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeDebug} + */ + public static final class GenerativeDebug extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDebug) + GenerativeDebugOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeDebug.newBuilder() to construct. + private GenerativeDebug(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeDebug() { + fullPrompt_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeDebug(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder.class); + } + + private int bitField0_; + public static final int FULL_PROMPT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object fullPrompt_ = ""; + /** + * optional string full_prompt = 1; + * @return Whether the fullPrompt field is set. + */ + @java.lang.Override + public boolean hasFullPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string full_prompt = 1; + * @return The fullPrompt. + */ + @java.lang.Override + public java.lang.String getFullPrompt() { + java.lang.Object ref = fullPrompt_; + 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(); + fullPrompt_ = s; + return s; + } + } + /** + * optional string full_prompt = 1; + * @return The bytes for fullPrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFullPromptBytes() { + java.lang.Object ref = fullPrompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullPrompt_); + } + 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, fullPrompt_); + } + 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug) obj; + + if (hasFullPrompt() != other.hasFullPrompt()) return false; + if (hasFullPrompt()) { + if (!getFullPrompt() + .equals(other.getFullPrompt())) 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 (hasFullPrompt()) { + hash = (37 * hash) + FULL_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getFullPrompt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug 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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug 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.GenerativeDebug} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDebug) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fullPrompt_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fullPrompt_ = fullPrompt_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance()) return this; + if (other.hasFullPrompt()) { + fullPrompt_ = other.fullPrompt_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + fullPrompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 fullPrompt_ = ""; + /** + * optional string full_prompt = 1; + * @return Whether the fullPrompt field is set. + */ + public boolean hasFullPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string full_prompt = 1; + * @return The fullPrompt. + */ + public java.lang.String getFullPrompt() { + java.lang.Object ref = fullPrompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fullPrompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string full_prompt = 1; + * @return The bytes for fullPrompt. + */ + public com.google.protobuf.ByteString + getFullPromptBytes() { + java.lang.Object ref = fullPrompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fullPrompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string full_prompt = 1; + * @param value The fullPrompt to set. + * @return This builder for chaining. + */ + public Builder setFullPrompt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fullPrompt_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string full_prompt = 1; + * @return This builder for chaining. + */ + public Builder clearFullPrompt() { + fullPrompt_ = getDefaultInstance().getFullPrompt(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string full_prompt = 1; + * @param value The bytes for fullPrompt to set. + * @return This builder for chaining. + */ + public Builder setFullPromptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fullPrompt_ = value; + bitField0_ |= 0x00000001; + 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.GenerativeDebug) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDebug) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeDebug parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeSearch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeSearch_Single_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeSearch_Single_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeSearch_Grouped_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeProvider_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeProvider_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeAnthropic_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeAnyscale_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeAnyscale_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeAWS_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeAWS_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeCohere_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeDummy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeDummy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeMistral_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeMistral_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeOctoAI_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeOctoAI_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeOllama_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeOpenAI_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeGoogle_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeDummyMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeOctoAIMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeOllamaMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeOpenAIMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeGoogleMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeReply_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeDebug_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\023v1/generative.proto\022\013weaviate.v1\032\rv1/b" + + "ase.proto\"\233\003\n\020GenerativeSearch\022\"\n\026single" + + "_response_prompt\030\001 \001(\tB\002\030\001\022!\n\025grouped_re" + + "sponse_task\030\002 \001(\tB\002\030\001\022\036\n\022grouped_propert" + + "ies\030\003 \003(\tB\002\030\001\0224\n\006single\030\004 \001(\0132$.weaviate" + + ".v1.GenerativeSearch.Single\0226\n\007grouped\030\005" + + " \001(\0132%.weaviate.v1.GenerativeSearch.Grou" + + "ped\032Y\n\006Single\022\016\n\006prompt\030\001 \001(\t\022\r\n\005debug\030\002" + + " \001(\010\0220\n\007queries\030\003 \003(\0132\037.weaviate.v1.Gene" + + "rativeProvider\032W\n\007Grouped\022\014\n\004task\030\001 \001(\t\022" + + "/\n\nproperties\030\002 \001(\0132\026.weaviate.v1.TextAr" + + "rayH\000\210\001\001B\r\n\013_properties\"\243\004\n\022GenerativePr" + + "ovider\022\027\n\017return_metadata\030\001 \001(\010\0225\n\tanthr" + + "opic\030\002 \001(\0132 .weaviate.v1.GenerativeAnthr" + + "opicH\000\0223\n\010anyscale\030\003 \001(\0132\037.weaviate.v1.G" + + "enerativeAnyscaleH\000\022)\n\003aws\030\004 \001(\0132\032.weavi" + + "ate.v1.GenerativeAWSH\000\022/\n\006cohere\030\005 \001(\0132\035" + + ".weaviate.v1.GenerativeCohereH\000\022-\n\005dummy" + + "\030\006 \001(\0132\034.weaviate.v1.GenerativeDummyH\000\0221" + + "\n\007mistral\030\007 \001(\0132\036.weaviate.v1.Generative" + + "MistralH\000\022/\n\006octoai\030\010 \001(\0132\035.weaviate.v1." + + "GenerativeOctoAIH\000\022/\n\006ollama\030\t \001(\0132\035.wea" + + "viate.v1.GenerativeOllamaH\000\022/\n\006openai\030\n " + + "\001(\0132\035.weaviate.v1.GenerativeOpenAIH\000\022/\n\006" + + "google\030\013 \001(\0132\035.weaviate.v1.GenerativeGoo" + + "gleH\000B\006\n\004kind\"\255\002\n\023GenerativeAnthropic\022\025\n" + + "\010base_url\030\001 \001(\tH\000\210\001\001\022\027\n\nmax_tokens\030\002 \001(\003" + + "H\001\210\001\001\022\022\n\005model\030\003 \001(\tH\002\210\001\001\022\030\n\013temperature" + + "\030\004 \001(\001H\003\210\001\001\022\022\n\005top_k\030\005 \001(\003H\004\210\001\001\022\022\n\005top_p" + + "\030\006 \001(\001H\005\210\001\001\0223\n\016stop_sequences\030\007 \001(\0132\026.we" + + "aviate.v1.TextArrayH\006\210\001\001B\013\n\t_base_urlB\r\n" + + "\013_max_tokensB\010\n\006_modelB\016\n\014_temperatureB\010" + + "\n\006_top_kB\010\n\006_top_pB\021\n\017_stop_sequences\"\200\001" + + "\n\022GenerativeAnyscale\022\025\n\010base_url\030\001 \001(\tH\000" + + "\210\001\001\022\022\n\005model\030\002 \001(\tH\001\210\001\001\022\030\n\013temperature\030\003" + + " \001(\001H\002\210\001\001B\013\n\t_base_urlB\010\n\006_modelB\016\n\014_tem" + + "perature\"W\n\rGenerativeAWS\022\022\n\005model\030\003 \001(\t" + + "H\000\210\001\001\022\030\n\013temperature\030\010 \001(\001H\001\210\001\001B\010\n\006_mode" + + "lB\016\n\014_temperature\"\204\003\n\020GenerativeCohere\022\025" + + "\n\010base_url\030\001 \001(\tH\000\210\001\001\022\036\n\021frequency_penal" + + "ty\030\002 \001(\001H\001\210\001\001\022\027\n\nmax_tokens\030\003 \001(\003H\002\210\001\001\022\022" + + "\n\005model\030\004 \001(\tH\003\210\001\001\022\016\n\001k\030\005 \001(\003H\004\210\001\001\022\016\n\001p\030" + + "\006 \001(\001H\005\210\001\001\022\035\n\020presence_penalty\030\007 \001(\001H\006\210\001" + + "\001\0223\n\016stop_sequences\030\010 \001(\0132\026.weaviate.v1." + + "TextArrayH\007\210\001\001\022\030\n\013temperature\030\t \001(\001H\010\210\001\001" + + "B\013\n\t_base_urlB\024\n\022_frequency_penaltyB\r\n\013_" + + "max_tokensB\010\n\006_modelB\004\n\002_kB\004\n\002_pB\023\n\021_pre" + + "sence_penaltyB\021\n\017_stop_sequencesB\016\n\014_tem" + + "perature\"\021\n\017GenerativeDummy\"\305\001\n\021Generati" + + "veMistral\022\025\n\010base_url\030\001 \001(\tH\000\210\001\001\022\027\n\nmax_" + + "tokens\030\002 \001(\003H\001\210\001\001\022\022\n\005model\030\003 \001(\tH\002\210\001\001\022\030\n" + + "\013temperature\030\004 \001(\001H\003\210\001\001\022\022\n\005top_p\030\005 \001(\001H\004" + + "\210\001\001B\013\n\t_base_urlB\r\n\013_max_tokensB\010\n\006_mode" + + "lB\016\n\014_temperatureB\010\n\006_top_p\"\332\001\n\020Generati" + + "veOctoAI\022\025\n\010base_url\030\001 \001(\tH\000\210\001\001\022\027\n\nmax_t" + + "okens\030\002 \001(\003H\001\210\001\001\022\022\n\005model\030\003 \001(\tH\002\210\001\001\022\016\n\001" + + "n\030\004 \001(\003H\003\210\001\001\022\030\n\013temperature\030\005 \001(\001H\004\210\001\001\022\022" + + "\n\005top_p\030\006 \001(\001H\005\210\001\001B\013\n\t_base_urlB\r\n\013_max_" + + "tokensB\010\n\006_modelB\004\n\002_nB\016\n\014_temperatureB\010" + + "\n\006_top_p\"\206\001\n\020GenerativeOllama\022\031\n\014api_end" + + "point\030\001 \001(\tH\000\210\001\001\022\022\n\005model\030\002 \001(\tH\001\210\001\001\022\030\n\013" + + "temperature\030\003 \001(\001H\002\210\001\001B\017\n\r_api_endpointB" + + "\010\n\006_modelB\016\n\014_temperature\"\231\003\n\020Generative" + + "OpenAI\022\036\n\021frequency_penalty\030\001 \001(\001H\000\210\001\001\022\026" + + "\n\tlog_probs\030\002 \001(\010H\001\210\001\001\022\027\n\nmax_tokens\030\003 \001" + + "(\003H\002\210\001\001\022\r\n\005model\030\004 \001(\t\022\016\n\001n\030\005 \001(\003H\003\210\001\001\022\035" + + "\n\020presence_penalty\030\006 \001(\001H\004\210\001\001\022)\n\004stop\030\007 " + + "\001(\0132\026.weaviate.v1.TextArrayH\005\210\001\001\022\030\n\013temp" + + "erature\030\010 \001(\001H\006\210\001\001\022\022\n\005top_p\030\t \001(\001H\007\210\001\001\022\032" + + "\n\rtop_log_probs\030\n \001(\003H\010\210\001\001B\024\n\022_frequency" + + "_penaltyB\014\n\n_log_probsB\r\n\013_max_tokensB\004\n" + + "\002_nB\023\n\021_presence_penaltyB\007\n\005_stopB\016\n\014_te" + + "mperatureB\010\n\006_top_pB\020\n\016_top_log_probs\"\360\002" + + "\n\020GenerativeGoogle\022\036\n\021frequency_penalty\030" + + "\001 \001(\001H\000\210\001\001\022\027\n\nmax_tokens\030\002 \001(\003H\001\210\001\001\022\022\n\005m" + + "odel\030\003 \001(\tH\002\210\001\001\022\035\n\020presence_penalty\030\004 \001(" + + "\001H\003\210\001\001\022\030\n\013temperature\030\005 \001(\001H\004\210\001\001\022\022\n\005top_" + + "k\030\006 \001(\003H\005\210\001\001\022\022\n\005top_p\030\007 \001(\001H\006\210\001\001\0223\n\016stop" + + "_sequences\030\010 \001(\0132\026.weaviate.v1.TextArray" + + "H\007\210\001\001B\024\n\022_frequency_penaltyB\r\n\013_max_toke" + + "nsB\010\n\006_modelB\023\n\021_presence_penaltyB\016\n\014_te" + + "mperatureB\010\n\006_top_kB\010\n\006_top_pB\021\n\017_stop_s" + + "equences\"\222\001\n\033GenerativeAnthropicMetadata" + + "\022=\n\005usage\030\001 \001(\0132..weaviate.v1.Generative" + + "AnthropicMetadata.Usage\0324\n\005Usage\022\024\n\014inpu" + + "t_tokens\030\001 \001(\003\022\025\n\routput_tokens\030\002 \001(\003\"\034\n" + + "\032GenerativeAnyscaleMetadata\"\027\n\025Generativ" + + "eAWSMetadata\"\234\006\n\030GenerativeCohereMetadat" + + "a\022J\n\013api_version\030\001 \001(\01320.weaviate.v1.Gen" + + "erativeCohereMetadata.ApiVersionH\000\210\001\001\022L\n" + + "\014billed_units\030\002 \001(\01321.weaviate.v1.Genera" + + "tiveCohereMetadata.BilledUnitsH\001\210\001\001\022A\n\006t" + + "okens\030\003 \001(\0132,.weaviate.v1.GenerativeCohe" + + "reMetadata.TokensH\002\210\001\001\022-\n\010warnings\030\004 \001(\013" + + "2\026.weaviate.v1.TextArrayH\003\210\001\001\032\216\001\n\nApiVer" + + "sion\022\024\n\007version\030\001 \001(\tH\000\210\001\001\022\032\n\ris_depreca" + + "ted\030\002 \001(\010H\001\210\001\001\022\034\n\017is_experimental\030\003 \001(\010H" + + "\002\210\001\001B\n\n\010_versionB\020\n\016_is_deprecatedB\022\n\020_i" + + "s_experimental\032\305\001\n\013BilledUnits\022\031\n\014input_" + + "tokens\030\001 \001(\001H\000\210\001\001\022\032\n\routput_tokens\030\002 \001(\001" + + "H\001\210\001\001\022\031\n\014search_units\030\003 \001(\001H\002\210\001\001\022\034\n\017clas" + + "sifications\030\004 \001(\001H\003\210\001\001B\017\n\r_input_tokensB" + + "\020\n\016_output_tokensB\017\n\r_search_unitsB\022\n\020_c" + + "lassifications\032b\n\006Tokens\022\031\n\014input_tokens" + + "\030\001 \001(\001H\000\210\001\001\022\032\n\routput_tokens\030\002 \001(\001H\001\210\001\001B" + + "\017\n\r_input_tokensB\020\n\016_output_tokensB\016\n\014_a" + + "pi_versionB\017\n\r_billed_unitsB\t\n\007_tokensB\013" + + "\n\t_warnings\"\031\n\027GenerativeDummyMetadata\"\201" + + "\002\n\031GenerativeMistralMetadata\022@\n\005usage\030\001 " + + "\001(\0132,.weaviate.v1.GenerativeMistralMetad" + + "ata.UsageH\000\210\001\001\032\227\001\n\005Usage\022\032\n\rprompt_token" + + "s\030\001 \001(\003H\000\210\001\001\022\036\n\021completion_tokens\030\002 \001(\003H" + + "\001\210\001\001\022\031\n\014total_tokens\030\003 \001(\003H\002\210\001\001B\020\n\016_prom" + + "pt_tokensB\024\n\022_completion_tokensB\017\n\r_tota" + + "l_tokensB\010\n\006_usage\"\377\001\n\030GenerativeOctoAIM" + + "etadata\022?\n\005usage\030\001 \001(\0132+.weaviate.v1.Gen" + + "erativeOctoAIMetadata.UsageH\000\210\001\001\032\227\001\n\005Usa" + + "ge\022\032\n\rprompt_tokens\030\001 \001(\003H\000\210\001\001\022\036\n\021comple" + + "tion_tokens\030\002 \001(\003H\001\210\001\001\022\031\n\014total_tokens\030\003" + + " \001(\003H\002\210\001\001B\020\n\016_prompt_tokensB\024\n\022_completi" + + "on_tokensB\017\n\r_total_tokensB\010\n\006_usage\"\032\n\030" + + "GenerativeOllamaMetadata\"\377\001\n\030GenerativeO" + + "penAIMetadata\022?\n\005usage\030\001 \001(\0132+.weaviate." + + "v1.GenerativeOpenAIMetadata.UsageH\000\210\001\001\032\227" + + "\001\n\005Usage\022\032\n\rprompt_tokens\030\001 \001(\003H\000\210\001\001\022\036\n\021" + + "completion_tokens\030\002 \001(\003H\001\210\001\001\022\031\n\014total_to" + + "kens\030\003 \001(\003H\002\210\001\001B\020\n\016_prompt_tokensB\024\n\022_co" + + "mpletion_tokensB\017\n\r_total_tokensB\010\n\006_usa" + + "ge\"\350\006\n\030GenerativeGoogleMetadata\022E\n\010metad" + + "ata\030\001 \001(\0132..weaviate.v1.GenerativeGoogle" + + "Metadata.MetadataH\000\210\001\001\022P\n\016usage_metadata" + + "\030\002 \001(\01323.weaviate.v1.GenerativeGoogleMet" + + "adata.UsageMetadataH\001\210\001\001\032~\n\nTokenCount\022&" + + "\n\031total_billable_characters\030\001 \001(\003H\000\210\001\001\022\031" + + "\n\014total_tokens\030\002 \001(\003H\001\210\001\001B\034\n\032_total_bill" + + "able_charactersB\017\n\r_total_tokens\032\341\001\n\rTok" + + "enMetadata\022P\n\021input_token_count\030\001 \001(\01320." + + "weaviate.v1.GenerativeGoogleMetadata.Tok" + + "enCountH\000\210\001\001\022Q\n\022output_token_count\030\002 \001(\013" + + "20.weaviate.v1.GenerativeGoogleMetadata." + + "TokenCountH\001\210\001\001B\024\n\022_input_token_countB\025\n" + + "\023_output_token_count\032o\n\010Metadata\022P\n\016toke" + + "n_metadata\030\001 \001(\01323.weaviate.v1.Generativ" + + "eGoogleMetadata.TokenMetadataH\000\210\001\001B\021\n\017_t" + + "oken_metadata\032\275\001\n\rUsageMetadata\022\037\n\022promp" + + "t_token_count\030\001 \001(\003H\000\210\001\001\022#\n\026candidates_t" + + "oken_count\030\002 \001(\003H\001\210\001\001\022\036\n\021total_token_cou" + + "nt\030\003 \001(\003H\002\210\001\001B\025\n\023_prompt_token_countB\031\n\027" + + "_candidates_token_countB\024\n\022_total_token_" + + "countB\013\n\t_metadataB\021\n\017_usage_metadata\"\332\004" + + "\n\022GenerativeMetadata\022=\n\tanthropic\030\001 \001(\0132" + + "(.weaviate.v1.GenerativeAnthropicMetadat" + + "aH\000\022;\n\010anyscale\030\002 \001(\0132\'.weaviate.v1.Gene" + + "rativeAnyscaleMetadataH\000\0221\n\003aws\030\003 \001(\0132\"." + + "weaviate.v1.GenerativeAWSMetadataH\000\0227\n\006c" + + "ohere\030\004 \001(\0132%.weaviate.v1.GenerativeCohe" + + "reMetadataH\000\0225\n\005dummy\030\005 \001(\0132$.weaviate.v" + + "1.GenerativeDummyMetadataH\000\0229\n\007mistral\030\006" + + " \001(\0132&.weaviate.v1.GenerativeMistralMeta" + + "dataH\000\0227\n\006octoai\030\007 \001(\0132%.weaviate.v1.Gen" + + "erativeOctoAIMetadataH\000\0227\n\006ollama\030\010 \001(\0132" + + "%.weaviate.v1.GenerativeOllamaMetadataH\000" + + "\0227\n\006openai\030\t \001(\0132%.weaviate.v1.Generativ" + + "eOpenAIMetadataH\000\0227\n\006google\030\n \001(\0132%.weav" + + "iate.v1.GenerativeGoogleMetadataH\000B\006\n\004ki" + + "nd\"\242\001\n\017GenerativeReply\022\016\n\006result\030\001 \001(\t\0220" + + "\n\005debug\030\002 \001(\0132\034.weaviate.v1.GenerativeDe" + + "bugH\000\210\001\001\0226\n\010metadata\030\003 \001(\0132\037.weaviate.v1" + + ".GenerativeMetadataH\001\210\001\001B\010\n\006_debugB\013\n\t_m" + + "etadata\"@\n\020GenerativeResult\022,\n\006values\030\001 " + + "\003(\0132\034.weaviate.v1.GenerativeReply\";\n\017Gen" + + "erativeDebug\022\030\n\013full_prompt\030\001 \001(\tH\000\210\001\001B\016" + + "\n\014_full_promptBt\n#io.weaviate.client.grp" + + "c.protocol.v1B\027WeaviateProtoGenerativeZ4" + + "github.com/weaviate/weaviate/grpc/genera" + + "ted;protocolb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.getDescriptor(), + }); + internal_static_weaviate_v1_GenerativeSearch_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeSearch_descriptor, + new java.lang.String[] { "SingleResponsePrompt", "GroupedResponseTask", "GroupedProperties", "Single", "Grouped", }); + internal_static_weaviate_v1_GenerativeSearch_Single_descriptor = + internal_static_weaviate_v1_GenerativeSearch_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeSearch_Single_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeSearch_Single_descriptor, + new java.lang.String[] { "Prompt", "Debug", "Queries", }); + internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor = + internal_static_weaviate_v1_GenerativeSearch_descriptor.getNestedTypes().get(1); + internal_static_weaviate_v1_GenerativeSearch_Grouped_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor, + new java.lang.String[] { "Task", "Properties", "Properties", }); + internal_static_weaviate_v1_GenerativeProvider_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_weaviate_v1_GenerativeProvider_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeProvider_descriptor, + new java.lang.String[] { "ReturnMetadata", "Anthropic", "Anyscale", "Aws", "Cohere", "Dummy", "Mistral", "Octoai", "Ollama", "Openai", "Google", "Kind", }); + internal_static_weaviate_v1_GenerativeAnthropic_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeAnthropic_descriptor, + new java.lang.String[] { "BaseUrl", "MaxTokens", "Model", "Temperature", "TopK", "TopP", "StopSequences", "BaseUrl", "MaxTokens", "Model", "Temperature", "TopK", "TopP", "StopSequences", }); + internal_static_weaviate_v1_GenerativeAnyscale_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_weaviate_v1_GenerativeAnyscale_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeAnyscale_descriptor, + new java.lang.String[] { "BaseUrl", "Model", "Temperature", "BaseUrl", "Model", "Temperature", }); + internal_static_weaviate_v1_GenerativeAWS_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_weaviate_v1_GenerativeAWS_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeAWS_descriptor, + new java.lang.String[] { "Model", "Temperature", "Model", "Temperature", }); + internal_static_weaviate_v1_GenerativeCohere_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeCohere_descriptor, + new java.lang.String[] { "BaseUrl", "FrequencyPenalty", "MaxTokens", "Model", "K", "P", "PresencePenalty", "StopSequences", "Temperature", "BaseUrl", "FrequencyPenalty", "MaxTokens", "Model", "K", "P", "PresencePenalty", "StopSequences", "Temperature", }); + internal_static_weaviate_v1_GenerativeDummy_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_weaviate_v1_GenerativeDummy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeDummy_descriptor, + new java.lang.String[] { }); + internal_static_weaviate_v1_GenerativeMistral_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_weaviate_v1_GenerativeMistral_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeMistral_descriptor, + new java.lang.String[] { "BaseUrl", "MaxTokens", "Model", "Temperature", "TopP", "BaseUrl", "MaxTokens", "Model", "Temperature", "TopP", }); + internal_static_weaviate_v1_GenerativeOctoAI_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_weaviate_v1_GenerativeOctoAI_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeOctoAI_descriptor, + new java.lang.String[] { "BaseUrl", "MaxTokens", "Model", "N", "Temperature", "TopP", "BaseUrl", "MaxTokens", "Model", "N", "Temperature", "TopP", }); + internal_static_weaviate_v1_GenerativeOllama_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeOllama_descriptor, + new java.lang.String[] { "ApiEndpoint", "Model", "Temperature", "ApiEndpoint", "Model", "Temperature", }); + internal_static_weaviate_v1_GenerativeOpenAI_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeOpenAI_descriptor, + new java.lang.String[] { "FrequencyPenalty", "LogProbs", "MaxTokens", "Model", "N", "PresencePenalty", "Stop", "Temperature", "TopP", "TopLogProbs", "FrequencyPenalty", "LogProbs", "MaxTokens", "N", "PresencePenalty", "Stop", "Temperature", "TopP", "TopLogProbs", }); + internal_static_weaviate_v1_GenerativeGoogle_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeGoogle_descriptor, + new java.lang.String[] { "FrequencyPenalty", "MaxTokens", "Model", "PresencePenalty", "Temperature", "TopK", "TopP", "StopSequences", "FrequencyPenalty", "MaxTokens", "Model", "PresencePenalty", "Temperature", "TopK", "TopP", "StopSequences", }); + internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor, + new java.lang.String[] { "Usage", }); + internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor = + internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor, + new java.lang.String[] { "InputTokens", "OutputTokens", }); + internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor, + new java.lang.String[] { }); + internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor, + new java.lang.String[] { }); + internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor, + new java.lang.String[] { "ApiVersion", "BilledUnits", "Tokens", "Warnings", "ApiVersion", "BilledUnits", "Tokens", "Warnings", }); + internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor = + internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor, + new java.lang.String[] { "Version", "IsDeprecated", "IsExperimental", "Version", "IsDeprecated", "IsExperimental", }); + internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor = + internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor.getNestedTypes().get(1); + internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor, + new java.lang.String[] { "InputTokens", "OutputTokens", "SearchUnits", "Classifications", "InputTokens", "OutputTokens", "SearchUnits", "Classifications", }); + internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor = + internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor.getNestedTypes().get(2); + internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor, + new java.lang.String[] { "InputTokens", "OutputTokens", "InputTokens", "OutputTokens", }); + internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_weaviate_v1_GenerativeDummyMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor, + new java.lang.String[] { }); + internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor, + new java.lang.String[] { "Usage", "Usage", }); + internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor = + internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor, + new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", "PromptTokens", "CompletionTokens", "TotalTokens", }); + internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_weaviate_v1_GenerativeOctoAIMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor, + new java.lang.String[] { "Usage", "Usage", }); + internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor = + internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor, + new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", "PromptTokens", "CompletionTokens", "TotalTokens", }); + internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_weaviate_v1_GenerativeOllamaMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor, + new java.lang.String[] { }); + internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_weaviate_v1_GenerativeOpenAIMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor, + new java.lang.String[] { "Usage", "Usage", }); + internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor = + internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor, + new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", "PromptTokens", "CompletionTokens", "TotalTokens", }); + internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_weaviate_v1_GenerativeGoogleMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor, + new java.lang.String[] { "Metadata", "UsageMetadata", "Metadata", "UsageMetadata", }); + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor = + internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor, + new java.lang.String[] { "TotalBillableCharacters", "TotalTokens", "TotalBillableCharacters", "TotalTokens", }); + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor = + internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor.getNestedTypes().get(1); + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor, + new java.lang.String[] { "InputTokenCount", "OutputTokenCount", "InputTokenCount", "OutputTokenCount", }); + internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor = + internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor.getNestedTypes().get(2); + internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor, + new java.lang.String[] { "TokenMetadata", "TokenMetadata", }); + internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor = + internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor.getNestedTypes().get(3); + internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor, + new java.lang.String[] { "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", }); + internal_static_weaviate_v1_GenerativeMetadata_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_weaviate_v1_GenerativeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeMetadata_descriptor, + new java.lang.String[] { "Anthropic", "Anyscale", "Aws", "Cohere", "Dummy", "Mistral", "Octoai", "Ollama", "Openai", "Google", "Kind", }); + internal_static_weaviate_v1_GenerativeReply_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeReply_descriptor, + new java.lang.String[] { "Result", "Debug", "Metadata", "Debug", "Metadata", }); + internal_static_weaviate_v1_GenerativeResult_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_weaviate_v1_GenerativeResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeResult_descriptor, + new java.lang.String[] { "Values", }); + internal_static_weaviate_v1_GenerativeDebug_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeDebug_descriptor, + new java.lang.String[] { "FullPrompt", "FullPrompt", }); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoSearchGet.java b/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoSearchGet.java index 1394a6cf..516d0669 100644 --- a/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoSearchGet.java +++ b/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoSearchGet.java @@ -554,11 +554,11 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SortByOrBuilder getSo * optional .weaviate.v1.GenerativeSearch generative = 60; * @return The generative. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getGenerative(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getGenerative(); /** * optional .weaviate.v1.GenerativeSearch generative = 60; */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder getGenerativeOrBuilder(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder getGenerativeOrBuilder(); /** * optional .weaviate.v1.Rerank rerank = 61; @@ -578,16 +578,24 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SortByOrBuilder getSo /** * bool uses_123_api = 100 [deprecated = true]; * @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated. - * See v1/search_get.proto;l=50 + * See v1/search_get.proto;l=51 * @return The uses123Api. */ @java.lang.Deprecated boolean getUses123Api(); /** - * bool uses_125_api = 101; + * bool uses_125_api = 101 [deprecated = true]; + * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated. + * See v1/search_get.proto;l=52 * @return The uses125Api. */ - boolean getUses125Api(); + @java.lang.Deprecated boolean getUses125Api(); + + /** + * bool uses_127_api = 102; + * @return The uses127Api. + */ + boolean getUses127Api(); } /** * Protobuf type {@code weaviate.v1.SearchRequest} @@ -1301,7 +1309,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearchO } public static final int GENERATIVE_FIELD_NUMBER = 60; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch generative_; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch generative_; /** * optional .weaviate.v1.GenerativeSearch generative = 60; * @return Whether the generative field is set. @@ -1315,15 +1323,15 @@ public boolean hasGenerative() { * @return The generative. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getGenerative() { - return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance() : generative_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getGenerative() { + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance() : generative_; } /** * optional .weaviate.v1.GenerativeSearch generative = 60; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder getGenerativeOrBuilder() { - return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance() : generative_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder getGenerativeOrBuilder() { + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance() : generative_; } public static final int RERANK_FIELD_NUMBER = 61; @@ -1357,7 +1365,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde /** * bool uses_123_api = 100 [deprecated = true]; * @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated. - * See v1/search_get.proto;l=50 + * See v1/search_get.proto;l=51 * @return The uses123Api. */ @java.lang.Override @@ -1368,14 +1376,27 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde public static final int USES_125_API_FIELD_NUMBER = 101; private boolean uses125Api_ = false; /** - * bool uses_125_api = 101; + * bool uses_125_api = 101 [deprecated = true]; + * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated. + * See v1/search_get.proto;l=52 * @return The uses125Api. */ @java.lang.Override - public boolean getUses125Api() { + @java.lang.Deprecated public boolean getUses125Api() { return uses125Api_; } + public static final int USES_127_API_FIELD_NUMBER = 102; + private boolean uses127Api_ = false; + /** + * bool uses_127_api = 102; + * @return The uses127Api. + */ + @java.lang.Override + public boolean getUses127Api() { + return uses127Api_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1471,6 +1492,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (uses125Api_ != false) { output.writeBool(101, uses125Api_); } + if (uses127Api_ != false) { + output.writeBool(102, uses127Api_); + } getUnknownFields().writeTo(output); } @@ -1585,6 +1609,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(101, uses125Api_); } + if (uses127Api_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(102, uses127Api_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1707,6 +1735,8 @@ public boolean equals(final java.lang.Object obj) { != other.getUses123Api()) return false; if (getUses125Api() != other.getUses125Api()) return false; + if (getUses127Api() + != other.getUses127Api()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1812,6 +1842,9 @@ public int hashCode() { hash = (37 * hash) + USES_125_API_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUses125Api()); + hash = (37 * hash) + USES_127_API_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUses127Api()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2067,6 +2100,7 @@ public Builder clear() { } uses123Api_ = false; uses125Api_ = false; + uses127Api_ = false; return this; } @@ -2244,6 +2278,9 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSear if (((from_bitField0_ & 0x04000000) != 0)) { result.uses125Api_ = uses125Api_; } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.uses127Api_ = uses127Api_; + } result.bitField0_ |= to_bitField0_; } @@ -2401,6 +2438,9 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch if (other.getUses125Api() != false) { setUses125Api(other.getUses125Api()); } + if (other.getUses127Api() != false) { + setUses127Api(other.getUses127Api()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2604,6 +2644,11 @@ public Builder mergeFrom( bitField0_ |= 0x04000000; break; } // case 808 + case 816: { + uses127Api_ = input.readBool(); + bitField0_ |= 0x08000000; + break; + } // case 816 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -5244,9 +5289,9 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearchO return nearImuBuilder_; } - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch generative_; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch generative_; private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder> generativeBuilder_; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder> generativeBuilder_; /** * optional .weaviate.v1.GenerativeSearch generative = 60; * @return Whether the generative field is set. @@ -5258,9 +5303,9 @@ public boolean hasGenerative() { * optional .weaviate.v1.GenerativeSearch generative = 60; * @return The generative. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getGenerative() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getGenerative() { if (generativeBuilder_ == null) { - return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance() : generative_; + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance() : generative_; } else { return generativeBuilder_.getMessage(); } @@ -5268,7 +5313,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSear /** * optional .weaviate.v1.GenerativeSearch generative = 60; */ - public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch value) { + public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch value) { if (generativeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5285,7 +5330,7 @@ public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSe * optional .weaviate.v1.GenerativeSearch generative = 60; */ public Builder setGenerative( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder builderForValue) { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder builderForValue) { if (generativeBuilder_ == null) { generative_ = builderForValue.build(); } else { @@ -5298,11 +5343,11 @@ public Builder setGenerative( /** * optional .weaviate.v1.GenerativeSearch generative = 60; */ - public Builder mergeGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch value) { + public Builder mergeGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch value) { if (generativeBuilder_ == null) { if (((bitField0_ & 0x00800000) != 0) && generative_ != null && - generative_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance()) { + generative_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance()) { getGenerativeBuilder().mergeFrom(value); } else { generative_ = value; @@ -5332,7 +5377,7 @@ public Builder clearGenerative() { /** * optional .weaviate.v1.GenerativeSearch generative = 60; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder getGenerativeBuilder() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder getGenerativeBuilder() { bitField0_ |= 0x00800000; onChanged(); return getGenerativeFieldBuilder().getBuilder(); @@ -5340,23 +5385,23 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSear /** * optional .weaviate.v1.GenerativeSearch generative = 60; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder getGenerativeOrBuilder() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder getGenerativeOrBuilder() { if (generativeBuilder_ != null) { return generativeBuilder_.getMessageOrBuilder(); } else { return generative_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance() : generative_; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance() : generative_; } } /** * optional .weaviate.v1.GenerativeSearch generative = 60; */ private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder> + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder> getGenerativeFieldBuilder() { if (generativeBuilder_ == null) { generativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder>( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder>( getGenerative(), getParentForChildren(), isClean()); @@ -5490,7 +5535,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde /** * bool uses_123_api = 100 [deprecated = true]; * @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated. - * See v1/search_get.proto;l=50 + * See v1/search_get.proto;l=51 * @return The uses123Api. */ @java.lang.Override @@ -5500,7 +5545,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde /** * bool uses_123_api = 100 [deprecated = true]; * @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated. - * See v1/search_get.proto;l=50 + * See v1/search_get.proto;l=51 * @param value The uses123Api to set. * @return This builder for chaining. */ @@ -5514,7 +5559,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde /** * bool uses_123_api = 100 [deprecated = true]; * @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated. - * See v1/search_get.proto;l=50 + * See v1/search_get.proto;l=51 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearUses123Api() { @@ -5526,19 +5571,23 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde private boolean uses125Api_ ; /** - * bool uses_125_api = 101; + * bool uses_125_api = 101 [deprecated = true]; + * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated. + * See v1/search_get.proto;l=52 * @return The uses125Api. */ @java.lang.Override - public boolean getUses125Api() { + @java.lang.Deprecated public boolean getUses125Api() { return uses125Api_; } /** - * bool uses_125_api = 101; + * bool uses_125_api = 101 [deprecated = true]; + * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated. + * See v1/search_get.proto;l=52 * @param value The uses125Api to set. * @return This builder for chaining. */ - public Builder setUses125Api(boolean value) { + @java.lang.Deprecated public Builder setUses125Api(boolean value) { uses125Api_ = value; bitField0_ |= 0x04000000; @@ -5546,15 +5595,49 @@ public Builder setUses125Api(boolean value) { return this; } /** - * bool uses_125_api = 101; + * bool uses_125_api = 101 [deprecated = true]; + * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated. + * See v1/search_get.proto;l=52 * @return This builder for chaining. */ - public Builder clearUses125Api() { + @java.lang.Deprecated public Builder clearUses125Api() { bitField0_ = (bitField0_ & ~0x04000000); uses125Api_ = false; onChanged(); return this; } + + private boolean uses127Api_ ; + /** + * bool uses_127_api = 102; + * @return The uses127Api. + */ + @java.lang.Override + public boolean getUses127Api() { + return uses127Api_; + } + /** + * bool uses_127_api = 102; + * @param value The uses127Api to set. + * @return This builder for chaining. + */ + public Builder setUses127Api(boolean value) { + + uses127Api_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * bool uses_127_api = 102; + * @return This builder for chaining. + */ + public Builder clearUses127Api() { + bitField0_ = (bitField0_ & ~0x08000000); + uses127Api_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7293,75 +7376,103 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SortBy getDefa } - public interface GenerativeSearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeSearch) + public interface MetadataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.MetadataRequest) com.google.protobuf.MessageOrBuilder { /** - * string single_response_prompt = 1; - * @return The singleResponsePrompt. + * bool uuid = 1; + * @return The uuid. */ - java.lang.String getSingleResponsePrompt(); + boolean getUuid(); + /** - * string single_response_prompt = 1; - * @return The bytes for singleResponsePrompt. + * bool vector = 2; + * @return The vector. */ - com.google.protobuf.ByteString - getSingleResponsePromptBytes(); + boolean getVector(); /** - * string grouped_response_task = 2; - * @return The groupedResponseTask. + * bool creation_time_unix = 3; + * @return The creationTimeUnix. */ - java.lang.String getGroupedResponseTask(); + boolean getCreationTimeUnix(); + /** - * string grouped_response_task = 2; - * @return The bytes for groupedResponseTask. + * bool last_update_time_unix = 4; + * @return The lastUpdateTimeUnix. */ - com.google.protobuf.ByteString - getGroupedResponseTaskBytes(); + boolean getLastUpdateTimeUnix(); /** - * repeated string grouped_properties = 3; - * @return A list containing the groupedProperties. + * bool distance = 5; + * @return The distance. + */ + boolean getDistance(); + + /** + * bool certainty = 6; + * @return The certainty. + */ + boolean getCertainty(); + + /** + * bool score = 7; + * @return The score. + */ + boolean getScore(); + + /** + * bool explain_score = 8; + * @return The explainScore. + */ + boolean getExplainScore(); + + /** + * bool is_consistent = 9; + * @return The isConsistent. + */ + boolean getIsConsistent(); + + /** + * repeated string vectors = 10; + * @return A list containing the vectors. */ java.util.List - getGroupedPropertiesList(); + getVectorsList(); /** - * repeated string grouped_properties = 3; - * @return The count of groupedProperties. + * repeated string vectors = 10; + * @return The count of vectors. */ - int getGroupedPropertiesCount(); + int getVectorsCount(); /** - * repeated string grouped_properties = 3; + * repeated string vectors = 10; * @param index The index of the element to return. - * @return The groupedProperties at the given index. + * @return The vectors at the given index. */ - java.lang.String getGroupedProperties(int index); + java.lang.String getVectors(int index); /** - * repeated string grouped_properties = 3; + * repeated string vectors = 10; * @param index The index of the value to return. - * @return The bytes of the groupedProperties at the given index. + * @return The bytes of the vectors at the given index. */ com.google.protobuf.ByteString - getGroupedPropertiesBytes(int index); + getVectorsBytes(int index); } /** - * Protobuf type {@code weaviate.v1.GenerativeSearch} + * Protobuf type {@code weaviate.v1.MetadataRequest} */ - public static final class GenerativeSearch extends + public static final class MetadataRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeSearch) - GenerativeSearchOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.MetadataRequest) + MetadataRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GenerativeSearch.newBuilder() to construct. - private GenerativeSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MetadataRequest.newBuilder() to construct. + private MetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerativeSearch() { - singleResponsePrompt_ = ""; - groupedResponseTask_ = ""; - groupedProperties_ = + private MetadataRequest() { + vectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -7369,135 +7480,156 @@ private GenerativeSearch() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GenerativeSearch(); + return new MetadataRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder.class); } - public static final int SINGLE_RESPONSE_PROMPT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object singleResponsePrompt_ = ""; + public static final int UUID_FIELD_NUMBER = 1; + private boolean uuid_ = false; /** - * string single_response_prompt = 1; - * @return The singleResponsePrompt. + * bool uuid = 1; + * @return The uuid. */ @java.lang.Override - public java.lang.String getSingleResponsePrompt() { - java.lang.Object ref = singleResponsePrompt_; - 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(); - singleResponsePrompt_ = s; - return s; - } + public boolean getUuid() { + return uuid_; } + + public static final int VECTOR_FIELD_NUMBER = 2; + private boolean vector_ = false; /** - * string single_response_prompt = 1; - * @return The bytes for singleResponsePrompt. + * bool vector = 2; + * @return The vector. */ @java.lang.Override - public com.google.protobuf.ByteString - getSingleResponsePromptBytes() { - java.lang.Object ref = singleResponsePrompt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - singleResponsePrompt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean getVector() { + return vector_; } - public static final int GROUPED_RESPONSE_TASK_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object groupedResponseTask_ = ""; + public static final int CREATION_TIME_UNIX_FIELD_NUMBER = 3; + private boolean creationTimeUnix_ = false; /** - * string grouped_response_task = 2; - * @return The groupedResponseTask. + * bool creation_time_unix = 3; + * @return The creationTimeUnix. */ @java.lang.Override - public java.lang.String getGroupedResponseTask() { - java.lang.Object ref = groupedResponseTask_; - 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(); - groupedResponseTask_ = s; - return s; - } + public boolean getCreationTimeUnix() { + return creationTimeUnix_; } + + public static final int LAST_UPDATE_TIME_UNIX_FIELD_NUMBER = 4; + private boolean lastUpdateTimeUnix_ = false; /** - * string grouped_response_task = 2; - * @return The bytes for groupedResponseTask. + * bool last_update_time_unix = 4; + * @return The lastUpdateTimeUnix. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupedResponseTaskBytes() { - java.lang.Object ref = groupedResponseTask_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupedResponseTask_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean getLastUpdateTimeUnix() { + return lastUpdateTimeUnix_; + } + + public static final int DISTANCE_FIELD_NUMBER = 5; + private boolean distance_ = false; + /** + * bool distance = 5; + * @return The distance. + */ + @java.lang.Override + public boolean getDistance() { + return distance_; + } + + public static final int CERTAINTY_FIELD_NUMBER = 6; + private boolean certainty_ = false; + /** + * bool certainty = 6; + * @return The certainty. + */ + @java.lang.Override + public boolean getCertainty() { + return certainty_; + } + + public static final int SCORE_FIELD_NUMBER = 7; + private boolean score_ = false; + /** + * bool score = 7; + * @return The score. + */ + @java.lang.Override + public boolean getScore() { + return score_; } - public static final int GROUPED_PROPERTIES_FIELD_NUMBER = 3; + public static final int EXPLAIN_SCORE_FIELD_NUMBER = 8; + private boolean explainScore_ = false; + /** + * bool explain_score = 8; + * @return The explainScore. + */ + @java.lang.Override + public boolean getExplainScore() { + return explainScore_; + } + + public static final int IS_CONSISTENT_FIELD_NUMBER = 9; + private boolean isConsistent_ = false; + /** + * bool is_consistent = 9; + * @return The isConsistent. + */ + @java.lang.Override + public boolean getIsConsistent() { + return isConsistent_; + } + + public static final int VECTORS_FIELD_NUMBER = 10; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList groupedProperties_ = + private com.google.protobuf.LazyStringArrayList vectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * repeated string grouped_properties = 3; - * @return A list containing the groupedProperties. + * repeated string vectors = 10; + * @return A list containing the vectors. */ public com.google.protobuf.ProtocolStringList - getGroupedPropertiesList() { - return groupedProperties_; + getVectorsList() { + return vectors_; } /** - * repeated string grouped_properties = 3; - * @return The count of groupedProperties. + * repeated string vectors = 10; + * @return The count of vectors. */ - public int getGroupedPropertiesCount() { - return groupedProperties_.size(); + public int getVectorsCount() { + return vectors_.size(); } /** - * repeated string grouped_properties = 3; + * repeated string vectors = 10; * @param index The index of the element to return. - * @return The groupedProperties at the given index. + * @return The vectors at the given index. */ - public java.lang.String getGroupedProperties(int index) { - return groupedProperties_.get(index); + public java.lang.String getVectors(int index) { + return vectors_.get(index); } /** - * repeated string grouped_properties = 3; + * repeated string vectors = 10; * @param index The index of the value to return. - * @return The bytes of the groupedProperties at the given index. + * @return The bytes of the vectors at the given index. */ public com.google.protobuf.ByteString - getGroupedPropertiesBytes(int index) { - return groupedProperties_.getByteString(index); + getVectorsBytes(int index) { + return vectors_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -7514,14 +7646,35 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleResponsePrompt_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, singleResponsePrompt_); + if (uuid_ != false) { + output.writeBool(1, uuid_); + } + if (vector_ != false) { + output.writeBool(2, vector_); + } + if (creationTimeUnix_ != false) { + output.writeBool(3, creationTimeUnix_); + } + if (lastUpdateTimeUnix_ != false) { + output.writeBool(4, lastUpdateTimeUnix_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupedResponseTask_); + if (distance_ != false) { + output.writeBool(5, distance_); } - for (int i = 0; i < groupedProperties_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupedProperties_.getRaw(i)); + if (certainty_ != false) { + output.writeBool(6, certainty_); + } + if (score_ != false) { + output.writeBool(7, score_); + } + if (explainScore_ != false) { + output.writeBool(8, explainScore_); + } + if (isConsistent_ != false) { + output.writeBool(9, isConsistent_); + } + for (int i = 0; i < vectors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, vectors_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -7532,19 +7685,49 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleResponsePrompt_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, singleResponsePrompt_); + if (uuid_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, uuid_); + } + if (vector_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, vector_); + } + if (creationTimeUnix_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, creationTimeUnix_); + } + if (lastUpdateTimeUnix_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, lastUpdateTimeUnix_); + } + if (distance_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, distance_); + } + if (certainty_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, certainty_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupedResponseTask_); + if (score_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, score_); + } + if (explainScore_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, explainScore_); + } + if (isConsistent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, isConsistent_); } { int dataSize = 0; - for (int i = 0; i < groupedProperties_.size(); i++) { - dataSize += computeStringSizeNoTag(groupedProperties_.getRaw(i)); + for (int i = 0; i < vectors_.size(); i++) { + dataSize += computeStringSizeNoTag(vectors_.getRaw(i)); } size += dataSize; - size += 1 * getGroupedPropertiesList().size(); + size += 1 * getVectorsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7556,17 +7739,31 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest) obj; - if (!getSingleResponsePrompt() - .equals(other.getSingleResponsePrompt())) return false; - if (!getGroupedResponseTask() - .equals(other.getGroupedResponseTask())) return false; - if (!getGroupedPropertiesList() - .equals(other.getGroupedPropertiesList())) return false; + if (getUuid() + != other.getUuid()) return false; + if (getVector() + != other.getVector()) return false; + if (getCreationTimeUnix() + != other.getCreationTimeUnix()) return false; + if (getLastUpdateTimeUnix() + != other.getLastUpdateTimeUnix()) return false; + if (getDistance() + != other.getDistance()) return false; + if (getCertainty() + != other.getCertainty()) return false; + if (getScore() + != other.getScore()) return false; + if (getExplainScore() + != other.getExplainScore()) return false; + if (getIsConsistent() + != other.getIsConsistent()) return false; + if (!getVectorsList() + .equals(other.getVectorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7578,57 +7775,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SINGLE_RESPONSE_PROMPT_FIELD_NUMBER; - hash = (53 * hash) + getSingleResponsePrompt().hashCode(); - hash = (37 * hash) + GROUPED_RESPONSE_TASK_FIELD_NUMBER; - hash = (53 * hash) + getGroupedResponseTask().hashCode(); - if (getGroupedPropertiesCount() > 0) { - hash = (37 * hash) + GROUPED_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getGroupedPropertiesList().hashCode(); + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUuid()); + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVector()); + hash = (37 * hash) + CREATION_TIME_UNIX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreationTimeUnix()); + hash = (37 * hash) + LAST_UPDATE_TIME_UNIX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLastUpdateTimeUnix()); + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDistance()); + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCertainty()); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getScore()); + hash = (37 * hash) + EXPLAIN_SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getExplainScore()); + hash = (37 * hash) + IS_CONSISTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsConsistent()); + if (getVectorsCount() > 0) { + hash = (37 * hash) + VECTORS_FIELD_NUMBER; + hash = (53 * hash) + getVectorsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7636,26 +7856,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Generat .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7668,7 +7888,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Generat public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -7684,26 +7904,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeSearch} + * Protobuf type {@code weaviate.v1.MetadataRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeSearch) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.MetadataRequest) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.newBuilder() private Builder() { } @@ -7717,9 +7937,16 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - singleResponsePrompt_ = ""; - groupedResponseTask_ = ""; - groupedProperties_ = + uuid_ = false; + vector_ = false; + creationTimeUnix_ = false; + lastUpdateTimeUnix_ = false; + distance_ = false; + certainty_ = false; + score_ = false; + explainScore_ = false; + isConsistent_ = false; + vectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -7727,17 +7954,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7745,24 +7972,45 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSear } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.singleResponsePrompt_ = singleResponsePrompt_; + result.uuid_ = uuid_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.groupedResponseTask_ = groupedResponseTask_; + result.vector_ = vector_; } if (((from_bitField0_ & 0x00000004) != 0)) { - groupedProperties_.makeImmutable(); - result.groupedProperties_ = groupedProperties_; + result.creationTimeUnix_ = creationTimeUnix_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastUpdateTimeUnix_ = lastUpdateTimeUnix_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.distance_ = distance_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.certainty_ = certainty_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.explainScore_ = explainScore_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.isConsistent_ = isConsistent_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + vectors_.makeImmutable(); + result.vectors_ = vectors_; } } @@ -7800,33 +8048,50 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance()) return this; - if (!other.getSingleResponsePrompt().isEmpty()) { - singleResponsePrompt_ = other.singleResponsePrompt_; - bitField0_ |= 0x00000001; - onChanged(); + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance()) return this; + if (other.getUuid() != false) { + setUuid(other.getUuid()); } - if (!other.getGroupedResponseTask().isEmpty()) { - groupedResponseTask_ = other.groupedResponseTask_; - bitField0_ |= 0x00000002; - onChanged(); + if (other.getVector() != false) { + setVector(other.getVector()); } - if (!other.groupedProperties_.isEmpty()) { - if (groupedProperties_.isEmpty()) { - groupedProperties_ = other.groupedProperties_; - bitField0_ |= 0x00000004; + if (other.getCreationTimeUnix() != false) { + setCreationTimeUnix(other.getCreationTimeUnix()); + } + if (other.getLastUpdateTimeUnix() != false) { + setLastUpdateTimeUnix(other.getLastUpdateTimeUnix()); + } + if (other.getDistance() != false) { + setDistance(other.getDistance()); + } + if (other.getCertainty() != false) { + setCertainty(other.getCertainty()); + } + if (other.getScore() != false) { + setScore(other.getScore()); + } + if (other.getExplainScore() != false) { + setExplainScore(other.getExplainScore()); + } + if (other.getIsConsistent() != false) { + setIsConsistent(other.getIsConsistent()); + } + if (!other.vectors_.isEmpty()) { + if (vectors_.isEmpty()) { + vectors_ = other.vectors_; + bitField0_ |= 0x00000200; } else { - ensureGroupedPropertiesIsMutable(); - groupedProperties_.addAll(other.groupedProperties_); + ensureVectorsIsMutable(); + vectors_.addAll(other.vectors_); } onChanged(); } @@ -7856,22 +8121,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - singleResponsePrompt_ = input.readStringRequireUtf8(); + case 8: { + uuid_ = input.readBool(); bitField0_ |= 0x00000001; break; - } // case 10 - case 18: { - groupedResponseTask_ = input.readStringRequireUtf8(); + } // case 8 + case 16: { + vector_ = input.readBool(); bitField0_ |= 0x00000002; break; - } // case 18 - case 26: { + } // case 16 + case 24: { + creationTimeUnix_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + lastUpdateTimeUnix_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + distance_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + certainty_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + score_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + explainScore_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + isConsistent_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { java.lang.String s = input.readStringRequireUtf8(); - ensureGroupedPropertiesIsMutable(); - groupedProperties_.add(s); + ensureVectorsIsMutable(); + vectors_.add(s); break; - } // case 26 + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -7889,257 +8189,401 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object singleResponsePrompt_ = ""; + private boolean uuid_ ; /** - * string single_response_prompt = 1; - * @return The singleResponsePrompt. + * bool uuid = 1; + * @return The uuid. */ - public java.lang.String getSingleResponsePrompt() { - java.lang.Object ref = singleResponsePrompt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - singleResponsePrompt_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean getUuid() { + return uuid_; } /** - * string single_response_prompt = 1; - * @return The bytes for singleResponsePrompt. + * bool uuid = 1; + * @param value The uuid to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString - getSingleResponsePromptBytes() { - java.lang.Object ref = singleResponsePrompt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - singleResponsePrompt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setUuid(boolean value) { + + uuid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** - * string single_response_prompt = 1; - * @param value The singleResponsePrompt to set. + * bool uuid = 1; * @return This builder for chaining. */ - public Builder setSingleResponsePrompt( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - singleResponsePrompt_ = value; - bitField0_ |= 0x00000001; + public Builder clearUuid() { + bitField0_ = (bitField0_ & ~0x00000001); + uuid_ = false; onChanged(); return this; } + + private boolean vector_ ; + /** + * bool vector = 2; + * @return The vector. + */ + @java.lang.Override + public boolean getVector() { + return vector_; + } /** - * string single_response_prompt = 1; + * bool vector = 2; + * @param value The vector to set. * @return This builder for chaining. */ - public Builder clearSingleResponsePrompt() { - singleResponsePrompt_ = getDefaultInstance().getSingleResponsePrompt(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setVector(boolean value) { + + vector_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * string single_response_prompt = 1; - * @param value The bytes for singleResponsePrompt to set. + * bool vector = 2; * @return This builder for chaining. */ - public Builder setSingleResponsePromptBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - singleResponsePrompt_ = value; - bitField0_ |= 0x00000001; + public Builder clearVector() { + bitField0_ = (bitField0_ & ~0x00000002); + vector_ = false; onChanged(); return this; } - private java.lang.Object groupedResponseTask_ = ""; + private boolean creationTimeUnix_ ; /** - * string grouped_response_task = 2; - * @return The groupedResponseTask. + * bool creation_time_unix = 3; + * @return The creationTimeUnix. */ - public java.lang.String getGroupedResponseTask() { - java.lang.Object ref = groupedResponseTask_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupedResponseTask_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean getCreationTimeUnix() { + return creationTimeUnix_; } /** - * string grouped_response_task = 2; - * @return The bytes for groupedResponseTask. + * bool creation_time_unix = 3; + * @param value The creationTimeUnix to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString - getGroupedResponseTaskBytes() { - java.lang.Object ref = groupedResponseTask_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupedResponseTask_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setCreationTimeUnix(boolean value) { + + creationTimeUnix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** - * string grouped_response_task = 2; - * @param value The groupedResponseTask to set. + * bool creation_time_unix = 3; * @return This builder for chaining. */ - public Builder setGroupedResponseTask( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - groupedResponseTask_ = value; - bitField0_ |= 0x00000002; + public Builder clearCreationTimeUnix() { + bitField0_ = (bitField0_ & ~0x00000004); + creationTimeUnix_ = false; onChanged(); return this; } + + private boolean lastUpdateTimeUnix_ ; + /** + * bool last_update_time_unix = 4; + * @return The lastUpdateTimeUnix. + */ + @java.lang.Override + public boolean getLastUpdateTimeUnix() { + return lastUpdateTimeUnix_; + } /** - * string grouped_response_task = 2; + * bool last_update_time_unix = 4; + * @param value The lastUpdateTimeUnix to set. * @return This builder for chaining. */ - public Builder clearGroupedResponseTask() { - groupedResponseTask_ = getDefaultInstance().getGroupedResponseTask(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder setLastUpdateTimeUnix(boolean value) { + + lastUpdateTimeUnix_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * string grouped_response_task = 2; - * @param value The bytes for groupedResponseTask to set. + * bool last_update_time_unix = 4; * @return This builder for chaining. */ - public Builder setGroupedResponseTaskBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - groupedResponseTask_ = value; - bitField0_ |= 0x00000002; + public Builder clearLastUpdateTimeUnix() { + bitField0_ = (bitField0_ & ~0x00000008); + lastUpdateTimeUnix_ = false; + onChanged(); + return this; + } + + private boolean distance_ ; + /** + * bool distance = 5; + * @return The distance. + */ + @java.lang.Override + public boolean getDistance() { + return distance_; + } + /** + * bool distance = 5; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(boolean value) { + + distance_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * bool distance = 5; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000010); + distance_ = false; + onChanged(); + return this; + } + + private boolean certainty_ ; + /** + * bool certainty = 6; + * @return The certainty. + */ + @java.lang.Override + public boolean getCertainty() { + return certainty_; + } + /** + * bool certainty = 6; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(boolean value) { + + certainty_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * bool certainty = 6; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000020); + certainty_ = false; + onChanged(); + return this; + } + + private boolean score_ ; + /** + * bool score = 7; + * @return The score. + */ + @java.lang.Override + public boolean getScore() { + return score_; + } + /** + * bool score = 7; + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(boolean value) { + + score_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * bool score = 7; + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000040); + score_ = false; + onChanged(); + return this; + } + + private boolean explainScore_ ; + /** + * bool explain_score = 8; + * @return The explainScore. + */ + @java.lang.Override + public boolean getExplainScore() { + return explainScore_; + } + /** + * bool explain_score = 8; + * @param value The explainScore to set. + * @return This builder for chaining. + */ + public Builder setExplainScore(boolean value) { + + explainScore_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * bool explain_score = 8; + * @return This builder for chaining. + */ + public Builder clearExplainScore() { + bitField0_ = (bitField0_ & ~0x00000080); + explainScore_ = false; + onChanged(); + return this; + } + + private boolean isConsistent_ ; + /** + * bool is_consistent = 9; + * @return The isConsistent. + */ + @java.lang.Override + public boolean getIsConsistent() { + return isConsistent_; + } + /** + * bool is_consistent = 9; + * @param value The isConsistent to set. + * @return This builder for chaining. + */ + public Builder setIsConsistent(boolean value) { + + isConsistent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * bool is_consistent = 9; + * @return This builder for chaining. + */ + public Builder clearIsConsistent() { + bitField0_ = (bitField0_ & ~0x00000100); + isConsistent_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList groupedProperties_ = + private com.google.protobuf.LazyStringArrayList vectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureGroupedPropertiesIsMutable() { - if (!groupedProperties_.isModifiable()) { - groupedProperties_ = new com.google.protobuf.LazyStringArrayList(groupedProperties_); + private void ensureVectorsIsMutable() { + if (!vectors_.isModifiable()) { + vectors_ = new com.google.protobuf.LazyStringArrayList(vectors_); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000200; } /** - * repeated string grouped_properties = 3; - * @return A list containing the groupedProperties. + * repeated string vectors = 10; + * @return A list containing the vectors. */ public com.google.protobuf.ProtocolStringList - getGroupedPropertiesList() { - groupedProperties_.makeImmutable(); - return groupedProperties_; + getVectorsList() { + vectors_.makeImmutable(); + return vectors_; } /** - * repeated string grouped_properties = 3; - * @return The count of groupedProperties. + * repeated string vectors = 10; + * @return The count of vectors. */ - public int getGroupedPropertiesCount() { - return groupedProperties_.size(); + public int getVectorsCount() { + return vectors_.size(); } /** - * repeated string grouped_properties = 3; + * repeated string vectors = 10; * @param index The index of the element to return. - * @return The groupedProperties at the given index. + * @return The vectors at the given index. */ - public java.lang.String getGroupedProperties(int index) { - return groupedProperties_.get(index); + public java.lang.String getVectors(int index) { + return vectors_.get(index); } /** - * repeated string grouped_properties = 3; + * repeated string vectors = 10; * @param index The index of the value to return. - * @return The bytes of the groupedProperties at the given index. + * @return The bytes of the vectors at the given index. */ public com.google.protobuf.ByteString - getGroupedPropertiesBytes(int index) { - return groupedProperties_.getByteString(index); + getVectorsBytes(int index) { + return vectors_.getByteString(index); } /** - * repeated string grouped_properties = 3; + * repeated string vectors = 10; * @param index The index to set the value at. - * @param value The groupedProperties to set. + * @param value The vectors to set. * @return This builder for chaining. */ - public Builder setGroupedProperties( + public Builder setVectors( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureGroupedPropertiesIsMutable(); - groupedProperties_.set(index, value); - bitField0_ |= 0x00000004; + ensureVectorsIsMutable(); + vectors_.set(index, value); + bitField0_ |= 0x00000200; onChanged(); return this; } /** - * repeated string grouped_properties = 3; - * @param value The groupedProperties to add. + * repeated string vectors = 10; + * @param value The vectors to add. * @return This builder for chaining. */ - public Builder addGroupedProperties( + public Builder addVectors( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureGroupedPropertiesIsMutable(); - groupedProperties_.add(value); - bitField0_ |= 0x00000004; + ensureVectorsIsMutable(); + vectors_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } /** - * repeated string grouped_properties = 3; - * @param values The groupedProperties to add. + * repeated string vectors = 10; + * @param values The vectors to add. * @return This builder for chaining. */ - public Builder addAllGroupedProperties( + public Builder addAllVectors( java.lang.Iterable values) { - ensureGroupedPropertiesIsMutable(); + ensureVectorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupedProperties_); - bitField0_ |= 0x00000004; + values, vectors_); + bitField0_ |= 0x00000200; onChanged(); return this; } /** - * repeated string grouped_properties = 3; + * repeated string vectors = 10; * @return This builder for chaining. */ - public Builder clearGroupedProperties() { - groupedProperties_ = + public Builder clearVectors() { + vectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** - * repeated string grouped_properties = 3; - * @param value The bytes of the groupedProperties to add. + * repeated string vectors = 10; + * @param value The bytes of the vectors to add. * @return This builder for chaining. */ - public Builder addGroupedPropertiesBytes( + public Builder addVectorsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureGroupedPropertiesIsMutable(); - groupedProperties_.add(value); - bitField0_ |= 0x00000004; + ensureVectorsIsMutable(); + vectors_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8156,23 +8600,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeSearch) + // @@protoc_insertion_point(builder_scope:weaviate.v1.MetadataRequest) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeSearch) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.MetadataRequest) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GenerativeSearch parsePartialFrom( + public MetadataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8191,276 +8635,272 @@ public GenerativeSearch parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface MetadataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.MetadataRequest) + public interface PropertiesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.PropertiesRequest) com.google.protobuf.MessageOrBuilder { /** - * bool uuid = 1; - * @return The uuid. + * repeated string non_ref_properties = 1; + * @return A list containing the nonRefProperties. */ - boolean getUuid(); - + java.util.List + getNonRefPropertiesList(); /** - * bool vector = 2; - * @return The vector. + * repeated string non_ref_properties = 1; + * @return The count of nonRefProperties. */ - boolean getVector(); - + int getNonRefPropertiesCount(); /** - * bool creation_time_unix = 3; - * @return The creationTimeUnix. + * repeated string non_ref_properties = 1; + * @param index The index of the element to return. + * @return The nonRefProperties at the given index. */ - boolean getCreationTimeUnix(); - + java.lang.String getNonRefProperties(int index); /** - * bool last_update_time_unix = 4; - * @return The lastUpdateTimeUnix. + * repeated string non_ref_properties = 1; + * @param index The index of the value to return. + * @return The bytes of the nonRefProperties at the given index. */ - boolean getLastUpdateTimeUnix(); + com.google.protobuf.ByteString + getNonRefPropertiesBytes(int index); /** - * bool distance = 5; - * @return The distance. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - boolean getDistance(); - + java.util.List + getRefPropertiesList(); /** - * bool certainty = 6; - * @return The certainty. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - boolean getCertainty(); - + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index); /** - * bool score = 7; - * @return The score. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - boolean getScore(); - + int getRefPropertiesCount(); /** - * bool explain_score = 8; - * @return The explainScore. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - boolean getExplainScore(); - + java.util.List + getRefPropertiesOrBuilderList(); /** - * bool is_consistent = 9; - * @return The isConsistent. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - boolean getIsConsistent(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder( + int index); /** - * repeated string vectors = 10; - * @return A list containing the vectors. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - java.util.List - getVectorsList(); + java.util.List + getObjectPropertiesList(); /** - * repeated string vectors = 10; - * @return The count of vectors. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - int getVectorsCount(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index); /** - * repeated string vectors = 10; - * @param index The index of the element to return. - * @return The vectors at the given index. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - java.lang.String getVectors(int index); + int getObjectPropertiesCount(); /** - * repeated string vectors = 10; - * @param index The index of the value to return. - * @return The bytes of the vectors at the given index. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - com.google.protobuf.ByteString - getVectorsBytes(int index); + java.util.List + getObjectPropertiesOrBuilderList(); + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder( + int index); + + /** + * bool return_all_nonref_properties = 11; + * @return The returnAllNonrefProperties. + */ + boolean getReturnAllNonrefProperties(); } /** - * Protobuf type {@code weaviate.v1.MetadataRequest} + * Protobuf type {@code weaviate.v1.PropertiesRequest} */ - public static final class MetadataRequest extends + public static final class PropertiesRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.MetadataRequest) - MetadataRequestOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.PropertiesRequest) + PropertiesRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use MetadataRequest.newBuilder() to construct. - private MetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use PropertiesRequest.newBuilder() to construct. + private PropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MetadataRequest() { - vectors_ = + private PropertiesRequest() { + nonRefProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); + refProperties_ = java.util.Collections.emptyList(); + objectProperties_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new MetadataRequest(); + return new PropertiesRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder.class); } - public static final int UUID_FIELD_NUMBER = 1; - private boolean uuid_ = false; + public static final int NON_REF_PROPERTIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList nonRefProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * bool uuid = 1; - * @return The uuid. + * repeated string non_ref_properties = 1; + * @return A list containing the nonRefProperties. */ - @java.lang.Override - public boolean getUuid() { - return uuid_; + public com.google.protobuf.ProtocolStringList + getNonRefPropertiesList() { + return nonRefProperties_; } - - public static final int VECTOR_FIELD_NUMBER = 2; - private boolean vector_ = false; /** - * bool vector = 2; - * @return The vector. + * repeated string non_ref_properties = 1; + * @return The count of nonRefProperties. */ - @java.lang.Override - public boolean getVector() { - return vector_; + public int getNonRefPropertiesCount() { + return nonRefProperties_.size(); + } + /** + * repeated string non_ref_properties = 1; + * @param index The index of the element to return. + * @return The nonRefProperties at the given index. + */ + public java.lang.String getNonRefProperties(int index) { + return nonRefProperties_.get(index); + } + /** + * repeated string non_ref_properties = 1; + * @param index The index of the value to return. + * @return The bytes of the nonRefProperties at the given index. + */ + public com.google.protobuf.ByteString + getNonRefPropertiesBytes(int index) { + return nonRefProperties_.getByteString(index); } - public static final int CREATION_TIME_UNIX_FIELD_NUMBER = 3; - private boolean creationTimeUnix_ = false; + public static final int REF_PROPERTIES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List refProperties_; /** - * bool creation_time_unix = 3; - * @return The creationTimeUnix. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ @java.lang.Override - public boolean getCreationTimeUnix() { - return creationTimeUnix_; + public java.util.List getRefPropertiesList() { + return refProperties_; } - - public static final int LAST_UPDATE_TIME_UNIX_FIELD_NUMBER = 4; - private boolean lastUpdateTimeUnix_ = false; /** - * bool last_update_time_unix = 4; - * @return The lastUpdateTimeUnix. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ @java.lang.Override - public boolean getLastUpdateTimeUnix() { - return lastUpdateTimeUnix_; + public java.util.List + getRefPropertiesOrBuilderList() { + return refProperties_; } - - public static final int DISTANCE_FIELD_NUMBER = 5; - private boolean distance_ = false; /** - * bool distance = 5; - * @return The distance. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ @java.lang.Override - public boolean getDistance() { - return distance_; + public int getRefPropertiesCount() { + return refProperties_.size(); } - - public static final int CERTAINTY_FIELD_NUMBER = 6; - private boolean certainty_ = false; /** - * bool certainty = 6; - * @return The certainty. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ @java.lang.Override - public boolean getCertainty() { - return certainty_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index) { + return refProperties_.get(index); } - - public static final int SCORE_FIELD_NUMBER = 7; - private boolean score_ = false; /** - * bool score = 7; - * @return The score. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ @java.lang.Override - public boolean getScore() { - return score_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder( + int index) { + return refProperties_.get(index); } - public static final int EXPLAIN_SCORE_FIELD_NUMBER = 8; - private boolean explainScore_ = false; + public static final int OBJECT_PROPERTIES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List objectProperties_; /** - * bool explain_score = 8; - * @return The explainScore. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ @java.lang.Override - public boolean getExplainScore() { - return explainScore_; + public java.util.List getObjectPropertiesList() { + return objectProperties_; } - - public static final int IS_CONSISTENT_FIELD_NUMBER = 9; - private boolean isConsistent_ = false; /** - * bool is_consistent = 9; - * @return The isConsistent. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ @java.lang.Override - public boolean getIsConsistent() { - return isConsistent_; + public java.util.List + getObjectPropertiesOrBuilderList() { + return objectProperties_; } - - public static final int VECTORS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList vectors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); /** - * repeated string vectors = 10; - * @return A list containing the vectors. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public com.google.protobuf.ProtocolStringList - getVectorsList() { - return vectors_; + @java.lang.Override + public int getObjectPropertiesCount() { + return objectProperties_.size(); } /** - * repeated string vectors = 10; - * @return The count of vectors. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public int getVectorsCount() { - return vectors_.size(); + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index) { + return objectProperties_.get(index); } /** - * repeated string vectors = 10; - * @param index The index of the element to return. - * @return The vectors at the given index. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public java.lang.String getVectors(int index) { - return vectors_.get(index); + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder( + int index) { + return objectProperties_.get(index); } + + public static final int RETURN_ALL_NONREF_PROPERTIES_FIELD_NUMBER = 11; + private boolean returnAllNonrefProperties_ = false; /** - * repeated string vectors = 10; - * @param index The index of the value to return. - * @return The bytes of the vectors at the given index. + * bool return_all_nonref_properties = 11; + * @return The returnAllNonrefProperties. */ - public com.google.protobuf.ByteString - getVectorsBytes(int index) { - return vectors_.getByteString(index); + @java.lang.Override + public boolean getReturnAllNonrefProperties() { + return returnAllNonrefProperties_; } private byte memoizedIsInitialized = -1; @@ -8477,35 +8917,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (uuid_ != false) { - output.writeBool(1, uuid_); - } - if (vector_ != false) { - output.writeBool(2, vector_); - } - if (creationTimeUnix_ != false) { - output.writeBool(3, creationTimeUnix_); - } - if (lastUpdateTimeUnix_ != false) { - output.writeBool(4, lastUpdateTimeUnix_); - } - if (distance_ != false) { - output.writeBool(5, distance_); - } - if (certainty_ != false) { - output.writeBool(6, certainty_); - } - if (score_ != false) { - output.writeBool(7, score_); + for (int i = 0; i < nonRefProperties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nonRefProperties_.getRaw(i)); } - if (explainScore_ != false) { - output.writeBool(8, explainScore_); + for (int i = 0; i < refProperties_.size(); i++) { + output.writeMessage(2, refProperties_.get(i)); } - if (isConsistent_ != false) { - output.writeBool(9, isConsistent_); + for (int i = 0; i < objectProperties_.size(); i++) { + output.writeMessage(3, objectProperties_.get(i)); } - for (int i = 0; i < vectors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, vectors_.getRaw(i)); + if (returnAllNonrefProperties_ != false) { + output.writeBool(11, returnAllNonrefProperties_); } getUnknownFields().writeTo(output); } @@ -8516,49 +8938,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (uuid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, uuid_); - } - if (vector_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, vector_); - } - if (creationTimeUnix_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, creationTimeUnix_); - } - if (lastUpdateTimeUnix_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, lastUpdateTimeUnix_); - } - if (distance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, distance_); - } - if (certainty_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, certainty_); + { + int dataSize = 0; + for (int i = 0; i < nonRefProperties_.size(); i++) { + dataSize += computeStringSizeNoTag(nonRefProperties_.getRaw(i)); + } + size += dataSize; + size += 1 * getNonRefPropertiesList().size(); } - if (score_ != false) { + for (int i = 0; i < refProperties_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, score_); + .computeMessageSize(2, refProperties_.get(i)); } - if (explainScore_ != false) { + for (int i = 0; i < objectProperties_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, explainScore_); + .computeMessageSize(3, objectProperties_.get(i)); } - if (isConsistent_ != false) { + if (returnAllNonrefProperties_ != false) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, isConsistent_); - } - { - int dataSize = 0; - for (int i = 0; i < vectors_.size(); i++) { - dataSize += computeStringSizeNoTag(vectors_.getRaw(i)); - } - size += dataSize; - size += 1 * getVectorsList().size(); + .computeBoolSize(11, returnAllNonrefProperties_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8570,31 +8968,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest) obj; - if (getUuid() - != other.getUuid()) return false; - if (getVector() - != other.getVector()) return false; - if (getCreationTimeUnix() - != other.getCreationTimeUnix()) return false; - if (getLastUpdateTimeUnix() - != other.getLastUpdateTimeUnix()) return false; - if (getDistance() - != other.getDistance()) return false; - if (getCertainty() - != other.getCertainty()) return false; - if (getScore() - != other.getScore()) return false; - if (getExplainScore() - != other.getExplainScore()) return false; - if (getIsConsistent() - != other.getIsConsistent()) return false; - if (!getVectorsList() - .equals(other.getVectorsList())) return false; + if (!getNonRefPropertiesList() + .equals(other.getNonRefPropertiesList())) return false; + if (!getRefPropertiesList() + .equals(other.getRefPropertiesList())) return false; + if (!getObjectPropertiesList() + .equals(other.getObjectPropertiesList())) return false; + if (getReturnAllNonrefProperties() + != other.getReturnAllNonrefProperties()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8606,80 +8992,64 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUuid()); - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVector()); - hash = (37 * hash) + CREATION_TIME_UNIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCreationTimeUnix()); - hash = (37 * hash) + LAST_UPDATE_TIME_UNIX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLastUpdateTimeUnix()); - hash = (37 * hash) + DISTANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDistance()); - hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCertainty()); - hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getScore()); - hash = (37 * hash) + EXPLAIN_SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExplainScore()); - hash = (37 * hash) + IS_CONSISTENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsConsistent()); - if (getVectorsCount() > 0) { - hash = (37 * hash) + VECTORS_FIELD_NUMBER; - hash = (53 * hash) + getVectorsList().hashCode(); + if (getNonRefPropertiesCount() > 0) { + hash = (37 * hash) + NON_REF_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getNonRefPropertiesList().hashCode(); + } + if (getRefPropertiesCount() > 0) { + hash = (37 * hash) + REF_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getRefPropertiesList().hashCode(); } + if (getObjectPropertiesCount() > 0) { + hash = (37 * hash) + OBJECT_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getObjectPropertiesList().hashCode(); + } + hash = (37 * hash) + RETURN_ALL_NONREF_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnAllNonrefProperties()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8687,26 +9057,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Metadat .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8719,7 +9089,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Metadat public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -8735,26 +9105,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.MetadataRequest} + * Protobuf type {@code weaviate.v1.PropertiesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.MetadataRequest) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.PropertiesRequest) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.newBuilder() private Builder() { } @@ -8768,34 +9138,40 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - uuid_ = false; - vector_ = false; - creationTimeUnix_ = false; - lastUpdateTimeUnix_ = false; - distance_ = false; - certainty_ = false; - score_ = false; - explainScore_ = false; - isConsistent_ = false; - vectors_ = + nonRefProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (refPropertiesBuilder_ == null) { + refProperties_ = java.util.Collections.emptyList(); + } else { + refProperties_ = null; + refPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (objectPropertiesBuilder_ == null) { + objectProperties_ = java.util.Collections.emptyList(); + } else { + objectProperties_ = null; + objectPropertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + returnAllNonrefProperties_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8803,45 +9179,43 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataReques } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uuid_ = uuid_; + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result) { + if (refPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + refProperties_ = java.util.Collections.unmodifiableList(refProperties_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.refProperties_ = refProperties_; + } else { + result.refProperties_ = refPropertiesBuilder_.build(); } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.vector_ = vector_; + if (objectPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + objectProperties_ = java.util.Collections.unmodifiableList(objectProperties_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.objectProperties_ = objectProperties_; + } else { + result.objectProperties_ = objectPropertiesBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.creationTimeUnix_ = creationTimeUnix_; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + nonRefProperties_.makeImmutable(); + result.nonRefProperties_ = nonRefProperties_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.lastUpdateTimeUnix_ = lastUpdateTimeUnix_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.distance_ = distance_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.certainty_ = certainty_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.score_ = score_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.explainScore_ = explainScore_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.isConsistent_ = isConsistent_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - vectors_.makeImmutable(); - result.vectors_ = vectors_; + result.returnAllNonrefProperties_ = returnAllNonrefProperties_; } } @@ -8879,53 +9253,81 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance()) return this; - if (other.getUuid() != false) { - setUuid(other.getUuid()); - } - if (other.getVector() != false) { - setVector(other.getVector()); - } - if (other.getCreationTimeUnix() != false) { - setCreationTimeUnix(other.getCreationTimeUnix()); - } - if (other.getLastUpdateTimeUnix() != false) { - setLastUpdateTimeUnix(other.getLastUpdateTimeUnix()); - } - if (other.getDistance() != false) { - setDistance(other.getDistance()); - } - if (other.getCertainty() != false) { - setCertainty(other.getCertainty()); - } - if (other.getScore() != false) { - setScore(other.getScore()); - } - if (other.getExplainScore() != false) { - setExplainScore(other.getExplainScore()); - } - if (other.getIsConsistent() != false) { - setIsConsistent(other.getIsConsistent()); - } - if (!other.vectors_.isEmpty()) { - if (vectors_.isEmpty()) { - vectors_ = other.vectors_; - bitField0_ |= 0x00000200; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance()) return this; + if (!other.nonRefProperties_.isEmpty()) { + if (nonRefProperties_.isEmpty()) { + nonRefProperties_ = other.nonRefProperties_; + bitField0_ |= 0x00000001; } else { - ensureVectorsIsMutable(); - vectors_.addAll(other.vectors_); + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.addAll(other.nonRefProperties_); } onChanged(); } + if (refPropertiesBuilder_ == null) { + if (!other.refProperties_.isEmpty()) { + if (refProperties_.isEmpty()) { + refProperties_ = other.refProperties_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRefPropertiesIsMutable(); + refProperties_.addAll(other.refProperties_); + } + onChanged(); + } + } else { + if (!other.refProperties_.isEmpty()) { + if (refPropertiesBuilder_.isEmpty()) { + refPropertiesBuilder_.dispose(); + refPropertiesBuilder_ = null; + refProperties_ = other.refProperties_; + bitField0_ = (bitField0_ & ~0x00000002); + refPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRefPropertiesFieldBuilder() : null; + } else { + refPropertiesBuilder_.addAllMessages(other.refProperties_); + } + } + } + if (objectPropertiesBuilder_ == null) { + if (!other.objectProperties_.isEmpty()) { + if (objectProperties_.isEmpty()) { + objectProperties_ = other.objectProperties_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureObjectPropertiesIsMutable(); + objectProperties_.addAll(other.objectProperties_); + } + onChanged(); + } + } else { + if (!other.objectProperties_.isEmpty()) { + if (objectPropertiesBuilder_.isEmpty()) { + objectPropertiesBuilder_.dispose(); + objectPropertiesBuilder_ = null; + objectProperties_ = other.objectProperties_; + bitField0_ = (bitField0_ & ~0x00000004); + objectPropertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getObjectPropertiesFieldBuilder() : null; + } else { + objectPropertiesBuilder_.addAllMessages(other.objectProperties_); + } + } + } + if (other.getReturnAllNonrefProperties() != false) { + setReturnAllNonrefProperties(other.getReturnAllNonrefProperties()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -8952,57 +9354,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - uuid_ = input.readBool(); - bitField0_ |= 0x00000001; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.add(s); break; - } // case 8 - case 16: { - vector_ = input.readBool(); - bitField0_ |= 0x00000002; + } // case 10 + case 18: { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest m = + input.readMessage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.parser(), + extensionRegistry); + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.add(m); + } else { + refPropertiesBuilder_.addMessage(m); + } break; - } // case 16 - case 24: { - creationTimeUnix_ = input.readBool(); - bitField0_ |= 0x00000004; + } // case 18 + case 26: { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest m = + input.readMessage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.parser(), + extensionRegistry); + if (objectPropertiesBuilder_ == null) { + ensureObjectPropertiesIsMutable(); + objectProperties_.add(m); + } else { + objectPropertiesBuilder_.addMessage(m); + } break; - } // case 24 - case 32: { - lastUpdateTimeUnix_ = input.readBool(); + } // case 26 + case 88: { + returnAllNonrefProperties_ = input.readBool(); bitField0_ |= 0x00000008; break; - } // case 32 - case 40: { - distance_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - certainty_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - score_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - explainScore_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - isConsistent_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - ensureVectorsIsMutable(); - vectors_.add(s); - break; - } // case 82 + } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -9020,401 +9408,625 @@ public Builder mergeFrom( } private int bitField0_; - private boolean uuid_ ; + private com.google.protobuf.LazyStringArrayList nonRefProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureNonRefPropertiesIsMutable() { + if (!nonRefProperties_.isModifiable()) { + nonRefProperties_ = new com.google.protobuf.LazyStringArrayList(nonRefProperties_); + } + bitField0_ |= 0x00000001; + } /** - * bool uuid = 1; - * @return The uuid. + * repeated string non_ref_properties = 1; + * @return A list containing the nonRefProperties. */ - @java.lang.Override - public boolean getUuid() { - return uuid_; + public com.google.protobuf.ProtocolStringList + getNonRefPropertiesList() { + nonRefProperties_.makeImmutable(); + return nonRefProperties_; } /** - * bool uuid = 1; - * @param value The uuid to set. - * @return This builder for chaining. + * repeated string non_ref_properties = 1; + * @return The count of nonRefProperties. */ - public Builder setUuid(boolean value) { - - uuid_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public int getNonRefPropertiesCount() { + return nonRefProperties_.size(); } /** - * bool uuid = 1; - * @return This builder for chaining. + * repeated string non_ref_properties = 1; + * @param index The index of the element to return. + * @return The nonRefProperties at the given index. */ - public Builder clearUuid() { - bitField0_ = (bitField0_ & ~0x00000001); - uuid_ = false; - onChanged(); - return this; + public java.lang.String getNonRefProperties(int index) { + return nonRefProperties_.get(index); } - - private boolean vector_ ; /** - * bool vector = 2; - * @return The vector. + * repeated string non_ref_properties = 1; + * @param index The index of the value to return. + * @return The bytes of the nonRefProperties at the given index. */ - @java.lang.Override - public boolean getVector() { - return vector_; + public com.google.protobuf.ByteString + getNonRefPropertiesBytes(int index) { + return nonRefProperties_.getByteString(index); } /** - * bool vector = 2; - * @param value The vector to set. + * repeated string non_ref_properties = 1; + * @param index The index to set the value at. + * @param value The nonRefProperties to set. * @return This builder for chaining. */ - public Builder setVector(boolean value) { - - vector_ = value; - bitField0_ |= 0x00000002; + public Builder setNonRefProperties( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * bool vector = 2; + * repeated string non_ref_properties = 1; + * @param value The nonRefProperties to add. * @return This builder for chaining. */ - public Builder clearVector() { - bitField0_ = (bitField0_ & ~0x00000002); - vector_ = false; + public Builder addNonRefProperties( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } - - private boolean creationTimeUnix_ ; /** - * bool creation_time_unix = 3; - * @return The creationTimeUnix. + * repeated string non_ref_properties = 1; + * @param values The nonRefProperties to add. + * @return This builder for chaining. */ - @java.lang.Override - public boolean getCreationTimeUnix() { - return creationTimeUnix_; + public Builder addAllNonRefProperties( + java.lang.Iterable values) { + ensureNonRefPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nonRefProperties_); + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** - * bool creation_time_unix = 3; - * @param value The creationTimeUnix to set. + * repeated string non_ref_properties = 1; * @return This builder for chaining. */ - public Builder setCreationTimeUnix(boolean value) { - - creationTimeUnix_ = value; - bitField0_ |= 0x00000004; + public Builder clearNonRefProperties() { + nonRefProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * bool creation_time_unix = 3; + * repeated string non_ref_properties = 1; + * @param value The bytes of the nonRefProperties to add. * @return This builder for chaining. */ - public Builder clearCreationTimeUnix() { - bitField0_ = (bitField0_ & ~0x00000004); - creationTimeUnix_ = false; + public Builder addNonRefPropertiesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureNonRefPropertiesIsMutable(); + nonRefProperties_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } - private boolean lastUpdateTimeUnix_ ; + private java.util.List refProperties_ = + java.util.Collections.emptyList(); + private void ensureRefPropertiesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + refProperties_ = new java.util.ArrayList(refProperties_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder> refPropertiesBuilder_; + /** - * bool last_update_time_unix = 4; - * @return The lastUpdateTimeUnix. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - @java.lang.Override - public boolean getLastUpdateTimeUnix() { - return lastUpdateTimeUnix_; + public java.util.List getRefPropertiesList() { + if (refPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(refProperties_); + } else { + return refPropertiesBuilder_.getMessageList(); + } } /** - * bool last_update_time_unix = 4; - * @param value The lastUpdateTimeUnix to set. - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder setLastUpdateTimeUnix(boolean value) { - - lastUpdateTimeUnix_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + public int getRefPropertiesCount() { + if (refPropertiesBuilder_ == null) { + return refProperties_.size(); + } else { + return refPropertiesBuilder_.getCount(); + } } /** - * bool last_update_time_unix = 4; - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder clearLastUpdateTimeUnix() { - bitField0_ = (bitField0_ & ~0x00000008); - lastUpdateTimeUnix_ = false; - onChanged(); - return this; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index) { + if (refPropertiesBuilder_ == null) { + return refProperties_.get(index); + } else { + return refPropertiesBuilder_.getMessage(index); + } } - - private boolean distance_ ; /** - * bool distance = 5; - * @return The distance. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - @java.lang.Override - public boolean getDistance() { - return distance_; + public Builder setRefProperties( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) { + if (refPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropertiesIsMutable(); + refProperties_.set(index, value); + onChanged(); + } else { + refPropertiesBuilder_.setMessage(index, value); + } + return this; } /** - * bool distance = 5; - * @param value The distance to set. - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder setDistance(boolean value) { - - distance_ = value; - bitField0_ |= 0x00000010; - onChanged(); + public Builder setRefProperties( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + refPropertiesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** - * bool distance = 5; - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder clearDistance() { - bitField0_ = (bitField0_ & ~0x00000010); - distance_ = false; - onChanged(); + public Builder addRefProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) { + if (refPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropertiesIsMutable(); + refProperties_.add(value); + onChanged(); + } else { + refPropertiesBuilder_.addMessage(value); + } return this; } - - private boolean certainty_ ; /** - * bool certainty = 6; - * @return The certainty. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - @java.lang.Override - public boolean getCertainty() { - return certainty_; + public Builder addRefProperties( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) { + if (refPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRefPropertiesIsMutable(); + refProperties_.add(index, value); + onChanged(); + } else { + refPropertiesBuilder_.addMessage(index, value); + } + return this; } /** - * bool certainty = 6; - * @param value The certainty to set. - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder setCertainty(boolean value) { - - certainty_ = value; - bitField0_ |= 0x00000020; - onChanged(); + public Builder addRefProperties( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.add(builderForValue.build()); + onChanged(); + } else { + refPropertiesBuilder_.addMessage(builderForValue.build()); + } return this; } /** - * bool certainty = 6; - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder clearCertainty() { - bitField0_ = (bitField0_ & ~0x00000020); - certainty_ = false; - onChanged(); + public Builder addRefProperties( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + refPropertiesBuilder_.addMessage(index, builderForValue.build()); + } return this; } - - private boolean score_ ; /** - * bool score = 7; - * @return The score. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - @java.lang.Override - public boolean getScore() { - return score_; + public Builder addAllRefProperties( + java.lang.Iterable values) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, refProperties_); + onChanged(); + } else { + refPropertiesBuilder_.addAllMessages(values); + } + return this; } /** - * bool score = 7; - * @param value The score to set. - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder setScore(boolean value) { - - score_ = value; - bitField0_ |= 0x00000040; - onChanged(); + public Builder clearRefProperties() { + if (refPropertiesBuilder_ == null) { + refProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + refPropertiesBuilder_.clear(); + } return this; } /** - * bool score = 7; - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder clearScore() { - bitField0_ = (bitField0_ & ~0x00000040); - score_ = false; - onChanged(); + public Builder removeRefProperties(int index) { + if (refPropertiesBuilder_ == null) { + ensureRefPropertiesIsMutable(); + refProperties_.remove(index); + onChanged(); + } else { + refPropertiesBuilder_.remove(index); + } return this; } - - private boolean explainScore_ ; /** - * bool explain_score = 8; - * @return The explainScore. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - @java.lang.Override - public boolean getExplainScore() { - return explainScore_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder getRefPropertiesBuilder( + int index) { + return getRefPropertiesFieldBuilder().getBuilder(index); } /** - * bool explain_score = 8; - * @param value The explainScore to set. - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder setExplainScore(boolean value) { - - explainScore_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder( + int index) { + if (refPropertiesBuilder_ == null) { + return refProperties_.get(index); } else { + return refPropertiesBuilder_.getMessageOrBuilder(index); + } } /** - * bool explain_score = 8; - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder clearExplainScore() { - bitField0_ = (bitField0_ & ~0x00000080); - explainScore_ = false; - onChanged(); - return this; + public java.util.List + getRefPropertiesOrBuilderList() { + if (refPropertiesBuilder_ != null) { + return refPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(refProperties_); + } } - - private boolean isConsistent_ ; /** - * bool is_consistent = 9; - * @return The isConsistent. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - @java.lang.Override - public boolean getIsConsistent() { - return isConsistent_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder addRefPropertiesBuilder() { + return getRefPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance()); } /** - * bool is_consistent = 9; - * @param value The isConsistent to set. - * @return This builder for chaining. + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; */ - public Builder setIsConsistent(boolean value) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder addRefPropertiesBuilder( + int index) { + return getRefPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + */ + public java.util.List + getRefPropertiesBuilderList() { + return getRefPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder> + getRefPropertiesFieldBuilder() { + if (refPropertiesBuilder_ == null) { + refPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder>( + refProperties_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + refProperties_ = null; + } + return refPropertiesBuilder_; + } - isConsistent_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; + private java.util.List objectProperties_ = + java.util.Collections.emptyList(); + private void ensureObjectPropertiesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + objectProperties_ = new java.util.ArrayList(objectProperties_); + bitField0_ |= 0x00000004; + } } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder> objectPropertiesBuilder_; + /** - * bool is_consistent = 9; - * @return This builder for chaining. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public Builder clearIsConsistent() { - bitField0_ = (bitField0_ & ~0x00000100); - isConsistent_ = false; - onChanged(); + public java.util.List getObjectPropertiesList() { + if (objectPropertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(objectProperties_); + } else { + return objectPropertiesBuilder_.getMessageList(); + } + } + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public int getObjectPropertiesCount() { + if (objectPropertiesBuilder_ == null) { + return objectProperties_.size(); + } else { + return objectPropertiesBuilder_.getCount(); + } + } + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index) { + if (objectPropertiesBuilder_ == null) { + return objectProperties_.get(index); + } else { + return objectPropertiesBuilder_.getMessage(index); + } + } + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public Builder setObjectProperties( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) { + if (objectPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectPropertiesIsMutable(); + objectProperties_.set(index, value); + onChanged(); + } else { + objectPropertiesBuilder_.setMessage(index, value); + } return this; } - - private com.google.protobuf.LazyStringArrayList vectors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureVectorsIsMutable() { - if (!vectors_.isModifiable()) { - vectors_ = new com.google.protobuf.LazyStringArrayList(vectors_); + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public Builder setObjectProperties( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) { + if (objectPropertiesBuilder_ == null) { + ensureObjectPropertiesIsMutable(); + objectProperties_.set(index, builderForValue.build()); + onChanged(); + } else { + objectPropertiesBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000200; + return this; } /** - * repeated string vectors = 10; - * @return A list containing the vectors. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public com.google.protobuf.ProtocolStringList - getVectorsList() { - vectors_.makeImmutable(); - return vectors_; + public Builder addObjectProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) { + if (objectPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectPropertiesIsMutable(); + objectProperties_.add(value); + onChanged(); + } else { + objectPropertiesBuilder_.addMessage(value); + } + return this; } /** - * repeated string vectors = 10; - * @return The count of vectors. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public int getVectorsCount() { - return vectors_.size(); + public Builder addObjectProperties( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) { + if (objectPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureObjectPropertiesIsMutable(); + objectProperties_.add(index, value); + onChanged(); + } else { + objectPropertiesBuilder_.addMessage(index, value); + } + return this; } /** - * repeated string vectors = 10; - * @param index The index of the element to return. - * @return The vectors at the given index. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public java.lang.String getVectors(int index) { - return vectors_.get(index); + public Builder addObjectProperties( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) { + if (objectPropertiesBuilder_ == null) { + ensureObjectPropertiesIsMutable(); + objectProperties_.add(builderForValue.build()); + onChanged(); + } else { + objectPropertiesBuilder_.addMessage(builderForValue.build()); + } + return this; } /** - * repeated string vectors = 10; - * @param index The index of the value to return. - * @return The bytes of the vectors at the given index. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public com.google.protobuf.ByteString - getVectorsBytes(int index) { - return vectors_.getByteString(index); + public Builder addObjectProperties( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) { + if (objectPropertiesBuilder_ == null) { + ensureObjectPropertiesIsMutable(); + objectProperties_.add(index, builderForValue.build()); + onChanged(); + } else { + objectPropertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** - * repeated string vectors = 10; - * @param index The index to set the value at. - * @param value The vectors to set. - * @return This builder for chaining. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public Builder setVectors( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureVectorsIsMutable(); - vectors_.set(index, value); - bitField0_ |= 0x00000200; - onChanged(); + public Builder addAllObjectProperties( + java.lang.Iterable values) { + if (objectPropertiesBuilder_ == null) { + ensureObjectPropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectProperties_); + onChanged(); + } else { + objectPropertiesBuilder_.addAllMessages(values); + } return this; } /** - * repeated string vectors = 10; - * @param value The vectors to add. - * @return This builder for chaining. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public Builder addVectors( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureVectorsIsMutable(); - vectors_.add(value); - bitField0_ |= 0x00000200; - onChanged(); + public Builder clearObjectProperties() { + if (objectPropertiesBuilder_ == null) { + objectProperties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + objectPropertiesBuilder_.clear(); + } return this; } /** - * repeated string vectors = 10; - * @param values The vectors to add. - * @return This builder for chaining. + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; */ - public Builder addAllVectors( - java.lang.Iterable values) { - ensureVectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vectors_); - bitField0_ |= 0x00000200; - onChanged(); + public Builder removeObjectProperties(int index) { + if (objectPropertiesBuilder_ == null) { + ensureObjectPropertiesIsMutable(); + objectProperties_.remove(index); + onChanged(); + } else { + objectPropertiesBuilder_.remove(index); + } return this; } /** - * repeated string vectors = 10; + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder getObjectPropertiesBuilder( + int index) { + return getObjectPropertiesFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder( + int index) { + if (objectPropertiesBuilder_ == null) { + return objectProperties_.get(index); } else { + return objectPropertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public java.util.List + getObjectPropertiesOrBuilderList() { + if (objectPropertiesBuilder_ != null) { + return objectPropertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(objectProperties_); + } + } + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder addObjectPropertiesBuilder() { + return getObjectPropertiesFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder addObjectPropertiesBuilder( + int index) { + return getObjectPropertiesFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + */ + public java.util.List + getObjectPropertiesBuilderList() { + return getObjectPropertiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder> + getObjectPropertiesFieldBuilder() { + if (objectPropertiesBuilder_ == null) { + objectPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder>( + objectProperties_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + objectProperties_ = null; + } + return objectPropertiesBuilder_; + } + + private boolean returnAllNonrefProperties_ ; + /** + * bool return_all_nonref_properties = 11; + * @return The returnAllNonrefProperties. + */ + @java.lang.Override + public boolean getReturnAllNonrefProperties() { + return returnAllNonrefProperties_; + } + /** + * bool return_all_nonref_properties = 11; + * @param value The returnAllNonrefProperties to set. * @return This builder for chaining. */ - public Builder clearVectors() { - vectors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200);; + public Builder setReturnAllNonrefProperties(boolean value) { + + returnAllNonrefProperties_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * repeated string vectors = 10; - * @param value The bytes of the vectors to add. + * bool return_all_nonref_properties = 11; * @return This builder for chaining. */ - public Builder addVectorsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureVectorsIsMutable(); - vectors_.add(value); - bitField0_ |= 0x00000200; + public Builder clearReturnAllNonrefProperties() { + bitField0_ = (bitField0_ & ~0x00000008); + returnAllNonrefProperties_ = false; onChanged(); return this; } @@ -9431,23 +10043,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.MetadataRequest) + // @@protoc_insertion_point(builder_scope:weaviate.v1.PropertiesRequest) } - // @@protoc_insertion_point(class_scope:weaviate.v1.MetadataRequest) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.PropertiesRequest) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public MetadataRequest parsePartialFrom( + public PropertiesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9466,74 +10078,62 @@ public MetadataRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PropertiesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.PropertiesRequest) + public interface ObjectPropertiesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.ObjectPropertiesRequest) com.google.protobuf.MessageOrBuilder { /** - * repeated string non_ref_properties = 1; - * @return A list containing the nonRefProperties. - */ - java.util.List - getNonRefPropertiesList(); - /** - * repeated string non_ref_properties = 1; - * @return The count of nonRefProperties. - */ - int getNonRefPropertiesCount(); - /** - * repeated string non_ref_properties = 1; - * @param index The index of the element to return. - * @return The nonRefProperties at the given index. + * string prop_name = 1; + * @return The propName. */ - java.lang.String getNonRefProperties(int index); + java.lang.String getPropName(); /** - * repeated string non_ref_properties = 1; - * @param index The index of the value to return. - * @return The bytes of the nonRefProperties at the given index. + * string prop_name = 1; + * @return The bytes for propName. */ com.google.protobuf.ByteString - getNonRefPropertiesBytes(int index); + getPropNameBytes(); /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - java.util.List - getRefPropertiesList(); - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + * repeated string primitive_properties = 2; + * @return A list containing the primitiveProperties. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index); + java.util.List + getPrimitivePropertiesList(); /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + * repeated string primitive_properties = 2; + * @return The count of primitiveProperties. */ - int getRefPropertiesCount(); + int getPrimitivePropertiesCount(); /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + * repeated string primitive_properties = 2; + * @param index The index of the element to return. + * @return The primitiveProperties at the given index. */ - java.util.List - getRefPropertiesOrBuilderList(); + java.lang.String getPrimitiveProperties(int index); /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + * repeated string primitive_properties = 2; + * @param index The index of the value to return. + * @return The bytes of the primitiveProperties at the given index. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder( - int index); + com.google.protobuf.ByteString + getPrimitivePropertiesBytes(int index); /** * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; @@ -9558,29 +10158,23 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestO */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder( int index); - - /** - * bool return_all_nonref_properties = 11; - * @return The returnAllNonrefProperties. - */ - boolean getReturnAllNonrefProperties(); } /** - * Protobuf type {@code weaviate.v1.PropertiesRequest} + * Protobuf type {@code weaviate.v1.ObjectPropertiesRequest} */ - public static final class PropertiesRequest extends + public static final class ObjectPropertiesRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.PropertiesRequest) - PropertiesRequestOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.ObjectPropertiesRequest) + ObjectPropertiesRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use PropertiesRequest.newBuilder() to construct. - private PropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ObjectPropertiesRequest.newBuilder() to construct. + private ObjectPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PropertiesRequest() { - nonRefProperties_ = + private ObjectPropertiesRequest() { + propName_ = ""; + primitiveProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); - refProperties_ = java.util.Collections.emptyList(); objectProperties_ = java.util.Collections.emptyList(); } @@ -9588,98 +10182,96 @@ private PropertiesRequest() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new PropertiesRequest(); + return new ObjectPropertiesRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder.class); } - public static final int NON_REF_PROPERTIES_FIELD_NUMBER = 1; + public static final int PROP_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList nonRefProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string non_ref_properties = 1; - * @return A list containing the nonRefProperties. - */ - public com.google.protobuf.ProtocolStringList - getNonRefPropertiesList() { - return nonRefProperties_; - } - /** - * repeated string non_ref_properties = 1; - * @return The count of nonRefProperties. - */ - public int getNonRefPropertiesCount() { - return nonRefProperties_.size(); - } + private volatile java.lang.Object propName_ = ""; /** - * repeated string non_ref_properties = 1; - * @param index The index of the element to return. - * @return The nonRefProperties at the given index. + * string prop_name = 1; + * @return The propName. */ - public java.lang.String getNonRefProperties(int index) { - return nonRefProperties_.get(index); + @java.lang.Override + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + 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(); + propName_ = s; + return s; + } } /** - * repeated string non_ref_properties = 1; - * @param index The index of the value to return. - * @return The bytes of the nonRefProperties at the given index. + * string prop_name = 1; + * @return The bytes for propName. */ + @java.lang.Override public com.google.protobuf.ByteString - getNonRefPropertiesBytes(int index) { - return nonRefProperties_.getByteString(index); + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int REF_PROPERTIES_FIELD_NUMBER = 2; + public static final int PRIMITIVE_PROPERTIES_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private java.util.List refProperties_; - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - @java.lang.Override - public java.util.List getRefPropertiesList() { - return refProperties_; - } + private com.google.protobuf.LazyStringArrayList primitiveProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + * repeated string primitive_properties = 2; + * @return A list containing the primitiveProperties. */ - @java.lang.Override - public java.util.List - getRefPropertiesOrBuilderList() { - return refProperties_; + public com.google.protobuf.ProtocolStringList + getPrimitivePropertiesList() { + return primitiveProperties_; } /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + * repeated string primitive_properties = 2; + * @return The count of primitiveProperties. */ - @java.lang.Override - public int getRefPropertiesCount() { - return refProperties_.size(); + public int getPrimitivePropertiesCount() { + return primitiveProperties_.size(); } /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + * repeated string primitive_properties = 2; + * @param index The index of the element to return. + * @return The primitiveProperties at the given index. */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index) { - return refProperties_.get(index); + public java.lang.String getPrimitiveProperties(int index) { + return primitiveProperties_.get(index); } /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; + * repeated string primitive_properties = 2; + * @param index The index of the value to return. + * @return The bytes of the primitiveProperties at the given index. */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder( - int index) { - return refProperties_.get(index); + public com.google.protobuf.ByteString + getPrimitivePropertiesBytes(int index) { + return primitiveProperties_.getByteString(index); } public static final int OBJECT_PROPERTIES_FIELD_NUMBER = 3; @@ -9723,17 +10315,6 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectProperti return objectProperties_.get(index); } - public static final int RETURN_ALL_NONREF_PROPERTIES_FIELD_NUMBER = 11; - private boolean returnAllNonrefProperties_ = false; - /** - * bool return_all_nonref_properties = 11; - * @return The returnAllNonrefProperties. - */ - @java.lang.Override - public boolean getReturnAllNonrefProperties() { - return returnAllNonrefProperties_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -9748,18 +10329,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < nonRefProperties_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nonRefProperties_.getRaw(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, propName_); } - for (int i = 0; i < refProperties_.size(); i++) { - output.writeMessage(2, refProperties_.get(i)); + for (int i = 0; i < primitiveProperties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primitiveProperties_.getRaw(i)); } for (int i = 0; i < objectProperties_.size(); i++) { output.writeMessage(3, objectProperties_.get(i)); } - if (returnAllNonrefProperties_ != false) { - output.writeBool(11, returnAllNonrefProperties_); - } getUnknownFields().writeTo(output); } @@ -9769,26 +10347,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, propName_); + } { int dataSize = 0; - for (int i = 0; i < nonRefProperties_.size(); i++) { - dataSize += computeStringSizeNoTag(nonRefProperties_.getRaw(i)); + for (int i = 0; i < primitiveProperties_.size(); i++) { + dataSize += computeStringSizeNoTag(primitiveProperties_.getRaw(i)); } size += dataSize; - size += 1 * getNonRefPropertiesList().size(); - } - for (int i = 0; i < refProperties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, refProperties_.get(i)); + size += 1 * getPrimitivePropertiesList().size(); } for (int i = 0; i < objectProperties_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, objectProperties_.get(i)); } - if (returnAllNonrefProperties_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, returnAllNonrefProperties_); - } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -9799,19 +10372,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest) obj; - if (!getNonRefPropertiesList() - .equals(other.getNonRefPropertiesList())) return false; - if (!getRefPropertiesList() - .equals(other.getRefPropertiesList())) return false; + if (!getPropName() + .equals(other.getPropName())) return false; + if (!getPrimitivePropertiesList() + .equals(other.getPrimitivePropertiesList())) return false; if (!getObjectPropertiesList() .equals(other.getObjectPropertiesList())) return false; - if (getReturnAllNonrefProperties() - != other.getReturnAllNonrefProperties()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9823,64 +10394,59 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getNonRefPropertiesCount() > 0) { - hash = (37 * hash) + NON_REF_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getNonRefPropertiesList().hashCode(); - } - if (getRefPropertiesCount() > 0) { - hash = (37 * hash) + REF_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getRefPropertiesList().hashCode(); + hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPropName().hashCode(); + if (getPrimitivePropertiesCount() > 0) { + hash = (37 * hash) + PRIMITIVE_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPrimitivePropertiesList().hashCode(); } if (getObjectPropertiesCount() > 0) { hash = (37 * hash) + OBJECT_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getObjectPropertiesList().hashCode(); } - hash = (37 * hash) + RETURN_ALL_NONREF_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReturnAllNonrefProperties()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9888,26 +10454,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Propert .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9920,7 +10486,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Propert public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -9936,26 +10502,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.PropertiesRequest} + * Protobuf type {@code weaviate.v1.ObjectPropertiesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.PropertiesRequest) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.ObjectPropertiesRequest) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.newBuilder() private Builder() { } @@ -9969,15 +10535,9 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - nonRefProperties_ = + propName_ = ""; + primitiveProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (refPropertiesBuilder_ == null) { - refProperties_ = java.util.Collections.emptyList(); - } else { - refProperties_ = null; - refPropertiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); if (objectPropertiesBuilder_ == null) { objectProperties_ = java.util.Collections.emptyList(); } else { @@ -9985,24 +10545,23 @@ public Builder clear() { objectPropertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); - returnAllNonrefProperties_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10010,24 +10569,15 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequ } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result) { - if (refPropertiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - refProperties_ = java.util.Collections.unmodifiableList(refProperties_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.refProperties_ = refProperties_; - } else { - result.refProperties_ = refPropertiesBuilder_.build(); - } + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest result) { if (objectPropertiesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { objectProperties_ = java.util.Collections.unmodifiableList(objectProperties_); @@ -10039,14 +10589,14 @@ private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.Weav } } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - nonRefProperties_.makeImmutable(); - result.nonRefProperties_ = nonRefProperties_; + result.propName_ = propName_; } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.returnAllNonrefProperties_ = returnAllNonrefProperties_; + if (((from_bitField0_ & 0x00000002) != 0)) { + primitiveProperties_.makeImmutable(); + result.primitiveProperties_ = primitiveProperties_; } } @@ -10084,51 +10634,30 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance()) return this; - if (!other.nonRefProperties_.isEmpty()) { - if (nonRefProperties_.isEmpty()) { - nonRefProperties_ = other.nonRefProperties_; - bitField0_ |= 0x00000001; - } else { - ensureNonRefPropertiesIsMutable(); - nonRefProperties_.addAll(other.nonRefProperties_); - } + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance()) return this; + if (!other.getPropName().isEmpty()) { + propName_ = other.propName_; + bitField0_ |= 0x00000001; onChanged(); } - if (refPropertiesBuilder_ == null) { - if (!other.refProperties_.isEmpty()) { - if (refProperties_.isEmpty()) { - refProperties_ = other.refProperties_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRefPropertiesIsMutable(); - refProperties_.addAll(other.refProperties_); - } - onChanged(); - } - } else { - if (!other.refProperties_.isEmpty()) { - if (refPropertiesBuilder_.isEmpty()) { - refPropertiesBuilder_.dispose(); - refPropertiesBuilder_ = null; - refProperties_ = other.refProperties_; - bitField0_ = (bitField0_ & ~0x00000002); - refPropertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRefPropertiesFieldBuilder() : null; - } else { - refPropertiesBuilder_.addAllMessages(other.refProperties_); - } + if (!other.primitiveProperties_.isEmpty()) { + if (primitiveProperties_.isEmpty()) { + primitiveProperties_ = other.primitiveProperties_; + bitField0_ |= 0x00000002; + } else { + ensurePrimitivePropertiesIsMutable(); + primitiveProperties_.addAll(other.primitiveProperties_); } + onChanged(); } if (objectPropertiesBuilder_ == null) { if (!other.objectProperties_.isEmpty()) { @@ -10156,9 +10685,6 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch } } } - if (other.getReturnAllNonrefProperties() != false) { - setReturnAllNonrefProperties(other.getReturnAllNonrefProperties()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -10186,22 +10712,14 @@ public Builder mergeFrom( done = true; break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNonRefPropertiesIsMutable(); - nonRefProperties_.add(s); + propName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 case 18: { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest m = - input.readMessage( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.parser(), - extensionRegistry); - if (refPropertiesBuilder_ == null) { - ensureRefPropertiesIsMutable(); - refProperties_.add(m); - } else { - refPropertiesBuilder_.addMessage(m); - } + java.lang.String s = input.readStringRequireUtf8(); + ensurePrimitivePropertiesIsMutable(); + primitiveProperties_.add(s); break; } // case 18 case 26: { @@ -10217,11 +10735,6 @@ public Builder mergeFrom( } break; } // case 26 - case 88: { - returnAllNonrefProperties_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 88 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -10239,357 +10752,189 @@ public Builder mergeFrom( } private int bitField0_; - private com.google.protobuf.LazyStringArrayList nonRefProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureNonRefPropertiesIsMutable() { - if (!nonRefProperties_.isModifiable()) { - nonRefProperties_ = new com.google.protobuf.LazyStringArrayList(nonRefProperties_); + private java.lang.Object propName_ = ""; + /** + * string prop_name = 1; + * @return The propName. + */ + public java.lang.String getPropName() { + java.lang.Object ref = propName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + propName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prop_name = 1; + * @return The bytes for propName. + */ + public com.google.protobuf.ByteString + getPropNameBytes() { + java.lang.Object ref = propName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + propName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * string prop_name = 1; + * @param value The propName to set. + * @return This builder for chaining. + */ + public Builder setPropName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + propName_ = value; bitField0_ |= 0x00000001; + onChanged(); + return this; } /** - * repeated string non_ref_properties = 1; - * @return A list containing the nonRefProperties. + * string prop_name = 1; + * @return This builder for chaining. + */ + public Builder clearPropName() { + propName_ = getDefaultInstance().getPropName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string prop_name = 1; + * @param value The bytes for propName to set. + * @return This builder for chaining. + */ + public Builder setPropNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + propName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList primitiveProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePrimitivePropertiesIsMutable() { + if (!primitiveProperties_.isModifiable()) { + primitiveProperties_ = new com.google.protobuf.LazyStringArrayList(primitiveProperties_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated string primitive_properties = 2; + * @return A list containing the primitiveProperties. */ public com.google.protobuf.ProtocolStringList - getNonRefPropertiesList() { - nonRefProperties_.makeImmutable(); - return nonRefProperties_; + getPrimitivePropertiesList() { + primitiveProperties_.makeImmutable(); + return primitiveProperties_; } /** - * repeated string non_ref_properties = 1; - * @return The count of nonRefProperties. + * repeated string primitive_properties = 2; + * @return The count of primitiveProperties. */ - public int getNonRefPropertiesCount() { - return nonRefProperties_.size(); + public int getPrimitivePropertiesCount() { + return primitiveProperties_.size(); } /** - * repeated string non_ref_properties = 1; + * repeated string primitive_properties = 2; * @param index The index of the element to return. - * @return The nonRefProperties at the given index. + * @return The primitiveProperties at the given index. */ - public java.lang.String getNonRefProperties(int index) { - return nonRefProperties_.get(index); + public java.lang.String getPrimitiveProperties(int index) { + return primitiveProperties_.get(index); } /** - * repeated string non_ref_properties = 1; + * repeated string primitive_properties = 2; * @param index The index of the value to return. - * @return The bytes of the nonRefProperties at the given index. + * @return The bytes of the primitiveProperties at the given index. */ public com.google.protobuf.ByteString - getNonRefPropertiesBytes(int index) { - return nonRefProperties_.getByteString(index); + getPrimitivePropertiesBytes(int index) { + return primitiveProperties_.getByteString(index); } /** - * repeated string non_ref_properties = 1; + * repeated string primitive_properties = 2; * @param index The index to set the value at. - * @param value The nonRefProperties to set. + * @param value The primitiveProperties to set. * @return This builder for chaining. */ - public Builder setNonRefProperties( + public Builder setPrimitiveProperties( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureNonRefPropertiesIsMutable(); - nonRefProperties_.set(index, value); - bitField0_ |= 0x00000001; + ensurePrimitivePropertiesIsMutable(); + primitiveProperties_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * repeated string non_ref_properties = 1; - * @param value The nonRefProperties to add. + * repeated string primitive_properties = 2; + * @param value The primitiveProperties to add. * @return This builder for chaining. */ - public Builder addNonRefProperties( + public Builder addPrimitiveProperties( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureNonRefPropertiesIsMutable(); - nonRefProperties_.add(value); - bitField0_ |= 0x00000001; + ensurePrimitivePropertiesIsMutable(); + primitiveProperties_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * repeated string non_ref_properties = 1; - * @param values The nonRefProperties to add. + * repeated string primitive_properties = 2; + * @param values The primitiveProperties to add. * @return This builder for chaining. */ - public Builder addAllNonRefProperties( + public Builder addAllPrimitiveProperties( java.lang.Iterable values) { - ensureNonRefPropertiesIsMutable(); + ensurePrimitivePropertiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nonRefProperties_); - bitField0_ |= 0x00000001; + values, primitiveProperties_); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * repeated string non_ref_properties = 1; + * repeated string primitive_properties = 2; * @return This builder for chaining. */ - public Builder clearNonRefProperties() { - nonRefProperties_ = + public Builder clearPrimitiveProperties() { + primitiveProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * repeated string non_ref_properties = 1; - * @param value The bytes of the nonRefProperties to add. + * repeated string primitive_properties = 2; + * @param value The bytes of the primitiveProperties to add. * @return This builder for chaining. */ - public Builder addNonRefPropertiesBytes( + public Builder addPrimitivePropertiesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureNonRefPropertiesIsMutable(); - nonRefProperties_.add(value); - bitField0_ |= 0x00000001; + ensurePrimitivePropertiesIsMutable(); + primitiveProperties_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } - private java.util.List refProperties_ = - java.util.Collections.emptyList(); - private void ensureRefPropertiesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - refProperties_ = new java.util.ArrayList(refProperties_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder> refPropertiesBuilder_; - - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public java.util.List getRefPropertiesList() { - if (refPropertiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(refProperties_); - } else { - return refPropertiesBuilder_.getMessageList(); - } - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public int getRefPropertiesCount() { - if (refPropertiesBuilder_ == null) { - return refProperties_.size(); - } else { - return refPropertiesBuilder_.getCount(); - } - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index) { - if (refPropertiesBuilder_ == null) { - return refProperties_.get(index); - } else { - return refPropertiesBuilder_.getMessage(index); - } - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder setRefProperties( - int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) { - if (refPropertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRefPropertiesIsMutable(); - refProperties_.set(index, value); - onChanged(); - } else { - refPropertiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder setRefProperties( - int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) { - if (refPropertiesBuilder_ == null) { - ensureRefPropertiesIsMutable(); - refProperties_.set(index, builderForValue.build()); - onChanged(); - } else { - refPropertiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder addRefProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) { - if (refPropertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRefPropertiesIsMutable(); - refProperties_.add(value); - onChanged(); - } else { - refPropertiesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder addRefProperties( - int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) { - if (refPropertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRefPropertiesIsMutable(); - refProperties_.add(index, value); - onChanged(); - } else { - refPropertiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder addRefProperties( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) { - if (refPropertiesBuilder_ == null) { - ensureRefPropertiesIsMutable(); - refProperties_.add(builderForValue.build()); - onChanged(); - } else { - refPropertiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder addRefProperties( - int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) { - if (refPropertiesBuilder_ == null) { - ensureRefPropertiesIsMutable(); - refProperties_.add(index, builderForValue.build()); - onChanged(); - } else { - refPropertiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder addAllRefProperties( - java.lang.Iterable values) { - if (refPropertiesBuilder_ == null) { - ensureRefPropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, refProperties_); - onChanged(); - } else { - refPropertiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder clearRefProperties() { - if (refPropertiesBuilder_ == null) { - refProperties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - refPropertiesBuilder_.clear(); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public Builder removeRefProperties(int index) { - if (refPropertiesBuilder_ == null) { - ensureRefPropertiesIsMutable(); - refProperties_.remove(index); - onChanged(); - } else { - refPropertiesBuilder_.remove(index); - } - return this; - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder getRefPropertiesBuilder( - int index) { - return getRefPropertiesFieldBuilder().getBuilder(index); - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder( - int index) { - if (refPropertiesBuilder_ == null) { - return refProperties_.get(index); } else { - return refPropertiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public java.util.List - getRefPropertiesOrBuilderList() { - if (refPropertiesBuilder_ != null) { - return refPropertiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(refProperties_); - } - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder addRefPropertiesBuilder() { - return getRefPropertiesFieldBuilder().addBuilder( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance()); - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder addRefPropertiesBuilder( - int index) { - return getRefPropertiesFieldBuilder().addBuilder( - index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance()); - } - /** - * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2; - */ - public java.util.List - getRefPropertiesBuilderList() { - return getRefPropertiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder> - getRefPropertiesFieldBuilder() { - if (refPropertiesBuilder_ == null) { - refPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder>( - refProperties_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - refProperties_ = null; - } - return refPropertiesBuilder_; - } - private java.util.List objectProperties_ = java.util.Collections.emptyList(); private void ensureObjectPropertiesIsMutable() { @@ -10829,38 +11174,6 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectProperti } return objectPropertiesBuilder_; } - - private boolean returnAllNonrefProperties_ ; - /** - * bool return_all_nonref_properties = 11; - * @return The returnAllNonrefProperties. - */ - @java.lang.Override - public boolean getReturnAllNonrefProperties() { - return returnAllNonrefProperties_; - } - /** - * bool return_all_nonref_properties = 11; - * @param value The returnAllNonrefProperties to set. - * @return This builder for chaining. - */ - public Builder setReturnAllNonrefProperties(boolean value) { - - returnAllNonrefProperties_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * bool return_all_nonref_properties = 11; - * @return This builder for chaining. - */ - public Builder clearReturnAllNonrefProperties() { - bitField0_ = (bitField0_ & ~0x00000008); - returnAllNonrefProperties_ = false; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10874,23 +11187,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.PropertiesRequest) + // @@protoc_insertion_point(builder_scope:weaviate.v1.ObjectPropertiesRequest) } - // @@protoc_insertion_point(class_scope:weaviate.v1.PropertiesRequest) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.ObjectPropertiesRequest) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PropertiesRequest parsePartialFrom( + public ObjectPropertiesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10909,241 +11222,128 @@ public PropertiesRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ObjectPropertiesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.ObjectPropertiesRequest) + public interface WeightsForTargetOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.WeightsForTarget) com.google.protobuf.MessageOrBuilder { /** - * string prop_name = 1; - * @return The propName. - */ - java.lang.String getPropName(); - /** - * string prop_name = 1; - * @return The bytes for propName. - */ - com.google.protobuf.ByteString - getPropNameBytes(); - - /** - * repeated string primitive_properties = 2; - * @return A list containing the primitiveProperties. - */ - java.util.List - getPrimitivePropertiesList(); - /** - * repeated string primitive_properties = 2; - * @return The count of primitiveProperties. - */ - int getPrimitivePropertiesCount(); - /** - * repeated string primitive_properties = 2; - * @param index The index of the element to return. - * @return The primitiveProperties at the given index. + * string target = 1; + * @return The target. */ - java.lang.String getPrimitiveProperties(int index); + java.lang.String getTarget(); /** - * repeated string primitive_properties = 2; - * @param index The index of the value to return. - * @return The bytes of the primitiveProperties at the given index. + * string target = 1; + * @return The bytes for target. */ com.google.protobuf.ByteString - getPrimitivePropertiesBytes(int index); + getTargetBytes(); /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - java.util.List - getObjectPropertiesList(); - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index); - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - int getObjectPropertiesCount(); - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - java.util.List - getObjectPropertiesOrBuilderList(); - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + * float weight = 2; + * @return The weight. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder( - int index); + float getWeight(); } /** - * Protobuf type {@code weaviate.v1.ObjectPropertiesRequest} + * Protobuf type {@code weaviate.v1.WeightsForTarget} */ - public static final class ObjectPropertiesRequest extends + public static final class WeightsForTarget extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.ObjectPropertiesRequest) - ObjectPropertiesRequestOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.WeightsForTarget) + WeightsForTargetOrBuilder { private static final long serialVersionUID = 0L; - // Use ObjectPropertiesRequest.newBuilder() to construct. - private ObjectPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use WeightsForTarget.newBuilder() to construct. + private WeightsForTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectPropertiesRequest() { - propName_ = ""; - primitiveProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - objectProperties_ = java.util.Collections.emptyList(); + private WeightsForTarget() { + target_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ObjectPropertiesRequest(); + return new WeightsForTarget(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_WeightsForTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_WeightsForTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder.class); } - public static final int PROP_NAME_FIELD_NUMBER = 1; + public static final int TARGET_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object propName_ = ""; + private volatile java.lang.Object target_ = ""; /** - * string prop_name = 1; - * @return The propName. + * string target = 1; + * @return The target. */ @java.lang.Override - public java.lang.String getPropName() { - java.lang.Object ref = propName_; + public java.lang.String getTarget() { + java.lang.Object ref = target_; 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(); - propName_ = s; + target_ = s; return s; } } /** - * string prop_name = 1; - * @return The bytes for propName. + * string target = 1; + * @return The bytes for target. */ @java.lang.Override public com.google.protobuf.ByteString - getPropNameBytes() { - java.lang.Object ref = propName_; + getTargetBytes() { + java.lang.Object ref = target_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - propName_ = b; + target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PRIMITIVE_PROPERTIES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList primitiveProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string primitive_properties = 2; - * @return A list containing the primitiveProperties. - */ - public com.google.protobuf.ProtocolStringList - getPrimitivePropertiesList() { - return primitiveProperties_; - } - /** - * repeated string primitive_properties = 2; - * @return The count of primitiveProperties. - */ - public int getPrimitivePropertiesCount() { - return primitiveProperties_.size(); - } - /** - * repeated string primitive_properties = 2; - * @param index The index of the element to return. - * @return The primitiveProperties at the given index. - */ - public java.lang.String getPrimitiveProperties(int index) { - return primitiveProperties_.get(index); - } - /** - * repeated string primitive_properties = 2; - * @param index The index of the value to return. - * @return The bytes of the primitiveProperties at the given index. - */ - public com.google.protobuf.ByteString - getPrimitivePropertiesBytes(int index) { - return primitiveProperties_.getByteString(index); - } - - public static final int OBJECT_PROPERTIES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List objectProperties_; - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - @java.lang.Override - public java.util.List getObjectPropertiesList() { - return objectProperties_; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - @java.lang.Override - public java.util.List - getObjectPropertiesOrBuilderList() { - return objectProperties_; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - @java.lang.Override - public int getObjectPropertiesCount() { - return objectProperties_.size(); - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index) { - return objectProperties_.get(index); - } + public static final int WEIGHT_FIELD_NUMBER = 2; + private float weight_ = 0F; /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; + * float weight = 2; + * @return The weight. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder( - int index) { - return objectProperties_.get(index); + public float getWeight() { + return weight_; } private byte memoizedIsInitialized = -1; @@ -11160,14 +11360,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, propName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, target_); } - for (int i = 0; i < primitiveProperties_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primitiveProperties_.getRaw(i)); - } - for (int i = 0; i < objectProperties_.size(); i++) { - output.writeMessage(3, objectProperties_.get(i)); + if (java.lang.Float.floatToRawIntBits(weight_) != 0) { + output.writeFloat(2, weight_); } getUnknownFields().writeTo(output); } @@ -11178,20 +11375,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, propName_); - } - { - int dataSize = 0; - for (int i = 0; i < primitiveProperties_.size(); i++) { - dataSize += computeStringSizeNoTag(primitiveProperties_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrimitivePropertiesList().size(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, target_); } - for (int i = 0; i < objectProperties_.size(); i++) { + if (java.lang.Float.floatToRawIntBits(weight_) != 0) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, objectProperties_.get(i)); + .computeFloatSize(2, weight_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -11203,17 +11392,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget) obj; - if (!getPropName() - .equals(other.getPropName())) return false; - if (!getPrimitivePropertiesList() - .equals(other.getPrimitivePropertiesList())) return false; - if (!getObjectPropertiesList() - .equals(other.getObjectPropertiesList())) return false; + if (!getTarget() + .equals(other.getTarget())) return false; + if (java.lang.Float.floatToIntBits(getWeight()) + != java.lang.Float.floatToIntBits( + other.getWeight())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11225,59 +11413,54 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROP_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPropName().hashCode(); - if (getPrimitivePropertiesCount() > 0) { - hash = (37 * hash) + PRIMITIVE_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getPrimitivePropertiesList().hashCode(); - } - if (getObjectPropertiesCount() > 0) { - hash = (37 * hash) + OBJECT_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getObjectPropertiesList().hashCode(); - } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + WEIGHT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getWeight()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -11285,26 +11468,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectP .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -11317,7 +11500,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectP public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -11333,26 +11516,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.ObjectPropertiesRequest} + * Protobuf type {@code weaviate.v1.WeightsForTarget} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.ObjectPropertiesRequest) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.WeightsForTarget) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTargetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_WeightsForTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_WeightsForTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.newBuilder() private Builder() { } @@ -11366,33 +11549,25 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - propName_ = ""; - primitiveProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - if (objectPropertiesBuilder_ == null) { - objectProperties_ = java.util.Collections.emptyList(); - } else { - objectProperties_ = null; - objectPropertiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); + target_ = ""; + weight_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_WeightsForTarget_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11400,34 +11575,20 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectProperti } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest(this); - buildPartialRepeatedFields(result); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest result) { - if (objectPropertiesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - objectProperties_ = java.util.Collections.unmodifiableList(objectProperties_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.objectProperties_ = objectProperties_; - } else { - result.objectProperties_ = objectPropertiesBuilder_.build(); - } - } - - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.propName_ = propName_; + result.target_ = target_; } if (((from_bitField0_ & 0x00000002) != 0)) { - primitiveProperties_.makeImmutable(); - result.primitiveProperties_ = primitiveProperties_; + result.weight_ = weight_; } } @@ -11465,56 +11626,23 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance()) return this; - if (!other.getPropName().isEmpty()) { - propName_ = other.propName_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.getDefaultInstance()) return this; + if (!other.getTarget().isEmpty()) { + target_ = other.target_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.primitiveProperties_.isEmpty()) { - if (primitiveProperties_.isEmpty()) { - primitiveProperties_ = other.primitiveProperties_; - bitField0_ |= 0x00000002; - } else { - ensurePrimitivePropertiesIsMutable(); - primitiveProperties_.addAll(other.primitiveProperties_); - } - onChanged(); - } - if (objectPropertiesBuilder_ == null) { - if (!other.objectProperties_.isEmpty()) { - if (objectProperties_.isEmpty()) { - objectProperties_ = other.objectProperties_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureObjectPropertiesIsMutable(); - objectProperties_.addAll(other.objectProperties_); - } - onChanged(); - } - } else { - if (!other.objectProperties_.isEmpty()) { - if (objectPropertiesBuilder_.isEmpty()) { - objectPropertiesBuilder_.dispose(); - objectPropertiesBuilder_ = null; - objectProperties_ = other.objectProperties_; - bitField0_ = (bitField0_ & ~0x00000004); - objectPropertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getObjectPropertiesFieldBuilder() : null; - } else { - objectPropertiesBuilder_.addAllMessages(other.objectProperties_); - } - } + if (other.getWeight() != 0F) { + setWeight(other.getWeight()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -11543,29 +11671,15 @@ public Builder mergeFrom( done = true; break; case 10: { - propName_ = input.readStringRequireUtf8(); + target_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrimitivePropertiesIsMutable(); - primitiveProperties_.add(s); - break; - } // case 18 - case 26: { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest m = - input.readMessage( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.parser(), - extensionRegistry); - if (objectPropertiesBuilder_ == null) { - ensureObjectPropertiesIsMutable(); - objectProperties_.add(m); - } else { - objectPropertiesBuilder_.addMessage(m); - } + case 21: { + weight_ = input.readFloat(); + bitField0_ |= 0x00000002; break; - } // case 26 + } // case 21 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -11583,428 +11697,109 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object propName_ = ""; + private java.lang.Object target_ = ""; /** - * string prop_name = 1; - * @return The propName. + * string target = 1; + * @return The target. */ - public java.lang.String getPropName() { - java.lang.Object ref = propName_; + public java.lang.String getTarget() { + java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - propName_ = s; + target_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string prop_name = 1; - * @return The bytes for propName. + * string target = 1; + * @return The bytes for target. */ public com.google.protobuf.ByteString - getPropNameBytes() { - java.lang.Object ref = propName_; + getTargetBytes() { + java.lang.Object ref = target_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - propName_ = b; + target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string prop_name = 1; - * @param value The propName to set. + * string target = 1; + * @param value The target to set. * @return This builder for chaining. */ - public Builder setPropName( + public Builder setTarget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - propName_ = value; + target_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string prop_name = 1; + * string target = 1; * @return This builder for chaining. */ - public Builder clearPropName() { - propName_ = getDefaultInstance().getPropName(); + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string prop_name = 1; - * @param value The bytes for propName to set. + * string target = 1; + * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setPropNameBytes( + public Builder setTargetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - propName_ = value; + target_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList primitiveProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePrimitivePropertiesIsMutable() { - if (!primitiveProperties_.isModifiable()) { - primitiveProperties_ = new com.google.protobuf.LazyStringArrayList(primitiveProperties_); - } - bitField0_ |= 0x00000002; - } - /** - * repeated string primitive_properties = 2; - * @return A list containing the primitiveProperties. - */ - public com.google.protobuf.ProtocolStringList - getPrimitivePropertiesList() { - primitiveProperties_.makeImmutable(); - return primitiveProperties_; - } - /** - * repeated string primitive_properties = 2; - * @return The count of primitiveProperties. - */ - public int getPrimitivePropertiesCount() { - return primitiveProperties_.size(); - } - /** - * repeated string primitive_properties = 2; - * @param index The index of the element to return. - * @return The primitiveProperties at the given index. - */ - public java.lang.String getPrimitiveProperties(int index) { - return primitiveProperties_.get(index); - } - /** - * repeated string primitive_properties = 2; - * @param index The index of the value to return. - * @return The bytes of the primitiveProperties at the given index. - */ - public com.google.protobuf.ByteString - getPrimitivePropertiesBytes(int index) { - return primitiveProperties_.getByteString(index); - } - /** - * repeated string primitive_properties = 2; - * @param index The index to set the value at. - * @param value The primitiveProperties to set. - * @return This builder for chaining. - */ - public Builder setPrimitiveProperties( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePrimitivePropertiesIsMutable(); - primitiveProperties_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + private float weight_ ; /** - * repeated string primitive_properties = 2; - * @param value The primitiveProperties to add. - * @return This builder for chaining. + * float weight = 2; + * @return The weight. */ - public Builder addPrimitiveProperties( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePrimitivePropertiesIsMutable(); - primitiveProperties_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public float getWeight() { + return weight_; } /** - * repeated string primitive_properties = 2; - * @param values The primitiveProperties to add. + * float weight = 2; + * @param value The weight to set. * @return This builder for chaining. */ - public Builder addAllPrimitiveProperties( - java.lang.Iterable values) { - ensurePrimitivePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, primitiveProperties_); + public Builder setWeight(float value) { + + weight_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * repeated string primitive_properties = 2; - * @return This builder for chaining. - */ - public Builder clearPrimitiveProperties() { - primitiveProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; - onChanged(); - return this; - } - /** - * repeated string primitive_properties = 2; - * @param value The bytes of the primitiveProperties to add. + * float weight = 2; * @return This builder for chaining. */ - public Builder addPrimitivePropertiesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensurePrimitivePropertiesIsMutable(); - primitiveProperties_.add(value); - bitField0_ |= 0x00000002; + public Builder clearWeight() { + bitField0_ = (bitField0_ & ~0x00000002); + weight_ = 0F; onChanged(); return this; } - - private java.util.List objectProperties_ = - java.util.Collections.emptyList(); - private void ensureObjectPropertiesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - objectProperties_ = new java.util.ArrayList(objectProperties_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder> objectPropertiesBuilder_; - - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public java.util.List getObjectPropertiesList() { - if (objectPropertiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(objectProperties_); - } else { - return objectPropertiesBuilder_.getMessageList(); - } - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public int getObjectPropertiesCount() { - if (objectPropertiesBuilder_ == null) { - return objectProperties_.size(); - } else { - return objectPropertiesBuilder_.getCount(); - } - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index) { - if (objectPropertiesBuilder_ == null) { - return objectProperties_.get(index); - } else { - return objectPropertiesBuilder_.getMessage(index); - } - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder setObjectProperties( - int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) { - if (objectPropertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureObjectPropertiesIsMutable(); - objectProperties_.set(index, value); - onChanged(); - } else { - objectPropertiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder setObjectProperties( - int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) { - if (objectPropertiesBuilder_ == null) { - ensureObjectPropertiesIsMutable(); - objectProperties_.set(index, builderForValue.build()); - onChanged(); - } else { - objectPropertiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder addObjectProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) { - if (objectPropertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureObjectPropertiesIsMutable(); - objectProperties_.add(value); - onChanged(); - } else { - objectPropertiesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder addObjectProperties( - int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) { - if (objectPropertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureObjectPropertiesIsMutable(); - objectProperties_.add(index, value); - onChanged(); - } else { - objectPropertiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder addObjectProperties( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) { - if (objectPropertiesBuilder_ == null) { - ensureObjectPropertiesIsMutable(); - objectProperties_.add(builderForValue.build()); - onChanged(); - } else { - objectPropertiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder addObjectProperties( - int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) { - if (objectPropertiesBuilder_ == null) { - ensureObjectPropertiesIsMutable(); - objectProperties_.add(index, builderForValue.build()); - onChanged(); - } else { - objectPropertiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder addAllObjectProperties( - java.lang.Iterable values) { - if (objectPropertiesBuilder_ == null) { - ensureObjectPropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, objectProperties_); - onChanged(); - } else { - objectPropertiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder clearObjectProperties() { - if (objectPropertiesBuilder_ == null) { - objectProperties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - objectPropertiesBuilder_.clear(); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public Builder removeObjectProperties(int index) { - if (objectPropertiesBuilder_ == null) { - ensureObjectPropertiesIsMutable(); - objectProperties_.remove(index); - onChanged(); - } else { - objectPropertiesBuilder_.remove(index); - } - return this; - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder getObjectPropertiesBuilder( - int index) { - return getObjectPropertiesFieldBuilder().getBuilder(index); - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder( - int index) { - if (objectPropertiesBuilder_ == null) { - return objectProperties_.get(index); } else { - return objectPropertiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public java.util.List - getObjectPropertiesOrBuilderList() { - if (objectPropertiesBuilder_ != null) { - return objectPropertiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(objectProperties_); - } - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder addObjectPropertiesBuilder() { - return getObjectPropertiesFieldBuilder().addBuilder( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance()); - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder addObjectPropertiesBuilder( - int index) { - return getObjectPropertiesFieldBuilder().addBuilder( - index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance()); - } - /** - * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3; - */ - public java.util.List - getObjectPropertiesBuilderList() { - return getObjectPropertiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder> - getObjectPropertiesFieldBuilder() { - if (objectPropertiesBuilder_ == null) { - objectPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder>( - objectProperties_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - objectProperties_ = null; - } - return objectPropertiesBuilder_; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12018,23 +11813,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.ObjectPropertiesRequest) + // @@protoc_insertion_point(builder_scope:weaviate.v1.WeightsForTarget) } - // @@protoc_insertion_point(class_scope:weaviate.v1.ObjectPropertiesRequest) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.WeightsForTarget) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ObjectPropertiesRequest parsePartialFrom( + public WeightsForTarget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -12053,17 +11848,17 @@ public ObjectPropertiesRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -12110,13 +11905,21 @@ public interface TargetsOrBuilder extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.CombinationMethod getCombination(); /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ - int getWeightsCount(); + @java.lang.Deprecated int getWeightsCount(); /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ - boolean containsWeights( + @java.lang.Deprecated boolean containsWeights( java.lang.String key); /** * Use {@link #getWeightsMap()} instead. @@ -12125,21 +11928,57 @@ boolean containsWeights( java.util.Map getWeights(); /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ - java.util.Map + @java.lang.Deprecated java.util.Map getWeightsMap(); /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ - float getWeightsOrDefault( + @java.lang.Deprecated float getWeightsOrDefault( java.lang.String key, float defaultValue); /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ - float getWeightsOrThrow( + @java.lang.Deprecated float getWeightsOrThrow( java.lang.String key); + + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + java.util.List + getWeightsForTargetsList(); + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget getWeightsForTargets(int index); + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + int getWeightsForTargetsCount(); + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + java.util.List + getWeightsForTargetsOrBuilderList(); + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTargetOrBuilder getWeightsForTargetsOrBuilder( + int index); } /** * Protobuf type {@code weaviate.v1.Targets} @@ -12157,6 +11996,7 @@ private Targets() { targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); combination_ = 0; + weightsForTargets_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -12269,14 +12109,18 @@ private static final class WeightsDefaultEntryHolder { } return weights_; } - public int getWeightsCount() { + @java.lang.Deprecated public int getWeightsCount() { return internalGetWeights().getMap().size(); } /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ @java.lang.Override - public boolean containsWeights( + @java.lang.Deprecated public boolean containsWeights( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWeights().getMap().containsKey(key); @@ -12290,17 +12134,25 @@ public java.util.Map getWeights() { return getWeightsMap(); } /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ @java.lang.Override - public java.util.Map getWeightsMap() { + @java.lang.Deprecated public java.util.Map getWeightsMap() { return internalGetWeights().getMap(); } /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ @java.lang.Override - public float getWeightsOrDefault( + @java.lang.Deprecated public float getWeightsOrDefault( java.lang.String key, float defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -12309,10 +12161,14 @@ public float getWeightsOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, float> weights = 3; + *
+     * deprecated in 1.26.2 - use weights_for_targets
+     * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ @java.lang.Override - public float getWeightsOrThrow( + @java.lang.Deprecated public float getWeightsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = @@ -12323,6 +12179,47 @@ public float getWeightsOrThrow( return map.get(key); } + public static final int WEIGHTS_FOR_TARGETS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List weightsForTargets_; + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + @java.lang.Override + public java.util.List getWeightsForTargetsList() { + return weightsForTargets_; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + @java.lang.Override + public java.util.List + getWeightsForTargetsOrBuilderList() { + return weightsForTargets_; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + @java.lang.Override + public int getWeightsForTargetsCount() { + return weightsForTargets_.size(); + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget getWeightsForTargets(int index) { + return weightsForTargets_.get(index); + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTargetOrBuilder getWeightsForTargetsOrBuilder( + int index) { + return weightsForTargets_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -12349,6 +12246,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetWeights(), WeightsDefaultEntryHolder.defaultEntry, 3); + for (int i = 0; i < weightsForTargets_.size(); i++) { + output.writeMessage(4, weightsForTargets_.get(i)); + } getUnknownFields().writeTo(output); } @@ -12380,6 +12280,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, weights__); } + for (int i = 0; i < weightsForTargets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, weightsForTargets_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12400,6 +12304,8 @@ public boolean equals(final java.lang.Object obj) { if (combination_ != other.combination_) return false; if (!internalGetWeights().equals( other.internalGetWeights())) return false; + if (!getWeightsForTargetsList() + .equals(other.getWeightsForTargetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12421,6 +12327,10 @@ public int hashCode() { hash = (37 * hash) + WEIGHTS_FIELD_NUMBER; hash = (53 * hash) + internalGetWeights().hashCode(); } + if (getWeightsForTargetsCount() > 0) { + hash = (37 * hash) + WEIGHTS_FOR_TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getWeightsForTargetsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -12578,6 +12488,13 @@ public Builder clear() { com.google.protobuf.LazyStringArrayList.emptyList(); combination_ = 0; internalGetMutableWeights().clear(); + if (weightsForTargetsBuilder_ == null) { + weightsForTargets_ = java.util.Collections.emptyList(); + } else { + weightsForTargets_ = null; + weightsForTargetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -12604,11 +12521,24 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets build( @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets buildPartial() { io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets result) { + if (weightsForTargetsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + weightsForTargets_ = java.util.Collections.unmodifiableList(weightsForTargets_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.weightsForTargets_ = weightsForTargets_; + } else { + result.weightsForTargets_ = weightsForTargetsBuilder_.build(); + } + } + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -12684,6 +12614,32 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch internalGetMutableWeights().mergeFrom( other.internalGetWeights()); bitField0_ |= 0x00000004; + if (weightsForTargetsBuilder_ == null) { + if (!other.weightsForTargets_.isEmpty()) { + if (weightsForTargets_.isEmpty()) { + weightsForTargets_ = other.weightsForTargets_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.addAll(other.weightsForTargets_); + } + onChanged(); + } + } else { + if (!other.weightsForTargets_.isEmpty()) { + if (weightsForTargetsBuilder_.isEmpty()) { + weightsForTargetsBuilder_.dispose(); + weightsForTargetsBuilder_ = null; + weightsForTargets_ = other.weightsForTargets_; + bitField0_ = (bitField0_ & ~0x00000008); + weightsForTargetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWeightsForTargetsFieldBuilder() : null; + } else { + weightsForTargetsBuilder_.addAllMessages(other.weightsForTargets_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -12730,6 +12686,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget m = + input.readMessage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.parser(), + extensionRegistry); + if (weightsForTargetsBuilder_ == null) { + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.add(m); + } else { + weightsForTargetsBuilder_.addMessage(m); + } + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -12913,7 +12882,7 @@ public Builder clearCombination() { private com.google.protobuf.MapField< java.lang.String, java.lang.Float> weights_; - private com.google.protobuf.MapField + @java.lang.Deprecated private com.google.protobuf.MapField internalGetWeights() { if (weights_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -12921,7 +12890,7 @@ public Builder clearCombination() { } return weights_; } - private com.google.protobuf.MapField + @java.lang.Deprecated private com.google.protobuf.MapField internalGetMutableWeights() { if (weights_ == null) { weights_ = com.google.protobuf.MapField.newMapField( @@ -12934,14 +12903,18 @@ public Builder clearCombination() { onChanged(); return weights_; } - public int getWeightsCount() { + @java.lang.Deprecated public int getWeightsCount() { return internalGetWeights().getMap().size(); } /** - * map<string, float> weights = 3; + *
+       * deprecated in 1.26.2 - use weights_for_targets
+       * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ @java.lang.Override - public boolean containsWeights( + @java.lang.Deprecated public boolean containsWeights( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWeights().getMap().containsKey(key); @@ -12955,17 +12928,25 @@ public java.util.Map getWeights() { return getWeightsMap(); } /** - * map<string, float> weights = 3; + *
+       * deprecated in 1.26.2 - use weights_for_targets
+       * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ @java.lang.Override - public java.util.Map getWeightsMap() { + @java.lang.Deprecated public java.util.Map getWeightsMap() { return internalGetWeights().getMap(); } /** - * map<string, float> weights = 3; + *
+       * deprecated in 1.26.2 - use weights_for_targets
+       * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ @java.lang.Override - public float getWeightsOrDefault( + @java.lang.Deprecated public float getWeightsOrDefault( java.lang.String key, float defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -12974,10 +12955,14 @@ public float getWeightsOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, float> weights = 3; + *
+       * deprecated in 1.26.2 - use weights_for_targets
+       * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ @java.lang.Override - public float getWeightsOrThrow( + @java.lang.Deprecated public float getWeightsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = @@ -12987,16 +12972,20 @@ public float getWeightsOrThrow( } return map.get(key); } - public Builder clearWeights() { + @java.lang.Deprecated public Builder clearWeights() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableWeights().getMutableMap() .clear(); return this; } /** - * map<string, float> weights = 3; + *
+       * deprecated in 1.26.2 - use weights_for_targets
+       * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ - public Builder removeWeights( + @java.lang.Deprecated public Builder removeWeights( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableWeights().getMutableMap() @@ -13013,9 +13002,13 @@ public Builder removeWeights( return internalGetMutableWeights().getMutableMap(); } /** - * map<string, float> weights = 3; + *
+       * deprecated in 1.26.2 - use weights_for_targets
+       * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ - public Builder putWeights( + @java.lang.Deprecated public Builder putWeights( java.lang.String key, float value) { if (key == null) { throw new NullPointerException("map key"); } @@ -13026,15 +13019,259 @@ public Builder putWeights( return this; } /** - * map<string, float> weights = 3; + *
+       * deprecated in 1.26.2 - use weights_for_targets
+       * 
+ * + * map<string, float> weights = 3 [deprecated = true]; */ - public Builder putAllWeights( + @java.lang.Deprecated public Builder putAllWeights( java.util.Map values) { internalGetMutableWeights().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } + + private java.util.List weightsForTargets_ = + java.util.Collections.emptyList(); + private void ensureWeightsForTargetsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + weightsForTargets_ = new java.util.ArrayList(weightsForTargets_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTargetOrBuilder> weightsForTargetsBuilder_; + + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public java.util.List getWeightsForTargetsList() { + if (weightsForTargetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(weightsForTargets_); + } else { + return weightsForTargetsBuilder_.getMessageList(); + } + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public int getWeightsForTargetsCount() { + if (weightsForTargetsBuilder_ == null) { + return weightsForTargets_.size(); + } else { + return weightsForTargetsBuilder_.getCount(); + } + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget getWeightsForTargets(int index) { + if (weightsForTargetsBuilder_ == null) { + return weightsForTargets_.get(index); + } else { + return weightsForTargetsBuilder_.getMessage(index); + } + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder setWeightsForTargets( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget value) { + if (weightsForTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.set(index, value); + onChanged(); + } else { + weightsForTargetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder setWeightsForTargets( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder builderForValue) { + if (weightsForTargetsBuilder_ == null) { + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.set(index, builderForValue.build()); + onChanged(); + } else { + weightsForTargetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder addWeightsForTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget value) { + if (weightsForTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.add(value); + onChanged(); + } else { + weightsForTargetsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder addWeightsForTargets( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget value) { + if (weightsForTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.add(index, value); + onChanged(); + } else { + weightsForTargetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder addWeightsForTargets( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder builderForValue) { + if (weightsForTargetsBuilder_ == null) { + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.add(builderForValue.build()); + onChanged(); + } else { + weightsForTargetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder addWeightsForTargets( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder builderForValue) { + if (weightsForTargetsBuilder_ == null) { + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.add(index, builderForValue.build()); + onChanged(); + } else { + weightsForTargetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder addAllWeightsForTargets( + java.lang.Iterable values) { + if (weightsForTargetsBuilder_ == null) { + ensureWeightsForTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, weightsForTargets_); + onChanged(); + } else { + weightsForTargetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder clearWeightsForTargets() { + if (weightsForTargetsBuilder_ == null) { + weightsForTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + weightsForTargetsBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public Builder removeWeightsForTargets(int index) { + if (weightsForTargetsBuilder_ == null) { + ensureWeightsForTargetsIsMutable(); + weightsForTargets_.remove(index); + onChanged(); + } else { + weightsForTargetsBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder getWeightsForTargetsBuilder( + int index) { + return getWeightsForTargetsFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTargetOrBuilder getWeightsForTargetsOrBuilder( + int index) { + if (weightsForTargetsBuilder_ == null) { + return weightsForTargets_.get(index); } else { + return weightsForTargetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public java.util.List + getWeightsForTargetsOrBuilderList() { + if (weightsForTargetsBuilder_ != null) { + return weightsForTargetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(weightsForTargets_); + } + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder addWeightsForTargetsBuilder() { + return getWeightsForTargetsFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder addWeightsForTargetsBuilder( + int index) { + return getWeightsForTargetsFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.WeightsForTarget weights_for_targets = 4; + */ + public java.util.List + getWeightsForTargetsBuilderList() { + return getWeightsForTargetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTargetOrBuilder> + getWeightsForTargetsFieldBuilder() { + if (weightsForTargetsBuilder_ == null) { + weightsForTargetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTarget.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.WeightsForTargetOrBuilder>( + weightsForTargets_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + weightsForTargets_ = null; + } + return weightsForTargetsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13147,7 +13384,7 @@ public interface HybridOrBuilder extends * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @return A list containing the vector. */ @java.lang.Deprecated java.util.List getVectorList(); @@ -13158,7 +13395,7 @@ public interface HybridOrBuilder extends * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @return The count of vector. */ @java.lang.Deprecated int getVectorCount(); @@ -13169,7 +13406,7 @@ public interface HybridOrBuilder extends * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -13205,7 +13442,7 @@ public interface HybridOrBuilder extends * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -13217,7 +13454,7 @@ public interface HybridOrBuilder extends * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -13228,7 +13465,7 @@ public interface HybridOrBuilder extends * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -13240,7 +13477,7 @@ public interface HybridOrBuilder extends * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -13315,6 +13552,19 @@ public interface HybridOrBuilder extends * .weaviate.v1.Targets targets = 10; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); + + /** + * float vector_distance = 20; + * @return Whether the vectorDistance field is set. + */ + boolean hasVectorDistance(); + /** + * float vector_distance = 20; + * @return The vectorDistance. + */ + float getVectorDistance(); + + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Hybrid.ThresholdCase getThresholdCase(); } /** * Protobuf type {@code weaviate.v1.Hybrid} @@ -13477,6 +13727,46 @@ private FusionType(int value) { } private int bitField0_; + private int thresholdCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object threshold_; + public enum ThresholdCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VECTOR_DISTANCE(20), + THRESHOLD_NOT_SET(0); + private final int value; + private ThresholdCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ThresholdCase valueOf(int value) { + return forNumber(value); + } + + public static ThresholdCase forNumber(int value) { + switch (value) { + case 20: return VECTOR_DISTANCE; + case 0: return THRESHOLD_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ThresholdCase + getThresholdCase() { + return ThresholdCase.forNumber( + thresholdCase_); + } + public static final int QUERY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; @@ -13564,7 +13854,7 @@ public java.lang.String getProperties(int index) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @return A list containing the vector. */ @java.lang.Override @@ -13579,7 +13869,7 @@ public java.lang.String getProperties(int index) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @return The count of vector. */ @java.lang.Deprecated public int getVectorCount() { @@ -13592,7 +13882,7 @@ public java.lang.String getProperties(int index) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -13652,7 +13942,7 @@ public com.google.protobuf.ByteString getVectorBytes() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -13666,7 +13956,7 @@ public com.google.protobuf.ByteString getVectorBytes() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -13679,7 +13969,7 @@ public com.google.protobuf.ByteString getVectorBytes() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -13693,7 +13983,7 @@ public com.google.protobuf.ByteString getVectorBytes() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -13804,6 +14094,27 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuild return targets_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; } + public static final int VECTOR_DISTANCE_FIELD_NUMBER = 20; + /** + * float vector_distance = 20; + * @return Whether the vectorDistance field is set. + */ + @java.lang.Override + public boolean hasVectorDistance() { + return thresholdCase_ == 20; + } + /** + * float vector_distance = 20; + * @return The vectorDistance. + */ + @java.lang.Override + public float getVectorDistance() { + if (thresholdCase_ == 20) { + return (java.lang.Float) threshold_; + } + return 0F; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -13853,6 +14164,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getTargets()); } + if (thresholdCase_ == 20) { + output.writeFloat( + 20, (float)((java.lang.Float) threshold_)); + } getUnknownFields().writeTo(output); } @@ -13916,6 +14231,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getTargets()); } + if (thresholdCase_ == 20) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 20, (float)((java.lang.Float) threshold_)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -13960,6 +14280,16 @@ public boolean equals(final java.lang.Object obj) { if (!getTargets() .equals(other.getTargets())) return false; } + if (!getThresholdCase().equals(other.getThresholdCase())) return false; + switch (thresholdCase_) { + case 20: + if (java.lang.Float.floatToIntBits(getVectorDistance()) + != java.lang.Float.floatToIntBits( + other.getVectorDistance())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -14004,6 +14334,15 @@ public int hashCode() { hash = (37 * hash) + TARGETS_FIELD_NUMBER; hash = (53 * hash) + getTargets().hashCode(); } + switch (thresholdCase_) { + case 20: + hash = (37 * hash) + VECTOR_DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getVectorDistance()); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -14167,6 +14506,8 @@ public Builder clear() { targetsBuilder_.dispose(); targetsBuilder_ = null; } + thresholdCase_ = 0; + threshold_ = null; return this; } @@ -14194,6 +14535,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Hybrid build() public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Hybrid buildPartial() { io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Hybrid result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Hybrid(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -14246,6 +14588,11 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSear result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Hybrid result) { + result.thresholdCase_ = thresholdCase_; + result.threshold_ = this.threshold_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -14344,6 +14691,15 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch if (other.hasTargets()) { mergeTargets(other.getTargets()); } + switch (other.getThresholdCase()) { + case VECTOR_DISTANCE: { + setVectorDistance(other.getVectorDistance()); + break; + } + case THRESHOLD_NOT_SET: { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -14440,6 +14796,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 82 + case 165: { + threshold_ = input.readFloat(); + thresholdCase_ = 20; + break; + } // case 165 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -14455,6 +14816,21 @@ public Builder mergeFrom( } // finally return this; } + private int thresholdCase_ = 0; + private java.lang.Object threshold_; + public ThresholdCase + getThresholdCase() { + return ThresholdCase.forNumber( + thresholdCase_); + } + + public Builder clearThreshold() { + thresholdCase_ = 0; + threshold_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object query_ = ""; @@ -14660,7 +15036,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @return A list containing the vector. */ @java.lang.Deprecated public java.util.List @@ -14675,7 +15051,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @return The count of vector. */ @java.lang.Deprecated public int getVectorCount() { @@ -14688,7 +15064,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -14702,7 +15078,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @param index The index to set the value at. * @param value The vector to set. * @return This builder for chaining. @@ -14723,7 +15099,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @param value The vector to add. * @return This builder for chaining. */ @@ -14742,7 +15118,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @param values The vector to add. * @return This builder for chaining. */ @@ -14762,7 +15138,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 3 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.vector is deprecated. - * See v1/search_get.proto;l=123 + * See v1/search_get.proto;l=127 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearVector() { @@ -14904,7 +15280,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -14919,7 +15295,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -14932,7 +15308,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -14946,7 +15322,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -14961,7 +15337,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -14982,7 +15358,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -15002,7 +15378,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -15022,7 +15398,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { @@ -15039,7 +15415,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 7 [deprecated = true]; * @deprecated weaviate.v1.Hybrid.target_vectors is deprecated. - * See v1/search_get.proto;l=132 + * See v1/search_get.proto;l=136 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -15488,6 +15864,48 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuild } return targetsBuilder_; } + + /** + * float vector_distance = 20; + * @return Whether the vectorDistance field is set. + */ + public boolean hasVectorDistance() { + return thresholdCase_ == 20; + } + /** + * float vector_distance = 20; + * @return The vectorDistance. + */ + public float getVectorDistance() { + if (thresholdCase_ == 20) { + return (java.lang.Float) threshold_; + } + return 0F; + } + /** + * float vector_distance = 20; + * @param value The vectorDistance to set. + * @return This builder for chaining. + */ + public Builder setVectorDistance(float value) { + + thresholdCase_ = 20; + threshold_ = value; + onChanged(); + return this; + } + /** + * float vector_distance = 20; + * @return This builder for chaining. + */ + public Builder clearVectorDistance() { + if (thresholdCase_ == 20) { + thresholdCase_ = 0; + threshold_ = null; + onChanged(); + } + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15656,7 +16074,7 @@ public interface NearTextSearchOrBuilder extends * * repeated string target_vectors = 6 [deprecated = true]; * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * See v1/search_get.proto;l=161 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -15668,7 +16086,7 @@ public interface NearTextSearchOrBuilder extends * * repeated string target_vectors = 6 [deprecated = true]; * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * See v1/search_get.proto;l=161 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -15679,7 +16097,7 @@ public interface NearTextSearchOrBuilder extends * * repeated string target_vectors = 6 [deprecated = true]; * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * See v1/search_get.proto;l=161 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -15691,7 +16109,7 @@ public interface NearTextSearchOrBuilder extends * * repeated string target_vectors = 6 [deprecated = true]; * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * See v1/search_get.proto;l=161 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -16813,7 +17231,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch * * repeated string target_vectors = 6 [deprecated = true]; * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * See v1/search_get.proto;l=161 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -16827,7 +17245,1693 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch * * repeated string target_vectors = 6 [deprecated = true]; * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * See v1/search_get.proto;l=161 + * @return The count of targetVectors. + */ + @java.lang.Deprecated public int getTargetVectorsCount() { + return targetVectors_.size(); + } + /** + *
+     * deprecated in 1.26 - use targets
+     * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @param index The index of the element to return. + * @return The targetVectors at the given index. + */ + @java.lang.Deprecated public java.lang.String getTargetVectors(int index) { + return targetVectors_.get(index); + } + /** + *
+     * deprecated in 1.26 - use targets
+     * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @param index The index of the value to return. + * @return The bytes of the targetVectors at the given index. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getTargetVectorsBytes(int index) { + return targetVectors_.getByteString(index); + } + + public static final int TARGETS_FIELD_NUMBER = 7; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets targets_; + /** + * .weaviate.v1.Targets targets = 7; + * @return Whether the targets field is set. + */ + @java.lang.Override + public boolean hasTargets() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .weaviate.v1.Targets targets = 7; + * @return The targets. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTargets() { + return targets_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; + } + /** + * .weaviate.v1.Targets targets = 7; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder() { + return targets_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; + } + + 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 < query_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(3, distance_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getMoveTo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getMoveAway()); + } + for (int i = 0; i < targetVectors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, targetVectors_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getTargets()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < query_.size(); i++) { + dataSize += computeStringSizeNoTag(query_.getRaw(i)); + } + size += dataSize; + size += 1 * getQueryList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, certainty_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, distance_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMoveTo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMoveAway()); + } + { + int dataSize = 0; + for (int i = 0; i < targetVectors_.size(); i++) { + dataSize += computeStringSizeNoTag(targetVectors_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetVectorsList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTargets()); + } + 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch) obj; + + if (!getQueryList() + .equals(other.getQueryList())) return false; + if (hasCertainty() != other.hasCertainty()) return false; + if (hasCertainty()) { + if (java.lang.Double.doubleToLongBits(getCertainty()) + != java.lang.Double.doubleToLongBits( + other.getCertainty())) return false; + } + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (java.lang.Double.doubleToLongBits(getDistance()) + != java.lang.Double.doubleToLongBits( + other.getDistance())) return false; + } + if (hasMoveTo() != other.hasMoveTo()) return false; + if (hasMoveTo()) { + if (!getMoveTo() + .equals(other.getMoveTo())) return false; + } + if (hasMoveAway() != other.hasMoveAway()) return false; + if (hasMoveAway()) { + if (!getMoveAway() + .equals(other.getMoveAway())) return false; + } + if (!getTargetVectorsList() + .equals(other.getTargetVectorsList())) return false; + if (hasTargets() != other.hasTargets()) return false; + if (hasTargets()) { + if (!getTargets() + .equals(other.getTargets())) 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 (getQueryCount() > 0) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQueryList().hashCode(); + } + if (hasCertainty()) { + hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCertainty())); + } + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDistance())); + } + if (hasMoveTo()) { + hash = (37 * hash) + MOVE_TO_FIELD_NUMBER; + hash = (53 * hash) + getMoveTo().hashCode(); + } + if (hasMoveAway()) { + hash = (37 * hash) + MOVE_AWAY_FIELD_NUMBER; + hash = (53 * hash) + getMoveAway().hashCode(); + } + if (getTargetVectorsCount() > 0) { + hash = (37 * hash) + TARGET_VECTORS_FIELD_NUMBER; + hash = (53 * hash) + getTargetVectorsList().hashCode(); + } + if (hasTargets()) { + hash = (37 * hash) + TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getTargets().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch 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.NearTextSearch} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.NearTextSearch) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearTextSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearTextSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Builder.class); + } + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMoveToFieldBuilder(); + getMoveAwayFieldBuilder(); + getTargetsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + certainty_ = 0D; + distance_ = 0D; + moveTo_ = null; + if (moveToBuilder_ != null) { + moveToBuilder_.dispose(); + moveToBuilder_ = null; + } + moveAway_ = null; + if (moveAwayBuilder_ != null) { + moveAwayBuilder_.dispose(); + moveAwayBuilder_ = null; + } + targetVectors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + targets_ = null; + if (targetsBuilder_ != null) { + targetsBuilder_.dispose(); + targetsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearTextSearch_descriptor; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.getDefaultInstance(); + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + query_.makeImmutable(); + result.query_ = query_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.certainty_ = certainty_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.distance_ = distance_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.moveTo_ = moveToBuilder_ == null + ? moveTo_ + : moveToBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.moveAway_ = moveAwayBuilder_ == null + ? moveAway_ + : moveAwayBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + targetVectors_.makeImmutable(); + result.targetVectors_ = targetVectors_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.targets_ = targetsBuilder_ == null + ? targets_ + : targetsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.getDefaultInstance()) return this; + if (!other.query_.isEmpty()) { + if (query_.isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + } else { + ensureQueryIsMutable(); + query_.addAll(other.query_); + } + onChanged(); + } + if (other.hasCertainty()) { + setCertainty(other.getCertainty()); + } + if (other.hasDistance()) { + setDistance(other.getDistance()); + } + if (other.hasMoveTo()) { + mergeMoveTo(other.getMoveTo()); + } + if (other.hasMoveAway()) { + mergeMoveAway(other.getMoveAway()); + } + if (!other.targetVectors_.isEmpty()) { + if (targetVectors_.isEmpty()) { + targetVectors_ = other.targetVectors_; + bitField0_ |= 0x00000020; + } else { + ensureTargetVectorsIsMutable(); + targetVectors_.addAll(other.targetVectors_); + } + onChanged(); + } + if (other.hasTargets()) { + mergeTargets(other.getTargets()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueryIsMutable(); + query_.add(s); + break; + } // case 10 + case 17: { + certainty_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: { + distance_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: { + input.readMessage( + getMoveToFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getMoveAwayFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetVectorsIsMutable(); + targetVectors_.add(s); + break; + } // case 50 + case 58: { + input.readMessage( + getTargetsFieldBuilder().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 com.google.protobuf.LazyStringArrayList query_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureQueryIsMutable() { + if (!query_.isModifiable()) { + query_ = new com.google.protobuf.LazyStringArrayList(query_); + } + bitField0_ |= 0x00000001; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @return A list containing the query. + */ + public com.google.protobuf.ProtocolStringList + getQueryList() { + query_.makeImmutable(); + return query_; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @return The count of query. + */ + public int getQueryCount() { + return query_.size(); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param index The index of the element to return. + * @return The query at the given index. + */ + public java.lang.String getQuery(int index) { + return query_.get(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param index The index of the value to return. + * @return The bytes of the query at the given index. + */ + public com.google.protobuf.ByteString + getQueryBytes(int index) { + return query_.getByteString(index); + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param index The index to set the value at. + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureQueryIsMutable(); + query_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param value The query to add. + * @return This builder for chaining. + */ + public Builder addQuery( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureQueryIsMutable(); + query_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param values The query to add. + * @return This builder for chaining. + */ + public Builder addAllQuery( + java.lang.Iterable values) { + ensureQueryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, query_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+       * 
+ * + * repeated string query = 1; + * @param value The bytes of the query to add. + * @return This builder for chaining. + */ + public Builder addQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureQueryIsMutable(); + query_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double certainty_ ; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + /** + * optional double certainty = 2; + * @param value The certainty to set. + * @return This builder for chaining. + */ + public Builder setCertainty(double value) { + + certainty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional double certainty = 2; + * @return This builder for chaining. + */ + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000002); + certainty_ = 0D; + onChanged(); + return this; + } + + private double distance_ ; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + /** + * optional double distance = 3; + * @param value The distance to set. + * @return This builder for chaining. + */ + public Builder setDistance(double value) { + + distance_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double distance = 3; + * @return This builder for chaining. + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000004); + distance_ = 0D; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move moveTo_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder> moveToBuilder_; + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + * @return Whether the moveTo field is set. + */ + public boolean hasMoveTo() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + * @return The moveTo. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move getMoveTo() { + if (moveToBuilder_ == null) { + return moveTo_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance() : moveTo_; + } else { + return moveToBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + */ + public Builder setMoveTo(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move value) { + if (moveToBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + moveTo_ = value; + } else { + moveToBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + */ + public Builder setMoveTo( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder builderForValue) { + if (moveToBuilder_ == null) { + moveTo_ = builderForValue.build(); + } else { + moveToBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + */ + public Builder mergeMoveTo(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move value) { + if (moveToBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + moveTo_ != null && + moveTo_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance()) { + getMoveToBuilder().mergeFrom(value); + } else { + moveTo_ = value; + } + } else { + moveToBuilder_.mergeFrom(value); + } + if (moveTo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + */ + public Builder clearMoveTo() { + bitField0_ = (bitField0_ & ~0x00000008); + moveTo_ = null; + if (moveToBuilder_ != null) { + moveToBuilder_.dispose(); + moveToBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder getMoveToBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMoveToFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder getMoveToOrBuilder() { + if (moveToBuilder_ != null) { + return moveToBuilder_.getMessageOrBuilder(); + } else { + return moveTo_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance() : moveTo_; + } + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder> + getMoveToFieldBuilder() { + if (moveToBuilder_ == null) { + moveToBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder>( + getMoveTo(), + getParentForChildren(), + isClean()); + moveTo_ = null; + } + return moveToBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move moveAway_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder> moveAwayBuilder_; + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + * @return Whether the moveAway field is set. + */ + public boolean hasMoveAway() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + * @return The moveAway. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move getMoveAway() { + if (moveAwayBuilder_ == null) { + return moveAway_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance() : moveAway_; + } else { + return moveAwayBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + */ + public Builder setMoveAway(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move value) { + if (moveAwayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + moveAway_ = value; + } else { + moveAwayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + */ + public Builder setMoveAway( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder builderForValue) { + if (moveAwayBuilder_ == null) { + moveAway_ = builderForValue.build(); + } else { + moveAwayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + */ + public Builder mergeMoveAway(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move value) { + if (moveAwayBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + moveAway_ != null && + moveAway_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance()) { + getMoveAwayBuilder().mergeFrom(value); + } else { + moveAway_ = value; + } + } else { + moveAwayBuilder_.mergeFrom(value); + } + if (moveAway_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + */ + public Builder clearMoveAway() { + bitField0_ = (bitField0_ & ~0x00000010); + moveAway_ = null; + if (moveAwayBuilder_ != null) { + moveAwayBuilder_.dispose(); + moveAwayBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder getMoveAwayBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getMoveAwayFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder getMoveAwayOrBuilder() { + if (moveAwayBuilder_ != null) { + return moveAwayBuilder_.getMessageOrBuilder(); + } else { + return moveAway_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance() : moveAway_; + } + } + /** + * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder> + getMoveAwayFieldBuilder() { + if (moveAwayBuilder_ == null) { + moveAwayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder>( + getMoveAway(), + getParentForChildren(), + isClean()); + moveAway_ = null; + } + return moveAwayBuilder_; + } + + private com.google.protobuf.LazyStringArrayList targetVectors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTargetVectorsIsMutable() { + if (!targetVectors_.isModifiable()) { + targetVectors_ = new com.google.protobuf.LazyStringArrayList(targetVectors_); + } + bitField0_ |= 0x00000020; + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @return A list containing the targetVectors. + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getTargetVectorsList() { + targetVectors_.makeImmutable(); + return targetVectors_; + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @return The count of targetVectors. + */ + @java.lang.Deprecated public int getTargetVectorsCount() { + return targetVectors_.size(); + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @param index The index of the element to return. + * @return The targetVectors at the given index. + */ + @java.lang.Deprecated public java.lang.String getTargetVectors(int index) { + return targetVectors_.get(index); + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @param index The index of the value to return. + * @return The bytes of the targetVectors at the given index. + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getTargetVectorsBytes(int index) { + return targetVectors_.getByteString(index); + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @param index The index to set the value at. + * @param value The targetVectors to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setTargetVectors( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTargetVectorsIsMutable(); + targetVectors_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @param value The targetVectors to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder addTargetVectors( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTargetVectorsIsMutable(); + targetVectors_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @param values The targetVectors to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder addAllTargetVectors( + java.lang.Iterable values) { + ensureTargetVectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetVectors_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearTargetVectors() { + targetVectors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; + onChanged(); + return this; + } + /** + *
+       * deprecated in 1.26 - use targets
+       * 
+ * + * repeated string target_vectors = 6 [deprecated = true]; + * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=161 + * @param value The bytes of the targetVectors to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder addTargetVectorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTargetVectorsIsMutable(); + targetVectors_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets targets_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder> targetsBuilder_; + /** + * .weaviate.v1.Targets targets = 7; + * @return Whether the targets field is set. + */ + public boolean hasTargets() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .weaviate.v1.Targets targets = 7; + * @return The targets. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTargets() { + if (targetsBuilder_ == null) { + return targets_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; + } else { + return targetsBuilder_.getMessage(); + } + } + /** + * .weaviate.v1.Targets targets = 7; + */ + public Builder setTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets value) { + if (targetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targets_ = value; + } else { + targetsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .weaviate.v1.Targets targets = 7; + */ + public Builder setTargets( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder builderForValue) { + if (targetsBuilder_ == null) { + targets_ = builderForValue.build(); + } else { + targetsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .weaviate.v1.Targets targets = 7; + */ + public Builder mergeTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets value) { + if (targetsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + targets_ != null && + targets_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance()) { + getTargetsBuilder().mergeFrom(value); + } else { + targets_ = value; + } + } else { + targetsBuilder_.mergeFrom(value); + } + if (targets_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .weaviate.v1.Targets targets = 7; + */ + public Builder clearTargets() { + bitField0_ = (bitField0_ & ~0x00000040); + targets_ = null; + if (targetsBuilder_ != null) { + targetsBuilder_.dispose(); + targetsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviate.v1.Targets targets = 7; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder getTargetsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getTargetsFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.Targets targets = 7; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder() { + if (targetsBuilder_ != null) { + return targetsBuilder_.getMessageOrBuilder(); + } else { + return targets_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; + } + } + /** + * .weaviate.v1.Targets targets = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder> + getTargetsFieldBuilder() { + if (targetsBuilder_ == null) { + targetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder>( + getTargets(), + getParentForChildren(), + isClean()); + targets_ = null; + } + return targetsBuilder_; + } + @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.NearTextSearch) + } + + // @@protoc_insertion_point(class_scope:weaviate.v1.NearTextSearch) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NearTextSearch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NearImageSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.NearImageSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * string image = 1; + * @return The image. + */ + java.lang.String getImage(); + /** + * string image = 1; + * @return The bytes for image. + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + boolean hasCertainty(); + /** + * optional double certainty = 2; + * @return The certainty. + */ + double getCertainty(); + + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + * optional double distance = 3; + * @return The distance. + */ + double getDistance(); + + /** + *
+     * deprecated in 1.26 - use targets
+     * 
+ * + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 + * @return A list containing the targetVectors. + */ + @java.lang.Deprecated java.util.List + getTargetVectorsList(); + /** + *
+     * deprecated in 1.26 - use targets
+     * 
+ * + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 + * @return The count of targetVectors. + */ + @java.lang.Deprecated int getTargetVectorsCount(); + /** + *
+     * deprecated in 1.26 - use targets
+     * 
+ * + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 + * @param index The index of the element to return. + * @return The targetVectors at the given index. + */ + @java.lang.Deprecated java.lang.String getTargetVectors(int index); + /** + *
+     * deprecated in 1.26 - use targets
+     * 
+ * + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 + * @param index The index of the value to return. + * @return The bytes of the targetVectors at the given index. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getTargetVectorsBytes(int index); + + /** + * .weaviate.v1.Targets targets = 5; + * @return Whether the targets field is set. + */ + boolean hasTargets(); + /** + * .weaviate.v1.Targets targets = 5; + * @return The targets. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTargets(); + /** + * .weaviate.v1.Targets targets = 5; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.NearImageSearch} + */ + public static final class NearImageSearch extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.NearImageSearch) + NearImageSearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use NearImageSearch.newBuilder() to construct. + private NearImageSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NearImageSearch() { + image_ = ""; + targetVectors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NearImageSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.Builder.class); + } + + private int bitField0_; + public static final int IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object image_ = ""; + /** + * string image = 1; + * @return The image. + */ + @java.lang.Override + public java.lang.String getImage() { + java.lang.Object ref = image_; + 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(); + image_ = s; + return s; + } + } + /** + * string image = 1; + * @return The bytes for image. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTAINTY_FIELD_NUMBER = 2; + private double certainty_ = 0D; + /** + * optional double certainty = 2; + * @return Whether the certainty field is set. + */ + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional double certainty = 2; + * @return The certainty. + */ + @java.lang.Override + public double getCertainty() { + return certainty_; + } + + public static final int DISTANCE_FIELD_NUMBER = 3; + private double distance_ = 0D; + /** + * optional double distance = 3; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional double distance = 3; + * @return The distance. + */ + @java.lang.Override + public double getDistance() { + return distance_; + } + + public static final int TARGET_VECTORS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetVectors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * deprecated in 1.26 - use targets
+     * 
+ * + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 + * @return A list containing the targetVectors. + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getTargetVectorsList() { + return targetVectors_; + } + /** + *
+     * deprecated in 1.26 - use targets
+     * 
+ * + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -16838,9 +18942,9 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -16852,9 +18956,9 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -16863,18 +18967,18 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch return targetVectors_.getByteString(index); } - public static final int TARGETS_FIELD_NUMBER = 7; + public static final int TARGETS_FIELD_NUMBER = 5; private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets targets_; /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; * @return Whether the targets field is set. */ @java.lang.Override public boolean hasTargets() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; * @return The targets. */ @java.lang.Override @@ -16882,7 +18986,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTar return targets_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder() { @@ -16903,8 +19007,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < query_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_.getRaw(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(2, certainty_); @@ -16912,17 +19016,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(3, distance_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(4, getMoveTo()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(5, getMoveAway()); - } for (int i = 0; i < targetVectors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, targetVectors_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, targetVectors_.getRaw(i)); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(7, getTargets()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getTargets()); } getUnknownFields().writeTo(output); } @@ -16933,13 +19031,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - { - int dataSize = 0; - for (int i = 0; i < query_.size(); i++) { - dataSize += computeStringSizeNoTag(query_.getRaw(i)); - } - size += dataSize; - size += 1 * getQueryList().size(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -16949,14 +19042,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, distance_); } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMoveTo()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMoveAway()); - } { int dataSize = 0; for (int i = 0; i < targetVectors_.size(); i++) { @@ -16965,9 +19050,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTargetVectorsList().size(); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTargets()); + .computeMessageSize(5, getTargets()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16979,13 +19064,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch) obj; - if (!getQueryList() - .equals(other.getQueryList())) return false; + if (!getImage() + .equals(other.getImage())) return false; if (hasCertainty() != other.hasCertainty()) return false; if (hasCertainty()) { if (java.lang.Double.doubleToLongBits(getCertainty()) @@ -16998,16 +19083,6 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits( other.getDistance())) return false; } - if (hasMoveTo() != other.hasMoveTo()) return false; - if (hasMoveTo()) { - if (!getMoveTo() - .equals(other.getMoveTo())) return false; - } - if (hasMoveAway() != other.hasMoveAway()) return false; - if (hasMoveAway()) { - if (!getMoveAway() - .equals(other.getMoveAway())) return false; - } if (!getTargetVectorsList() .equals(other.getTargetVectorsList())) return false; if (hasTargets() != other.hasTargets()) return false; @@ -17026,10 +19101,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getQueryCount() > 0) { - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQueryList().hashCode(); - } + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); if (hasCertainty()) { hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( @@ -17040,14 +19113,6 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDistance())); } - if (hasMoveTo()) { - hash = (37 * hash) + MOVE_TO_FIELD_NUMBER; - hash = (53 * hash) + getMoveTo().hashCode(); - } - if (hasMoveAway()) { - hash = (37 * hash) + MOVE_AWAY_FIELD_NUMBER; - hash = (53 * hash) + getMoveAway().hashCode(); - } if (getTargetVectorsCount() > 0) { hash = (37 * hash) + TARGET_VECTORS_FIELD_NUMBER; hash = (53 * hash) + getTargetVectorsList().hashCode(); @@ -17061,44 +19126,44 @@ public int hashCode() { return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -17106,26 +19171,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTex .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -17138,7 +19203,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTex public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -17154,26 +19219,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.NearTextSearch} + * Protobuf type {@code weaviate.v1.NearImageSearch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.NearTextSearch) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearchOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.NearImageSearch) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearTextSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearTextSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -17186,8 +19251,6 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getMoveToFieldBuilder(); - getMoveAwayFieldBuilder(); getTargetsFieldBuilder(); } } @@ -17195,20 +19258,9 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - query_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + image_ = ""; certainty_ = 0D; distance_ = 0D; - moveTo_ = null; - if (moveToBuilder_ != null) { - moveToBuilder_.dispose(); - moveToBuilder_ = null; - } - moveAway_ = null; - if (moveAwayBuilder_ != null) { - moveAwayBuilder_.dispose(); - moveAwayBuilder_ = null; - } targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); targets_ = null; @@ -17222,17 +19274,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearTextSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -17240,18 +19292,17 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - query_.makeImmutable(); - result.query_ = query_; + result.image_ = image_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -17263,26 +19314,14 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSear to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.moveTo_ = moveToBuilder_ == null - ? moveTo_ - : moveToBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.moveAway_ = moveAwayBuilder_ == null - ? moveAway_ - : moveAwayBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000020) != 0)) { targetVectors_.makeImmutable(); result.targetVectors_ = targetVectors_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.targets_ = targetsBuilder_ == null ? targets_ : targetsBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -17321,24 +19360,19 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.getDefaultInstance()) return this; - if (!other.query_.isEmpty()) { - if (query_.isEmpty()) { - query_ = other.query_; - bitField0_ |= 0x00000001; - } else { - ensureQueryIsMutable(); - query_.addAll(other.query_); - } + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasCertainty()) { @@ -17347,16 +19381,10 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch if (other.hasDistance()) { setDistance(other.getDistance()); } - if (other.hasMoveTo()) { - mergeMoveTo(other.getMoveTo()); - } - if (other.hasMoveAway()) { - mergeMoveAway(other.getMoveAway()); - } if (!other.targetVectors_.isEmpty()) { if (targetVectors_.isEmpty()) { targetVectors_ = other.targetVectors_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; } else { ensureTargetVectorsIsMutable(); targetVectors_.addAll(other.targetVectors_); @@ -17393,9 +19421,8 @@ public Builder mergeFrom( done = true; break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureQueryIsMutable(); - query_.add(s); + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 case 17: { @@ -17409,32 +19436,18 @@ public Builder mergeFrom( break; } // case 25 case 34: { - input.readMessage( - getMoveToFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getMoveAwayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureTargetVectorsIsMutable(); targetVectors_.add(s); break; - } // case 50 - case 58: { + } // case 34 + case 42: { input.readMessage( getTargetsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; break; - } // case 58 + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -17452,473 +19465,156 @@ public Builder mergeFrom( } private int bitField0_; - private com.google.protobuf.LazyStringArrayList query_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureQueryIsMutable() { - if (!query_.isModifiable()) { - query_ = new com.google.protobuf.LazyStringArrayList(query_); - } - bitField0_ |= 0x00000001; - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @return A list containing the query. - */ - public com.google.protobuf.ProtocolStringList - getQueryList() { - query_.makeImmutable(); - return query_; - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @return The count of query. - */ - public int getQueryCount() { - return query_.size(); - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @param index The index of the element to return. - * @return The query at the given index. - */ - public java.lang.String getQuery(int index) { - return query_.get(index); - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @param index The index of the value to return. - * @return The bytes of the query at the given index. - */ - public com.google.protobuf.ByteString - getQueryBytes(int index) { - return query_.getByteString(index); - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @param index The index to set the value at. - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureQueryIsMutable(); - query_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @param value The query to add. - * @return This builder for chaining. - */ - public Builder addQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureQueryIsMutable(); - query_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @param values The query to add. - * @return This builder for chaining. - */ - public Builder addAllQuery( - java.lang.Iterable values) { - ensureQueryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, query_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @return This builder for chaining. - */ - public Builder clearQuery() { - query_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - *
-       * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
-       * 
- * - * repeated string query = 1; - * @param value The bytes of the query to add. - * @return This builder for chaining. - */ - public Builder addQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureQueryIsMutable(); - query_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private double certainty_ ; - /** - * optional double certainty = 2; - * @return Whether the certainty field is set. - */ - @java.lang.Override - public boolean hasCertainty() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional double certainty = 2; - * @return The certainty. - */ - @java.lang.Override - public double getCertainty() { - return certainty_; - } - /** - * optional double certainty = 2; - * @param value The certainty to set. - * @return This builder for chaining. - */ - public Builder setCertainty(double value) { - - certainty_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional double certainty = 2; - * @return This builder for chaining. - */ - public Builder clearCertainty() { - bitField0_ = (bitField0_ & ~0x00000002); - certainty_ = 0D; - onChanged(); - return this; - } - - private double distance_ ; - /** - * optional double distance = 3; - * @return Whether the distance field is set. - */ - @java.lang.Override - public boolean hasDistance() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional double distance = 3; - * @return The distance. - */ - @java.lang.Override - public double getDistance() { - return distance_; - } - /** - * optional double distance = 3; - * @param value The distance to set. - * @return This builder for chaining. - */ - public Builder setDistance(double value) { - - distance_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional double distance = 3; - * @return This builder for chaining. - */ - public Builder clearDistance() { - bitField0_ = (bitField0_ & ~0x00000004); - distance_ = 0D; - onChanged(); - return this; - } - - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move moveTo_; - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder> moveToBuilder_; - /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; - * @return Whether the moveTo field is set. - */ - public boolean hasMoveTo() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; - * @return The moveTo. - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move getMoveTo() { - if (moveToBuilder_ == null) { - return moveTo_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance() : moveTo_; - } else { - return moveToBuilder_.getMessage(); - } - } - /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; - */ - public Builder setMoveTo(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move value) { - if (moveToBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - moveTo_ = value; - } else { - moveToBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + private java.lang.Object image_ = ""; /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + * string image = 1; + * @return The image. */ - public Builder setMoveTo( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder builderForValue) { - if (moveToBuilder_ == null) { - moveTo_ = builderForValue.build(); + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; } else { - moveToBuilder_.setMessage(builderForValue.build()); + return (java.lang.String) ref; } - bitField0_ |= 0x00000008; - onChanged(); - return this; } /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + * string image = 1; + * @return The bytes for image. */ - public Builder mergeMoveTo(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move value) { - if (moveToBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - moveTo_ != null && - moveTo_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance()) { - getMoveToBuilder().mergeFrom(value); - } else { - moveTo_ = value; - } + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; } else { - moveToBuilder_.mergeFrom(value); - } - if (moveTo_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + * string image = 1; + * @param value The image to set. + * @return This builder for chaining. */ - public Builder clearMoveTo() { - bitField0_ = (bitField0_ & ~0x00000008); - moveTo_ = null; - if (moveToBuilder_ != null) { - moveToBuilder_.dispose(); - moveToBuilder_ = null; - } + public Builder setImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + image_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + * string image = 1; + * @return This builder for chaining. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder getMoveToBuilder() { - bitField0_ |= 0x00000008; + public Builder clearImage() { + image_ = getDefaultInstance().getImage(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); - return getMoveToFieldBuilder().getBuilder(); - } - /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder getMoveToOrBuilder() { - if (moveToBuilder_ != null) { - return moveToBuilder_.getMessageOrBuilder(); - } else { - return moveTo_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance() : moveTo_; - } + return this; } /** - * optional .weaviate.v1.NearTextSearch.Move move_to = 4; + * string image = 1; + * @param value The bytes for image to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder> - getMoveToFieldBuilder() { - if (moveToBuilder_ == null) { - moveToBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder>( - getMoveTo(), - getParentForChildren(), - isClean()); - moveTo_ = null; - } - return moveToBuilder_; + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + image_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move moveAway_; - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder> moveAwayBuilder_; + private double certainty_ ; /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; - * @return Whether the moveAway field is set. + * optional double certainty = 2; + * @return Whether the certainty field is set. */ - public boolean hasMoveAway() { - return ((bitField0_ & 0x00000010) != 0); + @java.lang.Override + public boolean hasCertainty() { + return ((bitField0_ & 0x00000002) != 0); } /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; - * @return The moveAway. + * optional double certainty = 2; + * @return The certainty. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move getMoveAway() { - if (moveAwayBuilder_ == null) { - return moveAway_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance() : moveAway_; - } else { - return moveAwayBuilder_.getMessage(); - } + @java.lang.Override + public double getCertainty() { + return certainty_; } /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + * optional double certainty = 2; + * @param value The certainty to set. + * @return This builder for chaining. */ - public Builder setMoveAway(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move value) { - if (moveAwayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - moveAway_ = value; - } else { - moveAwayBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; + public Builder setCertainty(double value) { + + certainty_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + * optional double certainty = 2; + * @return This builder for chaining. */ - public Builder setMoveAway( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder builderForValue) { - if (moveAwayBuilder_ == null) { - moveAway_ = builderForValue.build(); - } else { - moveAwayBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; + public Builder clearCertainty() { + bitField0_ = (bitField0_ & ~0x00000002); + certainty_ = 0D; onChanged(); return this; } + + private double distance_ ; /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + * optional double distance = 3; + * @return Whether the distance field is set. */ - public Builder mergeMoveAway(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move value) { - if (moveAwayBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - moveAway_ != null && - moveAway_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance()) { - getMoveAwayBuilder().mergeFrom(value); - } else { - moveAway_ = value; - } - } else { - moveAwayBuilder_.mergeFrom(value); - } - if (moveAway_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; + @java.lang.Override + public boolean hasDistance() { + return ((bitField0_ & 0x00000004) != 0); } /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + * optional double distance = 3; + * @return The distance. */ - public Builder clearMoveAway() { - bitField0_ = (bitField0_ & ~0x00000010); - moveAway_ = null; - if (moveAwayBuilder_ != null) { - moveAwayBuilder_.dispose(); - moveAwayBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public double getDistance() { + return distance_; } /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + * optional double distance = 3; + * @param value The distance to set. + * @return This builder for chaining. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder getMoveAwayBuilder() { - bitField0_ |= 0x00000010; + public Builder setDistance(double value) { + + distance_ = value; + bitField0_ |= 0x00000004; onChanged(); - return getMoveAwayFieldBuilder().getBuilder(); - } - /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder getMoveAwayOrBuilder() { - if (moveAwayBuilder_ != null) { - return moveAwayBuilder_.getMessageOrBuilder(); - } else { - return moveAway_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.getDefaultInstance() : moveAway_; - } + return this; } /** - * optional .weaviate.v1.NearTextSearch.Move move_away = 5; + * optional double distance = 3; + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder> - getMoveAwayFieldBuilder() { - if (moveAwayBuilder_ == null) { - moveAwayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.Move.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch.MoveOrBuilder>( - getMoveAway(), - getParentForChildren(), - isClean()); - moveAway_ = null; - } - return moveAwayBuilder_; + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000004); + distance_ = 0D; + onChanged(); + return this; } private com.google.protobuf.LazyStringArrayList targetVectors_ = @@ -17927,16 +19623,16 @@ private void ensureTargetVectorsIsMutable() { if (!targetVectors_.isModifiable()) { targetVectors_ = new com.google.protobuf.LazyStringArrayList(targetVectors_); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; } /** *
        * deprecated in 1.26 - use targets
        * 
* - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -17949,9 +19645,9 @@ private void ensureTargetVectorsIsMutable() { * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -17962,9 +19658,9 @@ private void ensureTargetVectorsIsMutable() { * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -17976,9 +19672,9 @@ private void ensureTargetVectorsIsMutable() { * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -17991,9 +19687,9 @@ private void ensureTargetVectorsIsMutable() { * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -18003,7 +19699,7 @@ private void ensureTargetVectorsIsMutable() { if (value == null) { throw new NullPointerException(); } ensureTargetVectorsIsMutable(); targetVectors_.set(index, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -18012,9 +19708,9 @@ private void ensureTargetVectorsIsMutable() { * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -18023,7 +19719,7 @@ private void ensureTargetVectorsIsMutable() { if (value == null) { throw new NullPointerException(); } ensureTargetVectorsIsMutable(); targetVectors_.add(value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -18032,9 +19728,9 @@ private void ensureTargetVectorsIsMutable() { * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -18043,7 +19739,7 @@ private void ensureTargetVectorsIsMutable() { ensureTargetVectorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, targetVectors_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -18052,15 +19748,15 @@ private void ensureTargetVectorsIsMutable() { * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020);; + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } @@ -18069,9 +19765,9 @@ private void ensureTargetVectorsIsMutable() { * deprecated in 1.26 - use targets * * - * repeated string target_vectors = 6 [deprecated = true]; - * @deprecated weaviate.v1.NearTextSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=151 + * repeated string target_vectors = 4 [deprecated = true]; + * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=169 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -18081,7 +19777,7 @@ private void ensureTargetVectorsIsMutable() { checkByteStringIsUtf8(value); ensureTargetVectorsIsMutable(); targetVectors_.add(value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -18090,14 +19786,14 @@ private void ensureTargetVectorsIsMutable() { private com.google.protobuf.SingleFieldBuilderV3< io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder> targetsBuilder_; /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; * @return Whether the targets field is set. */ public boolean hasTargets() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; * @return The targets. */ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTargets() { @@ -18108,7 +19804,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTar } } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; */ public Builder setTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets value) { if (targetsBuilder_ == null) { @@ -18119,12 +19815,12 @@ public Builder setTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearc } else { targetsBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); return this; } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; */ public Builder setTargets( io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder builderForValue) { @@ -18133,16 +19829,16 @@ public Builder setTargets( } else { targetsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); return this; } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; */ public Builder mergeTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets value) { if (targetsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && + if (((bitField0_ & 0x00000010) != 0) && targets_ != null && targets_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance()) { getTargetsBuilder().mergeFrom(value); @@ -18153,16 +19849,16 @@ public Builder mergeTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSea targetsBuilder_.mergeFrom(value); } if (targets_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); } return this; } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; */ public Builder clearTargets() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); targets_ = null; if (targetsBuilder_ != null) { targetsBuilder_.dispose(); @@ -18172,15 +19868,15 @@ public Builder clearTargets() { return this; } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; */ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder getTargetsBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); return getTargetsFieldBuilder().getBuilder(); } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; */ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder() { if (targetsBuilder_ != null) { @@ -18191,7 +19887,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuild } } /** - * .weaviate.v1.Targets targets = 7; + * .weaviate.v1.Targets targets = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder> @@ -18219,23 +19915,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.NearTextSearch) + // @@protoc_insertion_point(builder_scope:weaviate.v1.NearImageSearch) } - // @@protoc_insertion_point(class_scope:weaviate.v1.NearTextSearch) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.NearImageSearch) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public NearTextSearch parsePartialFrom( + public NearImageSearch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18254,37 +19950,37 @@ public NearTextSearch parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearTextSearch getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface NearImageSearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.NearImageSearch) + public interface NearAudioSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.NearAudioSearch) com.google.protobuf.MessageOrBuilder { /** - * string image = 1; - * @return The image. + * string audio = 1; + * @return The audio. */ - java.lang.String getImage(); + java.lang.String getAudio(); /** - * string image = 1; - * @return The bytes for image. + * string audio = 1; + * @return The bytes for audio. */ com.google.protobuf.ByteString - getImageBytes(); + getAudioBytes(); /** * optional double certainty = 2; @@ -18314,8 +20010,8 @@ public interface NearImageSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -18326,8 +20022,8 @@ public interface NearImageSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -18337,8 +20033,8 @@ public interface NearImageSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -18349,8 +20045,8 @@ public interface NearImageSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -18373,19 +20069,19 @@ public interface NearImageSearchOrBuilder extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); } /** - * Protobuf type {@code weaviate.v1.NearImageSearch} + * Protobuf type {@code weaviate.v1.NearAudioSearch} */ - public static final class NearImageSearch extends + public static final class NearAudioSearch extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.NearImageSearch) - NearImageSearchOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.NearAudioSearch) + NearAudioSearchOrBuilder { private static final long serialVersionUID = 0L; - // Use NearImageSearch.newBuilder() to construct. - private NearImageSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NearAudioSearch.newBuilder() to construct. + private NearAudioSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NearImageSearch() { - image_ = ""; + private NearAudioSearch() { + audio_ = ""; targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -18394,56 +20090,56 @@ private NearImageSearch() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new NearImageSearch(); + return new NearAudioSearch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.Builder.class); } private int bitField0_; - public static final int IMAGE_FIELD_NUMBER = 1; + public static final int AUDIO_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object image_ = ""; + private volatile java.lang.Object audio_ = ""; /** - * string image = 1; - * @return The image. + * string audio = 1; + * @return The audio. */ @java.lang.Override - public java.lang.String getImage() { - java.lang.Object ref = image_; + public java.lang.String getAudio() { + java.lang.Object ref = audio_; 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(); - image_ = s; + audio_ = s; return s; } } /** - * string image = 1; - * @return The bytes for image. + * string audio = 1; + * @return The bytes for audio. */ @java.lang.Override public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; + getAudioBytes() { + java.lang.Object ref = audio_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - image_ = b; + audio_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -18498,8 +20194,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -18512,8 +20208,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -18525,8 +20221,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -18539,8 +20235,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -18589,8 +20285,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audio_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audio_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(2, certainty_); @@ -18613,8 +20309,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audio_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audio_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -18646,13 +20342,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch) obj; - if (!getImage() - .equals(other.getImage())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; if (hasCertainty() != other.hasCertainty()) return false; if (hasCertainty()) { if (java.lang.Double.doubleToLongBits(getCertainty()) @@ -18683,8 +20379,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); + hash = (37 * hash) + AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getAudio().hashCode(); if (hasCertainty()) { hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( @@ -18708,44 +20404,44 @@ public int hashCode() { return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -18753,26 +20449,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIma .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -18785,7 +20481,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIma public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -18801,26 +20497,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.NearImageSearch} + * Protobuf type {@code weaviate.v1.NearAudioSearch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.NearImageSearch) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearchOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.NearAudioSearch) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -18840,7 +20536,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - image_ = ""; + audio_ = ""; certainty_ = 0D; distance_ = 0D; targetVectors_ = @@ -18856,17 +20552,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearImageSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -18874,17 +20570,17 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearc } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.image_ = image_; + result.audio_ = audio_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -18942,18 +20638,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch.getDefaultInstance()) return this; - if (!other.getImage().isEmpty()) { - image_ = other.image_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.getDefaultInstance()) return this; + if (!other.getAudio().isEmpty()) { + audio_ = other.audio_; bitField0_ |= 0x00000001; onChanged(); } @@ -19003,7 +20699,7 @@ public Builder mergeFrom( done = true; break; case 10: { - image_ = input.readStringRequireUtf8(); + audio_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -19047,73 +20743,73 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object image_ = ""; + private java.lang.Object audio_ = ""; /** - * string image = 1; - * @return The image. + * string audio = 1; + * @return The audio. */ - public java.lang.String getImage() { - java.lang.Object ref = image_; + public java.lang.String getAudio() { + java.lang.Object ref = audio_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - image_ = s; + audio_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string image = 1; - * @return The bytes for image. + * string audio = 1; + * @return The bytes for audio. */ public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; + getAudioBytes() { + java.lang.Object ref = audio_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - image_ = b; + audio_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string image = 1; - * @param value The image to set. + * string audio = 1; + * @param value The audio to set. * @return This builder for chaining. */ - public Builder setImage( + public Builder setAudio( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - image_ = value; + audio_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string image = 1; + * string audio = 1; * @return This builder for chaining. */ - public Builder clearImage() { - image_ = getDefaultInstance().getImage(); + public Builder clearAudio() { + audio_ = getDefaultInstance().getAudio(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string image = 1; - * @param value The bytes for image to set. + * string audio = 1; + * @param value The bytes for audio to set. * @return This builder for chaining. */ - public Builder setImageBytes( + public Builder setAudioBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - image_ = value; + audio_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -19213,8 +20909,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -19228,8 +20924,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -19241,8 +20937,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -19255,8 +20951,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -19270,8 +20966,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -19291,8 +20987,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -19311,8 +21007,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -19331,8 +21027,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { @@ -19348,8 +21044,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearImageSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=159 + * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=177 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -19497,23 +21193,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.NearImageSearch) + // @@protoc_insertion_point(builder_scope:weaviate.v1.NearAudioSearch) } - // @@protoc_insertion_point(class_scope:weaviate.v1.NearImageSearch) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.NearAudioSearch) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public NearImageSearch parsePartialFrom( + public NearAudioSearch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -19532,37 +21228,37 @@ public NearImageSearch parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearImageSearch getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface NearAudioSearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.NearAudioSearch) + public interface NearVideoSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.NearVideoSearch) com.google.protobuf.MessageOrBuilder { /** - * string audio = 1; - * @return The audio. + * string video = 1; + * @return The video. */ - java.lang.String getAudio(); + java.lang.String getVideo(); /** - * string audio = 1; - * @return The bytes for audio. + * string video = 1; + * @return The bytes for video. */ com.google.protobuf.ByteString - getAudioBytes(); + getVideoBytes(); /** * optional double certainty = 2; @@ -19592,8 +21288,8 @@ public interface NearAudioSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -19604,8 +21300,8 @@ public interface NearAudioSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -19615,8 +21311,8 @@ public interface NearAudioSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -19627,8 +21323,8 @@ public interface NearAudioSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -19651,19 +21347,19 @@ public interface NearAudioSearchOrBuilder extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); } /** - * Protobuf type {@code weaviate.v1.NearAudioSearch} + * Protobuf type {@code weaviate.v1.NearVideoSearch} */ - public static final class NearAudioSearch extends + public static final class NearVideoSearch extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.NearAudioSearch) - NearAudioSearchOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.NearVideoSearch) + NearVideoSearchOrBuilder { private static final long serialVersionUID = 0L; - // Use NearAudioSearch.newBuilder() to construct. - private NearAudioSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NearVideoSearch.newBuilder() to construct. + private NearVideoSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NearAudioSearch() { - audio_ = ""; + private NearVideoSearch() { + video_ = ""; targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -19672,56 +21368,56 @@ private NearAudioSearch() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new NearAudioSearch(); + return new NearVideoSearch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.Builder.class); } private int bitField0_; - public static final int AUDIO_FIELD_NUMBER = 1; + public static final int VIDEO_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object audio_ = ""; + private volatile java.lang.Object video_ = ""; /** - * string audio = 1; - * @return The audio. + * string video = 1; + * @return The video. */ @java.lang.Override - public java.lang.String getAudio() { - java.lang.Object ref = audio_; + public java.lang.String getVideo() { + java.lang.Object ref = video_; 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(); - audio_ = s; + video_ = s; return s; } } /** - * string audio = 1; - * @return The bytes for audio. + * string video = 1; + * @return The bytes for video. */ @java.lang.Override public com.google.protobuf.ByteString - getAudioBytes() { - java.lang.Object ref = audio_; + getVideoBytes() { + java.lang.Object ref = video_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - audio_ = b; + video_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -19776,8 +21472,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -19790,8 +21486,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -19803,8 +21499,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -19817,8 +21513,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -19867,8 +21563,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audio_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audio_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(video_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, video_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(2, certainty_); @@ -19891,8 +21587,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audio_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audio_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(video_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, video_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -19924,13 +21620,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch) obj; - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getVideo() + .equals(other.getVideo())) return false; if (hasCertainty() != other.hasCertainty()) return false; if (hasCertainty()) { if (java.lang.Double.doubleToLongBits(getCertainty()) @@ -19961,8 +21657,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AUDIO_FIELD_NUMBER; - hash = (53 * hash) + getAudio().hashCode(); + hash = (37 * hash) + VIDEO_FIELD_NUMBER; + hash = (53 * hash) + getVideo().hashCode(); if (hasCertainty()) { hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( @@ -19986,44 +21682,44 @@ public int hashCode() { return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20031,26 +21727,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAud .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20063,7 +21759,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAud public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20079,26 +21775,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.NearAudioSearch} + * Protobuf type {@code weaviate.v1.NearVideoSearch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.NearAudioSearch) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearchOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.NearVideoSearch) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -20118,7 +21814,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - audio_ = ""; + video_ = ""; certainty_ = 0D; distance_ = 0D; targetVectors_ = @@ -20134,17 +21830,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearAudioSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -20152,17 +21848,17 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearc } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.audio_ = audio_; + result.video_ = video_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -20220,18 +21916,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch.getDefaultInstance()) return this; - if (!other.getAudio().isEmpty()) { - audio_ = other.audio_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.getDefaultInstance()) return this; + if (!other.getVideo().isEmpty()) { + video_ = other.video_; bitField0_ |= 0x00000001; onChanged(); } @@ -20281,7 +21977,7 @@ public Builder mergeFrom( done = true; break; case 10: { - audio_ = input.readStringRequireUtf8(); + video_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -20325,73 +22021,73 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object audio_ = ""; + private java.lang.Object video_ = ""; /** - * string audio = 1; - * @return The audio. + * string video = 1; + * @return The video. */ - public java.lang.String getAudio() { - java.lang.Object ref = audio_; + public java.lang.String getVideo() { + java.lang.Object ref = video_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - audio_ = s; + video_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string audio = 1; - * @return The bytes for audio. + * string video = 1; + * @return The bytes for video. */ public com.google.protobuf.ByteString - getAudioBytes() { - java.lang.Object ref = audio_; + getVideoBytes() { + java.lang.Object ref = video_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - audio_ = b; + video_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string audio = 1; - * @param value The audio to set. + * string video = 1; + * @param value The video to set. * @return This builder for chaining. */ - public Builder setAudio( + public Builder setVideo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - audio_ = value; + video_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string audio = 1; + * string video = 1; * @return This builder for chaining. */ - public Builder clearAudio() { - audio_ = getDefaultInstance().getAudio(); + public Builder clearVideo() { + video_ = getDefaultInstance().getVideo(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string audio = 1; - * @param value The bytes for audio to set. + * string video = 1; + * @param value The bytes for video to set. * @return This builder for chaining. */ - public Builder setAudioBytes( + public Builder setVideoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - audio_ = value; + video_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -20491,8 +22187,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -20506,8 +22202,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -20519,8 +22215,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -20533,8 +22229,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -20548,8 +22244,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -20569,8 +22265,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -20589,8 +22285,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -20609,8 +22305,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { @@ -20626,8 +22322,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearAudioSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=167 + * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=185 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -20775,23 +22471,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.NearAudioSearch) + // @@protoc_insertion_point(builder_scope:weaviate.v1.NearVideoSearch) } - // @@protoc_insertion_point(class_scope:weaviate.v1.NearAudioSearch) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.NearVideoSearch) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public NearAudioSearch parsePartialFrom( + public NearVideoSearch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20810,37 +22506,37 @@ public NearAudioSearch parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearAudioSearch getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface NearVideoSearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.NearVideoSearch) + public interface NearDepthSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.NearDepthSearch) com.google.protobuf.MessageOrBuilder { /** - * string video = 1; - * @return The video. + * string depth = 1; + * @return The depth. */ - java.lang.String getVideo(); + java.lang.String getDepth(); /** - * string video = 1; - * @return The bytes for video. + * string depth = 1; + * @return The bytes for depth. */ com.google.protobuf.ByteString - getVideoBytes(); + getDepthBytes(); /** * optional double certainty = 2; @@ -20870,8 +22566,8 @@ public interface NearVideoSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -20882,8 +22578,8 @@ public interface NearVideoSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -20893,8 +22589,8 @@ public interface NearVideoSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -20905,8 +22601,8 @@ public interface NearVideoSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -20929,19 +22625,19 @@ public interface NearVideoSearchOrBuilder extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); } /** - * Protobuf type {@code weaviate.v1.NearVideoSearch} + * Protobuf type {@code weaviate.v1.NearDepthSearch} */ - public static final class NearVideoSearch extends + public static final class NearDepthSearch extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.NearVideoSearch) - NearVideoSearchOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.NearDepthSearch) + NearDepthSearchOrBuilder { private static final long serialVersionUID = 0L; - // Use NearVideoSearch.newBuilder() to construct. - private NearVideoSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NearDepthSearch.newBuilder() to construct. + private NearDepthSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NearVideoSearch() { - video_ = ""; + private NearDepthSearch() { + depth_ = ""; targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -20950,56 +22646,56 @@ private NearVideoSearch() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new NearVideoSearch(); + return new NearDepthSearch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.Builder.class); } private int bitField0_; - public static final int VIDEO_FIELD_NUMBER = 1; + public static final int DEPTH_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object video_ = ""; + private volatile java.lang.Object depth_ = ""; /** - * string video = 1; - * @return The video. + * string depth = 1; + * @return The depth. */ @java.lang.Override - public java.lang.String getVideo() { - java.lang.Object ref = video_; + public java.lang.String getDepth() { + java.lang.Object ref = depth_; 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(); - video_ = s; + depth_ = s; return s; } } /** - * string video = 1; - * @return The bytes for video. + * string depth = 1; + * @return The bytes for depth. */ @java.lang.Override public com.google.protobuf.ByteString - getVideoBytes() { - java.lang.Object ref = video_; + getDepthBytes() { + java.lang.Object ref = depth_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - video_ = b; + depth_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -21054,8 +22750,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -21068,8 +22764,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -21081,8 +22777,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -21095,8 +22791,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -21145,8 +22841,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(video_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, video_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(depth_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, depth_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(2, certainty_); @@ -21169,8 +22865,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(video_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, video_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(depth_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, depth_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -21202,13 +22898,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch) obj; - if (!getVideo() - .equals(other.getVideo())) return false; + if (!getDepth() + .equals(other.getDepth())) return false; if (hasCertainty() != other.hasCertainty()) return false; if (hasCertainty()) { if (java.lang.Double.doubleToLongBits(getCertainty()) @@ -21239,8 +22935,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VIDEO_FIELD_NUMBER; - hash = (53 * hash) + getVideo().hashCode(); + hash = (37 * hash) + DEPTH_FIELD_NUMBER; + hash = (53 * hash) + getDepth().hashCode(); if (hasCertainty()) { hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( @@ -21264,44 +22960,44 @@ public int hashCode() { return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -21309,26 +23005,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVid .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -21341,7 +23037,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVid public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -21357,26 +23053,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.NearVideoSearch} + * Protobuf type {@code weaviate.v1.NearDepthSearch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.NearVideoSearch) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearchOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.NearDepthSearch) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -21396,7 +23092,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - video_ = ""; + depth_ = ""; certainty_ = 0D; distance_ = 0D; targetVectors_ = @@ -21412,17 +23108,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearVideoSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -21430,17 +23126,17 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearc } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.video_ = video_; + result.depth_ = depth_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -21498,18 +23194,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch.getDefaultInstance()) return this; - if (!other.getVideo().isEmpty()) { - video_ = other.video_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.getDefaultInstance()) return this; + if (!other.getDepth().isEmpty()) { + depth_ = other.depth_; bitField0_ |= 0x00000001; onChanged(); } @@ -21559,7 +23255,7 @@ public Builder mergeFrom( done = true; break; case 10: { - video_ = input.readStringRequireUtf8(); + depth_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -21603,73 +23299,73 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object video_ = ""; + private java.lang.Object depth_ = ""; /** - * string video = 1; - * @return The video. + * string depth = 1; + * @return The depth. */ - public java.lang.String getVideo() { - java.lang.Object ref = video_; + public java.lang.String getDepth() { + java.lang.Object ref = depth_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - video_ = s; + depth_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string video = 1; - * @return The bytes for video. + * string depth = 1; + * @return The bytes for depth. */ public com.google.protobuf.ByteString - getVideoBytes() { - java.lang.Object ref = video_; + getDepthBytes() { + java.lang.Object ref = depth_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - video_ = b; + depth_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string video = 1; - * @param value The video to set. + * string depth = 1; + * @param value The depth to set. * @return This builder for chaining. */ - public Builder setVideo( + public Builder setDepth( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - video_ = value; + depth_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string video = 1; + * string depth = 1; * @return This builder for chaining. */ - public Builder clearVideo() { - video_ = getDefaultInstance().getVideo(); + public Builder clearDepth() { + depth_ = getDefaultInstance().getDepth(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string video = 1; - * @param value The bytes for video to set. + * string depth = 1; + * @param value The bytes for depth to set. * @return This builder for chaining. */ - public Builder setVideoBytes( + public Builder setDepthBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - video_ = value; + depth_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -21769,8 +23465,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -21784,8 +23480,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -21797,8 +23493,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -21811,8 +23507,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -21826,8 +23522,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -21847,8 +23543,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -21867,8 +23563,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -21887,8 +23583,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { @@ -21904,8 +23600,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearVideoSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=175 + * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=193 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -22053,23 +23749,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.NearVideoSearch) + // @@protoc_insertion_point(builder_scope:weaviate.v1.NearDepthSearch) } - // @@protoc_insertion_point(class_scope:weaviate.v1.NearVideoSearch) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.NearDepthSearch) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public NearVideoSearch parsePartialFrom( + public NearDepthSearch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -22088,37 +23784,37 @@ public NearVideoSearch parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVideoSearch getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface NearDepthSearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.NearDepthSearch) + public interface NearThermalSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.NearThermalSearch) com.google.protobuf.MessageOrBuilder { /** - * string depth = 1; - * @return The depth. + * string thermal = 1; + * @return The thermal. */ - java.lang.String getDepth(); + java.lang.String getThermal(); /** - * string depth = 1; - * @return The bytes for depth. + * string thermal = 1; + * @return The bytes for thermal. */ com.google.protobuf.ByteString - getDepthBytes(); + getThermalBytes(); /** * optional double certainty = 2; @@ -22148,8 +23844,8 @@ public interface NearDepthSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -22160,8 +23856,8 @@ public interface NearDepthSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -22171,8 +23867,8 @@ public interface NearDepthSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -22183,8 +23879,8 @@ public interface NearDepthSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -22207,19 +23903,19 @@ public interface NearDepthSearchOrBuilder extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); } /** - * Protobuf type {@code weaviate.v1.NearDepthSearch} + * Protobuf type {@code weaviate.v1.NearThermalSearch} */ - public static final class NearDepthSearch extends + public static final class NearThermalSearch extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.NearDepthSearch) - NearDepthSearchOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.NearThermalSearch) + NearThermalSearchOrBuilder { private static final long serialVersionUID = 0L; - // Use NearDepthSearch.newBuilder() to construct. - private NearDepthSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NearThermalSearch.newBuilder() to construct. + private NearThermalSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NearDepthSearch() { - depth_ = ""; + private NearThermalSearch() { + thermal_ = ""; targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -22228,56 +23924,56 @@ private NearDepthSearch() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new NearDepthSearch(); + return new NearThermalSearch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.Builder.class); } private int bitField0_; - public static final int DEPTH_FIELD_NUMBER = 1; + public static final int THERMAL_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object depth_ = ""; + private volatile java.lang.Object thermal_ = ""; /** - * string depth = 1; - * @return The depth. + * string thermal = 1; + * @return The thermal. */ @java.lang.Override - public java.lang.String getDepth() { - java.lang.Object ref = depth_; + public java.lang.String getThermal() { + java.lang.Object ref = thermal_; 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(); - depth_ = s; + thermal_ = s; return s; } } /** - * string depth = 1; - * @return The bytes for depth. + * string thermal = 1; + * @return The bytes for thermal. */ @java.lang.Override public com.google.protobuf.ByteString - getDepthBytes() { - java.lang.Object ref = depth_; + getThermalBytes() { + java.lang.Object ref = thermal_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - depth_ = b; + thermal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -22332,8 +24028,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -22346,8 +24042,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -22359,8 +24055,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -22373,8 +24069,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -22423,8 +24119,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(depth_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, depth_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thermal_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, thermal_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(2, certainty_); @@ -22447,8 +24143,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(depth_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, depth_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thermal_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, thermal_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -22480,13 +24176,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch) obj; - if (!getDepth() - .equals(other.getDepth())) return false; + if (!getThermal() + .equals(other.getThermal())) return false; if (hasCertainty() != other.hasCertainty()) return false; if (hasCertainty()) { if (java.lang.Double.doubleToLongBits(getCertainty()) @@ -22517,8 +24213,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEPTH_FIELD_NUMBER; - hash = (53 * hash) + getDepth().hashCode(); + hash = (37 * hash) + THERMAL_FIELD_NUMBER; + hash = (53 * hash) + getThermal().hashCode(); if (hasCertainty()) { hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( @@ -22542,44 +24238,44 @@ public int hashCode() { return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22587,26 +24283,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDep .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22619,7 +24315,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDep public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -22635,26 +24331,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.NearDepthSearch} + * Protobuf type {@code weaviate.v1.NearThermalSearch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.NearDepthSearch) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearchOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.NearThermalSearch) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -22674,7 +24370,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - depth_ = ""; + thermal_ = ""; certainty_ = 0D; distance_ = 0D; targetVectors_ = @@ -22690,17 +24386,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearDepthSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -22708,17 +24404,17 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearc } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.depth_ = depth_; + result.thermal_ = thermal_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -22776,18 +24472,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch.getDefaultInstance()) return this; - if (!other.getDepth().isEmpty()) { - depth_ = other.depth_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.getDefaultInstance()) return this; + if (!other.getThermal().isEmpty()) { + thermal_ = other.thermal_; bitField0_ |= 0x00000001; onChanged(); } @@ -22837,7 +24533,7 @@ public Builder mergeFrom( done = true; break; case 10: { - depth_ = input.readStringRequireUtf8(); + thermal_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -22881,73 +24577,73 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object depth_ = ""; + private java.lang.Object thermal_ = ""; /** - * string depth = 1; - * @return The depth. + * string thermal = 1; + * @return The thermal. */ - public java.lang.String getDepth() { - java.lang.Object ref = depth_; + public java.lang.String getThermal() { + java.lang.Object ref = thermal_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - depth_ = s; + thermal_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string depth = 1; - * @return The bytes for depth. + * string thermal = 1; + * @return The bytes for thermal. */ public com.google.protobuf.ByteString - getDepthBytes() { - java.lang.Object ref = depth_; + getThermalBytes() { + java.lang.Object ref = thermal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - depth_ = b; + thermal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string depth = 1; - * @param value The depth to set. + * string thermal = 1; + * @param value The thermal to set. * @return This builder for chaining. */ - public Builder setDepth( + public Builder setThermal( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - depth_ = value; + thermal_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string depth = 1; + * string thermal = 1; * @return This builder for chaining. */ - public Builder clearDepth() { - depth_ = getDefaultInstance().getDepth(); + public Builder clearThermal() { + thermal_ = getDefaultInstance().getThermal(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string depth = 1; - * @param value The bytes for depth to set. + * string thermal = 1; + * @param value The bytes for thermal to set. * @return This builder for chaining. */ - public Builder setDepthBytes( + public Builder setThermalBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - depth_ = value; + thermal_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -23047,8 +24743,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -23062,8 +24758,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -23075,8 +24771,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -23089,8 +24785,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -23104,8 +24800,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -23125,8 +24821,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -23145,8 +24841,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -23165,8 +24861,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { @@ -23182,8 +24878,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearDepthSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=183 + * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=201 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -23331,23 +25027,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.NearDepthSearch) + // @@protoc_insertion_point(builder_scope:weaviate.v1.NearThermalSearch) } - // @@protoc_insertion_point(class_scope:weaviate.v1.NearDepthSearch) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.NearThermalSearch) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public NearDepthSearch parsePartialFrom( + public NearThermalSearch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23366,37 +25062,37 @@ public NearDepthSearch parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearDepthSearch getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface NearThermalSearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.NearThermalSearch) + public interface NearIMUSearchOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.NearIMUSearch) com.google.protobuf.MessageOrBuilder { /** - * string thermal = 1; - * @return The thermal. + * string imu = 1; + * @return The imu. */ - java.lang.String getThermal(); + java.lang.String getImu(); /** - * string thermal = 1; - * @return The bytes for thermal. + * string imu = 1; + * @return The bytes for imu. */ com.google.protobuf.ByteString - getThermalBytes(); + getImuBytes(); /** * optional double certainty = 2; @@ -23426,8 +25122,8 @@ public interface NearThermalSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -23438,8 +25134,8 @@ public interface NearThermalSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -23449,8 +25145,8 @@ public interface NearThermalSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -23461,8 +25157,8 @@ public interface NearThermalSearchOrBuilder extends * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -23485,19 +25181,19 @@ public interface NearThermalSearchOrBuilder extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); } /** - * Protobuf type {@code weaviate.v1.NearThermalSearch} + * Protobuf type {@code weaviate.v1.NearIMUSearch} */ - public static final class NearThermalSearch extends + public static final class NearIMUSearch extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.NearThermalSearch) - NearThermalSearchOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.NearIMUSearch) + NearIMUSearchOrBuilder { private static final long serialVersionUID = 0L; - // Use NearThermalSearch.newBuilder() to construct. - private NearThermalSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NearIMUSearch.newBuilder() to construct. + private NearIMUSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NearThermalSearch() { - thermal_ = ""; + private NearIMUSearch() { + imu_ = ""; targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -23506,56 +25202,56 @@ private NearThermalSearch() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new NearThermalSearch(); + return new NearIMUSearch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.Builder.class); } private int bitField0_; - public static final int THERMAL_FIELD_NUMBER = 1; + public static final int IMU_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object thermal_ = ""; + private volatile java.lang.Object imu_ = ""; /** - * string thermal = 1; - * @return The thermal. + * string imu = 1; + * @return The imu. */ @java.lang.Override - public java.lang.String getThermal() { - java.lang.Object ref = thermal_; + public java.lang.String getImu() { + java.lang.Object ref = imu_; 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(); - thermal_ = s; + imu_ = s; return s; } } /** - * string thermal = 1; - * @return The bytes for thermal. + * string imu = 1; + * @return The bytes for imu. */ @java.lang.Override public com.google.protobuf.ByteString - getThermalBytes() { - java.lang.Object ref = thermal_; + getImuBytes() { + java.lang.Object ref = imu_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - thermal_ = b; + imu_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -23610,8 +25306,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -23624,8 +25320,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -23637,8 +25333,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -23651,8 +25347,8 @@ public double getDistance() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -23701,8 +25397,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thermal_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, thermal_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imu_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imu_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(2, certainty_); @@ -23725,8 +25421,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(thermal_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, thermal_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imu_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imu_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream @@ -23758,13 +25454,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch) obj; - if (!getThermal() - .equals(other.getThermal())) return false; + if (!getImu() + .equals(other.getImu())) return false; if (hasCertainty() != other.hasCertainty()) return false; if (hasCertainty()) { if (java.lang.Double.doubleToLongBits(getCertainty()) @@ -23795,8 +25491,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + THERMAL_FIELD_NUMBER; - hash = (53 * hash) + getThermal().hashCode(); + hash = (37 * hash) + IMU_FIELD_NUMBER; + hash = (53 * hash) + getImu().hashCode(); if (hasCertainty()) { hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( @@ -23820,44 +25516,44 @@ public int hashCode() { return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -23865,26 +25561,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThe .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -23897,7 +25593,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThe public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -23913,26 +25609,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.NearThermalSearch} + * Protobuf type {@code weaviate.v1.NearIMUSearch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.NearThermalSearch) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearchOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.NearIMUSearch) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -23952,7 +25648,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - thermal_ = ""; + imu_ = ""; certainty_ = 0D; distance_ = 0D; targetVectors_ = @@ -23968,17 +25664,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearThermalSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -23986,17 +25682,17 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSea } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.thermal_ = thermal_; + result.imu_ = imu_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { @@ -24054,18 +25750,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch.getDefaultInstance()) return this; - if (!other.getThermal().isEmpty()) { - thermal_ = other.thermal_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.getDefaultInstance()) return this; + if (!other.getImu().isEmpty()) { + imu_ = other.imu_; bitField0_ |= 0x00000001; onChanged(); } @@ -24115,7 +25811,7 @@ public Builder mergeFrom( done = true; break; case 10: { - thermal_ = input.readStringRequireUtf8(); + imu_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -24159,73 +25855,73 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object thermal_ = ""; + private java.lang.Object imu_ = ""; /** - * string thermal = 1; - * @return The thermal. + * string imu = 1; + * @return The imu. */ - public java.lang.String getThermal() { - java.lang.Object ref = thermal_; + public java.lang.String getImu() { + java.lang.Object ref = imu_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - thermal_ = s; + imu_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string thermal = 1; - * @return The bytes for thermal. + * string imu = 1; + * @return The bytes for imu. */ public com.google.protobuf.ByteString - getThermalBytes() { - java.lang.Object ref = thermal_; + getImuBytes() { + java.lang.Object ref = imu_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - thermal_ = b; + imu_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string thermal = 1; - * @param value The thermal to set. + * string imu = 1; + * @param value The imu to set. * @return This builder for chaining. */ - public Builder setThermal( + public Builder setImu( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - thermal_ = value; + imu_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string thermal = 1; + * string imu = 1; * @return This builder for chaining. */ - public Builder clearThermal() { - thermal_ = getDefaultInstance().getThermal(); + public Builder clearImu() { + imu_ = getDefaultInstance().getImu(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string thermal = 1; - * @param value The bytes for thermal to set. + * string imu = 1; + * @param value The bytes for imu to set. * @return This builder for chaining. */ - public Builder setThermalBytes( + public Builder setImuBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - thermal_ = value; + imu_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -24325,8 +26021,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -24340,8 +26036,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -24353,8 +26049,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -24367,8 +26063,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -24382,8 +26078,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -24403,8 +26099,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -24423,8 +26119,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -24443,8 +26139,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { @@ -24460,8 +26156,8 @@ private void ensureTargetVectorsIsMutable() { * * * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearThermalSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=191 + * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. + * See v1/search_get.proto;l=209 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -24609,23 +26305,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.NearThermalSearch) + // @@protoc_insertion_point(builder_scope:weaviate.v1.NearIMUSearch) } - // @@protoc_insertion_point(class_scope:weaviate.v1.NearThermalSearch) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.NearIMUSearch) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public NearThermalSearch parsePartialFrom( + public NearIMUSearch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -24644,139 +26340,78 @@ public NearThermalSearch parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearThermalSearch getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface NearIMUSearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.NearIMUSearch) + public interface BM25OrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.BM25) com.google.protobuf.MessageOrBuilder { /** - * string imu = 1; - * @return The imu. + * string query = 1; + * @return The query. */ - java.lang.String getImu(); + java.lang.String getQuery(); /** - * string imu = 1; - * @return The bytes for imu. + * string query = 1; + * @return The bytes for query. */ com.google.protobuf.ByteString - getImuBytes(); - - /** - * optional double certainty = 2; - * @return Whether the certainty field is set. - */ - boolean hasCertainty(); - /** - * optional double certainty = 2; - * @return The certainty. - */ - double getCertainty(); - - /** - * optional double distance = 3; - * @return Whether the distance field is set. - */ - boolean hasDistance(); - /** - * optional double distance = 3; - * @return The distance. - */ - double getDistance(); + getQueryBytes(); /** - *
-     * deprecated in 1.26 - use targets
-     * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @return A list containing the targetVectors. + * repeated string properties = 2; + * @return A list containing the properties. */ - @java.lang.Deprecated java.util.List - getTargetVectorsList(); + java.util.List + getPropertiesList(); /** - *
-     * deprecated in 1.26 - use targets
-     * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @return The count of targetVectors. + * repeated string properties = 2; + * @return The count of properties. */ - @java.lang.Deprecated int getTargetVectorsCount(); + int getPropertiesCount(); /** - *
-     * deprecated in 1.26 - use targets
-     * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 + * repeated string properties = 2; * @param index The index of the element to return. - * @return The targetVectors at the given index. + * @return The properties at the given index. */ - @java.lang.Deprecated java.lang.String getTargetVectors(int index); + java.lang.String getProperties(int index); /** - *
-     * deprecated in 1.26 - use targets
-     * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 + * repeated string properties = 2; * @param index The index of the value to return. - * @return The bytes of the targetVectors at the given index. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getTargetVectorsBytes(int index); - - /** - * .weaviate.v1.Targets targets = 5; - * @return Whether the targets field is set. - */ - boolean hasTargets(); - /** - * .weaviate.v1.Targets targets = 5; - * @return The targets. - */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTargets(); - /** - * .weaviate.v1.Targets targets = 5; + * @return The bytes of the properties at the given index. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); + com.google.protobuf.ByteString + getPropertiesBytes(int index); } /** - * Protobuf type {@code weaviate.v1.NearIMUSearch} + * Protobuf type {@code weaviate.v1.BM25} */ - public static final class NearIMUSearch extends + public static final class BM25 extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.NearIMUSearch) - NearIMUSearchOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.BM25) + BM25OrBuilder { private static final long serialVersionUID = 0L; - // Use NearIMUSearch.newBuilder() to construct. - private NearIMUSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use BM25.newBuilder() to construct. + private BM25(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NearIMUSearch() { - imu_ = ""; - targetVectors_ = + private BM25() { + query_ = ""; + properties_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -24784,185 +26419,96 @@ private NearIMUSearch() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new NearIMUSearch(); + return new BM25(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.Builder.class); } - private int bitField0_; - public static final int IMU_FIELD_NUMBER = 1; + public static final int QUERY_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object imu_ = ""; + private volatile java.lang.Object query_ = ""; /** - * string imu = 1; - * @return The imu. + * string query = 1; + * @return The query. */ @java.lang.Override - public java.lang.String getImu() { - java.lang.Object ref = imu_; + public java.lang.String getQuery() { + java.lang.Object ref = query_; 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(); - imu_ = s; + query_ = s; return s; } } /** - * string imu = 1; - * @return The bytes for imu. + * string query = 1; + * @return The bytes for query. */ @java.lang.Override public com.google.protobuf.ByteString - getImuBytes() { - java.lang.Object ref = imu_; + getQueryBytes() { + java.lang.Object ref = query_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - imu_ = b; + query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int CERTAINTY_FIELD_NUMBER = 2; - private double certainty_ = 0D; - /** - * optional double certainty = 2; - * @return Whether the certainty field is set. - */ - @java.lang.Override - public boolean hasCertainty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional double certainty = 2; - * @return The certainty. - */ - @java.lang.Override - public double getCertainty() { - return certainty_; - } - - public static final int DISTANCE_FIELD_NUMBER = 3; - private double distance_ = 0D; - /** - * optional double distance = 3; - * @return Whether the distance field is set. - */ - @java.lang.Override - public boolean hasDistance() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional double distance = 3; - * @return The distance. - */ - @java.lang.Override - public double getDistance() { - return distance_; - } - - public static final int TARGET_VECTORS_FIELD_NUMBER = 4; + public static final int PROPERTIES_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList targetVectors_ = + private com.google.protobuf.LazyStringArrayList properties_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - *
-     * deprecated in 1.26 - use targets
-     * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @return A list containing the targetVectors. - */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getTargetVectorsList() { - return targetVectors_; - } - /** - *
-     * deprecated in 1.26 - use targets
-     * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @return The count of targetVectors. - */ - @java.lang.Deprecated public int getTargetVectorsCount() { - return targetVectors_.size(); - } - /** - *
-     * deprecated in 1.26 - use targets
-     * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @param index The index of the element to return. - * @return The targetVectors at the given index. - */ - @java.lang.Deprecated public java.lang.String getTargetVectors(int index) { - return targetVectors_.get(index); - } - /** - *
-     * deprecated in 1.26 - use targets
-     * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @param index The index of the value to return. - * @return The bytes of the targetVectors at the given index. + * repeated string properties = 2; + * @return A list containing the properties. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getTargetVectorsBytes(int index) { - return targetVectors_.getByteString(index); + public com.google.protobuf.ProtocolStringList + getPropertiesList() { + return properties_; } - - public static final int TARGETS_FIELD_NUMBER = 5; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets targets_; /** - * .weaviate.v1.Targets targets = 5; - * @return Whether the targets field is set. + * repeated string properties = 2; + * @return The count of properties. */ - @java.lang.Override - public boolean hasTargets() { - return ((bitField0_ & 0x00000004) != 0); + public int getPropertiesCount() { + return properties_.size(); } /** - * .weaviate.v1.Targets targets = 5; - * @return The targets. + * repeated string properties = 2; + * @param index The index of the element to return. + * @return The properties at the given index. */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTargets() { - return targets_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; + public java.lang.String getProperties(int index) { + return properties_.get(index); } /** - * .weaviate.v1.Targets targets = 5; + * repeated string properties = 2; + * @param index The index of the value to return. + * @return The bytes of the properties at the given index. */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder() { - return targets_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; + public com.google.protobuf.ByteString + getPropertiesBytes(int index) { + return properties_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -24979,20 +26525,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imu_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imu_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeDouble(2, certainty_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeDouble(3, distance_); - } - for (int i = 0; i < targetVectors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, targetVectors_.getRaw(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(5, getTargets()); + for (int i = 0; i < properties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, properties_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -25003,28 +26540,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imu_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imu_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, certainty_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, distance_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } { int dataSize = 0; - for (int i = 0; i < targetVectors_.size(); i++) { - dataSize += computeStringSizeNoTag(targetVectors_.getRaw(i)); + for (int i = 0; i < properties_.size(); i++) { + dataSize += computeStringSizeNoTag(properties_.getRaw(i)); } size += dataSize; - size += 1 * getTargetVectorsList().size(); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTargets()); + size += 1 * getPropertiesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -25036,32 +26561,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25) obj; - if (!getImu() - .equals(other.getImu())) return false; - if (hasCertainty() != other.hasCertainty()) return false; - if (hasCertainty()) { - if (java.lang.Double.doubleToLongBits(getCertainty()) - != java.lang.Double.doubleToLongBits( - other.getCertainty())) return false; - } - if (hasDistance() != other.hasDistance()) return false; - if (hasDistance()) { - if (java.lang.Double.doubleToLongBits(getDistance()) - != java.lang.Double.doubleToLongBits( - other.getDistance())) return false; - } - if (!getTargetVectorsList() - .equals(other.getTargetVectorsList())) return false; - if (hasTargets() != other.hasTargets()) return false; - if (hasTargets()) { - if (!getTargets() - .equals(other.getTargets())) return false; - } + if (!getQuery() + .equals(other.getQuery())) return false; + if (!getPropertiesList() + .equals(other.getPropertiesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -25073,69 +26581,55 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IMU_FIELD_NUMBER; - hash = (53 * hash) + getImu().hashCode(); - if (hasCertainty()) { - hash = (37 * hash) + CERTAINTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCertainty())); - } - if (hasDistance()) { - hash = (37 * hash) + DISTANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDistance())); - } - if (getTargetVectorsCount() > 0) { - hash = (37 * hash) + TARGET_VECTORS_FIELD_NUMBER; - hash = (53 * hash) + getTargetVectorsList().hashCode(); - } - if (hasTargets()) { - hash = (37 * hash) + TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getTargets().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -25143,26 +26637,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMU .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -25175,7 +26669,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMU public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -25191,72 +26685,59 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.NearIMUSearch} + * Protobuf type {@code weaviate.v1.BM25} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.NearIMUSearch) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearchOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.BM25) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTargetsFieldBuilder(); - } + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - imu_ = ""; - certainty_ = 0D; - distance_ = 0D; - targetVectors_ = + query_ = ""; + properties_ = com.google.protobuf.LazyStringArrayList.emptyList(); - targets_ = null; - if (targetsBuilder_ != null) { - targetsBuilder_.dispose(); - targetsBuilder_ = null; - } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_NearIMUSearch_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -25264,38 +26745,22 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.imu_ = imu_; + result.query_ = query_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.certainty_ = certainty_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.distance_ = distance_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - targetVectors_.makeImmutable(); - result.targetVectors_ = targetVectors_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.targets_ = targetsBuilder_ == null - ? targets_ - : targetsBuilder_.build(); - to_bitField0_ |= 0x00000004; + properties_.makeImmutable(); + result.properties_ = properties_; } - result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -25332,40 +26797,31 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch.getDefaultInstance()) return this; - if (!other.getImu().isEmpty()) { - imu_ = other.imu_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; bitField0_ |= 0x00000001; onChanged(); } - if (other.hasCertainty()) { - setCertainty(other.getCertainty()); - } - if (other.hasDistance()) { - setDistance(other.getDistance()); - } - if (!other.targetVectors_.isEmpty()) { - if (targetVectors_.isEmpty()) { - targetVectors_ = other.targetVectors_; - bitField0_ |= 0x00000008; + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ |= 0x00000002; } else { - ensureTargetVectorsIsMutable(); - targetVectors_.addAll(other.targetVectors_); + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); } onChanged(); } - if (other.hasTargets()) { - mergeTargets(other.getTargets()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -25393,33 +26849,16 @@ public Builder mergeFrom( done = true; break; case 10: { - imu_ = input.readStringRequireUtf8(); + query_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 17: { - certainty_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - case 25: { - distance_ = input.readDouble(); - bitField0_ |= 0x00000004; - break; - } // case 25 - case 34: { + case 18: { java.lang.String s = input.readStringRequireUtf8(); - ensureTargetVectorsIsMutable(); - targetVectors_.add(s); - break; - } // case 34 - case 42: { - input.readMessage( - getTargetsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; + ensurePropertiesIsMutable(); + properties_.add(s); break; - } // case 42 + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -25437,442 +26876,187 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object imu_ = ""; + private java.lang.Object query_ = ""; /** - * string imu = 1; - * @return The imu. + * string query = 1; + * @return The query. */ - public java.lang.String getImu() { - java.lang.Object ref = imu_; + public java.lang.String getQuery() { + java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - imu_ = s; + query_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string imu = 1; - * @return The bytes for imu. + * string query = 1; + * @return The bytes for query. */ public com.google.protobuf.ByteString - getImuBytes() { - java.lang.Object ref = imu_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - imu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string imu = 1; - * @param value The imu to set. - * @return This builder for chaining. - */ - public Builder setImu( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - imu_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string imu = 1; - * @return This builder for chaining. - */ - public Builder clearImu() { - imu_ = getDefaultInstance().getImu(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string imu = 1; - * @param value The bytes for imu to set. - * @return This builder for chaining. - */ - public Builder setImuBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - imu_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private double certainty_ ; - /** - * optional double certainty = 2; - * @return Whether the certainty field is set. - */ - @java.lang.Override - public boolean hasCertainty() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional double certainty = 2; - * @return The certainty. - */ - @java.lang.Override - public double getCertainty() { - return certainty_; - } - /** - * optional double certainty = 2; - * @param value The certainty to set. - * @return This builder for chaining. - */ - public Builder setCertainty(double value) { - - certainty_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional double certainty = 2; - * @return This builder for chaining. - */ - public Builder clearCertainty() { - bitField0_ = (bitField0_ & ~0x00000002); - certainty_ = 0D; - onChanged(); - return this; - } - - private double distance_ ; - /** - * optional double distance = 3; - * @return Whether the distance field is set. - */ - @java.lang.Override - public boolean hasDistance() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional double distance = 3; - * @return The distance. - */ - @java.lang.Override - public double getDistance() { - return distance_; - } - /** - * optional double distance = 3; - * @param value The distance to set. - * @return This builder for chaining. - */ - public Builder setDistance(double value) { - - distance_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional double distance = 3; - * @return This builder for chaining. - */ - public Builder clearDistance() { - bitField0_ = (bitField0_ & ~0x00000004); - distance_ = 0D; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList targetVectors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTargetVectorsIsMutable() { - if (!targetVectors_.isModifiable()) { - targetVectors_ = new com.google.protobuf.LazyStringArrayList(targetVectors_); - } - bitField0_ |= 0x00000008; - } - /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @return A list containing the targetVectors. - */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getTargetVectorsList() { - targetVectors_.makeImmutable(); - return targetVectors_; - } - /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @return The count of targetVectors. - */ - @java.lang.Deprecated public int getTargetVectorsCount() { - return targetVectors_.size(); - } - /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @param index The index of the element to return. - * @return The targetVectors at the given index. - */ - @java.lang.Deprecated public java.lang.String getTargetVectors(int index) { - return targetVectors_.get(index); - } - /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @param index The index of the value to return. - * @return The bytes of the targetVectors at the given index. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getTargetVectorsBytes(int index) { - return targetVectors_.getByteString(index); - } - /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @param index The index to set the value at. - * @param value The targetVectors to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setTargetVectors( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTargetVectorsIsMutable(); - targetVectors_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @param value The targetVectors to add. + * string query = 1; + * @param value The query to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addTargetVectors( + public Builder setQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureTargetVectorsIsMutable(); - targetVectors_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @param values The targetVectors to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder addAllTargetVectors( - java.lang.Iterable values) { - ensureTargetVectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetVectors_); - bitField0_ |= 0x00000008; + query_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 + * string query = 1; * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearTargetVectors() { - targetVectors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - *
-       * deprecated in 1.26 - use targets
-       * 
- * - * repeated string target_vectors = 4 [deprecated = true]; - * @deprecated weaviate.v1.NearIMUSearch.target_vectors is deprecated. - * See v1/search_get.proto;l=199 - * @param value The bytes of the targetVectors to add. + * string query = 1; + * @param value The bytes for query to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder addTargetVectorsBytes( + public Builder setQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureTargetVectorsIsMutable(); - targetVectors_.add(value); - bitField0_ |= 0x00000008; + query_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets targets_; - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder> targetsBuilder_; + private com.google.protobuf.LazyStringArrayList properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePropertiesIsMutable() { + if (!properties_.isModifiable()) { + properties_ = new com.google.protobuf.LazyStringArrayList(properties_); + } + bitField0_ |= 0x00000002; + } /** - * .weaviate.v1.Targets targets = 5; - * @return Whether the targets field is set. + * repeated string properties = 2; + * @return A list containing the properties. */ - public boolean hasTargets() { - return ((bitField0_ & 0x00000010) != 0); + public com.google.protobuf.ProtocolStringList + getPropertiesList() { + properties_.makeImmutable(); + return properties_; } /** - * .weaviate.v1.Targets targets = 5; - * @return The targets. + * repeated string properties = 2; + * @return The count of properties. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets getTargets() { - if (targetsBuilder_ == null) { - return targets_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; - } else { - return targetsBuilder_.getMessage(); - } + public int getPropertiesCount() { + return properties_.size(); } /** - * .weaviate.v1.Targets targets = 5; + * repeated string properties = 2; + * @param index The index of the element to return. + * @return The properties at the given index. */ - public Builder setTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targets_ = value; - } else { - targetsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; + public java.lang.String getProperties(int index) { + return properties_.get(index); } /** - * .weaviate.v1.Targets targets = 5; + * repeated string properties = 2; + * @param index The index of the value to return. + * @return The bytes of the properties at the given index. */ - public Builder setTargets( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder builderForValue) { - if (targetsBuilder_ == null) { - targets_ = builderForValue.build(); - } else { - targetsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; + public com.google.protobuf.ByteString + getPropertiesBytes(int index) { + return properties_.getByteString(index); } /** - * .weaviate.v1.Targets targets = 5; + * repeated string properties = 2; + * @param index The index to set the value at. + * @param value The properties to set. + * @return This builder for chaining. */ - public Builder mergeTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets value) { - if (targetsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - targets_ != null && - targets_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance()) { - getTargetsBuilder().mergeFrom(value); - } else { - targets_ = value; - } - } else { - targetsBuilder_.mergeFrom(value); - } - if (targets_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } + public Builder setProperties( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePropertiesIsMutable(); + properties_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * .weaviate.v1.Targets targets = 5; + * repeated string properties = 2; + * @param value The properties to add. + * @return This builder for chaining. */ - public Builder clearTargets() { - bitField0_ = (bitField0_ & ~0x00000010); - targets_ = null; - if (targetsBuilder_ != null) { - targetsBuilder_.dispose(); - targetsBuilder_ = null; - } + public Builder addProperties( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePropertiesIsMutable(); + properties_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * .weaviate.v1.Targets targets = 5; + * repeated string properties = 2; + * @param values The properties to add. + * @return This builder for chaining. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder getTargetsBuilder() { - bitField0_ |= 0x00000010; + public Builder addAllProperties( + java.lang.Iterable values) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, properties_); + bitField0_ |= 0x00000002; onChanged(); - return getTargetsFieldBuilder().getBuilder(); + return this; } /** - * .weaviate.v1.Targets targets = 5; + * repeated string properties = 2; + * @return This builder for chaining. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder() { - if (targetsBuilder_ != null) { - return targetsBuilder_.getMessageOrBuilder(); - } else { - return targets_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.getDefaultInstance() : targets_; - } + public Builder clearProperties() { + properties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; } /** - * .weaviate.v1.Targets targets = 5; + * repeated string properties = 2; + * @param value The bytes of the properties to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder> - getTargetsFieldBuilder() { - if (targetsBuilder_ == null) { - targetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Targets.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder>( - getTargets(), - getParentForChildren(), - isClean()); - targets_ = null; - } - return targetsBuilder_; + public Builder addPropertiesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePropertiesIsMutable(); + properties_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -25887,23 +27071,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.NearIMUSearch) + // @@protoc_insertion_point(builder_scope:weaviate.v1.BM25) } - // @@protoc_insertion_point(class_scope:weaviate.v1.NearIMUSearch) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.BM25) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public NearIMUSearch parsePartialFrom( + public BM25 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -25922,134 +27106,151 @@ public NearIMUSearch parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearch getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface BM25OrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.BM25) + public interface RefPropertiesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.RefPropertiesRequest) com.google.protobuf.MessageOrBuilder { /** - * string query = 1; - * @return The query. + * string reference_property = 1; + * @return The referenceProperty. */ - java.lang.String getQuery(); + java.lang.String getReferenceProperty(); /** - * string query = 1; - * @return The bytes for query. + * string reference_property = 1; + * @return The bytes for referenceProperty. */ com.google.protobuf.ByteString - getQueryBytes(); + getReferencePropertyBytes(); /** - * repeated string properties = 2; - * @return A list containing the properties. + * .weaviate.v1.PropertiesRequest properties = 2; + * @return Whether the properties field is set. */ - java.util.List - getPropertiesList(); + boolean hasProperties(); /** - * repeated string properties = 2; - * @return The count of properties. + * .weaviate.v1.PropertiesRequest properties = 2; + * @return The properties. */ - int getPropertiesCount(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getProperties(); /** - * repeated string properties = 2; - * @param index The index of the element to return. - * @return The properties at the given index. + * .weaviate.v1.PropertiesRequest properties = 2; */ - java.lang.String getProperties(int index); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder getPropertiesOrBuilder(); + /** - * repeated string properties = 2; - * @param index The index of the value to return. - * @return The bytes of the properties at the given index. + * .weaviate.v1.MetadataRequest metadata = 3; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * .weaviate.v1.MetadataRequest metadata = 3; + * @return The metadata. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getMetadata(); + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder getMetadataOrBuilder(); + + /** + * string target_collection = 4; + * @return The targetCollection. + */ + java.lang.String getTargetCollection(); + /** + * string target_collection = 4; + * @return The bytes for targetCollection. */ com.google.protobuf.ByteString - getPropertiesBytes(int index); + getTargetCollectionBytes(); } /** - * Protobuf type {@code weaviate.v1.BM25} + * Protobuf type {@code weaviate.v1.RefPropertiesRequest} */ - public static final class BM25 extends + public static final class RefPropertiesRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.BM25) - BM25OrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.RefPropertiesRequest) + RefPropertiesRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use BM25.newBuilder() to construct. - private BM25(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use RefPropertiesRequest.newBuilder() to construct. + private RefPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BM25() { - query_ = ""; - properties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private RefPropertiesRequest() { + referenceProperty_ = ""; + targetCollection_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new BM25(); + return new RefPropertiesRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder.class); } - public static final int QUERY_FIELD_NUMBER = 1; + private int bitField0_; + public static final int REFERENCE_PROPERTY_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object query_ = ""; + private volatile java.lang.Object referenceProperty_ = ""; /** - * string query = 1; - * @return The query. + * string reference_property = 1; + * @return The referenceProperty. */ @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; + public java.lang.String getReferenceProperty() { + java.lang.Object ref = referenceProperty_; 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(); - query_ = s; + referenceProperty_ = s; return s; } } /** - * string query = 1; - * @return The bytes for query. + * string reference_property = 1; + * @return The bytes for referenceProperty. */ @java.lang.Override public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; + getReferencePropertyBytes() { + java.lang.Object ref = referenceProperty_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - query_ = b; + referenceProperty_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -26057,40 +27258,94 @@ public java.lang.String getQuery() { } public static final int PROPERTIES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList properties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest properties_; /** - * repeated string properties = 2; - * @return A list containing the properties. + * .weaviate.v1.PropertiesRequest properties = 2; + * @return Whether the properties field is set. */ - public com.google.protobuf.ProtocolStringList - getPropertiesList() { - return properties_; + @java.lang.Override + public boolean hasProperties() { + return ((bitField0_ & 0x00000001) != 0); } /** - * repeated string properties = 2; - * @return The count of properties. + * .weaviate.v1.PropertiesRequest properties = 2; + * @return The properties. */ - public int getPropertiesCount() { - return properties_.size(); + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getProperties() { + return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance() : properties_; } /** - * repeated string properties = 2; - * @param index The index of the element to return. - * @return The properties at the given index. + * .weaviate.v1.PropertiesRequest properties = 2; */ - public java.lang.String getProperties(int index) { - return properties_.get(index); + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder getPropertiesOrBuilder() { + return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance() : properties_; } + + public static final int METADATA_FIELD_NUMBER = 3; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest metadata_; /** - * repeated string properties = 2; - * @param index The index of the value to return. - * @return The bytes of the properties at the given index. + * .weaviate.v1.MetadataRequest metadata = 3; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + * @return The metadata. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getMetadata() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance() : metadata_; + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance() : metadata_; + } + + public static final int TARGET_COLLECTION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object targetCollection_ = ""; + /** + * string target_collection = 4; + * @return The targetCollection. + */ + @java.lang.Override + public java.lang.String getTargetCollection() { + java.lang.Object ref = targetCollection_; + 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(); + targetCollection_ = s; + return s; + } + } + /** + * string target_collection = 4; + * @return The bytes for targetCollection. */ + @java.lang.Override public com.google.protobuf.ByteString - getPropertiesBytes(int index) { - return properties_.getByteString(index); + getTargetCollectionBytes() { + java.lang.Object ref = targetCollection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -26107,11 +27362,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceProperty_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, referenceProperty_); } - for (int i = 0; i < properties_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, properties_.getRaw(i)); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMetadata()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetCollection_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, targetCollection_); } getUnknownFields().writeTo(output); } @@ -26122,16 +27383,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceProperty_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, referenceProperty_); } - { - int dataSize = 0; - for (int i = 0; i < properties_.size(); i++) { - dataSize += computeStringSizeNoTag(properties_.getRaw(i)); - } - size += dataSize; - size += 1 * getPropertiesList().size(); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProperties()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetCollection_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, targetCollection_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -26143,15 +27407,25 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!getPropertiesList() - .equals(other.getPropertiesList())) return false; + if (!getReferenceProperty() + .equals(other.getReferenceProperty())) return false; + if (hasProperties() != other.hasProperties()) return false; + if (hasProperties()) { + if (!getProperties() + .equals(other.getProperties())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getTargetCollection() + .equals(other.getTargetCollection())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -26163,55 +27437,61 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - if (getPropertiesCount() > 0) { + hash = (37 * hash) + REFERENCE_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getReferenceProperty().hashCode(); + if (hasProperties()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getPropertiesList().hashCode(); + hash = (53 * hash) + getProperties().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); } + hash = (37 * hash) + TARGET_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getTargetCollection().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -26219,26 +27499,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 pa .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -26251,7 +27531,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 pa public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -26267,59 +27547,75 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.BM25} + * Protobuf type {@code weaviate.v1.RefPropertiesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.BM25) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25OrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.RefPropertiesRequest) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPropertiesFieldBuilder(); + getMetadataFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - query_ = ""; - properties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + referenceProperty_ = ""; + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + targetCollection_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_BM25_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -26327,22 +27623,35 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 build() { } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.query_ = query_; + result.referenceProperty_ = referenceProperty_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - properties_.makeImmutable(); - result.properties_ = properties_; + result.properties_ = propertiesBuilder_ == null + ? properties_ + : propertiesBuilder_.build(); + to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetCollection_ = targetCollection_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -26379,29 +27688,30 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25.getDefaultInstance()) return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance()) return this; + if (!other.getReferenceProperty().isEmpty()) { + referenceProperty_ = other.referenceProperty_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.properties_.isEmpty()) { - if (properties_.isEmpty()) { - properties_ = other.properties_; - bitField0_ |= 0x00000002; - } else { - ensurePropertiesIsMutable(); - properties_.addAll(other.properties_); - } + if (other.hasProperties()) { + mergeProperties(other.getProperties()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getTargetCollection().isEmpty()) { + targetCollection_ = other.targetCollection_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -26431,16 +27741,29 @@ public Builder mergeFrom( done = true; break; case 10: { - query_ = input.readStringRequireUtf8(); + referenceProperty_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePropertiesIsMutable(); - properties_.add(s); + input.readMessage( + getPropertiesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; break; } // case 18 + case 26: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + targetCollection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -26458,185 +27781,388 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object query_ = ""; + private java.lang.Object referenceProperty_ = ""; /** - * string query = 1; - * @return The query. + * string reference_property = 1; + * @return The referenceProperty. */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; + public java.lang.String getReferenceProperty() { + java.lang.Object ref = referenceProperty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + referenceProperty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string reference_property = 1; + * @return The bytes for referenceProperty. + */ + public com.google.protobuf.ByteString + getReferencePropertyBytes() { + java.lang.Object ref = referenceProperty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + referenceProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string reference_property = 1; + * @param value The referenceProperty to set. + * @return This builder for chaining. + */ + public Builder setReferenceProperty( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + referenceProperty_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string reference_property = 1; + * @return This builder for chaining. + */ + public Builder clearReferenceProperty() { + referenceProperty_ = getDefaultInstance().getReferenceProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string reference_property = 1; + * @param value The bytes for referenceProperty to set. + * @return This builder for chaining. + */ + public Builder setReferencePropertyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + referenceProperty_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest properties_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder> propertiesBuilder_; + /** + * .weaviate.v1.PropertiesRequest properties = 2; + * @return Whether the properties field is set. + */ + public boolean hasProperties() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .weaviate.v1.PropertiesRequest properties = 2; + * @return The properties. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getProperties() { + if (propertiesBuilder_ == null) { + return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance() : properties_; + } else { + return propertiesBuilder_.getMessage(); + } + } + /** + * .weaviate.v1.PropertiesRequest properties = 2; + */ + public Builder setProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + } else { + propertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .weaviate.v1.PropertiesRequest properties = 2; + */ + public Builder setProperties( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder builderForValue) { + if (propertiesBuilder_ == null) { + properties_ = builderForValue.build(); + } else { + propertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .weaviate.v1.PropertiesRequest properties = 2; + */ + public Builder mergeProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest value) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + properties_ != null && + properties_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance()) { + getPropertiesBuilder().mergeFrom(value); + } else { + properties_ = value; + } + } else { + propertiesBuilder_.mergeFrom(value); + } + if (properties_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .weaviate.v1.PropertiesRequest properties = 2; + */ + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000002); + properties_ = null; + if (propertiesBuilder_ != null) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviate.v1.PropertiesRequest properties = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder getPropertiesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPropertiesFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.PropertiesRequest properties = 2; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder getPropertiesOrBuilder() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilder(); + } else { + return properties_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance() : properties_; + } + } + /** + * .weaviate.v1.PropertiesRequest properties = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder>( + getProperties(), + getParentForChildren(), + isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder> metadataBuilder_; + /** + * .weaviate.v1.MetadataRequest metadata = 3; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + * @return The metadata. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + public Builder setMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + public Builder setMetadata( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + public Builder mergeMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + metadata_ != null && + metadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder getMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance() : metadata_; + } + } + /** + * .weaviate.v1.MetadataRequest metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object targetCollection_ = ""; + /** + * string target_collection = 4; + * @return The targetCollection. + */ + public java.lang.String getTargetCollection() { + java.lang.Object ref = targetCollection_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - query_ = s; + targetCollection_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string query = 1; - * @return The bytes for query. + * string target_collection = 4; + * @return The bytes for targetCollection. */ public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; + getTargetCollectionBytes() { + java.lang.Object ref = targetCollection_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - query_ = b; + targetCollection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string query = 1; - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - query_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string query = 1; - * @return This builder for chaining. - */ - public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. - */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - query_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList properties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePropertiesIsMutable() { - if (!properties_.isModifiable()) { - properties_ = new com.google.protobuf.LazyStringArrayList(properties_); - } - bitField0_ |= 0x00000002; - } - /** - * repeated string properties = 2; - * @return A list containing the properties. - */ - public com.google.protobuf.ProtocolStringList - getPropertiesList() { - properties_.makeImmutable(); - return properties_; - } - /** - * repeated string properties = 2; - * @return The count of properties. - */ - public int getPropertiesCount() { - return properties_.size(); - } - /** - * repeated string properties = 2; - * @param index The index of the element to return. - * @return The properties at the given index. - */ - public java.lang.String getProperties(int index) { - return properties_.get(index); - } - /** - * repeated string properties = 2; - * @param index The index of the value to return. - * @return The bytes of the properties at the given index. - */ - public com.google.protobuf.ByteString - getPropertiesBytes(int index) { - return properties_.getByteString(index); - } - /** - * repeated string properties = 2; - * @param index The index to set the value at. - * @param value The properties to set. - * @return This builder for chaining. - */ - public Builder setProperties( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePropertiesIsMutable(); - properties_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * repeated string properties = 2; - * @param value The properties to add. + * string target_collection = 4; + * @param value The targetCollection to set. * @return This builder for chaining. */ - public Builder addProperties( + public Builder setTargetCollection( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensurePropertiesIsMutable(); - properties_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * repeated string properties = 2; - * @param values The properties to add. - * @return This builder for chaining. - */ - public Builder addAllProperties( - java.lang.Iterable values) { - ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); - bitField0_ |= 0x00000002; + targetCollection_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * repeated string properties = 2; + * string target_collection = 4; * @return This builder for chaining. */ - public Builder clearProperties() { - properties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + public Builder clearTargetCollection() { + targetCollection_ = getDefaultInstance().getTargetCollection(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** - * repeated string properties = 2; - * @param value The bytes of the properties to add. + * string target_collection = 4; + * @param value The bytes for targetCollection to set. * @return This builder for chaining. */ - public Builder addPropertiesBytes( + public Builder setTargetCollectionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensurePropertiesIsMutable(); - properties_.add(value); - bitField0_ |= 0x00000002; + targetCollection_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -26653,23 +28179,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.BM25) + // @@protoc_insertion_point(builder_scope:weaviate.v1.RefPropertiesRequest) } - // @@protoc_insertion_point(class_scope:weaviate.v1.BM25) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.RefPropertiesRequest) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public BM25 parsePartialFrom( + public RefPropertiesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -26688,246 +28214,129 @@ public BM25 parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.BM25 getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RefPropertiesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.RefPropertiesRequest) + public interface VectorForTargetOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.VectorForTarget) com.google.protobuf.MessageOrBuilder { /** - * string reference_property = 1; - * @return The referenceProperty. + * string name = 1; + * @return The name. */ - java.lang.String getReferenceProperty(); + java.lang.String getName(); /** - * string reference_property = 1; - * @return The bytes for referenceProperty. + * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString - getReferencePropertyBytes(); - - /** - * .weaviate.v1.PropertiesRequest properties = 2; - * @return Whether the properties field is set. - */ - boolean hasProperties(); - /** - * .weaviate.v1.PropertiesRequest properties = 2; - * @return The properties. - */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getProperties(); - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder getPropertiesOrBuilder(); - - /** - * .weaviate.v1.MetadataRequest metadata = 3; - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * .weaviate.v1.MetadataRequest metadata = 3; - * @return The metadata. - */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getMetadata(); - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder getMetadataOrBuilder(); + getNameBytes(); /** - * string target_collection = 4; - * @return The targetCollection. - */ - java.lang.String getTargetCollection(); - /** - * string target_collection = 4; - * @return The bytes for targetCollection. + * bytes vector_bytes = 2; + * @return The vectorBytes. */ - com.google.protobuf.ByteString - getTargetCollectionBytes(); + com.google.protobuf.ByteString getVectorBytes(); } /** - * Protobuf type {@code weaviate.v1.RefPropertiesRequest} + * Protobuf type {@code weaviate.v1.VectorForTarget} */ - public static final class RefPropertiesRequest extends + public static final class VectorForTarget extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.RefPropertiesRequest) - RefPropertiesRequestOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.VectorForTarget) + VectorForTargetOrBuilder { private static final long serialVersionUID = 0L; - // Use RefPropertiesRequest.newBuilder() to construct. - private RefPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use VectorForTarget.newBuilder() to construct. + private VectorForTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RefPropertiesRequest() { - referenceProperty_ = ""; - targetCollection_ = ""; + private VectorForTarget() { + name_ = ""; + vectorBytes_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new RefPropertiesRequest(); + return new VectorForTarget(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_VectorForTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_VectorForTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder.class); } - private int bitField0_; - public static final int REFERENCE_PROPERTY_FIELD_NUMBER = 1; + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object referenceProperty_ = ""; + private volatile java.lang.Object name_ = ""; /** - * string reference_property = 1; - * @return The referenceProperty. + * string name = 1; + * @return The name. */ @java.lang.Override - public java.lang.String getReferenceProperty() { - java.lang.Object ref = referenceProperty_; + 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(); - referenceProperty_ = s; + name_ = s; return s; } } /** - * string reference_property = 1; - * @return The bytes for referenceProperty. + * string name = 1; + * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString - getReferencePropertyBytes() { - java.lang.Object ref = referenceProperty_; + 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); - referenceProperty_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PROPERTIES_FIELD_NUMBER = 2; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest properties_; - /** - * .weaviate.v1.PropertiesRequest properties = 2; - * @return Whether the properties field is set. - */ - @java.lang.Override - public boolean hasProperties() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - * @return The properties. - */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getProperties() { - return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance() : properties_; - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder getPropertiesOrBuilder() { - return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance() : properties_; - } - - public static final int METADATA_FIELD_NUMBER = 3; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest metadata_; - /** - * .weaviate.v1.MetadataRequest metadata = 3; - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - * @return The metadata. - */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getMetadata() { - return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance() : metadata_; - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance() : metadata_; - } - - public static final int TARGET_COLLECTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object targetCollection_ = ""; - /** - * string target_collection = 4; - * @return The targetCollection. - */ - @java.lang.Override - public java.lang.String getTargetCollection() { - java.lang.Object ref = targetCollection_; - 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(); - targetCollection_ = s; - return s; - } - } + public static final int VECTOR_BYTES_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString vectorBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * string target_collection = 4; - * @return The bytes for targetCollection. + * bytes vector_bytes = 2; + * @return The vectorBytes. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetCollectionBytes() { - java.lang.Object ref = targetCollection_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetCollection_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getVectorBytes() { + return vectorBytes_; } private byte memoizedIsInitialized = -1; @@ -26944,17 +28353,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceProperty_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, referenceProperty_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getProperties()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getMetadata()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetCollection_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, targetCollection_); + if (!vectorBytes_.isEmpty()) { + output.writeBytes(2, vectorBytes_); } getUnknownFields().writeTo(output); } @@ -26965,19 +28368,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referenceProperty_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, referenceProperty_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProperties()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (!vectorBytes_.isEmpty()) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetCollection_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, targetCollection_); + .computeBytesSize(2, vectorBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -26989,25 +28385,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget) obj; - if (!getReferenceProperty() - .equals(other.getReferenceProperty())) return false; - if (hasProperties() != other.hasProperties()) return false; - if (hasProperties()) { - if (!getProperties() - .equals(other.getProperties())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getTargetCollection() - .equals(other.getTargetCollection())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getVectorBytes() + .equals(other.getVectorBytes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -27019,61 +28405,53 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REFERENCE_PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getReferenceProperty().hashCode(); - if (hasProperties()) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getProperties().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (37 * hash) + TARGET_COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getTargetCollection().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VECTOR_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getVectorBytes().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -27081,26 +28459,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefProp .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -27113,7 +28491,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefProp public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -27129,75 +28507,58 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.RefPropertiesRequest} + * Protobuf type {@code weaviate.v1.VectorForTarget} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.RefPropertiesRequest) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:weaviate.v1.VectorForTarget) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTargetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_VectorForTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_VectorForTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPropertiesFieldBuilder(); - getMetadataFieldBuilder(); - } + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - referenceProperty_ = ""; - properties_ = null; - if (propertiesBuilder_ != null) { - propertiesBuilder_.dispose(); - propertiesBuilder_ = null; - } - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - targetCollection_ = ""; + name_ = ""; + vectorBytes_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_RefPropertiesRequest_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_VectorForTarget_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -27205,35 +28566,21 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest(this); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.referenceProperty_ = referenceProperty_; + result.name_ = name_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.properties_ = propertiesBuilder_ == null - ? properties_ - : propertiesBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.targetCollection_ = targetCollection_; + result.vectorBytes_ = vectorBytes_; } - result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -27270,31 +28617,23 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest)other); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance()) return this; - if (!other.getReferenceProperty().isEmpty()) { - referenceProperty_ = other.referenceProperty_; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } - if (other.hasProperties()) { - mergeProperties(other.getProperties()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.getTargetCollection().isEmpty()) { - targetCollection_ = other.targetCollection_; - bitField0_ |= 0x00000008; - onChanged(); + if (other.getVectorBytes() != com.google.protobuf.ByteString.EMPTY) { + setVectorBytes(other.getVectorBytes()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -27323,29 +28662,15 @@ public Builder mergeFrom( done = true; break; case 10: { - referenceProperty_ = input.readStringRequireUtf8(); + name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - input.readMessage( - getPropertiesFieldBuilder().getBuilder(), - extensionRegistry); + vectorBytes_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 - case 26: { - input.readMessage( - getMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - targetCollection_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -27363,388 +28688,106 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object referenceProperty_ = ""; + private java.lang.Object name_ = ""; /** - * string reference_property = 1; - * @return The referenceProperty. + * string name = 1; + * @return The name. */ - public java.lang.String getReferenceProperty() { - java.lang.Object ref = referenceProperty_; + 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(); - referenceProperty_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string reference_property = 1; - * @return The bytes for referenceProperty. + * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString - getReferencePropertyBytes() { - java.lang.Object ref = referenceProperty_; + getNameBytes() { + java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - referenceProperty_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string reference_property = 1; - * @param value The referenceProperty to set. + * string name = 1; + * @param value The name to set. * @return This builder for chaining. */ - public Builder setReferenceProperty( + public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - referenceProperty_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string reference_property = 1; + * string name = 1; * @return This builder for chaining. */ - public Builder clearReferenceProperty() { - referenceProperty_ = getDefaultInstance().getReferenceProperty(); + public Builder clearName() { + name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string reference_property = 1; - * @param value The bytes for referenceProperty to set. + * string name = 1; + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setReferencePropertyBytes( + public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - referenceProperty_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest properties_; - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder> propertiesBuilder_; - /** - * .weaviate.v1.PropertiesRequest properties = 2; - * @return Whether the properties field is set. - */ - public boolean hasProperties() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - * @return The properties. - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getProperties() { - if (propertiesBuilder_ == null) { - return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance() : properties_; - } else { - return propertiesBuilder_.getMessage(); - } - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - public Builder setProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - properties_ = value; - } else { - propertiesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - public Builder setProperties( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder builderForValue) { - if (propertiesBuilder_ == null) { - properties_ = builderForValue.build(); - } else { - propertiesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - public Builder mergeProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest value) { - if (propertiesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - properties_ != null && - properties_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance()) { - getPropertiesBuilder().mergeFrom(value); - } else { - properties_ = value; - } - } else { - propertiesBuilder_.mergeFrom(value); - } - if (properties_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - public Builder clearProperties() { - bitField0_ = (bitField0_ & ~0x00000002); - properties_ = null; - if (propertiesBuilder_ != null) { - propertiesBuilder_.dispose(); - propertiesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder getPropertiesBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getPropertiesFieldBuilder().getBuilder(); - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder getPropertiesOrBuilder() { - if (propertiesBuilder_ != null) { - return propertiesBuilder_.getMessageOrBuilder(); - } else { - return properties_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance() : properties_; - } - } - /** - * .weaviate.v1.PropertiesRequest properties = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder> - getPropertiesFieldBuilder() { - if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder>( - getProperties(), - getParentForChildren(), - isClean()); - properties_ = null; - } - return propertiesBuilder_; - } - - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder> metadataBuilder_; - /** - * .weaviate.v1.MetadataRequest metadata = 3; - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - * @return The metadata. - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - public Builder setMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - public Builder setMetadata( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - public Builder mergeMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - metadata_ != null && - metadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; - } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000004); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder getMetadataBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance() : metadata_; - } - } - /** - * .weaviate.v1.MetadataRequest metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.lang.Object targetCollection_ = ""; - /** - * string target_collection = 4; - * @return The targetCollection. - */ - public java.lang.String getTargetCollection() { - java.lang.Object ref = targetCollection_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetCollection_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + private com.google.protobuf.ByteString vectorBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * string target_collection = 4; - * @return The bytes for targetCollection. + * bytes vector_bytes = 2; + * @return The vectorBytes. */ - public com.google.protobuf.ByteString - getTargetCollectionBytes() { - java.lang.Object ref = targetCollection_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetCollection_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getVectorBytes() { + return vectorBytes_; } /** - * string target_collection = 4; - * @param value The targetCollection to set. + * bytes vector_bytes = 2; + * @param value The vectorBytes to set. * @return This builder for chaining. */ - public Builder setTargetCollection( - java.lang.String value) { + public Builder setVectorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - targetCollection_ = value; - bitField0_ |= 0x00000008; + vectorBytes_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * string target_collection = 4; + * bytes vector_bytes = 2; * @return This builder for chaining. */ - public Builder clearTargetCollection() { - targetCollection_ = getDefaultInstance().getTargetCollection(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string target_collection = 4; - * @param value The bytes for targetCollection to set. - * @return This builder for chaining. - */ - public Builder setTargetCollectionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - targetCollection_ = value; - bitField0_ |= 0x00000008; + public Builder clearVectorBytes() { + bitField0_ = (bitField0_ & ~0x00000002); + vectorBytes_ = getDefaultInstance().getVectorBytes(); onChanged(); return this; } @@ -27761,23 +28804,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.RefPropertiesRequest) + // @@protoc_insertion_point(builder_scope:weaviate.v1.VectorForTarget) } - // @@protoc_insertion_point(class_scope:weaviate.v1.RefPropertiesRequest) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.VectorForTarget) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public RefPropertiesRequest parsePartialFrom( + public VectorForTarget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -27796,17 +28839,17 @@ public RefPropertiesRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -27823,7 +28866,7 @@ public interface NearVectorOrBuilder extends * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @return A list containing the vector. */ @java.lang.Deprecated java.util.List getVectorList(); @@ -27834,7 +28877,7 @@ public interface NearVectorOrBuilder extends * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @return The count of vector. */ @java.lang.Deprecated int getVectorCount(); @@ -27845,7 +28888,7 @@ public interface NearVectorOrBuilder extends * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -27886,7 +28929,7 @@ public interface NearVectorOrBuilder extends * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -27898,7 +28941,7 @@ public interface NearVectorOrBuilder extends * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -27909,7 +28952,7 @@ public interface NearVectorOrBuilder extends * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -27921,7 +28964,7 @@ public interface NearVectorOrBuilder extends * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -27944,13 +28987,21 @@ public interface NearVectorOrBuilder extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuilder getTargetsOrBuilder(); /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ - int getVectorPerTargetCount(); + @java.lang.Deprecated int getVectorPerTargetCount(); /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ - boolean containsVectorPerTarget( + @java.lang.Deprecated boolean containsVectorPerTarget( java.lang.String key); /** * Use {@link #getVectorPerTargetMap()} instead. @@ -27959,23 +29010,59 @@ boolean containsVectorPerTarget( java.util.Map getVectorPerTarget(); /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ - java.util.Map + @java.lang.Deprecated java.util.Map getVectorPerTargetMap(); /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ - /* nullable */ + @java.lang.Deprecated /* nullable */ com.google.protobuf.ByteString getVectorPerTargetOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.ByteString defaultValue); /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ - com.google.protobuf.ByteString getVectorPerTargetOrThrow( + @java.lang.Deprecated com.google.protobuf.ByteString getVectorPerTargetOrThrow( java.lang.String key); + + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + java.util.List + getVectorForTargetsList(); + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget getVectorForTargets(int index); + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + int getVectorForTargetsCount(); + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + java.util.List + getVectorForTargetsOrBuilderList(); + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTargetOrBuilder getVectorForTargetsOrBuilder( + int index); } /** * Protobuf type {@code weaviate.v1.NearVector} @@ -27994,6 +29081,7 @@ private NearVector() { vectorBytes_ = com.google.protobuf.ByteString.EMPTY; targetVectors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + vectorForTargets_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -28040,7 +29128,7 @@ protected com.google.protobuf.MapField internalGetMapField( * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @return A list containing the vector. */ @java.lang.Override @@ -28055,7 +29143,7 @@ protected com.google.protobuf.MapField internalGetMapField( * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @return The count of vector. */ @java.lang.Deprecated public int getVectorCount() { @@ -28068,7 +29156,7 @@ protected com.google.protobuf.MapField internalGetMapField( * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -28137,7 +29225,7 @@ public com.google.protobuf.ByteString getVectorBytes() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -28151,7 +29239,7 @@ public com.google.protobuf.ByteString getVectorBytes() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -28164,7 +29252,7 @@ public com.google.protobuf.ByteString getVectorBytes() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -28178,7 +29266,7 @@ public com.google.protobuf.ByteString getVectorBytes() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -28236,14 +29324,18 @@ private static final class VectorPerTargetDefaultEntryHolder { } return vectorPerTarget_; } - public int getVectorPerTargetCount() { + @java.lang.Deprecated public int getVectorPerTargetCount() { return internalGetVectorPerTarget().getMap().size(); } /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ @java.lang.Override - public boolean containsVectorPerTarget( + @java.lang.Deprecated public boolean containsVectorPerTarget( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetVectorPerTarget().getMap().containsKey(key); @@ -28257,17 +29349,25 @@ public java.util.Map getVector return getVectorPerTargetMap(); } /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ @java.lang.Override - public java.util.Map getVectorPerTargetMap() { + @java.lang.Deprecated public java.util.Map getVectorPerTargetMap() { return internalGetVectorPerTarget().getMap(); } /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ @java.lang.Override - public /* nullable */ + @java.lang.Deprecated public /* nullable */ com.google.protobuf.ByteString getVectorPerTargetOrDefault( java.lang.String key, /* nullable */ @@ -28278,10 +29378,14 @@ com.google.protobuf.ByteString getVectorPerTargetOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, bytes> vector_per_target = 7; + *
+     * deprecated in 1.26.2 - use vector_for_targets
+     * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ @java.lang.Override - public com.google.protobuf.ByteString getVectorPerTargetOrThrow( + @java.lang.Deprecated public com.google.protobuf.ByteString getVectorPerTargetOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = @@ -28292,6 +29396,47 @@ public com.google.protobuf.ByteString getVectorPerTargetOrThrow( return map.get(key); } + public static final int VECTOR_FOR_TARGETS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private java.util.List vectorForTargets_; + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + @java.lang.Override + public java.util.List getVectorForTargetsList() { + return vectorForTargets_; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + @java.lang.Override + public java.util.List + getVectorForTargetsOrBuilderList() { + return vectorForTargets_; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + @java.lang.Override + public int getVectorForTargetsCount() { + return vectorForTargets_.size(); + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget getVectorForTargets(int index) { + return vectorForTargets_.get(index); + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTargetOrBuilder getVectorForTargetsOrBuilder( + int index) { + return vectorForTargets_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -28335,6 +29480,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetVectorPerTarget(), VectorPerTargetDefaultEntryHolder.defaultEntry, 7); + for (int i = 0; i < vectorForTargets_.size(); i++) { + output.writeMessage(8, vectorForTargets_.get(i)); + } getUnknownFields().writeTo(output); } @@ -28389,6 +29537,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, vectorPerTarget__); } + for (int i = 0; i < vectorForTargets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, vectorForTargets_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -28429,6 +29581,8 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetVectorPerTarget().equals( other.internalGetVectorPerTarget())) return false; + if (!getVectorForTargetsList() + .equals(other.getVectorForTargetsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -28468,6 +29622,10 @@ public int hashCode() { hash = (37 * hash) + VECTOR_PER_TARGET_FIELD_NUMBER; hash = (53 * hash) + internalGetVectorPerTarget().hashCode(); } + if (getVectorForTargetsCount() > 0) { + hash = (37 * hash) + VECTOR_FOR_TARGETS_FIELD_NUMBER; + hash = (53 * hash) + getVectorForTargetsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -28621,6 +29779,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTargetsFieldBuilder(); + getVectorForTargetsFieldBuilder(); } } @java.lang.Override @@ -28639,6 +29798,13 @@ public Builder clear() { targetsBuilder_ = null; } internalGetMutableVectorPerTarget().clear(); + if (vectorForTargetsBuilder_ == null) { + vectorForTargets_ = java.util.Collections.emptyList(); + } else { + vectorForTargets_ = null; + vectorForTargetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); return this; } @@ -28665,11 +29831,24 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVector bui @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVector buildPartial() { io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVector result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVector(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVector result) { + if (vectorForTargetsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + vectorForTargets_ = java.util.Collections.unmodifiableList(vectorForTargets_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.vectorForTargets_ = vectorForTargets_; + } else { + result.vectorForTargets_ = vectorForTargetsBuilder_.build(); + } + } + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearVector result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -28785,6 +29964,32 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch internalGetMutableVectorPerTarget().mergeFrom( other.internalGetVectorPerTarget()); bitField0_ |= 0x00000040; + if (vectorForTargetsBuilder_ == null) { + if (!other.vectorForTargets_.isEmpty()) { + if (vectorForTargets_.isEmpty()) { + vectorForTargets_ = other.vectorForTargets_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureVectorForTargetsIsMutable(); + vectorForTargets_.addAll(other.vectorForTargets_); + } + onChanged(); + } + } else { + if (!other.vectorForTargets_.isEmpty()) { + if (vectorForTargetsBuilder_.isEmpty()) { + vectorForTargetsBuilder_.dispose(); + vectorForTargetsBuilder_ = null; + vectorForTargets_ = other.vectorForTargets_; + bitField0_ = (bitField0_ & ~0x00000080); + vectorForTargetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVectorForTargetsFieldBuilder() : null; + } else { + vectorForTargetsBuilder_.addAllMessages(other.vectorForTargets_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -28865,6 +30070,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget m = + input.readMessage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.parser(), + extensionRegistry); + if (vectorForTargetsBuilder_ == null) { + ensureVectorForTargetsIsMutable(); + vectorForTargets_.add(m); + } else { + vectorForTargetsBuilder_.addMessage(m); + } + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -28902,7 +30120,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @return A list containing the vector. */ @java.lang.Deprecated public java.util.List @@ -28917,7 +30135,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @return The count of vector. */ @java.lang.Deprecated public int getVectorCount() { @@ -28930,7 +30148,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -28944,7 +30162,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @param index The index to set the value at. * @param value The vector to set. * @return This builder for chaining. @@ -28965,7 +30183,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @param value The vector to add. * @return This builder for chaining. */ @@ -28984,7 +30202,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @param values The vector to add. * @return This builder for chaining. */ @@ -29004,7 +30222,7 @@ private void ensureVectorIsMutable(int capacity) { * * repeated float vector = 1 [deprecated = true]; * @deprecated weaviate.v1.NearVector.vector is deprecated. - * See v1/search_get.proto;l=217 + * See v1/search_get.proto;l=232 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearVector() { @@ -29141,7 +30359,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -29156,7 +30374,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -29169,7 +30387,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -29183,7 +30401,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -29198,7 +30416,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -29219,7 +30437,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -29239,7 +30457,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -29259,7 +30477,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { @@ -29276,7 +30494,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 5 [deprecated = true]; * @deprecated weaviate.v1.NearVector.target_vectors is deprecated. - * See v1/search_get.proto;l=221 + * See v1/search_get.proto;l=236 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -29414,7 +30632,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuild private com.google.protobuf.MapField< java.lang.String, com.google.protobuf.ByteString> vectorPerTarget_; - private com.google.protobuf.MapField + @java.lang.Deprecated private com.google.protobuf.MapField internalGetVectorPerTarget() { if (vectorPerTarget_ == null) { return com.google.protobuf.MapField.emptyMapField( @@ -29422,7 +30640,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuild } return vectorPerTarget_; } - private com.google.protobuf.MapField + @java.lang.Deprecated private com.google.protobuf.MapField internalGetMutableVectorPerTarget() { if (vectorPerTarget_ == null) { vectorPerTarget_ = com.google.protobuf.MapField.newMapField( @@ -29435,14 +30653,18 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.TargetsOrBuild onChanged(); return vectorPerTarget_; } - public int getVectorPerTargetCount() { + @java.lang.Deprecated public int getVectorPerTargetCount() { return internalGetVectorPerTarget().getMap().size(); } /** - * map<string, bytes> vector_per_target = 7; + *
+       * deprecated in 1.26.2 - use vector_for_targets
+       * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ @java.lang.Override - public boolean containsVectorPerTarget( + @java.lang.Deprecated public boolean containsVectorPerTarget( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetVectorPerTarget().getMap().containsKey(key); @@ -29456,17 +30678,25 @@ public java.util.Map getVector return getVectorPerTargetMap(); } /** - * map<string, bytes> vector_per_target = 7; + *
+       * deprecated in 1.26.2 - use vector_for_targets
+       * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ @java.lang.Override - public java.util.Map getVectorPerTargetMap() { + @java.lang.Deprecated public java.util.Map getVectorPerTargetMap() { return internalGetVectorPerTarget().getMap(); } /** - * map<string, bytes> vector_per_target = 7; + *
+       * deprecated in 1.26.2 - use vector_for_targets
+       * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ @java.lang.Override - public /* nullable */ + @java.lang.Deprecated public /* nullable */ com.google.protobuf.ByteString getVectorPerTargetOrDefault( java.lang.String key, /* nullable */ @@ -29477,10 +30707,14 @@ com.google.protobuf.ByteString getVectorPerTargetOrDefault( return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, bytes> vector_per_target = 7; + *
+       * deprecated in 1.26.2 - use vector_for_targets
+       * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ @java.lang.Override - public com.google.protobuf.ByteString getVectorPerTargetOrThrow( + @java.lang.Deprecated public com.google.protobuf.ByteString getVectorPerTargetOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = @@ -29490,16 +30724,20 @@ public com.google.protobuf.ByteString getVectorPerTargetOrThrow( } return map.get(key); } - public Builder clearVectorPerTarget() { + @java.lang.Deprecated public Builder clearVectorPerTarget() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableVectorPerTarget().getMutableMap() .clear(); return this; } /** - * map<string, bytes> vector_per_target = 7; + *
+       * deprecated in 1.26.2 - use vector_for_targets
+       * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ - public Builder removeVectorPerTarget( + @java.lang.Deprecated public Builder removeVectorPerTarget( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableVectorPerTarget().getMutableMap() @@ -29516,9 +30754,13 @@ public Builder removeVectorPerTarget( return internalGetMutableVectorPerTarget().getMutableMap(); } /** - * map<string, bytes> vector_per_target = 7; + *
+       * deprecated in 1.26.2 - use vector_for_targets
+       * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ - public Builder putVectorPerTarget( + @java.lang.Deprecated public Builder putVectorPerTarget( java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new NullPointerException("map key"); } @@ -29529,15 +30771,259 @@ public Builder putVectorPerTarget( return this; } /** - * map<string, bytes> vector_per_target = 7; + *
+       * deprecated in 1.26.2 - use vector_for_targets
+       * 
+ * + * map<string, bytes> vector_per_target = 7 [deprecated = true]; */ - public Builder putAllVectorPerTarget( + @java.lang.Deprecated public Builder putAllVectorPerTarget( java.util.Map values) { internalGetMutableVectorPerTarget().getMutableMap() .putAll(values); bitField0_ |= 0x00000040; return this; } + + private java.util.List vectorForTargets_ = + java.util.Collections.emptyList(); + private void ensureVectorForTargetsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + vectorForTargets_ = new java.util.ArrayList(vectorForTargets_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTargetOrBuilder> vectorForTargetsBuilder_; + + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public java.util.List getVectorForTargetsList() { + if (vectorForTargetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(vectorForTargets_); + } else { + return vectorForTargetsBuilder_.getMessageList(); + } + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public int getVectorForTargetsCount() { + if (vectorForTargetsBuilder_ == null) { + return vectorForTargets_.size(); + } else { + return vectorForTargetsBuilder_.getCount(); + } + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget getVectorForTargets(int index) { + if (vectorForTargetsBuilder_ == null) { + return vectorForTargets_.get(index); + } else { + return vectorForTargetsBuilder_.getMessage(index); + } + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder setVectorForTargets( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget value) { + if (vectorForTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVectorForTargetsIsMutable(); + vectorForTargets_.set(index, value); + onChanged(); + } else { + vectorForTargetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder setVectorForTargets( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder builderForValue) { + if (vectorForTargetsBuilder_ == null) { + ensureVectorForTargetsIsMutable(); + vectorForTargets_.set(index, builderForValue.build()); + onChanged(); + } else { + vectorForTargetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder addVectorForTargets(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget value) { + if (vectorForTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVectorForTargetsIsMutable(); + vectorForTargets_.add(value); + onChanged(); + } else { + vectorForTargetsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder addVectorForTargets( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget value) { + if (vectorForTargetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVectorForTargetsIsMutable(); + vectorForTargets_.add(index, value); + onChanged(); + } else { + vectorForTargetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder addVectorForTargets( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder builderForValue) { + if (vectorForTargetsBuilder_ == null) { + ensureVectorForTargetsIsMutable(); + vectorForTargets_.add(builderForValue.build()); + onChanged(); + } else { + vectorForTargetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder addVectorForTargets( + int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder builderForValue) { + if (vectorForTargetsBuilder_ == null) { + ensureVectorForTargetsIsMutable(); + vectorForTargets_.add(index, builderForValue.build()); + onChanged(); + } else { + vectorForTargetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder addAllVectorForTargets( + java.lang.Iterable values) { + if (vectorForTargetsBuilder_ == null) { + ensureVectorForTargetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vectorForTargets_); + onChanged(); + } else { + vectorForTargetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder clearVectorForTargets() { + if (vectorForTargetsBuilder_ == null) { + vectorForTargets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + vectorForTargetsBuilder_.clear(); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public Builder removeVectorForTargets(int index) { + if (vectorForTargetsBuilder_ == null) { + ensureVectorForTargetsIsMutable(); + vectorForTargets_.remove(index); + onChanged(); + } else { + vectorForTargetsBuilder_.remove(index); + } + return this; + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder getVectorForTargetsBuilder( + int index) { + return getVectorForTargetsFieldBuilder().getBuilder(index); + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTargetOrBuilder getVectorForTargetsOrBuilder( + int index) { + if (vectorForTargetsBuilder_ == null) { + return vectorForTargets_.get(index); } else { + return vectorForTargetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public java.util.List + getVectorForTargetsOrBuilderList() { + if (vectorForTargetsBuilder_ != null) { + return vectorForTargetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vectorForTargets_); + } + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder addVectorForTargetsBuilder() { + return getVectorForTargetsFieldBuilder().addBuilder( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder addVectorForTargetsBuilder( + int index) { + return getVectorForTargetsFieldBuilder().addBuilder( + index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.getDefaultInstance()); + } + /** + * repeated .weaviate.v1.VectorForTarget vector_for_targets = 8; + */ + public java.util.List + getVectorForTargetsBuilderList() { + return getVectorForTargetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTargetOrBuilder> + getVectorForTargetsFieldBuilder() { + if (vectorForTargetsBuilder_ == null) { + vectorForTargetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTarget.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.VectorForTargetOrBuilder>( + vectorForTargets_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + vectorForTargets_ = null; + } + return vectorForTargetsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -29647,7 +31133,7 @@ public interface NearObjectOrBuilder extends * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @return A list containing the targetVectors. */ @java.lang.Deprecated java.util.List @@ -29659,7 +31145,7 @@ public interface NearObjectOrBuilder extends * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @return The count of targetVectors. */ @java.lang.Deprecated int getTargetVectorsCount(); @@ -29670,7 +31156,7 @@ public interface NearObjectOrBuilder extends * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -29682,7 +31168,7 @@ public interface NearObjectOrBuilder extends * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -29831,7 +31317,7 @@ public double getDistance() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -29845,7 +31331,7 @@ public double getDistance() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -29858,7 +31344,7 @@ public double getDistance() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -29872,7 +31358,7 @@ public double getDistance() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -30546,7 +32032,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @return A list containing the targetVectors. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -30561,7 +32047,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @return The count of targetVectors. */ @java.lang.Deprecated public int getTargetVectorsCount() { @@ -30574,7 +32060,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param index The index of the element to return. * @return The targetVectors at the given index. */ @@ -30588,7 +32074,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param index The index of the value to return. * @return The bytes of the targetVectors at the given index. */ @@ -30603,7 +32089,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param index The index to set the value at. * @param value The targetVectors to set. * @return This builder for chaining. @@ -30624,7 +32110,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param value The targetVectors to add. * @return This builder for chaining. */ @@ -30644,7 +32130,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param values The targetVectors to add. * @return This builder for chaining. */ @@ -30664,7 +32150,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTargetVectors() { @@ -30681,7 +32167,7 @@ private void ensureTargetVectorsIsMutable() { * * repeated string target_vectors = 4 [deprecated = true]; * @deprecated weaviate.v1.NearObject.target_vectors is deprecated. - * See v1/search_get.proto;l=230 + * See v1/search_get.proto;l=246 * @param value The bytes of the targetVectors to add. * @return This builder for chaining. */ @@ -31644,20 +33130,26 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SearchResultOrBuilder int index); /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return Whether the generativeGroupedResult field is set. */ - boolean hasGenerativeGroupedResult(); + @java.lang.Deprecated boolean hasGenerativeGroupedResult(); /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return The generativeGroupedResult. */ - java.lang.String getGenerativeGroupedResult(); + @java.lang.Deprecated java.lang.String getGenerativeGroupedResult(); /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return The bytes for generativeGroupedResult. */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getGenerativeGroupedResultBytes(); /** @@ -31683,6 +33175,21 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SearchResultOrBuilder */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GroupByResultOrBuilder getGroupByResultsOrBuilder( int index); + + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + * @return Whether the generativeGroupedResults field is set. + */ + boolean hasGenerativeGroupedResults(); + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + * @return The generativeGroupedResults. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerativeGroupedResults(); + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeGroupedResultsOrBuilder(); } /** * Protobuf type {@code weaviate.v1.SearchReply} @@ -31779,19 +33286,23 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SearchResultOr @SuppressWarnings("serial") private volatile java.lang.Object generativeGroupedResult_ = ""; /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return Whether the generativeGroupedResult field is set. */ @java.lang.Override - public boolean hasGenerativeGroupedResult() { + @java.lang.Deprecated public boolean hasGenerativeGroupedResult() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return The generativeGroupedResult. */ @java.lang.Override - public java.lang.String getGenerativeGroupedResult() { + @java.lang.Deprecated public java.lang.String getGenerativeGroupedResult() { java.lang.Object ref = generativeGroupedResult_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -31804,11 +33315,13 @@ public java.lang.String getGenerativeGroupedResult() { } } /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return The bytes for generativeGroupedResult. */ @java.lang.Override - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getGenerativeGroupedResultBytes() { java.lang.Object ref = generativeGroupedResult_; if (ref instanceof java.lang.String) { @@ -31863,6 +33376,32 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GroupByResultO return groupByResults_.get(index); } + public static final int GENERATIVE_GROUPED_RESULTS_FIELD_NUMBER = 5; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult generativeGroupedResults_; + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + * @return Whether the generativeGroupedResults field is set. + */ + @java.lang.Override + public boolean hasGenerativeGroupedResults() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + * @return The generativeGroupedResults. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerativeGroupedResults() { + return generativeGroupedResults_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_; + } + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeGroupedResultsOrBuilder() { + return generativeGroupedResults_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -31889,6 +33428,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < groupByResults_.size(); i++) { output.writeMessage(4, groupByResults_.get(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getGenerativeGroupedResults()); + } getUnknownFields().writeTo(output); } @@ -31913,6 +33455,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, groupByResults_.get(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getGenerativeGroupedResults()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -31940,6 +33486,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getGroupByResultsList() .equals(other.getGroupByResultsList())) return false; + if (hasGenerativeGroupedResults() != other.hasGenerativeGroupedResults()) return false; + if (hasGenerativeGroupedResults()) { + if (!getGenerativeGroupedResults() + .equals(other.getGenerativeGroupedResults())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -31966,6 +33517,10 @@ public int hashCode() { hash = (37 * hash) + GROUP_BY_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getGroupByResultsList().hashCode(); } + if (hasGenerativeGroupedResults()) { + hash = (37 * hash) + GENERATIVE_GROUPED_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getGenerativeGroupedResults().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -32085,13 +33640,21 @@ public static final class Builder extends // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SearchReply.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultsFieldBuilder(); + getGroupByResultsFieldBuilder(); + getGenerativeGroupedResultsFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -32113,6 +33676,11 @@ public Builder clear() { groupByResultsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); + generativeGroupedResults_ = null; + if (generativeGroupedResultsBuilder_ != null) { + generativeGroupedResultsBuilder_.dispose(); + generativeGroupedResultsBuilder_ = null; + } return this; } @@ -32176,6 +33744,12 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSear result.generativeGroupedResult_ = generativeGroupedResult_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.generativeGroupedResults_ = generativeGroupedResultsBuilder_ == null + ? generativeGroupedResults_ + : generativeGroupedResultsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -32283,6 +33857,9 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch } } } + if (other.hasGenerativeGroupedResults()) { + mergeGenerativeGroupedResults(other.getGenerativeGroupedResults()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -32345,6 +33922,13 @@ public Builder mergeFrom( } break; } // case 34 + case 42: { + input.readMessage( + getGenerativeGroupedResultsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -32636,17 +34220,21 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SearchResult.B private java.lang.Object generativeGroupedResult_ = ""; /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return Whether the generativeGroupedResult field is set. */ - public boolean hasGenerativeGroupedResult() { + @java.lang.Deprecated public boolean hasGenerativeGroupedResult() { return ((bitField0_ & 0x00000004) != 0); } /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return The generativeGroupedResult. */ - public java.lang.String getGenerativeGroupedResult() { + @java.lang.Deprecated public java.lang.String getGenerativeGroupedResult() { java.lang.Object ref = generativeGroupedResult_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -32659,10 +34247,12 @@ public java.lang.String getGenerativeGroupedResult() { } } /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return The bytes for generativeGroupedResult. */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getGenerativeGroupedResultBytes() { java.lang.Object ref = generativeGroupedResult_; if (ref instanceof String) { @@ -32676,11 +34266,13 @@ public java.lang.String getGenerativeGroupedResult() { } } /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @param value The generativeGroupedResult to set. * @return This builder for chaining. */ - public Builder setGenerativeGroupedResult( + @java.lang.Deprecated public Builder setGenerativeGroupedResult( java.lang.String value) { if (value == null) { throw new NullPointerException(); } generativeGroupedResult_ = value; @@ -32689,21 +34281,25 @@ public Builder setGenerativeGroupedResult( return this; } /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @return This builder for chaining. */ - public Builder clearGenerativeGroupedResult() { + @java.lang.Deprecated public Builder clearGenerativeGroupedResult() { generativeGroupedResult_ = getDefaultInstance().getGenerativeGroupedResult(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * optional string generative_grouped_result = 3; + * optional string generative_grouped_result = 3 [deprecated = true]; + * @deprecated weaviate.v1.SearchReply.generative_grouped_result is deprecated. + * See v1/search_get.proto;l=258 * @param value The bytes for generativeGroupedResult to set. * @return This builder for chaining. */ - public Builder setGenerativeGroupedResultBytes( + @java.lang.Deprecated public Builder setGenerativeGroupedResultBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); @@ -32952,6 +34548,127 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GroupByResult. } return groupByResultsBuilder_; } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult generativeGroupedResults_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder> generativeGroupedResultsBuilder_; + /** + * optional .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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerativeGroupedResults() { + if (generativeGroupedResultsBuilder_ == null) { + return generativeGroupedResults_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_; + } else { + return generativeGroupedResultsBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + */ + public Builder setGenerativeGroupedResults(io.weaviate.client.grpc.protocol.v1.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.client.grpc.protocol.v1.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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult value) { + if (generativeGroupedResultsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + generativeGroupedResults_ != null && + generativeGroupedResults_ != io.weaviate.client.grpc.protocol.v1.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.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder getGenerativeGroupedResultsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getGenerativeGroupedResultsFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeGroupedResultsOrBuilder() { + if (generativeGroupedResultsBuilder_ != null) { + return generativeGroupedResultsBuilder_.getMessageOrBuilder(); + } else { + return generativeGroupedResults_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeGroupedResults_; + } + } + /** + * optional .weaviate.v1.GenerativeResult generative_grouped_results = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder> + getGenerativeGroupedResultsFieldBuilder() { + if (generativeGroupedResultsBuilder_ == null) { + generativeGroupedResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder>( + getGenerativeGroupedResults(), + getParentForChildren(), + isClean()); + generativeGroupedResults_ = null; + } + return generativeGroupedResultsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -33494,558 +35211,6 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankReply ge } - public interface GenerativeReplyOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeReply) - com.google.protobuf.MessageOrBuilder { - - /** - * string result = 1; - * @return The result. - */ - java.lang.String getResult(); - /** - * string result = 1; - * @return The bytes for result. - */ - com.google.protobuf.ByteString - getResultBytes(); - } - /** - * Protobuf type {@code weaviate.v1.GenerativeReply} - */ - public static final class GenerativeReply extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeReply) - GenerativeReplyOrBuilder { - private static final long serialVersionUID = 0L; - // Use GenerativeReply.newBuilder() to construct. - private GenerativeReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GenerativeReply() { - result_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GenerativeReply(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeReply_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.Builder.class); - } - - public static final int RESULT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object result_ = ""; - /** - * string result = 1; - * @return The result. - */ - @java.lang.Override - public java.lang.String getResult() { - java.lang.Object ref = result_; - 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(); - result_ = s; - return s; - } - } - /** - * string result = 1; - * @return The bytes for result. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResultBytes() { - java.lang.Object ref = result_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - result_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(result_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, result_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(result_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, result_); - } - 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply)) { - return super.equals(obj); - } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply) obj; - - if (!getResult() - .equals(other.getResult())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply 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.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply 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.GenerativeReply} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeReply) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReplyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeReply_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.Builder.class); - } - - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - result_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeReply_descriptor; - } - - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.getDefaultInstance(); - } - - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply buildPartial() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.result_ = result_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply) { - return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.getDefaultInstance()) return this; - if (!other.getResult().isEmpty()) { - result_ = other.result_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - result_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - 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 result_ = ""; - /** - * string result = 1; - * @return The result. - */ - public java.lang.String getResult() { - java.lang.Object ref = result_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - result_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string result = 1; - * @return The bytes for result. - */ - public com.google.protobuf.ByteString - getResultBytes() { - java.lang.Object ref = result_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - result_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string result = 1; - * @param value The result to set. - * @return This builder for chaining. - */ - public Builder setResult( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - result_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string result = 1; - * @return This builder for chaining. - */ - public Builder clearResult() { - result_ = getDefaultInstance().getResult(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string result = 1; - * @param value The bytes for result to set. - * @return This builder for chaining. - */ - public Builder setResultBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - result_ = value; - bitField0_ |= 0x00000001; - 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.GenerativeReply) - } - - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeReply) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply(); - } - - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerativeReply parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - public interface GroupByResultOrBuilder extends // @@protoc_insertion_point(interface_extends:weaviate.v1.GroupByResult) com.google.protobuf.MessageOrBuilder { @@ -34120,19 +35285,38 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SearchResultOrBuilder io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankReplyOrBuilder getRerankOrBuilder(); /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; + * @deprecated weaviate.v1.GroupByResult.generative is deprecated. + * See v1/search_get.proto;l=274 * @return Whether the generative field is set. */ - boolean hasGenerative(); + @java.lang.Deprecated boolean hasGenerative(); /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; + * @deprecated weaviate.v1.GroupByResult.generative is deprecated. + * See v1/search_get.proto;l=274 * @return The generative. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply getGenerative(); + @java.lang.Deprecated io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getGenerative(); + /** + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; + */ + @java.lang.Deprecated io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getGenerativeOrBuilder(); + + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + * @return Whether the generativeResult field is set. + */ + boolean hasGenerativeResult(); /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeResult generative_result = 8; + * @return The generativeResult. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReplyOrBuilder getGenerativeOrBuilder(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerativeResult(); + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeResultOrBuilder(); } /** * Protobuf type {@code weaviate.v1.GroupByResult} @@ -34312,29 +35496,59 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankReplyOrB } public static final int GENERATIVE_FIELD_NUMBER = 7; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply generative_; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply generative_; /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; + * @deprecated weaviate.v1.GroupByResult.generative is deprecated. + * See v1/search_get.proto;l=274 * @return Whether the generative field is set. */ @java.lang.Override - public boolean hasGenerative() { + @java.lang.Deprecated public boolean hasGenerative() { return ((bitField0_ & 0x00000002) != 0); } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; + * @deprecated weaviate.v1.GroupByResult.generative is deprecated. + * See v1/search_get.proto;l=274 * @return The generative. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply getGenerative() { - return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.getDefaultInstance() : generative_; + @java.lang.Deprecated public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getGenerative() { + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance() : generative_; + } + /** + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getGenerativeOrBuilder() { + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance() : generative_; + } + + public static final int GENERATIVE_RESULT_FIELD_NUMBER = 8; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult generativeResult_; + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + * @return Whether the generativeResult field is set. + */ + @java.lang.Override + public boolean hasGenerativeResult() { + return ((bitField0_ & 0x00000004) != 0); } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeResult generative_result = 8; + * @return The generativeResult. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReplyOrBuilder getGenerativeOrBuilder() { - return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.getDefaultInstance() : generative_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerativeResult() { + return generativeResult_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeResult_; + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeResultOrBuilder() { + return generativeResult_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeResult_; } private byte memoizedIsInitialized = -1; @@ -34372,6 +35586,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getGenerative()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getGenerativeResult()); + } getUnknownFields().writeTo(output); } @@ -34408,6 +35625,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getGenerative()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getGenerativeResult()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -34445,6 +35666,11 @@ public boolean equals(final java.lang.Object obj) { if (!getGenerative() .equals(other.getGenerative())) return false; } + if (hasGenerativeResult() != other.hasGenerativeResult()) return false; + if (hasGenerativeResult()) { + if (!getGenerativeResult() + .equals(other.getGenerativeResult())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -34479,6 +35705,10 @@ public int hashCode() { hash = (37 * hash) + GENERATIVE_FIELD_NUMBER; hash = (53 * hash) + getGenerative().hashCode(); } + if (hasGenerativeResult()) { + hash = (37 * hash) + GENERATIVE_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getGenerativeResult().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -34612,6 +35842,7 @@ private void maybeForceBuilderInitialization() { getObjectsFieldBuilder(); getRerankFieldBuilder(); getGenerativeFieldBuilder(); + getGenerativeResultFieldBuilder(); } } @java.lang.Override @@ -34639,6 +35870,11 @@ public Builder clear() { generativeBuilder_.dispose(); generativeBuilder_ = null; } + generativeResult_ = null; + if (generativeResultBuilder_ != null) { + generativeResultBuilder_.dispose(); + generativeResultBuilder_ = null; + } return this; } @@ -34710,6 +35946,12 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSear : generativeBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.generativeResult_ = generativeResultBuilder_ == null + ? generativeResult_ + : generativeResultBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -34803,6 +36045,9 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch if (other.hasGenerative()) { mergeGenerative(other.getGenerative()); } + if (other.hasGenerativeResult()) { + mergeGenerativeResult(other.getGenerativeResult()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -34876,6 +36121,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: { + input.readMessage( + getGenerativeResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -35422,31 +36674,35 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankReplyOrB return rerankBuilder_; } - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply generative_; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply generative_; private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReplyOrBuilder> generativeBuilder_; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder> generativeBuilder_; /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; + * @deprecated weaviate.v1.GroupByResult.generative is deprecated. + * See v1/search_get.proto;l=274 * @return Whether the generative field is set. */ - public boolean hasGenerative() { + @java.lang.Deprecated public boolean hasGenerative() { return ((bitField0_ & 0x00000040) != 0); } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; + * @deprecated weaviate.v1.GroupByResult.generative is deprecated. + * See v1/search_get.proto;l=274 * @return The generative. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply getGenerative() { + @java.lang.Deprecated public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getGenerative() { if (generativeBuilder_ == null) { - return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.getDefaultInstance() : generative_; + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance() : generative_; } else { return generativeBuilder_.getMessage(); } } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; */ - public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply value) { + @java.lang.Deprecated public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply value) { if (generativeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -35460,10 +36716,10 @@ public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSe return this; } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; */ - public Builder setGenerative( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.Builder builderForValue) { + @java.lang.Deprecated public Builder setGenerative( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder builderForValue) { if (generativeBuilder_ == null) { generative_ = builderForValue.build(); } else { @@ -35474,13 +36730,13 @@ public Builder setGenerative( return this; } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; */ - public Builder mergeGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply value) { + @java.lang.Deprecated public Builder mergeGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply value) { if (generativeBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && generative_ != null && - generative_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.getDefaultInstance()) { + generative_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance()) { getGenerativeBuilder().mergeFrom(value); } else { generative_ = value; @@ -35495,9 +36751,9 @@ public Builder mergeGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProto return this; } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; */ - public Builder clearGenerative() { + @java.lang.Deprecated public Builder clearGenerative() { bitField0_ = (bitField0_ & ~0x00000040); generative_ = null; if (generativeBuilder_ != null) { @@ -35508,33 +36764,33 @@ public Builder clearGenerative() { return this; } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.Builder getGenerativeBuilder() { + @java.lang.Deprecated public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder getGenerativeBuilder() { bitField0_ |= 0x00000040; onChanged(); return getGenerativeFieldBuilder().getBuilder(); } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReplyOrBuilder getGenerativeOrBuilder() { + @java.lang.Deprecated public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getGenerativeOrBuilder() { if (generativeBuilder_ != null) { return generativeBuilder_.getMessageOrBuilder(); } else { return generative_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.getDefaultInstance() : generative_; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance() : generative_; } } /** - * optional .weaviate.v1.GenerativeReply generative = 7; + * optional .weaviate.v1.GenerativeReply generative = 7 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReplyOrBuilder> + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder> getGenerativeFieldBuilder() { if (generativeBuilder_ == null) { generativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeReplyOrBuilder>( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder>( getGenerative(), getParentForChildren(), isClean()); @@ -35542,6 +36798,127 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeRepl } return generativeBuilder_; } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult generativeResult_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder> generativeResultBuilder_; + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + * @return Whether the generativeResult field is set. + */ + public boolean hasGenerativeResult() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + * @return The generativeResult. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerativeResult() { + if (generativeResultBuilder_ == null) { + return generativeResult_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeResult_; + } else { + return generativeResultBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + public Builder setGenerativeResult(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult value) { + if (generativeResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generativeResult_ = value; + } else { + generativeResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + public Builder setGenerativeResult( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder builderForValue) { + if (generativeResultBuilder_ == null) { + generativeResult_ = builderForValue.build(); + } else { + generativeResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + public Builder mergeGenerativeResult(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult value) { + if (generativeResultBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + generativeResult_ != null && + generativeResult_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance()) { + getGenerativeResultBuilder().mergeFrom(value); + } else { + generativeResult_ = value; + } + } else { + generativeResultBuilder_.mergeFrom(value); + } + if (generativeResult_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + public Builder clearGenerativeResult() { + bitField0_ = (bitField0_ & ~0x00000080); + generativeResult_ = null; + if (generativeResultBuilder_ != null) { + generativeResultBuilder_.dispose(); + generativeResultBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder getGenerativeResultBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getGenerativeResultFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeResultOrBuilder() { + if (generativeResultBuilder_ != null) { + return generativeResultBuilder_.getMessageOrBuilder(); + } else { + return generativeResult_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generativeResult_; + } + } + /** + * optional .weaviate.v1.GenerativeResult generative_result = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder> + getGenerativeResultFieldBuilder() { + if (generativeResultBuilder_ == null) { + generativeResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder>( + getGenerativeResult(), + getParentForChildren(), + isClean()); + generativeResult_ = null; + } + return generativeResultBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -35639,6 +37016,21 @@ public interface SearchResultOrBuilder extends * .weaviate.v1.MetadataResult metadata = 2; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataResultOrBuilder getMetadataOrBuilder(); + + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + * @return Whether the generative field is set. + */ + boolean hasGenerative(); + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + * @return The generative. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerative(); + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeOrBuilder(); } /** * Protobuf type {@code weaviate.v1.SearchResult} @@ -35728,6 +37120,32 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataResult return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataResult.getDefaultInstance() : metadata_; } + public static final int GENERATIVE_FIELD_NUMBER = 3; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult generative_; + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + * @return Whether the generative field is set. + */ + @java.lang.Override + public boolean hasGenerative() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + * @return The generative. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerative() { + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generative_; + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeOrBuilder() { + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generative_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -35748,6 +37166,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMetadata()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getGenerative()); + } getUnknownFields().writeTo(output); } @@ -35765,6 +37186,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMetadata()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGenerative()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -35790,6 +37215,11 @@ public boolean equals(final java.lang.Object obj) { if (!getMetadata() .equals(other.getMetadata())) return false; } + if (hasGenerative() != other.hasGenerative()) return false; + if (hasGenerative()) { + if (!getGenerative() + .equals(other.getGenerative())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -35809,6 +37239,10 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } + if (hasGenerative()) { + hash = (37 * hash) + GENERATIVE_FIELD_NUMBER; + hash = (53 * hash) + getGenerative().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -35941,6 +37375,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); getMetadataFieldBuilder(); + getGenerativeFieldBuilder(); } } @java.lang.Override @@ -35957,6 +37392,11 @@ public Builder clear() { metadataBuilder_.dispose(); metadataBuilder_ = null; } + generative_ = null; + if (generativeBuilder_ != null) { + generativeBuilder_.dispose(); + generativeBuilder_ = null; + } return this; } @@ -36003,6 +37443,12 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSear : metadataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.generative_ = generativeBuilder_ == null + ? generative_ + : generativeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -36056,6 +37502,9 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } + if (other.hasGenerative()) { + mergeGenerative(other.getGenerative()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -36096,6 +37545,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: { + input.readMessage( + getGenerativeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -36354,6 +37810,127 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataResult } return metadataBuilder_; } + + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult generative_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder> generativeBuilder_; + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + * @return Whether the generative field is set. + */ + public boolean hasGenerative() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + * @return The generative. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getGenerative() { + if (generativeBuilder_ == null) { + return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generative_; + } else { + return generativeBuilder_.getMessage(); + } + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult value) { + if (generativeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generative_ = value; + } else { + generativeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + public Builder setGenerative( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder builderForValue) { + if (generativeBuilder_ == null) { + generative_ = builderForValue.build(); + } else { + generativeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + public Builder mergeGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult value) { + if (generativeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + generative_ != null && + generative_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance()) { + getGenerativeBuilder().mergeFrom(value); + } else { + generative_ = value; + } + } else { + generativeBuilder_.mergeFrom(value); + } + if (generative_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + public Builder clearGenerative() { + bitField0_ = (bitField0_ & ~0x00000004); + generative_ = null; + if (generativeBuilder_ != null) { + generativeBuilder_.dispose(); + generativeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder getGenerativeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGenerativeFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder getGenerativeOrBuilder() { + if (generativeBuilder_ != null) { + return generativeBuilder_.getMessageOrBuilder(); + } else { + return generative_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance() : generative_; + } + } + /** + * optional .weaviate.v1.GenerativeResult generative = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder> + getGenerativeFieldBuilder() { + if (generativeBuilder_ == null) { + generativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder>( + getGenerative(), + getParentForChildren(), + isClean()); + generative_ = null; + } + return generativeBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -36441,7 +38018,7 @@ public interface MetadataResultOrBuilder extends * * repeated float vector = 2 [deprecated = true]; * @deprecated weaviate.v1.MetadataResult.vector is deprecated. - * See v1/search_get.proto;l=272 + * See v1/search_get.proto;l=288 * @return A list containing the vector. */ @java.lang.Deprecated java.util.List getVectorList(); @@ -36452,7 +38029,7 @@ public interface MetadataResultOrBuilder extends * * repeated float vector = 2 [deprecated = true]; * @deprecated weaviate.v1.MetadataResult.vector is deprecated. - * See v1/search_get.proto;l=272 + * See v1/search_get.proto;l=288 * @return The count of vector. */ @java.lang.Deprecated int getVectorCount(); @@ -36463,7 +38040,7 @@ public interface MetadataResultOrBuilder extends * * repeated float vector = 2 [deprecated = true]; * @deprecated weaviate.v1.MetadataResult.vector is deprecated. - * See v1/search_get.proto;l=272 + * See v1/search_get.proto;l=288 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -36559,22 +38136,28 @@ public interface MetadataResultOrBuilder extends boolean getIsConsistent(); /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @return The generative. */ - java.lang.String getGenerative(); + @java.lang.Deprecated java.lang.String getGenerative(); /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @return The bytes for generative. */ - com.google.protobuf.ByteString + @java.lang.Deprecated com.google.protobuf.ByteString getGenerativeBytes(); /** - * bool generative_present = 17; + * bool generative_present = 17 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative_present is deprecated. + * See v1/search_get.proto;l=303 * @return The generativePresent. */ - boolean getGenerativePresent(); + @java.lang.Deprecated boolean getGenerativePresent(); /** * bool is_consistent_present = 18; @@ -36723,7 +38306,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=272 + * See v1/search_get.proto;l=288 * @return A list containing the vector. */ @java.lang.Override @@ -36738,7 +38321,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=272 + * See v1/search_get.proto;l=288 * @return The count of vector. */ @java.lang.Deprecated public int getVectorCount() { @@ -36751,7 +38334,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=272 + * See v1/search_get.proto;l=288 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -36943,11 +38526,13 @@ public boolean getIsConsistent() { @SuppressWarnings("serial") private volatile java.lang.Object generative_ = ""; /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @return The generative. */ @java.lang.Override - public java.lang.String getGenerative() { + @java.lang.Deprecated public java.lang.String getGenerative() { java.lang.Object ref = generative_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; @@ -36960,11 +38545,13 @@ public java.lang.String getGenerative() { } } /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @return The bytes for generative. */ @java.lang.Override - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getGenerativeBytes() { java.lang.Object ref = generative_; if (ref instanceof java.lang.String) { @@ -36981,11 +38568,13 @@ public java.lang.String getGenerative() { public static final int GENERATIVE_PRESENT_FIELD_NUMBER = 17; private boolean generativePresent_ = false; /** - * bool generative_present = 17; + * bool generative_present = 17 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative_present is deprecated. + * See v1/search_get.proto;l=303 * @return The generativePresent. */ @java.lang.Override - public boolean getGenerativePresent() { + @java.lang.Deprecated public boolean getGenerativePresent() { return generativePresent_; } @@ -38123,7 +39712,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=272 + * See v1/search_get.proto;l=288 * @return A list containing the vector. */ @java.lang.Deprecated public java.util.List @@ -38138,7 +39727,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=272 + * See v1/search_get.proto;l=288 * @return The count of vector. */ @java.lang.Deprecated public int getVectorCount() { @@ -38151,7 +39740,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=272 + * See v1/search_get.proto;l=288 * @param index The index of the element to return. * @return The vector at the given index. */ @@ -38165,7 +39754,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=272 + * See v1/search_get.proto;l=288 * @param index The index to set the value at. * @param value The vector to set. * @return This builder for chaining. @@ -38186,7 +39775,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=272 + * See v1/search_get.proto;l=288 * @param value The vector to add. * @return This builder for chaining. */ @@ -38205,7 +39794,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=272 + * See v1/search_get.proto;l=288 * @param values The vector to add. * @return This builder for chaining. */ @@ -38225,7 +39814,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=272 + * See v1/search_get.proto;l=288 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearVector() { @@ -38701,10 +40290,12 @@ public Builder clearIsConsistent() { private java.lang.Object generative_ = ""; /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @return The generative. */ - public java.lang.String getGenerative() { + @java.lang.Deprecated public java.lang.String getGenerative() { java.lang.Object ref = generative_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = @@ -38717,10 +40308,12 @@ public java.lang.String getGenerative() { } } /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @return The bytes for generative. */ - public com.google.protobuf.ByteString + @java.lang.Deprecated public com.google.protobuf.ByteString getGenerativeBytes() { java.lang.Object ref = generative_; if (ref instanceof String) { @@ -38734,11 +40327,13 @@ public java.lang.String getGenerative() { } } /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @param value The generative to set. * @return This builder for chaining. */ - public Builder setGenerative( + @java.lang.Deprecated public Builder setGenerative( java.lang.String value) { if (value == null) { throw new NullPointerException(); } generative_ = value; @@ -38747,21 +40342,25 @@ public Builder setGenerative( return this; } /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @return This builder for chaining. */ - public Builder clearGenerative() { + @java.lang.Deprecated public Builder clearGenerative() { generative_ = getDefaultInstance().getGenerative(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** - * string generative = 16; + * string generative = 16 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative is deprecated. + * See v1/search_get.proto;l=302 * @param value The bytes for generative to set. * @return This builder for chaining. */ - public Builder setGenerativeBytes( + @java.lang.Deprecated public Builder setGenerativeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); @@ -38773,19 +40372,23 @@ public Builder setGenerativeBytes( private boolean generativePresent_ ; /** - * bool generative_present = 17; + * bool generative_present = 17 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative_present is deprecated. + * See v1/search_get.proto;l=303 * @return The generativePresent. */ @java.lang.Override - public boolean getGenerativePresent() { + @java.lang.Deprecated public boolean getGenerativePresent() { return generativePresent_; } /** - * bool generative_present = 17; + * bool generative_present = 17 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative_present is deprecated. + * See v1/search_get.proto;l=303 * @param value The generativePresent to set. * @return This builder for chaining. */ - public Builder setGenerativePresent(boolean value) { + @java.lang.Deprecated public Builder setGenerativePresent(boolean value) { generativePresent_ = value; bitField0_ |= 0x00010000; @@ -38793,10 +40396,12 @@ public Builder setGenerativePresent(boolean value) { return this; } /** - * bool generative_present = 17; + * bool generative_present = 17 [deprecated = true]; + * @deprecated weaviate.v1.MetadataResult.generative_present is deprecated. + * See v1/search_get.proto;l=303 * @return This builder for chaining. */ - public Builder clearGenerativePresent() { + @java.lang.Deprecated public Builder clearGenerativePresent() { bitField0_ = (bitField0_ & ~0x00010000); generativePresent_ = false; onChanged(); @@ -39273,14 +40878,14 @@ public interface PropertiesResultOrBuilder extends /** * .google.protobuf.Struct non_ref_properties = 1 [deprecated = true]; * @deprecated weaviate.v1.PropertiesResult.non_ref_properties is deprecated. - * See v1/search_get.proto;l=297 + * See v1/search_get.proto;l=313 * @return Whether the nonRefProperties field is set. */ @java.lang.Deprecated boolean hasNonRefProperties(); /** * .google.protobuf.Struct non_ref_properties = 1 [deprecated = true]; * @deprecated weaviate.v1.PropertiesResult.non_ref_properties is deprecated. - * See v1/search_get.proto;l=297 + * See v1/search_get.proto;l=313 * @return The nonRefProperties. */ @java.lang.Deprecated com.google.protobuf.Struct getNonRefProperties(); @@ -39554,7 +41159,7 @@ protected java.lang.Object newInstance( /** * .google.protobuf.Struct non_ref_properties = 1 [deprecated = true]; * @deprecated weaviate.v1.PropertiesResult.non_ref_properties is deprecated. - * See v1/search_get.proto;l=297 + * See v1/search_get.proto;l=313 * @return Whether the nonRefProperties field is set. */ @java.lang.Override @@ -39564,7 +41169,7 @@ protected java.lang.Object newInstance( /** * .google.protobuf.Struct non_ref_properties = 1 [deprecated = true]; * @deprecated weaviate.v1.PropertiesResult.non_ref_properties is deprecated. - * See v1/search_get.proto;l=297 + * See v1/search_get.proto;l=313 * @return The nonRefProperties. */ @java.lang.Override @@ -40932,7 +42537,7 @@ public Builder mergeFrom( /** * .google.protobuf.Struct non_ref_properties = 1 [deprecated = true]; * @deprecated weaviate.v1.PropertiesResult.non_ref_properties is deprecated. - * See v1/search_get.proto;l=297 + * See v1/search_get.proto;l=313 * @return Whether the nonRefProperties field is set. */ @java.lang.Deprecated public boolean hasNonRefProperties() { @@ -40941,7 +42546,7 @@ public Builder mergeFrom( /** * .google.protobuf.Struct non_ref_properties = 1 [deprecated = true]; * @deprecated weaviate.v1.PropertiesResult.non_ref_properties is deprecated. - * See v1/search_get.proto;l=297 + * See v1/search_get.proto;l=313 * @return The nonRefProperties. */ @java.lang.Deprecated public com.google.protobuf.Struct getNonRefProperties() { @@ -44085,11 +45690,6 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_weaviate_v1_SortBy_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_weaviate_v1_GenerativeSearch_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_weaviate_v1_MetadataRequest_descriptor; private static final @@ -44105,6 +45705,11 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_weaviate_v1_ObjectPropertiesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_WeightsForTarget_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_WeightsForTarget_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_weaviate_v1_Targets_descriptor; private static final @@ -44170,6 +45775,11 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_weaviate_v1_RefPropertiesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_VectorForTarget_descriptor; + 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_NearVector_descriptor; private static final @@ -44200,11 +45810,6 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_weaviate_v1_RerankReply_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_weaviate_v1_GenerativeReply_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_weaviate_v1_GroupByResult_descriptor; private static final @@ -44241,200 +45846,212 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR java.lang.String[] descriptorData = { "\n\023v1/search_get.proto\022\013weaviate.v1\032\034goog" + "le/protobuf/struct.proto\032\rv1/base.proto\032" + - "\023v1/properties.proto\"\202\013\n\rSearchRequest\022\022" + - "\n\ncollection\030\001 \001(\t\022\016\n\006tenant\030\n \001(\t\022=\n\021co" + - "nsistency_level\030\013 \001(\0162\035.weaviate.v1.Cons" + - "istencyLevelH\000\210\001\001\0227\n\nproperties\030\024 \001(\0132\036." + - "weaviate.v1.PropertiesRequestH\001\210\001\001\0223\n\010me" + - "tadata\030\025 \001(\0132\034.weaviate.v1.MetadataReque" + - "stH\002\210\001\001\022+\n\010group_by\030\026 \001(\0132\024.weaviate.v1." + - "GroupByH\003\210\001\001\022\r\n\005limit\030\036 \001(\r\022\016\n\006offset\030\037 " + - "\001(\r\022\017\n\007autocut\030 \001(\r\022\r\n\005after\030! \001(\t\022$\n\007s" + - "ort_by\030\" \003(\0132\023.weaviate.v1.SortBy\022*\n\007fil" + - "ters\030( \001(\0132\024.weaviate.v1.FiltersH\004\210\001\001\022/\n" + - "\rhybrid_search\030) \001(\0132\023.weaviate.v1.Hybri" + - "dH\005\210\001\001\022+\n\013bm25_search\030* \001(\0132\021.weaviate.v" + - "1.BM25H\006\210\001\001\0221\n\013near_vector\030+ \001(\0132\027.weavi" + - "ate.v1.NearVectorH\007\210\001\001\0221\n\013near_object\030, " + - "\001(\0132\027.weaviate.v1.NearObjectH\010\210\001\001\0223\n\tnea" + - "r_text\030- \001(\0132\033.weaviate.v1.NearTextSearc" + - "hH\t\210\001\001\0225\n\nnear_image\030. \001(\0132\034.weaviate.v1" + - ".NearImageSearchH\n\210\001\001\0225\n\nnear_audio\030/ \001(" + - "\0132\034.weaviate.v1.NearAudioSearchH\013\210\001\001\0225\n\n" + - "near_video\0300 \001(\0132\034.weaviate.v1.NearVideo" + - "SearchH\014\210\001\001\0225\n\nnear_depth\0301 \001(\0132\034.weavia" + - "te.v1.NearDepthSearchH\r\210\001\001\0229\n\014near_therm" + - "al\0302 \001(\0132\036.weaviate.v1.NearThermalSearch" + - "H\016\210\001\001\0221\n\010near_imu\0303 \001(\0132\032.weaviate.v1.Ne" + - "arIMUSearchH\017\210\001\001\0226\n\ngenerative\030< \001(\0132\035.w" + - "eaviate.v1.GenerativeSearchH\020\210\001\001\022(\n\006rera" + - "nk\030= \001(\0132\023.weaviate.v1.RerankH\021\210\001\001\022\030\n\014us" + - "es_123_api\030d \001(\010B\002\030\001\022\024\n\014uses_125_api\030e \001" + - "(\010B\024\n\022_consistency_levelB\r\n\013_propertiesB" + - "\013\n\t_metadataB\013\n\t_group_byB\n\n\010_filtersB\020\n" + - "\016_hybrid_searchB\016\n\014_bm25_searchB\016\n\014_near" + - "_vectorB\016\n\014_near_objectB\014\n\n_near_textB\r\n" + - "\013_near_imageB\r\n\013_near_audioB\r\n\013_near_vid" + - "eoB\r\n\013_near_depthB\017\n\r_near_thermalB\013\n\t_n" + - "ear_imuB\r\n\013_generativeB\t\n\007_rerank\"L\n\007Gro" + - "upBy\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\006SortB" + - "y\022\021\n\tascending\030\001 \001(\010\022\014\n\004path\030\002 \003(\t\"m\n\020Ge" + - "nerativeSearch\022\036\n\026single_response_prompt" + - "\030\001 \001(\t\022\035\n\025grouped_response_task\030\002 \001(\t\022\032\n" + - "\022grouped_properties\030\003 \003(\t\"\335\001\n\017MetadataRe" + - "quest\022\014\n\004uuid\030\001 \001(\010\022\016\n\006vector\030\002 \001(\010\022\032\n\022c" + - "reation_time_unix\030\003 \001(\010\022\035\n\025last_update_t" + - "ime_unix\030\004 \001(\010\022\020\n\010distance\030\005 \001(\010\022\021\n\tcert" + - "ainty\030\006 \001(\010\022\r\n\005score\030\007 \001(\010\022\025\n\rexplain_sc" + - "ore\030\010 \001(\010\022\025\n\ris_consistent\030\t \001(\010\022\017\n\007vect" + - "ors\030\n \003(\t\"\321\001\n\021PropertiesRequest\022\032\n\022non_r" + - "ef_properties\030\001 \003(\t\0229\n\016ref_properties\030\002 " + - "\003(\0132!.weaviate.v1.RefPropertiesRequest\022?" + - "\n\021object_properties\030\003 \003(\0132$.weaviate.v1." + - "ObjectPropertiesRequest\022$\n\034return_all_no" + - "nref_properties\030\013 \001(\010\"\213\001\n\027ObjectProperti" + - "esRequest\022\021\n\tprop_name\030\001 \001(\t\022\034\n\024primitiv" + - "e_properties\030\002 \003(\t\022?\n\021object_properties\030" + - "\003 \003(\0132$.weaviate.v1.ObjectPropertiesRequ" + - "est\"\272\001\n\007Targets\022\026\n\016target_vectors\030\001 \003(\t\022" + - "3\n\013combination\030\002 \001(\0162\036.weaviate.v1.Combi" + - "nationMethod\0222\n\007weights\030\003 \003(\0132!.weaviate" + - ".v1.Targets.WeightsEntry\032.\n\014WeightsEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\"\235\003\n\006Hyb" + - "rid\022\r\n\005query\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\013fus" + - "ion_type\030\005 \001(\0162\036.weaviate.v1.Hybrid.Fusi" + - "onType\022\024\n\014vector_bytes\030\006 \001(\014\022\032\n\016target_v" + - "ectors\030\007 \003(\tB\002\030\001\022.\n\tnear_text\030\010 \001(\0132\033.we" + - "aviate.v1.NearTextSearch\022,\n\013near_vector\030" + - "\t \001(\0132\027.weaviate.v1.NearVector\022%\n\007target" + - "s\030\n \001(\0132\024.weaviate.v1.Targets\"a\n\nFusionT" + - "ype\022\033\n\027FUSION_TYPE_UNSPECIFIED\020\000\022\026\n\022FUSI" + - "ON_TYPE_RANKED\020\001\022\036\n\032FUSION_TYPE_RELATIVE" + - "_SCORE\020\002\"\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\010distance\030\003" + - " \001(\001H\001\210\001\001\0226\n\007move_to\030\004 \001(\0132 .weaviate.v1" + - ".NearTextSearch.MoveH\002\210\001\001\0228\n\tmove_away\030\005" + - " \001(\0132 .weaviate.v1.NearTextSearch.MoveH\003" + - "\210\001\001\022\032\n\016target_vectors\030\006 \003(\tB\002\030\001\022%\n\007targe" + - "ts\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_distanceB\n\n\010_mo" + - "ve_toB\014\n\n_move_away\"\255\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" + - ".TargetsB\014\n\n_certaintyB\013\n\t_distance\"\255\001\n\017" + - "NearAudioSearch\022\r\n\005audio\030\001 \001(\t\022\026\n\tcertai" + - "nty\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_certaintyB\013" + - "\n\t_distance\"\255\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\010distan" + - "ce\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" + - "B\014\n\n_certaintyB\013\n\t_distance\"\255\001\n\017NearDept" + - "hSearch\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(\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.wea" + - "viate.v1.TargetsB\014\n\n_certaintyB\013\n\t_dista" + - "nce\"\261\001\n\021NearThermalSearch\022\017\n\007thermal\030\001 \001" + + "\023v1/generative.proto\032\023v1/properties.prot" + + "o\"\234\013\n\rSearchRequest\022\022\n\ncollection\030\001 \001(\t\022" + + "\016\n\006tenant\030\n \001(\t\022=\n\021consistency_level\030\013 \001" + + "(\0162\035.weaviate.v1.ConsistencyLevelH\000\210\001\001\0227" + + "\n\nproperties\030\024 \001(\0132\036.weaviate.v1.Propert" + + "iesRequestH\001\210\001\001\0223\n\010metadata\030\025 \001(\0132\034.weav" + + "iate.v1.MetadataRequestH\002\210\001\001\022+\n\010group_by" + + "\030\026 \001(\0132\024.weaviate.v1.GroupByH\003\210\001\001\022\r\n\005lim" + + "it\030\036 \001(\r\022\016\n\006offset\030\037 \001(\r\022\017\n\007autocut\030 \001(" + + "\r\022\r\n\005after\030! \001(\t\022$\n\007sort_by\030\" \003(\0132\023.weav" + + "iate.v1.SortBy\022*\n\007filters\030( \001(\0132\024.weavia" + + "te.v1.FiltersH\004\210\001\001\022/\n\rhybrid_search\030) \001(" + + "\0132\023.weaviate.v1.HybridH\005\210\001\001\022+\n\013bm25_sear" + + "ch\030* \001(\0132\021.weaviate.v1.BM25H\006\210\001\001\0221\n\013near" + + "_vector\030+ \001(\0132\027.weaviate.v1.NearVectorH\007" + + "\210\001\001\0221\n\013near_object\030, \001(\0132\027.weaviate.v1.N" + + "earObjectH\010\210\001\001\0223\n\tnear_text\030- \001(\0132\033.weav" + + "iate.v1.NearTextSearchH\t\210\001\001\0225\n\nnear_imag" + + "e\030. \001(\0132\034.weaviate.v1.NearImageSearchH\n\210" + + "\001\001\0225\n\nnear_audio\030/ \001(\0132\034.weaviate.v1.Nea" + + "rAudioSearchH\013\210\001\001\0225\n\nnear_video\0300 \001(\0132\034." + + "weaviate.v1.NearVideoSearchH\014\210\001\001\0225\n\nnear" + + "_depth\0301 \001(\0132\034.weaviate.v1.NearDepthSear" + + "chH\r\210\001\001\0229\n\014near_thermal\0302 \001(\0132\036.weaviate" + + ".v1.NearThermalSearchH\016\210\001\001\0221\n\010near_imu\0303" + + " \001(\0132\032.weaviate.v1.NearIMUSearchH\017\210\001\001\0226\n" + + "\ngenerative\030< \001(\0132\035.weaviate.v1.Generati" + + "veSearchH\020\210\001\001\022(\n\006rerank\030= \001(\0132\023.weaviate" + + ".v1.RerankH\021\210\001\001\022\030\n\014uses_123_api\030d \001(\010B\002\030" + + "\001\022\030\n\014uses_125_api\030e \001(\010B\002\030\001\022\024\n\014uses_127_" + + "api\030f \001(\010B\024\n\022_consistency_levelB\r\n\013_prop" + + "ertiesB\013\n\t_metadataB\013\n\t_group_byB\n\n\010_fil" + + "tersB\020\n\016_hybrid_searchB\016\n\014_bm25_searchB\016" + + "\n\014_near_vectorB\016\n\014_near_objectB\014\n\n_near_" + + "textB\r\n\013_near_imageB\r\n\013_near_audioB\r\n\013_n" + + "ear_videoB\r\n\013_near_depthB\017\n\r_near_therma" + + "lB\013\n\t_near_imuB\r\n\013_generativeB\t\n\007_rerank" + + "\"L\n\007GroupBy\022\014\n\004path\030\001 \003(\t\022\030\n\020number_of_g" + + "roups\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\017MetadataRequest\022\014\n\004uuid\030\001 \001(\010\022\016\n\006v" + + "ector\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\010distan" + + "ce\030\005 \001(\010\022\021\n\tcertainty\030\006 \001(\010\022\r\n\005score\030\007 \001" + + "(\010\022\025\n\rexplain_score\030\010 \001(\010\022\025\n\ris_consiste" + + "nt\030\t \001(\010\022\017\n\007vectors\030\n \003(\t\"\321\001\n\021Properties" + + "Request\022\032\n\022non_ref_properties\030\001 \003(\t\0229\n\016r" + + "ef_properties\030\002 \003(\0132!.weaviate.v1.RefPro" + + "pertiesRequest\022?\n\021object_properties\030\003 \003(" + + "\0132$.weaviate.v1.ObjectPropertiesRequest\022" + + "$\n\034return_all_nonref_properties\030\013 \001(\010\"\213\001" + + "\n\027ObjectPropertiesRequest\022\021\n\tprop_name\030\001" + + " \001(\t\022\034\n\024primitive_properties\030\002 \003(\t\022?\n\021ob" + + "ject_properties\030\003 \003(\0132$.weaviate.v1.Obje" + + "ctPropertiesRequest\"2\n\020WeightsForTarget\022" + + "\016\n\006target\030\001 \001(\t\022\016\n\006weight\030\002 \001(\002\"\372\001\n\007Targ" + + "ets\022\026\n\016target_vectors\030\001 \003(\t\0223\n\013combinati" + + "on\030\002 \001(\0162\036.weaviate.v1.CombinationMethod" + + "\0226\n\007weights\030\003 \003(\0132!.weaviate.v1.Targets." + + "WeightsEntryB\002\030\001\022:\n\023weights_for_targets\030" + + "\004 \003(\0132\035.weaviate.v1.WeightsForTarget\032.\n\014" + + "WeightsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002" + + ":\0028\001\"\305\003\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\r\n\005alpha\030" + + "\004 \001(\002\0223\n\013fusion_type\030\005 \001(\0162\036.weaviate.v1" + + ".Hybrid.FusionType\022\024\n\014vector_bytes\030\006 \001(\014" + + "\022\032\n\016target_vectors\030\007 \003(\tB\002\030\001\022.\n\tnear_tex" + + "t\030\010 \001(\0132\033.weaviate.v1.NearTextSearch\022,\n\013" + + "near_vector\030\t \001(\0132\027.weaviate.v1.NearVect" + + "or\022%\n\007targets\030\n \001(\0132\024.weaviate.v1.Target" + + "s\022\031\n\017vector_distance\030\024 \001(\002H\000\"a\n\nFusionTy" + + "pe\022\033\n\027FUSION_TYPE_UNSPECIFIED\020\000\022\026\n\022FUSIO" + + "N_TYPE_RANKED\020\001\022\036\n\032FUSION_TYPE_RELATIVE_" + + "SCORE\020\002B\013\n\tthreshold\"\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\010distance\030\003 \001(\001H\001\210\001\001\0226\n\007move_to\030\004 \001(\0132 " + + ".weaviate.v1.NearTextSearch.MoveH\002\210\001\001\0228\n" + + "\tmove_away\030\005 \001(\0132 .weaviate.v1.NearTextS" + + "earch.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.Targe" + + "ts\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_dis" + + "tanceB\n\n\010_move_toB\014\n\n_move_away\"\255\001\n\017Near" + + "ImageSearch\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\016tar" + + "get_vectors\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_d" + + "istance\"\255\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.TargetsB\014\n\n" + - "_certaintyB\013\n\t_distance\"\251\001\n\rNearIMUSearc" + - "h\022\013\n\003imu\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001H\000\210\001\001\022\025" + + "_certaintyB\013\n\t_distance\"\255\001\n\017NearVideoSea" + + "rch\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_vect" + + "ors\030\004 \003(\tB\002\030\001\022%\n\007targets\030\005 \001(\0132\024.weaviat" + + "e.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\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.TargetsB\014\n\n_certain" + + "tyB\013\n\t_distance\"\261\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\007targets\030\005 \001(\0132\024.weaviate.v1" + - ".TargetsB\014\n\n_certaintyB\013\n\t_distance\")\n\004B" + - "M25\022\r\n\005query\030\001 \001(\t\022\022\n\nproperties\030\002 \003(\t\"\261" + - "\001\n\024RefPropertiesRequest\022\032\n\022reference_pro" + - "perty\030\001 \001(\t\0222\n\nproperties\030\002 \001(\0132\036.weavia" + - "te.v1.PropertiesRequest\022.\n\010metadata\030\003 \001(" + - "\0132\034.weaviate.v1.MetadataRequest\022\031\n\021targe" + - "t_collection\030\004 \001(\t\"\304\002\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\024\n\014vector_bytes\030\004 \001" + - "(\014\022\032\n\016target_vectors\030\005 \003(\tB\002\030\001\022%\n\007target" + - "s\030\006 \001(\0132\024.weaviate.v1.Targets\022G\n\021vector_" + - "per_target\030\007 \003(\0132,.weaviate.v1.NearVecto" + - "r.VectorPerTargetEntry\0326\n\024VectorPerTarge" + - "tEntry\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\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\"8\n\006Rer" + - "ank\022\020\n\010property\030\001 \001(\t\022\022\n\005query\030\002 \001(\tH\000\210\001" + - "\001B\010\n\006_query\"\303\001\n\013SearchReply\022\014\n\004took\030\001 \001(" + - "\002\022*\n\007results\030\002 \003(\0132\031.weaviate.v1.SearchR" + - "esult\022&\n\031generative_grouped_result\030\003 \001(\t" + - "H\000\210\001\001\0224\n\020group_by_results\030\004 \003(\0132\032.weavia" + - "te.v1.GroupByResultB\034\n\032_generative_group" + - "ed_result\"\034\n\013RerankReply\022\r\n\005score\030\001 \001(\001\"" + - "!\n\017GenerativeReply\022\016\n\006result\030\001 \001(\t\"\220\002\n\rG" + - "roupByResult\022\014\n\004name\030\001 \001(\t\022\024\n\014min_distan" + - "ce\030\002 \001(\002\022\024\n\014max_distance\030\003 \001(\002\022\031\n\021number" + - "_of_objects\030\004 \001(\003\022*\n\007objects\030\005 \003(\0132\031.wea" + - "viate.v1.SearchResult\022-\n\006rerank\030\006 \001(\0132\030." + - "weaviate.v1.RerankReplyH\000\210\001\001\0225\n\ngenerati" + - "ve\030\007 \001(\0132\034.weaviate.v1.GenerativeReplyH\001" + - "\210\001\001B\t\n\007_rerankB\r\n\013_generative\"p\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\"\357\004\n\016MetadataResu" + - "lt\022\n\n\002id\030\001 \001(\t\022\022\n\006vector\030\002 \003(\002B\002\030\001\022\032\n\022cr" + - "eation_time_unix\030\003 \001(\003\022\"\n\032creation_time_" + - "unix_present\030\004 \001(\010\022\035\n\025last_update_time_u" + - "nix\030\005 \001(\003\022%\n\035last_update_time_unix_prese" + - "nt\030\006 \001(\010\022\020\n\010distance\030\007 \001(\002\022\030\n\020distance_p" + - "resent\030\010 \001(\010\022\021\n\tcertainty\030\t \001(\002\022\031\n\021certa" + - "inty_present\030\n \001(\010\022\r\n\005score\030\013 \001(\002\022\025\n\rsco" + - "re_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_con" + - "sistent\030\017 \001(\010H\000\210\001\001\022\022\n\ngenerative\030\020 \001(\t\022\032" + - "\n\022generative_present\030\021 \001(\010\022\035\n\025is_consist" + - "ent_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\007vect" + - "ors\030\027 \003(\0132\024.weaviate.v1.VectorsB\020\n\016_is_c" + - "onsistent\"\272\005\n\020PropertiesResult\0227\n\022non_re" + - "f_properties\030\001 \001(\0132\027.google.protobuf.Str" + - "uctB\002\030\001\0223\n\tref_props\030\002 \003(\0132 .weaviate.v1" + - ".RefPropertiesResult\022\031\n\021target_collectio" + - "n\030\003 \001(\t\022-\n\010metadata\030\004 \001(\0132\033.weaviate.v1." + - "MetadataResult\022G\n\027number_array_propertie" + - "s\030\005 \003(\0132\".weaviate.v1.NumberArrayPropert" + - "iesB\002\030\001\022A\n\024int_array_properties\030\006 \003(\0132\037." + - "weaviate.v1.IntArrayPropertiesB\002\030\001\022C\n\025te" + - "xt_array_properties\030\007 \003(\0132 .weaviate.v1." + - "TextArrayPropertiesB\002\030\001\022I\n\030boolean_array" + - "_properties\030\010 \003(\0132#.weaviate.v1.BooleanA" + - "rrayPropertiesB\002\030\001\022<\n\021object_properties\030" + - "\t \003(\0132\035.weaviate.v1.ObjectPropertiesB\002\030\001" + - "\022G\n\027object_array_properties\030\n \003(\0132\".weav" + - "iate.v1.ObjectArrayPropertiesB\002\030\001\022.\n\rnon" + - "_ref_props\030\013 \001(\0132\027.weaviate.v1.Propertie" + - "s\022\033\n\023ref_props_requested\030\014 \001(\010\"[\n\023RefPro" + - "pertiesResult\0221\n\nproperties\030\001 \003(\0132\035.weav" + - "iate.v1.PropertiesResult\022\021\n\tprop_name\030\002 " + - "\001(\t*\356\001\n\021CombinationMethod\022\"\n\036COMBINATION" + - "_METHOD_UNSPECIFIED\020\000\022\037\n\033COMBINATION_MET" + - "HOD_TYPE_SUM\020\001\022\037\n\033COMBINATION_METHOD_TYP" + - "E_MIN\020\002\022#\n\037COMBINATION_METHOD_TYPE_AVERA" + - "GE\020\003\022*\n&COMBINATION_METHOD_TYPE_RELATIVE" + - "_SCORE\020\004\022\"\n\036COMBINATION_METHOD_TYPE_MANU" + - "AL\020\005Bs\n#io.weaviate.client.grpc.protocol" + - ".v1B\026WeaviateProtoSearchGetZ4github.com/" + - "weaviate/weaviate/grpc/generated;protoco" + - "lb\006proto3" + ".TargetsB\014\n\n_certaintyB\013\n\t_distance\"\251\001\n\r" + + "NearIMUSearch\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\016tar" + + "get_vectors\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_d" + + "istance\")\n\004BM25\022\r\n\005query\030\001 \001(\t\022\022\n\nproper" + + "ties\030\002 \003(\t\"\261\001\n\024RefPropertiesRequest\022\032\n\022r" + + "eference_property\030\001 \001(\t\0222\n\nproperties\030\002 " + + "\001(\0132\036.weaviate.v1.PropertiesRequest\022.\n\010m" + + "etadata\030\003 \001(\0132\034.weaviate.v1.MetadataRequ" + + "est\022\031\n\021target_collection\030\004 \001(\t\"5\n\017Vector" + + "ForTarget\022\014\n\004name\030\001 \001(\t\022\024\n\014vector_bytes\030" + + "\002 \001(\014\"\202\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\010distance\030\003 \001" + + "(\001H\001\210\001\001\022\024\n\014vector_bytes\030\004 \001(\014\022\032\n\016target_" + + "vectors\030\005 \003(\tB\002\030\001\022%\n\007targets\030\006 \001(\0132\024.wea" + + "viate.v1.Targets\022K\n\021vector_per_target\030\007 " + + "\003(\0132,.weaviate.v1.NearVector.VectorPerTa" + + "rgetEntryB\002\030\001\0228\n\022vector_for_targets\030\010 \003(" + + "\0132\034.weaviate.v1.VectorForTarget\0326\n\024Vecto" + + "rPerTargetEntry\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\nN" + + "earObject\022\n\n\002id\030\001 \001(\t\022\026\n\tcertainty\030\002 \001(\001" + + "H\000\210\001\001\022\025\n\010distance\030\003 \001(\001H\001\210\001\001\022\032\n\016target_v" + + "ectors\030\004 \003(\tB\002\030\001\022%\n\007targets\030\005 \001(\0132\024.weav" + + "iate.v1.TargetsB\014\n\n_certaintyB\013\n\t_distan" + + "ce\"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\"\256\002\n\013SearchReply\022\014\n\004" + + "took\030\001 \001(\002\022*\n\007results\030\002 \003(\0132\031.weaviate.v" + + "1.SearchResult\022*\n\031generative_grouped_res" + + "ult\030\003 \001(\tB\002\030\001H\000\210\001\001\0224\n\020group_by_results\030\004" + + " \003(\0132\032.weaviate.v1.GroupByResult\022F\n\032gene" + + "rative_grouped_results\030\005 \001(\0132\035.weaviate." + + "v1.GenerativeResultH\001\210\001\001B\034\n\032_generative_" + + "grouped_resultB\035\n\033_generative_grouped_re" + + "sults\"\034\n\013RerankReply\022\r\n\005score\030\001 \001(\001\"\351\002\n\r" + + "GroupByResult\022\014\n\004name\030\001 \001(\t\022\024\n\014min_dista" + + "nce\030\002 \001(\002\022\024\n\014max_distance\030\003 \001(\002\022\031\n\021numbe" + + "r_of_objects\030\004 \001(\003\022*\n\007objects\030\005 \003(\0132\031.we" + + "aviate.v1.SearchResult\022-\n\006rerank\030\006 \001(\0132\030" + + ".weaviate.v1.RerankReplyH\000\210\001\001\0229\n\ngenerat" + + "ive\030\007 \001(\0132\034.weaviate.v1.GenerativeReplyB" + + "\002\030\001H\001\210\001\001\022=\n\021generative_result\030\010 \001(\0132\035.we" + + "aviate.v1.GenerativeResultH\002\210\001\001B\t\n\007_rera" + + "nkB\r\n\013_generativeB\024\n\022_generative_result\"" + + "\267\001\n\014SearchResult\0221\n\nproperties\030\001 \001(\0132\035.w" + + "eaviate.v1.PropertiesResult\022-\n\010metadata\030" + + "\002 \001(\0132\033.weaviate.v1.MetadataResult\0226\n\nge" + + "nerative\030\003 \001(\0132\035.weaviate.v1.GenerativeR" + + "esultH\000\210\001\001B\r\n\013_generative\"\367\004\n\016MetadataRe" + + "sult\022\n\n\002id\030\001 \001(\t\022\022\n\006vector\030\002 \003(\002B\002\030\001\022\032\n\022" + + "creation_time_unix\030\003 \001(\003\022\"\n\032creation_tim" + + "e_unix_present\030\004 \001(\010\022\035\n\025last_update_time" + + "_unix\030\005 \001(\003\022%\n\035last_update_time_unix_pre" + + "sent\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\021cer" + + "tainty_present\030\n \001(\010\022\r\n\005score\030\013 \001(\002\022\025\n\rs" + + "core_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_c" + + "onsistent\030\017 \001(\010H\000\210\001\001\022\026\n\ngenerative\030\020 \001(\t" + + "B\002\030\001\022\036\n\022generative_present\030\021 \001(\010B\002\030\001\022\035\n\025" + + "is_consistent_present\030\022 \001(\010\022\024\n\014vector_by" + + "tes\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\007vectors\030\027 \003(\0132\024.weaviate.v1.Vector" + + "sB\020\n\016_is_consistent\"\272\005\n\020PropertiesResult" + + "\0227\n\022non_ref_properties\030\001 \001(\0132\027.google.pr" + + "otobuf.StructB\002\030\001\0223\n\tref_props\030\002 \003(\0132 .w" + + "eaviate.v1.RefPropertiesResult\022\031\n\021target" + + "_collection\030\003 \001(\t\022-\n\010metadata\030\004 \001(\0132\033.we" + + "aviate.v1.MetadataResult\022G\n\027number_array" + + "_properties\030\005 \003(\0132\".weaviate.v1.NumberAr" + + "rayPropertiesB\002\030\001\022A\n\024int_array_propertie" + + "s\030\006 \003(\0132\037.weaviate.v1.IntArrayProperties" + + "B\002\030\001\022C\n\025text_array_properties\030\007 \003(\0132 .we" + + "aviate.v1.TextArrayPropertiesB\002\030\001\022I\n\030boo" + + "lean_array_properties\030\010 \003(\0132#.weaviate.v" + + "1.BooleanArrayPropertiesB\002\030\001\022<\n\021object_p" + + "roperties\030\t \003(\0132\035.weaviate.v1.ObjectProp" + + "ertiesB\002\030\001\022G\n\027object_array_properties\030\n " + + "\003(\0132\".weaviate.v1.ObjectArrayPropertiesB" + + "\002\030\001\022.\n\rnon_ref_props\030\013 \001(\0132\027.weaviate.v1" + + ".Properties\022\033\n\023ref_props_requested\030\014 \001(\010" + + "\"[\n\023RefPropertiesResult\0221\n\nproperties\030\001 " + + "\003(\0132\035.weaviate.v1.PropertiesResult\022\021\n\tpr" + + "op_name\030\002 \001(\t*\356\001\n\021CombinationMethod\022\"\n\036C" + + "OMBINATION_METHOD_UNSPECIFIED\020\000\022\037\n\033COMBI" + + "NATION_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_TYP" + + "E_RELATIVE_SCORE\020\004\022\"\n\036COMBINATION_METHOD" + + "_TYPE_MANUAL\020\005Bs\n#io.weaviate.client.grp" + + "c.protocol.v1B\026WeaviateProtoSearchGetZ4g" + + "ithub.com/weaviate/weaviate/grpc/generat" + + "ed;protocolb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.StructProto.getDescriptor(), io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.getDescriptor(), + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.getDescriptor(), io.weaviate.client.grpc.protocol.v1.WeaviateProtoProperties.getDescriptor(), }); internal_static_weaviate_v1_SearchRequest_descriptor = @@ -44442,7 +46059,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR internal_static_weaviate_v1_SearchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_SearchRequest_descriptor, - new java.lang.String[] { "Collection", "Tenant", "ConsistencyLevel", "Properties", "Metadata", "GroupBy", "Limit", "Offset", "Autocut", "After", "SortBy", "Filters", "HybridSearch", "Bm25Search", "NearVector", "NearObject", "NearText", "NearImage", "NearAudio", "NearVideo", "NearDepth", "NearThermal", "NearImu", "Generative", "Rerank", "Uses123Api", "Uses125Api", "ConsistencyLevel", "Properties", "Metadata", "GroupBy", "Filters", "HybridSearch", "Bm25Search", "NearVector", "NearObject", "NearText", "NearImage", "NearAudio", "NearVideo", "NearDepth", "NearThermal", "NearImu", "Generative", "Rerank", }); + new java.lang.String[] { "Collection", "Tenant", "ConsistencyLevel", "Properties", "Metadata", "GroupBy", "Limit", "Offset", "Autocut", "After", "SortBy", "Filters", "HybridSearch", "Bm25Search", "NearVector", "NearObject", "NearText", "NearImage", "NearAudio", "NearVideo", "NearDepth", "NearThermal", "NearImu", "Generative", "Rerank", "Uses123Api", "Uses125Api", "Uses127Api", "ConsistencyLevel", "Properties", "Metadata", "GroupBy", "Filters", "HybridSearch", "Bm25Search", "NearVector", "NearObject", "NearText", "NearImage", "NearAudio", "NearVideo", "NearDepth", "NearThermal", "NearImu", "Generative", "Rerank", }); internal_static_weaviate_v1_GroupBy_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_weaviate_v1_GroupBy_fieldAccessorTable = new @@ -44455,36 +46072,36 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_SortBy_descriptor, new java.lang.String[] { "Ascending", "Path", }); - internal_static_weaviate_v1_GenerativeSearch_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_weaviate_v1_GenerativeSearch_descriptor, - new java.lang.String[] { "SingleResponsePrompt", "GroupedResponseTask", "GroupedProperties", }); internal_static_weaviate_v1_MetadataRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(3); 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", }); internal_static_weaviate_v1_PropertiesRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(4); internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_PropertiesRequest_descriptor, new java.lang.String[] { "NonRefProperties", "RefProperties", "ObjectProperties", "ReturnAllNonrefProperties", }); internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(5); internal_static_weaviate_v1_ObjectPropertiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor, new java.lang.String[] { "PropName", "PrimitiveProperties", "ObjectProperties", }); + internal_static_weaviate_v1_WeightsForTarget_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_weaviate_v1_WeightsForTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_WeightsForTarget_descriptor, + new java.lang.String[] { "Target", "Weight", }); internal_static_weaviate_v1_Targets_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_weaviate_v1_Targets_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_Targets_descriptor, - new java.lang.String[] { "TargetVectors", "Combination", "Weights", }); + new java.lang.String[] { "TargetVectors", "Combination", "Weights", "WeightsForTargets", }); internal_static_weaviate_v1_Targets_WeightsEntry_descriptor = internal_static_weaviate_v1_Targets_descriptor.getNestedTypes().get(0); internal_static_weaviate_v1_Targets_WeightsEntry_fieldAccessorTable = new @@ -44496,7 +46113,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR 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", }); + new java.lang.String[] { "Query", "Properties", "Vector", "Alpha", "FusionType", "VectorBytes", "TargetVectors", "NearText", "NearVector", "Targets", "VectorDistance", "Threshold", }); internal_static_weaviate_v1_NearTextSearch_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_weaviate_v1_NearTextSearch_fieldAccessorTable = new @@ -44557,12 +46174,18 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_RefPropertiesRequest_descriptor, new java.lang.String[] { "ReferenceProperty", "Properties", "Metadata", "TargetCollection", }); - internal_static_weaviate_v1_NearVector_descriptor = + internal_static_weaviate_v1_VectorForTarget_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_weaviate_v1_VectorForTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_VectorForTarget_descriptor, + new java.lang.String[] { "Name", "VectorBytes", }); + internal_static_weaviate_v1_NearVector_descriptor = + getDescriptor().getMessageTypes().get(19); 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", "Certainty", "Distance", }); + new java.lang.String[] { "Vector", "Certainty", "Distance", "VectorBytes", "TargetVectors", "Targets", "VectorPerTarget", "VectorForTargets", "Certainty", "Distance", }); internal_static_weaviate_v1_NearVector_VectorPerTargetEntry_descriptor = internal_static_weaviate_v1_NearVector_descriptor.getNestedTypes().get(0); internal_static_weaviate_v1_NearVector_VectorPerTargetEntry_fieldAccessorTable = new @@ -44570,47 +46193,41 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR internal_static_weaviate_v1_NearVector_VectorPerTargetEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_weaviate_v1_NearObject_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); 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", }); internal_static_weaviate_v1_Rerank_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_weaviate_v1_Rerank_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_Rerank_descriptor, new java.lang.String[] { "Property", "Query", "Query", }); internal_static_weaviate_v1_SearchReply_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); 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", "GenerativeGroupedResult", }); + new java.lang.String[] { "Took", "Results", "GenerativeGroupedResult", "GroupByResults", "GenerativeGroupedResults", "GenerativeGroupedResult", "GenerativeGroupedResults", }); internal_static_weaviate_v1_RerankReply_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); 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_GenerativeReply_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_weaviate_v1_GenerativeReply_descriptor, - new java.lang.String[] { "Result", }); internal_static_weaviate_v1_GroupByResult_descriptor = getDescriptor().getMessageTypes().get(24); 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", "Rerank", "Generative", }); + new java.lang.String[] { "Name", "MinDistance", "MaxDistance", "NumberOfObjects", "Objects", "Rerank", "Generative", "GenerativeResult", "Rerank", "Generative", "GenerativeResult", }); internal_static_weaviate_v1_SearchResult_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_weaviate_v1_SearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_SearchResult_descriptor, - new java.lang.String[] { "Properties", "Metadata", }); + new java.lang.String[] { "Properties", "Metadata", "Generative", "Generative", }); internal_static_weaviate_v1_MetadataResult_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_weaviate_v1_MetadataResult_fieldAccessorTable = new @@ -44631,6 +46248,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesR new java.lang.String[] { "Properties", "PropName", }); com.google.protobuf.StructProto.getDescriptor(); io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.getDescriptor(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.getDescriptor(); io.weaviate.client.grpc.protocol.v1.WeaviateProtoProperties.getDescriptor(); } diff --git a/src/main/proto/v1/generative.proto b/src/main/proto/v1/generative.proto new file mode 100644 index 00000000..758a38a0 --- /dev/null +++ b/src/main/proto/v1/generative.proto @@ -0,0 +1,249 @@ +syntax = "proto3"; + +package weaviate.v1; + +import "v1/base.proto"; + +option go_package = "github.com/weaviate/weaviate/grpc/generated;protocol"; +option java_package = "io.weaviate.client.grpc.protocol.v1"; +option java_outer_classname = "WeaviateProtoGenerative"; + +message GenerativeSearch { + message Single { + string prompt = 1; + bool debug = 2; + // only allow one at the beginning, but multiple in the future + repeated GenerativeProvider queries = 3; + } + + message Grouped { + string task = 1; + optional TextArray properties = 2; + } + + string single_response_prompt = 1 [deprecated = true]; + string grouped_response_task = 2 [deprecated = true]; + repeated string grouped_properties = 3 [deprecated = true]; + Single single = 4; + Grouped grouped = 5; +} + + + +message GenerativeProvider { + bool return_metadata = 1; + oneof kind { + GenerativeAnthropic anthropic = 2; + GenerativeAnyscale anyscale = 3; + GenerativeAWS aws = 4; + GenerativeCohere cohere = 5; + GenerativeDummy dummy = 6; + GenerativeMistral mistral = 7; + GenerativeOctoAI octoai = 8; + GenerativeOllama ollama = 9; + GenerativeOpenAI openai = 10; + GenerativeGoogle google = 11; + } +} + +message GenerativeAnthropic{ + optional string base_url = 1; + optional int64 max_tokens = 2; + optional string model = 3; + optional double temperature = 4; + optional int64 top_k = 5; + optional double top_p = 6; + optional TextArray stop_sequences = 7; +} + +message GenerativeAnyscale{ + optional string base_url = 1; + optional string model = 2; + optional double temperature = 3; +} + +message GenerativeAWS{ + optional string model = 3; + optional double temperature = 8; +} + +message GenerativeCohere{ + optional string base_url = 1; + optional double frequency_penalty = 2; + optional int64 max_tokens = 3; + optional string model = 4; + optional int64 k = 5; + optional double p = 6; + optional double presence_penalty = 7; + optional TextArray stop_sequences = 8; + optional double temperature = 9; +} + +message GenerativeDummy{ +} + +message GenerativeMistral{ + optional string base_url = 1; + optional int64 max_tokens = 2; + optional string model = 3; + optional double temperature = 4; + optional double top_p = 5; +} + +message GenerativeOctoAI{ + optional string base_url = 1; + optional int64 max_tokens = 2; + optional string model = 3; + optional int64 n = 4; + optional double temperature = 5; + optional double top_p = 6; +} + +message GenerativeOllama{ + optional string api_endpoint = 1; + optional string model = 2; + optional double temperature = 3; +} + +message GenerativeOpenAI{ + optional double frequency_penalty = 1; + optional bool log_probs = 2; + optional int64 max_tokens = 3; + string model = 4; + optional int64 n = 5; + optional double presence_penalty = 6; + optional TextArray stop = 7; + optional double temperature = 8; + optional double top_p = 9; + optional int64 top_log_probs = 10; +} + +message GenerativeGoogle{ + optional double frequency_penalty = 1; + optional int64 max_tokens = 2; + optional string model = 3; + optional double presence_penalty = 4; + optional double temperature = 5; + optional int64 top_k = 6; + optional double top_p = 7; + optional TextArray stop_sequences = 8; +} + +message GenerativeAnthropicMetadata { + message Usage { + int64 input_tokens = 1; + int64 output_tokens = 2; + } + Usage usage = 1; +} + +message GenerativeAnyscaleMetadata { +} + +message GenerativeAWSMetadata { +} + +message GenerativeCohereMetadata { + message ApiVersion { + optional string version = 1; + optional bool is_deprecated = 2; + optional bool is_experimental = 3; + } + message BilledUnits { + optional double input_tokens = 1; + optional double output_tokens = 2; + optional double search_units = 3; + optional double classifications = 4; + } + message Tokens { + optional double input_tokens = 1; + optional double output_tokens = 2; + } + optional ApiVersion api_version = 1; + optional BilledUnits billed_units = 2; + optional Tokens tokens = 3; + optional TextArray warnings = 4; +} + +message GenerativeDummyMetadata { +} + +message GenerativeMistralMetadata { + message Usage { + optional int64 prompt_tokens = 1; + optional int64 completion_tokens = 2; + optional int64 total_tokens = 3; + } + optional Usage usage = 1; +} + +message GenerativeOctoAIMetadata { + message Usage { + optional int64 prompt_tokens = 1; + optional int64 completion_tokens = 2; + optional int64 total_tokens = 3; + } + optional Usage usage = 1; +} + +message GenerativeOllamaMetadata { +} + +message GenerativeOpenAIMetadata { + message Usage { + optional int64 prompt_tokens = 1; + optional int64 completion_tokens = 2; + optional int64 total_tokens = 3; + } + optional Usage usage = 1; +} + +message GenerativeGoogleMetadata { + message TokenCount { + optional int64 total_billable_characters = 1; + optional int64 total_tokens = 2; + } + message TokenMetadata { + optional TokenCount input_token_count = 1; + optional TokenCount output_token_count = 2; + } + message Metadata { + optional TokenMetadata token_metadata = 1; + } + message UsageMetadata { + optional int64 prompt_token_count = 1; + optional int64 candidates_token_count = 2; + optional int64 total_token_count = 3; + } + optional Metadata metadata = 1; + optional UsageMetadata usage_metadata = 2; +} + +message GenerativeMetadata { + oneof kind { + GenerativeAnthropicMetadata anthropic = 1; + GenerativeAnyscaleMetadata anyscale = 2; + GenerativeAWSMetadata aws = 3; + GenerativeCohereMetadata cohere = 4; + GenerativeDummyMetadata dummy = 5; + GenerativeMistralMetadata mistral = 6; + GenerativeOctoAIMetadata octoai = 7; + GenerativeOllamaMetadata ollama = 8; + GenerativeOpenAIMetadata openai = 9; + GenerativeGoogleMetadata google = 10; + } +} + +message GenerativeReply { + string result = 1; + optional GenerativeDebug debug = 2; + optional GenerativeMetadata metadata = 3; +} + +message GenerativeResult { + repeated GenerativeReply values = 1; +} + +message GenerativeDebug { + optional string full_prompt = 1; +} diff --git a/src/main/proto/v1/search_get.proto b/src/main/proto/v1/search_get.proto index 070cdb51..11b1b22d 100644 --- a/src/main/proto/v1/search_get.proto +++ b/src/main/proto/v1/search_get.proto @@ -4,6 +4,7 @@ package weaviate.v1; import "google/protobuf/struct.proto"; import "v1/base.proto"; +import "v1/generative.proto"; import "v1/properties.proto"; option go_package = "github.com/weaviate/weaviate/grpc/generated;protocol"; @@ -49,7 +50,8 @@ message SearchRequest { optional Rerank rerank = 61; bool uses_123_api = 100 [deprecated = true]; - bool uses_125_api = 101; + bool uses_125_api = 101 [deprecated = true]; + bool uses_127_api = 102; } message GroupBy { @@ -70,11 +72,6 @@ message SortBy { repeated string path = 2; } -message GenerativeSearch { - string single_response_prompt = 1; - string grouped_response_task = 2; - repeated string grouped_properties = 3; -} message MetadataRequest { bool uuid = 1; @@ -111,10 +108,17 @@ enum CombinationMethod { COMBINATION_METHOD_TYPE_MANUAL = 5; } +message WeightsForTarget { + string target = 1; + float weight = 2; +} + + message Targets { repeated string target_vectors = 1; CombinationMethod combination = 2; - map weights = 3; + map weights = 3 [deprecated = true]; // deprecated in 1.26.2 - use weights_for_targets + repeated WeightsForTarget weights_for_targets = 4; } message Hybrid { @@ -134,6 +138,12 @@ message Hybrid { 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; + + // only vector distance, but keep it extendable + oneof threshold { + float vector_distance = 20; + }; + } message NearTextSearch { @@ -213,6 +223,11 @@ message RefPropertiesRequest { string target_collection = 4; } +message VectorForTarget { + string name = 1; + bytes vector_bytes = 2; +} + message NearVector { // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED repeated float vector = 1 [deprecated = true]; // will be removed in the future, use vector_bytes @@ -221,7 +236,8 @@ message NearVector { bytes vector_bytes = 4; repeated string target_vectors = 5 [deprecated = true]; // deprecated in 1.26 - use targets Targets targets = 6; - map vector_per_target = 7; + map vector_per_target = 7 [deprecated = true]; // deprecated in 1.26.2 - use vector_for_targets + repeated VectorForTarget vector_for_targets = 8; } message NearObject { @@ -240,18 +256,15 @@ message Rerank { message SearchReply { float took = 1; repeated SearchResult results = 2; - optional string generative_grouped_result = 3; + optional string generative_grouped_result = 3 [deprecated = true]; repeated GroupByResult group_by_results = 4; + optional GenerativeResult generative_grouped_results = 5; } message RerankReply { double score = 1; } -message GenerativeReply { - string result = 1; -} - message GroupByResult { string name = 1; float min_distance = 2; @@ -259,14 +272,17 @@ message GroupByResult { int64 number_of_objects = 4; repeated SearchResult objects = 5; optional RerankReply rerank = 6; - optional GenerativeReply generative = 7; + optional GenerativeReply generative = 7 [deprecated = true]; + optional GenerativeResult generative_result = 8; } message SearchResult { PropertiesResult properties = 1; MetadataResult metadata = 2; + optional GenerativeResult generative = 3; } + message MetadataResult { string id = 1; // protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED @@ -284,8 +300,8 @@ message MetadataResult { string explain_score = 13; bool explain_score_present = 14; optional bool is_consistent = 15; - string generative = 16; - bool generative_present = 17; + string generative = 16 [deprecated = true]; + bool generative_present = 17 [deprecated = true]; bool is_consistent_present = 18; bytes vector_bytes = 19; bytes id_as_bytes = 20;