From 2afcb952806e45395a5789892099fe4632a5aef4 Mon Sep 17 00:00:00 2001 From: Marcin Antas Date: Thu, 31 Oct 2024 18:52:09 +0100 Subject: [PATCH] Update proto files to latest v1.27 versions --- .../protocol/v1/WeaviateProtoGenerative.java | 27528 ++++++++++------ src/main/proto/v1/generative.proto | 109 +- 2 files changed, 16963 insertions(+), 10674 deletions(-) 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 index de0ce082..28c7dec2 100644 --- a/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoGenerative.java +++ b/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoGenerative.java @@ -21,14 +21,14 @@ public interface GenerativeSearchOrBuilder extends /** * string single_response_prompt = 1 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. - * See v1/generative.proto;l=23 + * See v1/generative.proto;l=25 * @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 + * See v1/generative.proto;l=25 * @return The bytes for singleResponsePrompt. */ @java.lang.Deprecated com.google.protobuf.ByteString @@ -37,14 +37,14 @@ public interface GenerativeSearchOrBuilder extends /** * string grouped_response_task = 2 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. - * See v1/generative.proto;l=24 + * See v1/generative.proto;l=26 * @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 + * See v1/generative.proto;l=26 * @return The bytes for groupedResponseTask. */ @java.lang.Deprecated com.google.protobuf.ByteString @@ -53,7 +53,7 @@ public interface GenerativeSearchOrBuilder extends /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @return A list containing the groupedProperties. */ @java.lang.Deprecated java.util.List @@ -61,14 +61,14 @@ public interface GenerativeSearchOrBuilder extends /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @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 + * See v1/generative.proto;l=27 * @param index The index of the element to return. * @return The groupedProperties at the given index. */ @@ -76,7 +76,7 @@ public interface GenerativeSearchOrBuilder extends /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param index The index of the value to return. * @return The bytes of the groupedProperties at the given index. */ @@ -1297,6 +1297,50 @@ public interface GroupedOrBuilder extends * optional .weaviate.v1.TextArray properties = 2; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getPropertiesOrBuilder(); + + /** + *
+       * 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.Grouped} @@ -1312,6 +1356,7 @@ private Grouped(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private Grouped() { task_ = ""; + queries_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1400,6 +1445,67 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_; } + 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() { @@ -1420,6 +1526,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getProperties()); } + for (int i = 0; i < queries_.size(); i++) { + output.writeMessage(3, queries_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1436,6 +1545,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getProperties()); } + 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; @@ -1458,6 +1571,8 @@ public boolean equals(final java.lang.Object obj) { if (!getProperties() .equals(other.getProperties())) return false; } + if (!getQueriesList() + .equals(other.getQueriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1475,6 +1590,10 @@ public int hashCode() { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getProperties().hashCode(); } + if (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1606,6 +1725,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); + getQueriesFieldBuilder(); } } @java.lang.Override @@ -1618,6 +1738,13 @@ public Builder clear() { propertiesBuilder_.dispose(); propertiesBuilder_ = null; } + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + } else { + queries_ = null; + queriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -1644,11 +1771,24 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea @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); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped 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.Grouped result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1716,6 +1856,32 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenera if (other.hasProperties()) { mergeProperties(other.getProperties()); } + 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; @@ -1754,6 +1920,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + 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 @@ -1963,6 +2142,318 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder } return propertiesBuilder_; } + + 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) { @@ -2034,7 +2525,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea /** * string single_response_prompt = 1 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. - * See v1/generative.proto;l=23 + * See v1/generative.proto;l=25 * @return The singleResponsePrompt. */ @java.lang.Override @@ -2053,7 +2544,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea /** * string single_response_prompt = 1 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. - * See v1/generative.proto;l=23 + * See v1/generative.proto;l=25 * @return The bytes for singleResponsePrompt. */ @java.lang.Override @@ -2077,7 +2568,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea /** * string grouped_response_task = 2 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. - * See v1/generative.proto;l=24 + * See v1/generative.proto;l=26 * @return The groupedResponseTask. */ @java.lang.Override @@ -2096,7 +2587,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea /** * string grouped_response_task = 2 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. - * See v1/generative.proto;l=24 + * See v1/generative.proto;l=26 * @return The bytes for groupedResponseTask. */ @java.lang.Override @@ -2121,7 +2612,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @return A list containing the groupedProperties. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -2131,7 +2622,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @return The count of groupedProperties. */ @java.lang.Deprecated public int getGroupedPropertiesCount() { @@ -2140,7 +2631,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param index The index of the element to return. * @return The groupedProperties at the given index. */ @@ -2150,7 +2641,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSea /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param index The index of the value to return. * @return The bytes of the groupedProperties at the given index. */ @@ -2687,7 +3178,7 @@ public Builder mergeFrom( /** * string single_response_prompt = 1 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. - * See v1/generative.proto;l=23 + * See v1/generative.proto;l=25 * @return The singleResponsePrompt. */ @java.lang.Deprecated public java.lang.String getSingleResponsePrompt() { @@ -2705,7 +3196,7 @@ public Builder mergeFrom( /** * string single_response_prompt = 1 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. - * See v1/generative.proto;l=23 + * See v1/generative.proto;l=25 * @return The bytes for singleResponsePrompt. */ @java.lang.Deprecated public com.google.protobuf.ByteString @@ -2724,7 +3215,7 @@ public Builder mergeFrom( /** * string single_response_prompt = 1 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. - * See v1/generative.proto;l=23 + * See v1/generative.proto;l=25 * @param value The singleResponsePrompt to set. * @return This builder for chaining. */ @@ -2739,7 +3230,7 @@ public Builder mergeFrom( /** * string single_response_prompt = 1 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. - * See v1/generative.proto;l=23 + * See v1/generative.proto;l=25 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearSingleResponsePrompt() { @@ -2751,7 +3242,7 @@ public Builder mergeFrom( /** * string single_response_prompt = 1 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated. - * See v1/generative.proto;l=23 + * See v1/generative.proto;l=25 * @param value The bytes for singleResponsePrompt to set. * @return This builder for chaining. */ @@ -2769,7 +3260,7 @@ public Builder mergeFrom( /** * string grouped_response_task = 2 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. - * See v1/generative.proto;l=24 + * See v1/generative.proto;l=26 * @return The groupedResponseTask. */ @java.lang.Deprecated public java.lang.String getGroupedResponseTask() { @@ -2787,7 +3278,7 @@ public Builder mergeFrom( /** * string grouped_response_task = 2 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. - * See v1/generative.proto;l=24 + * See v1/generative.proto;l=26 * @return The bytes for groupedResponseTask. */ @java.lang.Deprecated public com.google.protobuf.ByteString @@ -2806,7 +3297,7 @@ public Builder mergeFrom( /** * string grouped_response_task = 2 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. - * See v1/generative.proto;l=24 + * See v1/generative.proto;l=26 * @param value The groupedResponseTask to set. * @return This builder for chaining. */ @@ -2821,7 +3312,7 @@ public Builder mergeFrom( /** * string grouped_response_task = 2 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. - * See v1/generative.proto;l=24 + * See v1/generative.proto;l=26 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearGroupedResponseTask() { @@ -2833,7 +3324,7 @@ public Builder mergeFrom( /** * string grouped_response_task = 2 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated. - * See v1/generative.proto;l=24 + * See v1/generative.proto;l=26 * @param value The bytes for groupedResponseTask to set. * @return This builder for chaining. */ @@ -2858,7 +3349,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @return A list containing the groupedProperties. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList @@ -2869,7 +3360,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @return The count of groupedProperties. */ @java.lang.Deprecated public int getGroupedPropertiesCount() { @@ -2878,7 +3369,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param index The index of the element to return. * @return The groupedProperties at the given index. */ @@ -2888,7 +3379,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param index The index of the value to return. * @return The bytes of the groupedProperties at the given index. */ @@ -2899,7 +3390,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param index The index to set the value at. * @param value The groupedProperties to set. * @return This builder for chaining. @@ -2916,7 +3407,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param value The groupedProperties to add. * @return This builder for chaining. */ @@ -2932,7 +3423,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param values The groupedProperties to add. * @return This builder for chaining. */ @@ -2948,7 +3439,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearGroupedProperties() { @@ -2961,7 +3452,7 @@ private void ensureGroupedPropertiesIsMutable() { /** * repeated string grouped_properties = 3 [deprecated = true]; * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated. - * See v1/generative.proto;l=25 + * See v1/generative.proto;l=27 * @param value The bytes of the groupedProperties to add. * @return This builder for chaining. */ @@ -3382,65 +3873,80 @@ public interface GenerativeProviderOrBuilder extends 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; + * .weaviate.v1.GenerativeOllama ollama = 8; * @return Whether the ollama field is set. */ boolean hasOllama(); /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOllama ollama = 8; * @return The ollama. */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama(); /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOllama ollama = 8; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder(); /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeOpenAI openai = 9; * @return Whether the openai field is set. */ boolean hasOpenai(); /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeOpenAI openai = 9; * @return The openai. */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai(); /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeOpenAI openai = 9; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder(); /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeGoogle google = 10; * @return Whether the google field is set. */ boolean hasGoogle(); /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeGoogle google = 10; * @return The google. */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle(); /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeGoogle google = 10; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder(); + /** + * .weaviate.v1.GenerativeDatabricks databricks = 11; + * @return Whether the databricks field is set. + */ + boolean hasDatabricks(); + /** + * .weaviate.v1.GenerativeDatabricks databricks = 11; + * @return The databricks. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks getDatabricks(); + /** + * .weaviate.v1.GenerativeDatabricks databricks = 11; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksOrBuilder getDatabricksOrBuilder(); + + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + * @return Whether the friendliai field is set. + */ + boolean hasFriendliai(); + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + * @return The friendliai. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI getFriendliai(); + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIOrBuilder getFriendliaiOrBuilder(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.KindCase getKindCase(); } /** @@ -3490,10 +3996,11 @@ public enum KindCase COHERE(5), DUMMY(6), MISTRAL(7), - OCTOAI(8), - OLLAMA(9), - OPENAI(10), - GOOGLE(11), + OLLAMA(8), + OPENAI(9), + GOOGLE(10), + DATABRICKS(11), + FRIENDLIAI(12), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -3517,10 +4024,11 @@ public static KindCase forNumber(int value) { 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 8: return OLLAMA; + case 9: return OPENAI; + case 10: return GOOGLE; + case 11: return DATABRICKS; + case 12: return FRIENDLIAI; case 0: return KIND_NOT_SET; default: return null; } @@ -3733,130 +4241,161 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMis 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; + public static final int OLLAMA_FIELD_NUMBER = 8; /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOllama ollama = 8; * @return Whether the ollama field is set. */ @java.lang.Override public boolean hasOllama() { - return kindCase_ == 9; + return kindCase_ == 8; } /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOllama ollama = 8; * @return The ollama. */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama() { - if (kindCase_ == 9) { + if (kindCase_ == 8) { 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; + * .weaviate.v1.GenerativeOllama ollama = 8; */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder() { - if (kindCase_ == 9) { + if (kindCase_ == 8) { 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; + public static final int OPENAI_FIELD_NUMBER = 9; /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeOpenAI openai = 9; * @return Whether the openai field is set. */ @java.lang.Override public boolean hasOpenai() { - return kindCase_ == 10; + return kindCase_ == 9; } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeOpenAI openai = 9; * @return The openai. */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai() { - if (kindCase_ == 10) { + if (kindCase_ == 9) { 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; + * .weaviate.v1.GenerativeOpenAI openai = 9; */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder() { - if (kindCase_ == 10) { + if (kindCase_ == 9) { 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; + public static final int GOOGLE_FIELD_NUMBER = 10; /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeGoogle google = 10; * @return Whether the google field is set. */ @java.lang.Override public boolean hasGoogle() { - return kindCase_ == 11; + return kindCase_ == 10; } /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeGoogle google = 10; * @return The google. */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle() { - if (kindCase_ == 11) { + if (kindCase_ == 10) { 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; + * .weaviate.v1.GenerativeGoogle google = 10; */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder() { - if (kindCase_ == 11) { + if (kindCase_ == 10) { return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; } return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); } + public static final int DATABRICKS_FIELD_NUMBER = 11; + /** + * .weaviate.v1.GenerativeDatabricks databricks = 11; + * @return Whether the databricks field is set. + */ + @java.lang.Override + public boolean hasDatabricks() { + return kindCase_ == 11; + } + /** + * .weaviate.v1.GenerativeDatabricks databricks = 11; + * @return The databricks. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks getDatabricks() { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeDatabricks databricks = 11; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksOrBuilder getDatabricksOrBuilder() { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.getDefaultInstance(); + } + + public static final int FRIENDLIAI_FIELD_NUMBER = 12; + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + * @return Whether the friendliai field is set. + */ + @java.lang.Override + public boolean hasFriendliai() { + return kindCase_ == 12; + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + * @return The friendliai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI getFriendliai() { + if (kindCase_ == 12) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIOrBuilder getFriendliaiOrBuilder() { + if (kindCase_ == 12) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -3893,16 +4432,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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_); + output.writeMessage(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_); } if (kindCase_ == 9) { - output.writeMessage(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_); + output.writeMessage(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_); } if (kindCase_ == 10) { - output.writeMessage(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_); + output.writeMessage(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_); } if (kindCase_ == 11) { - output.writeMessage(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_); + output.writeMessage(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) kind_); + } + if (kindCase_ == 12) { + output.writeMessage(12, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) kind_); } getUnknownFields().writeTo(output); } @@ -3943,19 +4485,23 @@ public int getSerializedSize() { } if (kindCase_ == 8) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_); + .computeMessageSize(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_); } if (kindCase_ == 9) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_); + .computeMessageSize(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_); } if (kindCase_ == 10) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_); + .computeMessageSize(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_); } if (kindCase_ == 11) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_); + .computeMessageSize(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) kind_); + } + if (kindCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) kind_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4001,21 +4547,25 @@ public boolean equals(final java.lang.Object obj) { .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: + case 9: if (!getOpenai() .equals(other.getOpenai())) return false; break; - case 11: + case 10: if (!getGoogle() .equals(other.getGoogle())) return false; break; + case 11: + if (!getDatabricks() + .equals(other.getDatabricks())) return false; + break; + case 12: + if (!getFriendliai() + .equals(other.getFriendliai())) return false; + break; case 0: default: } @@ -4059,21 +4609,25 @@ public int hashCode() { 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: + case 9: hash = (37 * hash) + OPENAI_FIELD_NUMBER; hash = (53 * hash) + getOpenai().hashCode(); break; - case 11: + case 10: hash = (37 * hash) + GOOGLE_FIELD_NUMBER; hash = (53 * hash) + getGoogle().hashCode(); break; + case 11: + hash = (37 * hash) + DATABRICKS_FIELD_NUMBER; + hash = (53 * hash) + getDatabricks().hashCode(); + break; + case 12: + hash = (37 * hash) + FRIENDLIAI_FIELD_NUMBER; + hash = (53 * hash) + getFriendliai().hashCode(); + break; case 0: default: } @@ -4227,9 +4781,6 @@ public Builder clear() { if (mistralBuilder_ != null) { mistralBuilder_.clear(); } - if (octoaiBuilder_ != null) { - octoaiBuilder_.clear(); - } if (ollamaBuilder_ != null) { ollamaBuilder_.clear(); } @@ -4239,6 +4790,12 @@ public Builder clear() { if (googleBuilder_ != null) { googleBuilder_.clear(); } + if (databricksBuilder_ != null) { + databricksBuilder_.clear(); + } + if (friendliaiBuilder_ != null) { + friendliaiBuilder_.clear(); + } kindCase_ = 0; kind_ = null; return this; @@ -4308,21 +4865,25 @@ private void buildPartialOneofs(io.weaviate.client.grpc.protocol.v1.WeaviateProt 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 && + if (kindCase_ == 9 && openaiBuilder_ != null) { result.kind_ = openaiBuilder_.build(); } - if (kindCase_ == 11 && + if (kindCase_ == 10 && googleBuilder_ != null) { result.kind_ = googleBuilder_.build(); } + if (kindCase_ == 11 && + databricksBuilder_ != null) { + result.kind_ = databricksBuilder_.build(); + } + if (kindCase_ == 12 && + friendliaiBuilder_ != null) { + result.kind_ = friendliaiBuilder_.build(); + } } @java.lang.Override @@ -4397,10 +4958,6 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenera mergeMistral(other.getMistral()); break; } - case OCTOAI: { - mergeOctoai(other.getOctoai()); - break; - } case OLLAMA: { mergeOllama(other.getOllama()); break; @@ -4413,6 +4970,14 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenera mergeGoogle(other.getGoogle()); break; } + case DATABRICKS: { + mergeDatabricks(other.getDatabricks()); + break; + } + case FRIENDLIAI: { + mergeFriendliai(other.getFriendliai()); + break; + } case KIND_NOT_SET: { break; } @@ -4492,32 +5057,39 @@ public Builder mergeFrom( } // case 58 case 66: { input.readMessage( - getOctoaiFieldBuilder().getBuilder(), + getOllamaFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 8; break; } // case 66 case 74: { input.readMessage( - getOllamaFieldBuilder().getBuilder(), + getOpenaiFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 9; break; } // case 74 case 82: { input.readMessage( - getOpenaiFieldBuilder().getBuilder(), + getGoogleFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 10; break; } // case 82 case 90: { input.readMessage( - getGoogleFieldBuilder().getBuilder(), + getDatabricksFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 11; break; } // case 90 + case 98: { + input.readMessage( + getFriendliaiFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 12; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -5435,71 +6007,71 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMis } 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_; + 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.GenerativeOctoAI octoai = 8; - * @return Whether the octoai field is set. + * .weaviate.v1.GenerativeOllama ollama = 8; + * @return Whether the ollama field is set. */ @java.lang.Override - public boolean hasOctoai() { + public boolean hasOllama() { return kindCase_ == 8; } /** - * .weaviate.v1.GenerativeOctoAI octoai = 8; - * @return The octoai. + * .weaviate.v1.GenerativeOllama ollama = 8; + * @return The ollama. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getOctoai() { - if (octoaiBuilder_ == null) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama() { + if (ollamaBuilder_ == null) { if (kindCase_ == 8) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); } else { if (kindCase_ == 8) { - return octoaiBuilder_.getMessage(); + return ollamaBuilder_.getMessage(); } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOctoAI octoai = 8; + * .weaviate.v1.GenerativeOllama ollama = 8; */ - public Builder setOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI value) { - if (octoaiBuilder_ == null) { + 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 { - octoaiBuilder_.setMessage(value); + ollamaBuilder_.setMessage(value); } kindCase_ = 8; return this; } /** - * .weaviate.v1.GenerativeOctoAI octoai = 8; + * .weaviate.v1.GenerativeOllama ollama = 8; */ - public Builder setOctoai( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder builderForValue) { - if (octoaiBuilder_ == null) { + public Builder setOllama( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder builderForValue) { + if (ollamaBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - octoaiBuilder_.setMessage(builderForValue.build()); + ollamaBuilder_.setMessage(builderForValue.build()); } kindCase_ = 8; return this; } /** - * .weaviate.v1.GenerativeOctoAI octoai = 8; + * .weaviate.v1.GenerativeOllama ollama = 8; */ - public Builder mergeOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI value) { - if (octoaiBuilder_ == null) { + public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama value) { + if (ollamaBuilder_ == 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_) + 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; @@ -5507,19 +6079,19 @@ public Builder mergeOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene onChanged(); } else { if (kindCase_ == 8) { - octoaiBuilder_.mergeFrom(value); + ollamaBuilder_.mergeFrom(value); } else { - octoaiBuilder_.setMessage(value); + ollamaBuilder_.setMessage(value); } } kindCase_ = 8; return this; } /** - * .weaviate.v1.GenerativeOctoAI octoai = 8; + * .weaviate.v1.GenerativeOllama ollama = 8; */ - public Builder clearOctoai() { - if (octoaiBuilder_ == null) { + public Builder clearOllama() { + if (ollamaBuilder_ == null) { if (kindCase_ == 8) { kindCase_ = 0; kind_ = null; @@ -5530,118 +6102,118 @@ public Builder clearOctoai() { kindCase_ = 0; kind_ = null; } - octoaiBuilder_.clear(); + ollamaBuilder_.clear(); } return this; } /** - * .weaviate.v1.GenerativeOctoAI octoai = 8; + * .weaviate.v1.GenerativeOllama ollama = 8; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder getOctoaiBuilder() { - return getOctoaiFieldBuilder().getBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder getOllamaBuilder() { + return getOllamaFieldBuilder().getBuilder(); } /** - * .weaviate.v1.GenerativeOctoAI octoai = 8; + * .weaviate.v1.GenerativeOllama ollama = 8; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder getOctoaiOrBuilder() { - if ((kindCase_ == 8) && (octoaiBuilder_ != null)) { - return octoaiBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder() { + if ((kindCase_ == 8) && (ollamaBuilder_ != null)) { + return ollamaBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 8) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOctoAI octoai = 8; + * .weaviate.v1.GenerativeOllama ollama = 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) { + 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_ == 8)) { - kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.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_, + 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_ = 8; onChanged(); - return octoaiBuilder_; + return ollamaBuilder_; } 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_; + 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.GenerativeOllama ollama = 9; - * @return Whether the ollama field is set. + * .weaviate.v1.GenerativeOpenAI openai = 9; + * @return Whether the openai field is set. */ @java.lang.Override - public boolean hasOllama() { + public boolean hasOpenai() { return kindCase_ == 9; } /** - * .weaviate.v1.GenerativeOllama ollama = 9; - * @return The ollama. + * .weaviate.v1.GenerativeOpenAI openai = 9; + * @return The openai. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama() { - if (ollamaBuilder_ == null) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai() { + if (openaiBuilder_ == null) { if (kindCase_ == 9) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); } else { if (kindCase_ == 9) { - return ollamaBuilder_.getMessage(); + return openaiBuilder_.getMessage(); } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOpenAI openai = 9; */ - public Builder setOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama value) { - if (ollamaBuilder_ == null) { + 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 { - ollamaBuilder_.setMessage(value); + openaiBuilder_.setMessage(value); } kindCase_ = 9; return this; } /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOpenAI openai = 9; */ - public Builder setOllama( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder builderForValue) { - if (ollamaBuilder_ == null) { + public Builder setOpenai( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder builderForValue) { + if (openaiBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - ollamaBuilder_.setMessage(builderForValue.build()); + openaiBuilder_.setMessage(builderForValue.build()); } kindCase_ = 9; return this; } /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOpenAI openai = 9; */ - public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama value) { - if (ollamaBuilder_ == null) { + public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI value) { + if (openaiBuilder_ == 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_) + 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; @@ -5649,19 +6221,19 @@ public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene onChanged(); } else { if (kindCase_ == 9) { - ollamaBuilder_.mergeFrom(value); + openaiBuilder_.mergeFrom(value); } else { - ollamaBuilder_.setMessage(value); + openaiBuilder_.setMessage(value); } } kindCase_ = 9; return this; } /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOpenAI openai = 9; */ - public Builder clearOllama() { - if (ollamaBuilder_ == null) { + public Builder clearOpenai() { + if (openaiBuilder_ == null) { if (kindCase_ == 9) { kindCase_ = 0; kind_ = null; @@ -5672,118 +6244,118 @@ public Builder clearOllama() { kindCase_ = 0; kind_ = null; } - ollamaBuilder_.clear(); + openaiBuilder_.clear(); } return this; } /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOpenAI openai = 9; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder getOllamaBuilder() { - return getOllamaFieldBuilder().getBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder getOpenaiBuilder() { + return getOpenaiFieldBuilder().getBuilder(); } /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOpenAI openai = 9; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder() { - if ((kindCase_ == 9) && (ollamaBuilder_ != null)) { - return ollamaBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder() { + if ((kindCase_ == 9) && (openaiBuilder_ != null)) { + return openaiBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 9) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOllama ollama = 9; + * .weaviate.v1.GenerativeOpenAI openai = 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) { + 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_ == 9)) { - kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.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_, + 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_ = 9; onChanged(); - return ollamaBuilder_; + return openaiBuilder_; } 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_; + 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.GenerativeOpenAI openai = 10; - * @return Whether the openai field is set. + * .weaviate.v1.GenerativeGoogle google = 10; + * @return Whether the google field is set. */ @java.lang.Override - public boolean hasOpenai() { + public boolean hasGoogle() { return kindCase_ == 10; } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; - * @return The openai. + * .weaviate.v1.GenerativeGoogle google = 10; + * @return The google. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai() { - if (openaiBuilder_ == null) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle() { + if (googleBuilder_ == null) { if (kindCase_ == 10) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); } else { if (kindCase_ == 10) { - return openaiBuilder_.getMessage(); + return googleBuilder_.getMessage(); } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeGoogle google = 10; */ - public Builder setOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI value) { - if (openaiBuilder_ == null) { + 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 { - openaiBuilder_.setMessage(value); + googleBuilder_.setMessage(value); } kindCase_ = 10; return this; } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeGoogle google = 10; */ - public Builder setOpenai( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder builderForValue) { - if (openaiBuilder_ == null) { + public Builder setGoogle( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder builderForValue) { + if (googleBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - openaiBuilder_.setMessage(builderForValue.build()); + googleBuilder_.setMessage(builderForValue.build()); } kindCase_ = 10; return this; } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeGoogle google = 10; */ - public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI value) { - if (openaiBuilder_ == null) { + public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle value) { + if (googleBuilder_ == 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_) + 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; @@ -5791,19 +6363,19 @@ public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene onChanged(); } else { if (kindCase_ == 10) { - openaiBuilder_.mergeFrom(value); + googleBuilder_.mergeFrom(value); } else { - openaiBuilder_.setMessage(value); + googleBuilder_.setMessage(value); } } kindCase_ = 10; return this; } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeGoogle google = 10; */ - public Builder clearOpenai() { - if (openaiBuilder_ == null) { + public Builder clearGoogle() { + if (googleBuilder_ == null) { if (kindCase_ == 10) { kindCase_ = 0; kind_ = null; @@ -5814,118 +6386,118 @@ public Builder clearOpenai() { kindCase_ = 0; kind_ = null; } - openaiBuilder_.clear(); + googleBuilder_.clear(); } return this; } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeGoogle google = 10; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder getOpenaiBuilder() { - return getOpenaiFieldBuilder().getBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder getGoogleBuilder() { + return getGoogleFieldBuilder().getBuilder(); } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeGoogle google = 10; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder() { - if ((kindCase_ == 10) && (openaiBuilder_ != null)) { - return openaiBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder() { + if ((kindCase_ == 10) && (googleBuilder_ != null)) { + return googleBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 10) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOpenAI openai = 10; + * .weaviate.v1.GenerativeGoogle google = 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) { + 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_ == 10)) { - kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.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_, + 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_ = 10; onChanged(); - return openaiBuilder_; + return googleBuilder_; } 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_; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksOrBuilder> databricksBuilder_; /** - * .weaviate.v1.GenerativeGoogle google = 11; - * @return Whether the google field is set. + * .weaviate.v1.GenerativeDatabricks databricks = 11; + * @return Whether the databricks field is set. */ @java.lang.Override - public boolean hasGoogle() { + public boolean hasDatabricks() { return kindCase_ == 11; } /** - * .weaviate.v1.GenerativeGoogle google = 11; - * @return The google. + * .weaviate.v1.GenerativeDatabricks databricks = 11; + * @return The databricks. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle() { - if (googleBuilder_ == null) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks getDatabricks() { + if (databricksBuilder_ == null) { if (kindCase_ == 11) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.getDefaultInstance(); } else { if (kindCase_ == 11) { - return googleBuilder_.getMessage(); + return databricksBuilder_.getMessage(); } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeDatabricks databricks = 11; */ - public Builder setGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle value) { - if (googleBuilder_ == null) { + public Builder setDatabricks(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks value) { + if (databricksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { - googleBuilder_.setMessage(value); + databricksBuilder_.setMessage(value); } kindCase_ = 11; return this; } /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeDatabricks databricks = 11; */ - public Builder setGoogle( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder builderForValue) { - if (googleBuilder_ == null) { + public Builder setDatabricks( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.Builder builderForValue) { + if (databricksBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - googleBuilder_.setMessage(builderForValue.build()); + databricksBuilder_.setMessage(builderForValue.build()); } kindCase_ = 11; return this; } /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeDatabricks databricks = 11; */ - public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle value) { - if (googleBuilder_ == null) { + public Builder mergeDatabricks(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks value) { + if (databricksBuilder_ == 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_) + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; @@ -5933,19 +6505,19 @@ public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene onChanged(); } else { if (kindCase_ == 11) { - googleBuilder_.mergeFrom(value); + databricksBuilder_.mergeFrom(value); } else { - googleBuilder_.setMessage(value); + databricksBuilder_.setMessage(value); } } kindCase_ = 11; return this; } /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeDatabricks databricks = 11; */ - public Builder clearGoogle() { - if (googleBuilder_ == null) { + public Builder clearDatabricks() { + if (databricksBuilder_ == null) { if (kindCase_ == 11) { kindCase_ = 0; kind_ = null; @@ -5956,50 +6528,192 @@ public Builder clearGoogle() { kindCase_ = 0; kind_ = null; } - googleBuilder_.clear(); + databricksBuilder_.clear(); } return this; } /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeDatabricks databricks = 11; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder getGoogleBuilder() { - return getGoogleFieldBuilder().getBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.Builder getDatabricksBuilder() { + return getDatabricksFieldBuilder().getBuilder(); } /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeDatabricks databricks = 11; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder() { - if ((kindCase_ == 11) && (googleBuilder_ != null)) { - return googleBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksOrBuilder getDatabricksOrBuilder() { + if ((kindCase_ == 11) && (databricksBuilder_ != null)) { + return databricksBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 11) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeGoogle google = 11; + * .weaviate.v1.GenerativeDatabricks databricks = 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) { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksOrBuilder> + getDatabricksFieldBuilder() { + if (databricksBuilder_ == null) { if (!(kindCase_ == 11)) { - kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.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_, + databricksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 11; onChanged(); - return googleBuilder_; + return databricksBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIOrBuilder> friendliaiBuilder_; + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + * @return Whether the friendliai field is set. + */ + @java.lang.Override + public boolean hasFriendliai() { + return kindCase_ == 12; + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + * @return The friendliai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI getFriendliai() { + if (friendliaiBuilder_ == null) { + if (kindCase_ == 12) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance(); + } else { + if (kindCase_ == 12) { + return friendliaiBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + public Builder setFriendliai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI value) { + if (friendliaiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + friendliaiBuilder_.setMessage(value); + } + kindCase_ = 12; + return this; + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + public Builder setFriendliai( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.Builder builderForValue) { + if (friendliaiBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + friendliaiBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 12; + return this; + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + public Builder mergeFriendliai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI value) { + if (friendliaiBuilder_ == null) { + if (kindCase_ == 12 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 12) { + friendliaiBuilder_.mergeFrom(value); + } else { + friendliaiBuilder_.setMessage(value); + } + } + kindCase_ = 12; + return this; + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + public Builder clearFriendliai() { + if (friendliaiBuilder_ == null) { + if (kindCase_ == 12) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 12) { + kindCase_ = 0; + kind_ = null; + } + friendliaiBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.Builder getFriendliaiBuilder() { + return getFriendliaiFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIOrBuilder getFriendliaiOrBuilder() { + if ((kindCase_ == 12) && (friendliaiBuilder_ != null)) { + return friendliaiBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 12) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeFriendliAI friendliai = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIOrBuilder> + getFriendliaiFieldBuilder() { + if (friendliaiBuilder_ == null) { + if (!(kindCase_ == 12)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance(); + } + friendliaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 12; + onChanged(); + return friendliaiBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -8314,6 +9028,91 @@ public interface GenerativeAWSOrBuilder extends * @return The temperature. */ double getTemperature(); + + /** + * optional string service = 9; + * @return Whether the service field is set. + */ + boolean hasService(); + /** + * optional string service = 9; + * @return The service. + */ + java.lang.String getService(); + /** + * optional string service = 9; + * @return The bytes for service. + */ + com.google.protobuf.ByteString + getServiceBytes(); + + /** + * optional string region = 10; + * @return Whether the region field is set. + */ + boolean hasRegion(); + /** + * optional string region = 10; + * @return The region. + */ + java.lang.String getRegion(); + /** + * optional string region = 10; + * @return The bytes for region. + */ + com.google.protobuf.ByteString + getRegionBytes(); + + /** + * optional string endpoint = 11; + * @return Whether the endpoint field is set. + */ + boolean hasEndpoint(); + /** + * optional string endpoint = 11; + * @return The endpoint. + */ + java.lang.String getEndpoint(); + /** + * optional string endpoint = 11; + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString + getEndpointBytes(); + + /** + * optional string target_model = 12; + * @return Whether the targetModel field is set. + */ + boolean hasTargetModel(); + /** + * optional string target_model = 12; + * @return The targetModel. + */ + java.lang.String getTargetModel(); + /** + * optional string target_model = 12; + * @return The bytes for targetModel. + */ + com.google.protobuf.ByteString + getTargetModelBytes(); + + /** + * optional string target_variant = 13; + * @return Whether the targetVariant field is set. + */ + boolean hasTargetVariant(); + /** + * optional string target_variant = 13; + * @return The targetVariant. + */ + java.lang.String getTargetVariant(); + /** + * optional string target_variant = 13; + * @return The bytes for targetVariant. + */ + com.google.protobuf.ByteString + getTargetVariantBytes(); } /** * Protobuf type {@code weaviate.v1.GenerativeAWS} @@ -8329,6 +9128,11 @@ private GenerativeAWS(com.google.protobuf.GeneratedMessageV3.Builder builder) } private GenerativeAWS() { model_ = ""; + service_ = ""; + region_ = ""; + endpoint_ = ""; + targetModel_ = ""; + targetVariant_ = ""; } @java.lang.Override @@ -8418,6 +9222,241 @@ public double getTemperature() { return temperature_; } + public static final int SERVICE_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + /** + * optional string service = 9; + * @return Whether the service field is set. + */ + @java.lang.Override + public boolean hasService() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string service = 9; + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + 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(); + service_ = s; + return s; + } + } + /** + * optional string service = 9; + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * optional string region = 10; + * @return Whether the region field is set. + */ + @java.lang.Override + public boolean hasRegion() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string region = 10; + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * optional string region = 10; + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINT_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; + /** + * optional string endpoint = 11; + * @return Whether the endpoint field is set. + */ + @java.lang.Override + public boolean hasEndpoint() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string endpoint = 11; + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + 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(); + endpoint_ = s; + return s; + } + } + /** + * optional string endpoint = 11; + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_MODEL_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object targetModel_ = ""; + /** + * optional string target_model = 12; + * @return Whether the targetModel field is set. + */ + @java.lang.Override + public boolean hasTargetModel() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string target_model = 12; + * @return The targetModel. + */ + @java.lang.Override + public java.lang.String getTargetModel() { + java.lang.Object ref = targetModel_; + 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(); + targetModel_ = s; + return s; + } + } + /** + * optional string target_model = 12; + * @return The bytes for targetModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetModelBytes() { + java.lang.Object ref = targetModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VARIANT_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object targetVariant_ = ""; + /** + * optional string target_variant = 13; + * @return Whether the targetVariant field is set. + */ + @java.lang.Override + public boolean hasTargetVariant() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string target_variant = 13; + * @return The targetVariant. + */ + @java.lang.Override + public java.lang.String getTargetVariant() { + java.lang.Object ref = targetVariant_; + 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(); + targetVariant_ = s; + return s; + } + } + /** + * optional string target_variant = 13; + * @return The bytes for targetVariant. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetVariantBytes() { + java.lang.Object ref = targetVariant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetVariant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -8438,6 +9477,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(8, temperature_); } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, service_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, region_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endpoint_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, targetModel_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, targetVariant_); + } getUnknownFields().writeTo(output); } @@ -8454,6 +9508,21 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(8, temperature_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, service_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, region_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endpoint_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, targetModel_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, targetVariant_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8480,6 +9549,31 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits( other.getTemperature())) return false; } + if (hasService() != other.hasService()) return false; + if (hasService()) { + if (!getService() + .equals(other.getService())) return false; + } + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion() + .equals(other.getRegion())) return false; + } + if (hasEndpoint() != other.hasEndpoint()) return false; + if (hasEndpoint()) { + if (!getEndpoint() + .equals(other.getEndpoint())) return false; + } + if (hasTargetModel() != other.hasTargetModel()) return false; + if (hasTargetModel()) { + if (!getTargetModel() + .equals(other.getTargetModel())) return false; + } + if (hasTargetVariant() != other.hasTargetVariant()) return false; + if (hasTargetVariant()) { + if (!getTargetVariant() + .equals(other.getTargetVariant())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8500,6 +9594,26 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTemperature())); } + if (hasService()) { + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + } + if (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + } + if (hasEndpoint()) { + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + } + if (hasTargetModel()) { + hash = (37 * hash) + TARGET_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getTargetModel().hashCode(); + } + if (hasTargetVariant()) { + hash = (37 * hash) + TARGET_VARIANT_FIELD_NUMBER; + hash = (53 * hash) + getTargetVariant().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -8633,6 +9747,11 @@ public Builder clear() { bitField0_ = 0; model_ = ""; temperature_ = 0D; + service_ = ""; + region_ = ""; + endpoint_ = ""; + targetModel_ = ""; + targetVariant_ = ""; return this; } @@ -8675,6 +9794,26 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene result.temperature_ = temperature_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.service_ = service_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.region_ = region_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endpoint_ = endpoint_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.targetModel_ = targetModel_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.targetVariant_ = targetVariant_; + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -8730,6 +9869,31 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenera if (other.hasTemperature()) { setTemperature(other.getTemperature()); } + if (other.hasService()) { + service_ = other.service_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRegion()) { + region_ = other.region_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasEndpoint()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasTargetModel()) { + targetModel_ = other.targetModel_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasTargetVariant()) { + targetVariant_ = other.targetVariant_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -8766,6 +9930,31 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 65 + case 74: { + service_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 82: { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 82 + case 90: { + endpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 90 + case 98: { + targetModel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 98 + case 106: { + targetVariant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -8901,6 +10090,401 @@ public Builder clearTemperature() { onChanged(); return this; } + + private java.lang.Object service_ = ""; + /** + * optional string service = 9; + * @return Whether the service field is set. + */ + public boolean hasService() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string service = 9; + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string service = 9; + * @return The bytes for service. + */ + public com.google.protobuf.ByteString + getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string service = 9; + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + service_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string service = 9; + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string service = 9; + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + service_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + * optional string region = 10; + * @return Whether the region field is set. + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string region = 10; + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string region = 10; + * @return The bytes for region. + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string region = 10; + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional string region = 10; + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * optional string region = 10; + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + /** + * optional string endpoint = 11; + * @return Whether the endpoint field is set. + */ + public boolean hasEndpoint() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string endpoint = 11; + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string endpoint = 11; + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString + getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string endpoint = 11; + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + endpoint_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string endpoint = 11; + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string endpoint = 11; + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object targetModel_ = ""; + /** + * optional string target_model = 12; + * @return Whether the targetModel field is set. + */ + public boolean hasTargetModel() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string target_model = 12; + * @return The targetModel. + */ + public java.lang.String getTargetModel() { + java.lang.Object ref = targetModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string target_model = 12; + * @return The bytes for targetModel. + */ + public com.google.protobuf.ByteString + getTargetModelBytes() { + java.lang.Object ref = targetModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string target_model = 12; + * @param value The targetModel to set. + * @return This builder for chaining. + */ + public Builder setTargetModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + targetModel_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional string target_model = 12; + * @return This builder for chaining. + */ + public Builder clearTargetModel() { + targetModel_ = getDefaultInstance().getTargetModel(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * optional string target_model = 12; + * @param value The bytes for targetModel to set. + * @return This builder for chaining. + */ + public Builder setTargetModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + targetModel_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object targetVariant_ = ""; + /** + * optional string target_variant = 13; + * @return Whether the targetVariant field is set. + */ + public boolean hasTargetVariant() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string target_variant = 13; + * @return The targetVariant. + */ + public java.lang.String getTargetVariant() { + java.lang.Object ref = targetVariant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVariant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string target_variant = 13; + * @return The bytes for targetVariant. + */ + public com.google.protobuf.ByteString + getTargetVariantBytes() { + java.lang.Object ref = targetVariant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetVariant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string target_variant = 13; + * @param value The targetVariant to set. + * @return This builder for chaining. + */ + public Builder setTargetVariant( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + targetVariant_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional string target_variant = 13; + * @return This builder for chaining. + */ + public Builder clearTargetVariant() { + targetVariant_ = getDefaultInstance().getTargetVariant(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * optional string target_variant = 13; + * @param value The bytes for targetVariant to set. + * @return This builder for chaining. + */ + public Builder setTargetVariantBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + targetVariant_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11983,102 +13567,69 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMis } - public interface GenerativeOctoAIOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOctoAI) + public interface GenerativeOllamaOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOllama) com.google.protobuf.MessageOrBuilder { /** - * optional string base_url = 1; - * @return Whether the baseUrl field is set. + * optional string api_endpoint = 1; + * @return Whether the apiEndpoint field is set. */ - boolean hasBaseUrl(); + boolean hasApiEndpoint(); /** - * optional string base_url = 1; - * @return The baseUrl. + * optional string api_endpoint = 1; + * @return The apiEndpoint. */ - java.lang.String getBaseUrl(); + java.lang.String getApiEndpoint(); /** - * optional string base_url = 1; - * @return The bytes for baseUrl. + * optional string api_endpoint = 1; + * @return The bytes for apiEndpoint. */ 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(); + getApiEndpointBytes(); /** - * optional string model = 3; + * optional string model = 2; * @return Whether the model field is set. */ boolean hasModel(); /** - * optional string model = 3; + * optional string model = 2; * @return The model. */ java.lang.String getModel(); /** - * optional string model = 3; + * optional string model = 2; * @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; + * optional double temperature = 3; * @return Whether the temperature field is set. */ boolean hasTemperature(); /** - * optional double temperature = 5; + * optional double temperature = 3; * @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} + * Protobuf type {@code weaviate.v1.GenerativeOllama} */ - public static final class GenerativeOctoAI extends + public static final class GenerativeOllama extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOctoAI) - GenerativeOctoAIOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOllama) + GenerativeOllamaOrBuilder { private static final long serialVersionUID = 0L; - // Use GenerativeOctoAI.newBuilder() to construct. - private GenerativeOctoAI(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GenerativeOllama.newBuilder() to construct. + private GenerativeOllama(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerativeOctoAI() { - baseUrl_ = ""; + private GenerativeOllama() { + apiEndpoint_ = ""; model_ = ""; } @@ -12086,102 +13637,83 @@ private GenerativeOctoAI() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GenerativeOctoAI(); + return new GenerativeOllama(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_descriptor; + 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_GenerativeOctoAI_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder.class); + 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 BASE_URL_FIELD_NUMBER = 1; + public static final int API_ENDPOINT_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object baseUrl_ = ""; + private volatile java.lang.Object apiEndpoint_ = ""; /** - * optional string base_url = 1; - * @return Whether the baseUrl field is set. + * optional string api_endpoint = 1; + * @return Whether the apiEndpoint field is set. */ @java.lang.Override - public boolean hasBaseUrl() { + public boolean hasApiEndpoint() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional string base_url = 1; - * @return The baseUrl. + * optional string api_endpoint = 1; + * @return The apiEndpoint. */ @java.lang.Override - public java.lang.String getBaseUrl() { - java.lang.Object ref = baseUrl_; + 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(); - baseUrl_ = s; + apiEndpoint_ = s; return s; } } /** - * optional string base_url = 1; - * @return The bytes for baseUrl. + * optional string api_endpoint = 1; + * @return The bytes for apiEndpoint. */ @java.lang.Override public com.google.protobuf.ByteString - getBaseUrlBytes() { - java.lang.Object ref = baseUrl_; + 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); - baseUrl_ = b; + apiEndpoint_ = 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; + public static final int MODEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * optional string model = 3; + * optional string model = 2; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional string model = 3; + * optional string model = 2; * @return The model. */ @java.lang.Override @@ -12198,7 +13730,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 3; + * optional string model = 2; * @return The bytes for model. */ @java.lang.Override @@ -12216,37 +13748,18 @@ public java.lang.String getModel() { } } - 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; + public static final int TEMPERATURE_FIELD_NUMBER = 3; private double temperature_ = 0D; /** - * optional double temperature = 5; + * optional double temperature = 3; * @return Whether the temperature field is set. */ @java.lang.Override public boolean hasTemperature() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional double temperature = 5; + * optional double temperature = 3; * @return The temperature. */ @java.lang.Override @@ -12254,25 +13767,6 @@ 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() { @@ -12288,22 +13782,13 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseUrl_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiEndpoint_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, maxTokens_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); } 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_); + output.writeDouble(3, temperature_); } getUnknownFields().writeTo(output); } @@ -12315,26 +13800,14 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseUrl_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiEndpoint_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxTokens_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } 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_); + .computeDoubleSize(3, temperature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12346,43 +13819,27 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) 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 (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 (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; } @@ -12394,77 +13851,62 @@ public int hashCode() { } 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 (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 (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( + 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.GenerativeOctoAI parseFrom( + 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.GenerativeOctoAI parseFrom( + 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.GenerativeOctoAI parseFrom( + 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.GenerativeOctoAI parseFrom(byte[] data) + 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.GenerativeOctoAI parseFrom( + 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.GenerativeOctoAI parseFrom(java.io.InputStream input) + 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.GenerativeOctoAI parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -12472,26 +13914,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseDelimitedFrom(java.io.InputStream input) + 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.GenerativeOctoAI parseDelimitedFrom( + 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.GenerativeOctoAI parseFrom( + 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.GenerativeOctoAI parseFrom( + 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 { @@ -12504,7 +13946,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -12520,26 +13962,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeOctoAI} + * 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.GenerativeOctoAI) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder { + // @@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_GenerativeOctoAI_descriptor; + 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_GenerativeOctoAI_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder.class); + 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.GenerativeOctoAI.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.newBuilder() private Builder() { } @@ -12553,29 +13995,26 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - baseUrl_ = ""; - maxTokens_ = 0L; + apiEndpoint_ = ""; 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; + 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.GenerativeOctoAI getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance(); + 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.GenerativeOctoAI build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI result = buildPartial(); + 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); } @@ -12583,39 +14022,27 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOct } @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); + 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.GenerativeOctoAI 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.baseUrl_ = baseUrl_; + result.apiEndpoint_ = apiEndpoint_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxTokens_ = maxTokens_; + result.model_ = model_; 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; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -12654,38 +14081,29 @@ public Builder addRepeatedField( } @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); + 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.GenerativeOctoAI other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance()) return this; - if (other.hasBaseUrl()) { - baseUrl_ = other.baseUrl_; + 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.hasMaxTokens()) { - setMaxTokens(other.getMaxTokens()); - } if (other.hasModel()) { model_ = other.model_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; 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; @@ -12713,35 +14131,20 @@ public Builder mergeFrom( done = true; break; case 10: { - baseUrl_ = input.readStringRequireUtf8(); + apiEndpoint_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 16: { - maxTokens_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { + case 18: { model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - n_ = input.readInt64(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; break; - } // case 32 - case 41: { + } // case 18 + case 25: { temperature_ = input.readDouble(); - bitField0_ |= 0x00000010; - break; - } // case 41 - case 49: { - topP_ = input.readDouble(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000004; break; - } // case 49 + } // case 25 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -12759,135 +14162,95 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object baseUrl_ = ""; + private java.lang.Object apiEndpoint_ = ""; /** - * optional string base_url = 1; - * @return Whether the baseUrl field is set. + * optional string api_endpoint = 1; + * @return Whether the apiEndpoint field is set. */ - public boolean hasBaseUrl() { + public boolean hasApiEndpoint() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional string base_url = 1; - * @return The baseUrl. + * optional string api_endpoint = 1; + * @return The apiEndpoint. */ - public java.lang.String getBaseUrl() { - java.lang.Object ref = baseUrl_; + 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(); - baseUrl_ = s; + apiEndpoint_ = s; return s; } else { return (java.lang.String) ref; } } /** - * optional string base_url = 1; - * @return The bytes for baseUrl. + * optional string api_endpoint = 1; + * @return The bytes for apiEndpoint. */ public com.google.protobuf.ByteString - getBaseUrlBytes() { - java.lang.Object ref = baseUrl_; + getApiEndpointBytes() { + java.lang.Object ref = apiEndpoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - baseUrl_ = b; + apiEndpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * optional string base_url = 1; - * @param value The baseUrl to set. + * optional string api_endpoint = 1; + * @param value The apiEndpoint to set. * @return This builder for chaining. */ - public Builder setBaseUrl( + public Builder setApiEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseUrl_ = value; + apiEndpoint_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * optional string base_url = 1; + * optional string api_endpoint = 1; * @return This builder for chaining. */ - public Builder clearBaseUrl() { - baseUrl_ = getDefaultInstance().getBaseUrl(); + public Builder clearApiEndpoint() { + apiEndpoint_ = getDefaultInstance().getApiEndpoint(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * optional string base_url = 1; - * @param value The bytes for baseUrl to set. + * optional string api_endpoint = 1; + * @param value The bytes for apiEndpoint to set. * @return This builder for chaining. */ - public Builder setBaseUrlBytes( + public Builder setApiEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseUrl_ = value; + apiEndpoint_ = 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; + * optional string model = 2; * @return Whether the model field is set. */ public boolean hasModel() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional string model = 3; + * optional string model = 2; * @return The model. */ public java.lang.String getModel() { @@ -12903,7 +14266,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 3; + * optional string model = 2; * @return The bytes for model. */ public com.google.protobuf.ByteString @@ -12920,7 +14283,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 3; + * optional string model = 2; * @param value The model to set. * @return This builder for chaining. */ @@ -12928,22 +14291,22 @@ public Builder setModel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } model_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * optional string model = 3; + * optional string model = 2; * @return This builder for chaining. */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * optional string model = 3; + * optional string model = 2; * @param value The bytes for model to set. * @return This builder for chaining. */ @@ -12952,127 +14315,47 @@ public Builder setModelBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } - private long n_ ; + private double temperature_ ; /** - * optional int64 n = 4; - * @return Whether the n field is set. + * optional double temperature = 3; + * @return Whether the temperature field is set. */ @java.lang.Override - public boolean hasN() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasTemperature() { + return ((bitField0_ & 0x00000004) != 0); } /** - * optional int64 n = 4; - * @return The n. + * optional double temperature = 3; + * @return The temperature. */ @java.lang.Override - public long getN() { - return n_; + public double getTemperature() { + return temperature_; } /** - * optional int64 n = 4; - * @param value The n to set. + * optional double temperature = 3; + * @param value The temperature to set. * @return This builder for chaining. */ - public Builder setN(long value) { + public Builder setTemperature(double value) { - n_ = value; - bitField0_ |= 0x00000008; + temperature_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * optional int64 n = 4; + * optional double temperature = 3; * @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; + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000004); + temperature_ = 0D; onChanged(); return this; } @@ -13089,23 +14372,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOctoAI) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOllama) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAI) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI DEFAULT_INSTANCE; + // @@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.GenerativeOctoAI(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GenerativeOctoAI parsePartialFrom( + public GenerativeOllama parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13124,169 +14407,282 @@ public GenerativeOctoAI 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.WeaviateProtoGenerative.GenerativeOctoAI getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface GenerativeOllamaOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOllama) + public interface GenerativeOpenAIOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOpenAI) com.google.protobuf.MessageOrBuilder { /** - * optional string api_endpoint = 1; - * @return Whether the apiEndpoint field is set. + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. */ - boolean hasApiEndpoint(); + boolean hasFrequencyPenalty(); /** - * optional string api_endpoint = 1; - * @return The apiEndpoint. + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. */ - java.lang.String getApiEndpoint(); + double getFrequencyPenalty(); + /** - * optional string api_endpoint = 1; - * @return The bytes for apiEndpoint. + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. */ - com.google.protobuf.ByteString - getApiEndpointBytes(); - + boolean hasMaxTokens(); /** - * optional string model = 2; - * @return Whether the model field is set. + * optional int64 max_tokens = 2; + * @return The maxTokens. */ - boolean hasModel(); + long getMaxTokens(); + /** - * optional string model = 2; + * string model = 3; * @return The model. */ java.lang.String getModel(); /** - * optional string model = 2; + * string model = 3; * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); /** - * optional double temperature = 3; + * optional int64 n = 4; + * @return Whether the n field is set. + */ + boolean hasN(); + /** + * optional int64 n = 4; + * @return The n. + */ + long getN(); + + /** + * optional double presence_penalty = 5; + * @return Whether the presencePenalty field is set. + */ + boolean hasPresencePenalty(); + /** + * optional double presence_penalty = 5; + * @return The presencePenalty. + */ + double getPresencePenalty(); + + /** + * optional .weaviate.v1.TextArray stop = 6; + * @return Whether the stop field is set. + */ + boolean hasStop(); + /** + * optional .weaviate.v1.TextArray stop = 6; + * @return The stop. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop(); + /** + * optional .weaviate.v1.TextArray stop = 6; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder(); + + /** + * optional double temperature = 7; * @return Whether the temperature field is set. */ boolean hasTemperature(); /** - * optional double temperature = 3; + * optional double temperature = 7; * @return The temperature. */ double getTemperature(); + + /** + * optional double top_p = 8; + * @return Whether the topP field is set. + */ + boolean hasTopP(); + /** + * optional double top_p = 8; + * @return The topP. + */ + double getTopP(); + + /** + * optional string base_url = 9; + * @return Whether the baseUrl field is set. + */ + boolean hasBaseUrl(); + /** + * optional string base_url = 9; + * @return The baseUrl. + */ + java.lang.String getBaseUrl(); + /** + * optional string base_url = 9; + * @return The bytes for baseUrl. + */ + com.google.protobuf.ByteString + getBaseUrlBytes(); + + /** + * optional string api_version = 10; + * @return Whether the apiVersion field is set. + */ + boolean hasApiVersion(); + /** + * optional string api_version = 10; + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + /** + * optional string api_version = 10; + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString + getApiVersionBytes(); + + /** + * optional string resource_name = 11; + * @return Whether the resourceName field is set. + */ + boolean hasResourceName(); + /** + * optional string resource_name = 11; + * @return The resourceName. + */ + java.lang.String getResourceName(); + /** + * optional string resource_name = 11; + * @return The bytes for resourceName. + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + * optional string deployment_id = 12; + * @return Whether the deploymentId field is set. + */ + boolean hasDeploymentId(); + /** + * optional string deployment_id = 12; + * @return The deploymentId. + */ + java.lang.String getDeploymentId(); + /** + * optional string deployment_id = 12; + * @return The bytes for deploymentId. + */ + com.google.protobuf.ByteString + getDeploymentIdBytes(); + + /** + * optional bool is_azure = 13; + * @return Whether the isAzure field is set. + */ + boolean hasIsAzure(); + /** + * optional bool is_azure = 13; + * @return The isAzure. + */ + boolean getIsAzure(); } /** - * Protobuf type {@code weaviate.v1.GenerativeOllama} + * Protobuf type {@code weaviate.v1.GenerativeOpenAI} */ - public static final class GenerativeOllama extends + public static final class GenerativeOpenAI extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOllama) - GenerativeOllamaOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAI) + GenerativeOpenAIOrBuilder { private static final long serialVersionUID = 0L; - // Use GenerativeOllama.newBuilder() to construct. - private GenerativeOllama(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GenerativeOpenAI.newBuilder() to construct. + private GenerativeOpenAI(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerativeOllama() { - apiEndpoint_ = ""; + private GenerativeOpenAI() { model_ = ""; + baseUrl_ = ""; + apiVersion_ = ""; + resourceName_ = ""; + deploymentId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GenerativeOllama(); + return new GenerativeOpenAI(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_descriptor; + 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_GenerativeOllama_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder.class); + 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 API_ENDPOINT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object apiEndpoint_ = ""; + public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 1; + private double frequencyPenalty_ = 0D; /** - * optional string api_endpoint = 1; - * @return Whether the apiEndpoint field is set. + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. */ @java.lang.Override - public boolean hasApiEndpoint() { + public boolean hasFrequencyPenalty() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional string api_endpoint = 1; - * @return The apiEndpoint. + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. */ @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; - } + public double getFrequencyPenalty() { + return frequencyPenalty_; } + + public static final int MAX_TOKENS_FIELD_NUMBER = 2; + private long maxTokens_ = 0L; /** - * optional string api_endpoint = 1; - * @return The bytes for apiEndpoint. + * optional int64 max_tokens = 2; + * @return Whether the maxTokens field is set. */ @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 boolean hasMaxTokens() { + return ((bitField0_ & 0x00000002) != 0); } - - 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. + * optional int64 max_tokens = 2; + * @return The maxTokens. */ @java.lang.Override - public boolean hasModel() { - return ((bitField0_ & 0x00000002) != 0); + public long getMaxTokens() { + return maxTokens_; } + + public static final int MODEL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** - * optional string model = 2; + * string model = 3; * @return The model. */ @java.lang.Override @@ -13303,7 +14699,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 2; + * string model = 3; * @return The bytes for model. */ @java.lang.Override @@ -13321,18 +14717,82 @@ public java.lang.String getModel() { } } - public static final int TEMPERATURE_FIELD_NUMBER = 3; + 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_ & 0x00000004) != 0); + } + /** + * optional int64 n = 4; + * @return The n. + */ + @java.lang.Override + public long getN() { + return n_; + } + + public static final int PRESENCE_PENALTY_FIELD_NUMBER = 5; + private double presencePenalty_ = 0D; + /** + * optional double presence_penalty = 5; + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional double presence_penalty = 5; + * @return The presencePenalty. + */ + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + + public static final int STOP_FIELD_NUMBER = 6; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stop_; + /** + * optional .weaviate.v1.TextArray stop = 6; + * @return Whether the stop field is set. + */ + @java.lang.Override + public boolean hasStop() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .weaviate.v1.TextArray stop = 6; + * @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 = 6; + */ + @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 = 7; private double temperature_ = 0D; /** - * optional double temperature = 3; + * optional double temperature = 7; * @return Whether the temperature field is set. */ @java.lang.Override public boolean hasTemperature() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional double temperature = 3; + * optional double temperature = 7; * @return The temperature. */ @java.lang.Override @@ -13340,72 +14800,384 @@ public double getTemperature() { return temperature_; } - private byte memoizedIsInitialized = -1; + public static final int TOP_P_FIELD_NUMBER = 8; + private double topP_ = 0D; + /** + * optional double top_p = 8; + * @return Whether the topP field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public boolean hasTopP() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double top_p = 8; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; } + public static final int BASE_URL_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object baseUrl_ = ""; + /** + * optional string base_url = 9; + * @return Whether the baseUrl field is set. + */ @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_); + public boolean hasBaseUrl() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string base_url = 9; + * @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; } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeDouble(3, temperature_); + } + /** + * optional string base_url = 9; + * @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; } - getUnknownFields().writeTo(output); } + public static final int API_VERSION_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + /** + * optional string api_version = 10; + * @return Whether the apiVersion field is set. + */ @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_); + public boolean hasApiVersion() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string api_version = 10; + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + 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(); + apiVersion_ = s; + return s; } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, temperature_); + } + /** + * optional string api_version = 10; + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; } + public static final int RESOURCE_NAME_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object resourceName_ = ""; + /** + * optional string resource_name = 11; + * @return Whether the resourceName field is set. + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public boolean hasResourceName() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string resource_name = 11; + * @return The resourceName. + */ + @java.lang.Override + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + 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(); + resourceName_ = s; + return s; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama)) { - return super.equals(obj); + } + /** + * optional string resource_name = 11; + * @return The bytes for resourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - 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; + public static final int DEPLOYMENT_ID_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object deploymentId_ = ""; + /** + * optional string deployment_id = 12; + * @return Whether the deploymentId field is set. + */ + @java.lang.Override + public boolean hasDeploymentId() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string deployment_id = 12; + * @return The deploymentId. + */ + @java.lang.Override + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + 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(); + deploymentId_ = s; + return s; } - if (hasModel() != other.hasModel()) return false; - if (hasModel()) { - if (!getModel() - .equals(other.getModel())) return false; + } + /** + * optional string deployment_id = 12; + * @return The bytes for deploymentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_AZURE_FIELD_NUMBER = 13; + private boolean isAzure_ = false; + /** + * optional bool is_azure = 13; + * @return Whether the isAzure field is set. + */ + @java.lang.Override + public boolean hasIsAzure() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional bool is_azure = 13; + * @return The isAzure. + */ + @java.lang.Override + public boolean getIsAzure() { + return isAzure_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(4, n_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(5, presencePenalty_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getStop()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(7, temperature_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(8, topP_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, baseUrl_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, apiVersion_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, resourceName_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, deploymentId_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeBool(13, isAzure_); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, n_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, presencePenalty_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getStop()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, temperature_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, topP_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, baseUrl_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, apiVersion_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, resourceName_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, deploymentId_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, isAzure_); + } + 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 (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()) { @@ -13413,6 +15185,37 @@ public boolean equals(final java.lang.Object obj) { != 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 (hasBaseUrl() != other.hasBaseUrl()) return false; + if (hasBaseUrl()) { + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; + } + if (hasApiVersion() != other.hasApiVersion()) return false; + if (hasApiVersion()) { + if (!getApiVersion() + .equals(other.getApiVersion())) return false; + } + if (hasResourceName() != other.hasResourceName()) return false; + if (hasResourceName()) { + if (!getResourceName() + .equals(other.getResourceName())) return false; + } + if (hasDeploymentId() != other.hasDeploymentId()) return false; + if (hasDeploymentId()) { + if (!getDeploymentId() + .equals(other.getDeploymentId())) return false; + } + if (hasIsAzure() != other.hasIsAzure()) return false; + if (hasIsAzure()) { + if (getIsAzure() + != other.getIsAzure()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13424,62 +15227,106 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasApiEndpoint()) { - hash = (37 * hash) + API_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getApiEndpoint().hashCode(); + if (hasFrequencyPenalty()) { + hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFrequencyPenalty())); } - if (hasModel()) { - hash = (37 * hash) + MODEL_FIELD_NUMBER; - hash = (53 * hash) + getModel().hashCode(); + 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 (hasBaseUrl()) { + hash = (37 * hash) + BASE_URL_FIELD_NUMBER; + hash = (53 * hash) + getBaseUrl().hashCode(); + } + if (hasApiVersion()) { + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + } + if (hasResourceName()) { + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + } + if (hasDeploymentId()) { + hash = (37 * hash) + DEPLOYMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeploymentId().hashCode(); + } + if (hasIsAzure()) { + hash = (37 * hash) + IS_AZURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsAzure()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom( + 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.GenerativeOllama parseFrom( + 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.GenerativeOllama parseFrom( + 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.GenerativeOllama parseFrom( + 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.GenerativeOllama parseFrom(byte[] data) + 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.GenerativeOllama parseFrom( + 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.GenerativeOllama parseFrom(java.io.InputStream input) + 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.GenerativeOllama parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -13487,26 +15334,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseDelimitedFrom(java.io.InputStream input) + 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.GenerativeOllama parseDelimitedFrom( + 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.GenerativeOllama parseFrom( + 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.GenerativeOllama parseFrom( + 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 { @@ -13519,7 +15366,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -13535,59 +15382,79 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeOllama} + * 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.GenerativeOllama) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder { + // @@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_GenerativeOllama_descriptor; + 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_GenerativeOllama_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder.class); + 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.GenerativeOllama.newBuilder() + // 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; - apiEndpoint_ = ""; + frequencyPenalty_ = 0D; + maxTokens_ = 0L; model_ = ""; + n_ = 0L; + presencePenalty_ = 0D; + stop_ = null; + if (stopBuilder_ != null) { + stopBuilder_.dispose(); + stopBuilder_ = null; + } temperature_ = 0D; + topP_ = 0D; + baseUrl_ = ""; + apiVersion_ = ""; + resourceName_ = ""; + deploymentId_ = ""; + isAzure_ = 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_GenerativeOllama_descriptor; + 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.GenerativeOllama getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance(); + 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.GenerativeOllama build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama result = buildPartial(); + 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); } @@ -13595,28 +15462,69 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOll } @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); + 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.GenerativeOllama 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.apiEndpoint_ = apiEndpoint_; + result.frequencyPenalty_ = frequencyPenalty_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.model_ = model_; + result.maxTokens_ = maxTokens_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.temperature_ = temperature_; + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.n_ = n_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.presencePenalty_ = presencePenalty_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stop_ = stopBuilder_ == null + ? stop_ + : stopBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.baseUrl_ = baseUrl_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.apiVersion_ = apiVersion_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.resourceName_ = resourceName_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.deploymentId_ = deploymentId_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isAzure_ = isAzure_; + to_bitField0_ |= 0x00000800; + } result.bitField0_ |= to_bitField0_; } @@ -13654,29 +15562,65 @@ public Builder addRepeatedField( } @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); + 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.GenerativeOllama other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance()) return this; - if (other.hasApiEndpoint()) { - apiEndpoint_ = other.apiEndpoint_; - bitField0_ |= 0x00000001; - onChanged(); + 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.hasModel()) { + if (other.hasMaxTokens()) { + setMaxTokens(other.getMaxTokens()); + } + if (!other.getModel().isEmpty()) { model_ = other.model_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; 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.hasBaseUrl()) { + baseUrl_ = other.baseUrl_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasApiVersion()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasResourceName()) { + resourceName_ = other.resourceName_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasDeploymentId()) { + deploymentId_ = other.deploymentId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasIsAzure()) { + setIsAzure(other.getIsAzure()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -13703,21 +15647,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - apiEndpoint_ = input.readStringRequireUtf8(); + case 9: { + frequencyPenalty_ = input.readDouble(); bitField0_ |= 0x00000001; break; - } // case 10 - case 18: { - model_ = input.readStringRequireUtf8(); + } // case 9 + case 16: { + maxTokens_ = input.readInt64(); bitField0_ |= 0x00000002; break; - } // case 18 - case 25: { - temperature_ = input.readDouble(); + } // case 16 + case 26: { + model_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; - } // case 25 + } // case 26 + case 32: { + n_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 41: { + presencePenalty_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 50: { + input.readMessage( + getStopFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 57: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 65: { + topP_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 74: { + baseUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + resourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + deploymentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: { + isAzure_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -13735,95 +15731,89 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object apiEndpoint_ = ""; + private double frequencyPenalty_ ; /** - * optional string api_endpoint = 1; - * @return Whether the apiEndpoint field is set. + * optional double frequency_penalty = 1; + * @return Whether the frequencyPenalty field is set. */ - public boolean hasApiEndpoint() { + @java.lang.Override + public boolean hasFrequencyPenalty() { 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. + * optional double frequency_penalty = 1; + * @return The frequencyPenalty. */ - 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; - } + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; } /** - * optional string api_endpoint = 1; - * @param value The apiEndpoint to set. + * optional double frequency_penalty = 1; + * @param value The frequencyPenalty to set. * @return This builder for chaining. */ - public Builder setApiEndpoint( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - apiEndpoint_ = value; + public Builder setFrequencyPenalty(double value) { + + frequencyPenalty_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * optional string api_endpoint = 1; + * optional double frequency_penalty = 1; * @return This builder for chaining. */ - public Builder clearApiEndpoint() { - apiEndpoint_ = getDefaultInstance().getApiEndpoint(); + public Builder clearFrequencyPenalty() { bitField0_ = (bitField0_ & ~0x00000001); + frequencyPenalty_ = 0D; onChanged(); return this; } + + private long maxTokens_ ; /** - * optional string api_endpoint = 1; - * @param value The bytes for apiEndpoint to set. + * 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 setApiEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - apiEndpoint_ = value; - bitField0_ |= 0x00000001; + public Builder setMaxTokens(long value) { + + maxTokens_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - - private java.lang.Object model_ = ""; /** - * optional string model = 2; - * @return Whether the model field is set. + * optional int64 max_tokens = 2; + * @return This builder for chaining. */ - public boolean hasModel() { - return ((bitField0_ & 0x00000002) != 0); + public Builder clearMaxTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + maxTokens_ = 0L; + onChanged(); + return this; } + + private java.lang.Object model_ = ""; /** - * optional string model = 2; + * string model = 3; * @return The model. */ public java.lang.String getModel() { @@ -13839,7 +15829,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 2; + * string model = 3; * @return The bytes for model. */ public com.google.protobuf.ByteString @@ -13856,7 +15846,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 2; + * string model = 3; * @param value The model to set. * @return This builder for chaining. */ @@ -13864,22 +15854,22 @@ public Builder setModel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } model_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * optional string model = 2; + * string model = 3; * @return This builder for chaining. */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * optional string model = 2; + * string model = 3; * @param value The bytes for model to set. * @return This builder for chaining. */ @@ -13888,22 +15878,223 @@ public Builder setModelBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; - bitField0_ |= 0x00000002; + 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 presencePenalty_ ; + /** + * optional double presence_penalty = 5; + * @return Whether the presencePenalty field is set. + */ + @java.lang.Override + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional double presence_penalty = 5; + * @return The presencePenalty. + */ + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + /** + * optional double presence_penalty = 5; + * @param value The presencePenalty to set. + * @return This builder for chaining. + */ + public Builder setPresencePenalty(double value) { + + presencePenalty_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional double presence_penalty = 5; + * @return This builder for chaining. + */ + public Builder clearPresencePenalty() { + bitField0_ = (bitField0_ & ~0x00000010); + 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 = 6; + * @return Whether the stop field is set. + */ + public boolean hasStop() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .weaviate.v1.TextArray stop = 6; + * @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 = 6; + */ + 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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop = 6; + */ + 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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.TextArray stop = 6; + */ + public Builder mergeStop(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 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_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * optional .weaviate.v1.TextArray stop = 6; + */ + public Builder clearStop() { + bitField0_ = (bitField0_ & ~0x00000020); + stop_ = null; + if (stopBuilder_ != null) { + stopBuilder_.dispose(); + stopBuilder_ = null; + } onChanged(); return this; } + /** + * optional .weaviate.v1.TextArray stop = 6; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStopFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.TextArray stop = 6; + */ + 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 = 6; + */ + 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 = 3; + * optional double temperature = 7; * @return Whether the temperature field is set. */ @java.lang.Override public boolean hasTemperature() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** - * optional double temperature = 3; + * optional double temperature = 7; * @return The temperature. */ @java.lang.Override @@ -13911,93 +16102,489 @@ public double getTemperature() { return temperature_; } /** - * optional double temperature = 3; + * optional double temperature = 7; * @param value The temperature to set. * @return This builder for chaining. */ public Builder setTemperature(double value) { temperature_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * optional double temperature = 3; + * optional double temperature = 7; * @return This builder for chaining. */ public Builder clearTemperature() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); temperature_ = 0D; onChanged(); return this; } + + private double topP_ ; + /** + * optional double top_p = 8; + * @return Whether the topP field is set. + */ @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + public boolean hasTopP() { + return ((bitField0_ & 0x00000080) != 0); } - + /** + * optional double top_p = 8; + * @return The topP. + */ @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public double getTopP() { + return topP_; } + /** + * optional double top_p = 8; + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + topP_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional double top_p = 8; + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000080); + topP_ = 0D; + onChanged(); + return this; + } - // @@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 java.lang.Object baseUrl_ = ""; + /** + * optional string base_url = 9; + * @return Whether the baseUrl field is set. + */ + public boolean hasBaseUrl() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string base_url = 9; + * @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 = 9; + * @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 = 9; + * @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_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional string base_url = 9; + * @return This builder for chaining. + */ + public Builder clearBaseUrl() { + baseUrl_ = getDefaultInstance().getBaseUrl(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * optional string base_url = 9; + * @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_ |= 0x00000100; + onChanged(); + return this; + } - 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()); + private java.lang.Object apiVersion_ = ""; + /** + * optional string api_version = 10; + * @return Whether the apiVersion field is set. + */ + public boolean hasApiVersion() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string api_version = 10; + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; } - return builder.buildPartial(); } - }; + /** + * optional string api_version = 10; + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString + getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string api_version = 10; + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + apiVersion_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * optional string api_version = 10; + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * optional string api_version = 10; + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private java.lang.Object resourceName_ = ""; + /** + * optional string resource_name = 11; + * @return Whether the resourceName field is set. + */ + public boolean hasResourceName() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string resource_name = 11; + * @return The resourceName. + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string resource_name = 11; + * @return The bytes for resourceName. + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string resource_name = 11; + * @param value The resourceName to set. + * @return This builder for chaining. + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resourceName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional string resource_name = 11; + * @return This builder for chaining. + */ + public Builder clearResourceName() { + resourceName_ = getDefaultInstance().getResourceName(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * optional string resource_name = 11; + * @param value The bytes for resourceName to set. + * @return This builder for chaining. + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resourceName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + private java.lang.Object deploymentId_ = ""; + /** + * optional string deployment_id = 12; + * @return Whether the deploymentId field is set. + */ + public boolean hasDeploymentId() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string deployment_id = 12; + * @return The deploymentId. + */ + public java.lang.String getDeploymentId() { + java.lang.Object ref = deploymentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deploymentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string deployment_id = 12; + * @return The bytes for deploymentId. + */ + public com.google.protobuf.ByteString + getDeploymentIdBytes() { + java.lang.Object ref = deploymentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deploymentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string deployment_id = 12; + * @param value The deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + deploymentId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * optional string deployment_id = 12; + * @return This builder for chaining. + */ + public Builder clearDeploymentId() { + deploymentId_ = getDefaultInstance().getDeploymentId(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * optional string deployment_id = 12; + * @param value The bytes for deploymentId to set. + * @return This builder for chaining. + */ + public Builder setDeploymentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + deploymentId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private boolean isAzure_ ; + /** + * optional bool is_azure = 13; + * @return Whether the isAzure field is set. + */ + @java.lang.Override + public boolean hasIsAzure() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional bool is_azure = 13; + * @return The isAzure. + */ + @java.lang.Override + public boolean getIsAzure() { + return isAzure_; + } + /** + * optional bool is_azure = 13; + * @param value The isAzure to set. + * @return This builder for chaining. + */ + public Builder setIsAzure(boolean value) { + + isAzure_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * optional bool is_azure = 13; + * @return This builder for chaining. + */ + public Builder clearIsAzure() { + bitField0_ = (bitField0_ & ~0x00001000); + isAzure_ = 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.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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getDefaultInstanceForType() { + 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 GenerativeOpenAIOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOpenAI) + public interface GenerativeGoogleOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogle) com.google.protobuf.MessageOrBuilder { /** @@ -14012,143 +16599,198 @@ public interface GenerativeOpenAIOrBuilder extends 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; + * optional int64 max_tokens = 2; * @return Whether the maxTokens field is set. */ boolean hasMaxTokens(); /** - * optional int64 max_tokens = 3; + * optional int64 max_tokens = 2; * @return The maxTokens. */ long getMaxTokens(); /** - * string model = 4; + * optional string model = 3; + * @return Whether the model field is set. + */ + boolean hasModel(); + /** + * optional string model = 3; * @return The model. */ java.lang.String getModel(); /** - * string model = 4; + * optional string model = 3; * @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; + * optional double presence_penalty = 4; * @return Whether the presencePenalty field is set. */ boolean hasPresencePenalty(); /** - * optional double presence_penalty = 6; + * optional double presence_penalty = 4; * @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. + * optional double temperature = 5; + * @return Whether the temperature field is set. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop(); + boolean hasTemperature(); /** - * optional .weaviate.v1.TextArray stop = 7; + * optional double temperature = 5; + * @return The temperature. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder(); + double getTemperature(); /** - * optional double temperature = 8; - * @return Whether the temperature field is set. + * optional int64 top_k = 6; + * @return Whether the topK field is set. */ - boolean hasTemperature(); + boolean hasTopK(); /** - * optional double temperature = 8; - * @return The temperature. + * optional int64 top_k = 6; + * @return The topK. */ - double getTemperature(); + long getTopK(); /** - * optional double top_p = 9; + * optional double top_p = 7; * @return Whether the topP field is set. */ boolean hasTopP(); /** - * optional double top_p = 9; + * optional double top_p = 7; * @return The topP. */ double getTopP(); /** - * optional int64 top_log_probs = 10; - * @return Whether the topLogProbs field is set. + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return Whether the stopSequences field is set. */ - boolean hasTopLogProbs(); + boolean hasStopSequences(); /** - * optional int64 top_log_probs = 10; - * @return The topLogProbs. + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return The stopSequences. */ - long getTopLogProbs(); + 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 string api_endpoint = 9; + * @return Whether the apiEndpoint field is set. + */ + boolean hasApiEndpoint(); + /** + * optional string api_endpoint = 9; + * @return The apiEndpoint. + */ + java.lang.String getApiEndpoint(); + /** + * optional string api_endpoint = 9; + * @return The bytes for apiEndpoint. + */ + com.google.protobuf.ByteString + getApiEndpointBytes(); + + /** + * optional string project_id = 10; + * @return Whether the projectId field is set. + */ + boolean hasProjectId(); + /** + * optional string project_id = 10; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * optional string project_id = 10; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + * optional string endpoint_id = 11; + * @return Whether the endpointId field is set. + */ + boolean hasEndpointId(); + /** + * optional string endpoint_id = 11; + * @return The endpointId. + */ + java.lang.String getEndpointId(); + /** + * optional string endpoint_id = 11; + * @return The bytes for endpointId. + */ + com.google.protobuf.ByteString + getEndpointIdBytes(); + + /** + * optional string region = 12; + * @return Whether the region field is set. + */ + boolean hasRegion(); + /** + * optional string region = 12; + * @return The region. + */ + java.lang.String getRegion(); + /** + * optional string region = 12; + * @return The bytes for region. + */ + com.google.protobuf.ByteString + getRegionBytes(); } /** - * Protobuf type {@code weaviate.v1.GenerativeOpenAI} + * Protobuf type {@code weaviate.v1.GenerativeGoogle} */ - public static final class GenerativeOpenAI extends + public static final class GenerativeGoogle extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAI) - GenerativeOpenAIOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogle) + GenerativeGoogleOrBuilder { private static final long serialVersionUID = 0L; - // Use GenerativeOpenAI.newBuilder() to construct. - private GenerativeOpenAI(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GenerativeGoogle.newBuilder() to construct. + private GenerativeGoogle(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerativeOpenAI() { + private GenerativeGoogle() { model_ = ""; + apiEndpoint_ = ""; + projectId_ = ""; + endpointId_ = ""; + region_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GenerativeOpenAI(); + return new GenerativeGoogle(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_descriptor; + 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_GenerativeOpenAI_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder.class); } private int bitField0_; @@ -14171,37 +16813,18 @@ 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; + public static final int MAX_TOKENS_FIELD_NUMBER = 2; private long maxTokens_ = 0L; /** - * optional int64 max_tokens = 3; + * optional int64 max_tokens = 2; * @return Whether the maxTokens field is set. */ @java.lang.Override public boolean hasMaxTokens() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional int64 max_tokens = 3; + * optional int64 max_tokens = 2; * @return The maxTokens. */ @java.lang.Override @@ -14209,11 +16832,19 @@ public long getMaxTokens() { return maxTokens_; } - public static final int MODEL_FIELD_NUMBER = 4; + public static final int MODEL_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * string model = 4; + * 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 @@ -14230,7 +16861,7 @@ public java.lang.String getModel() { } } /** - * string model = 4; + * optional string model = 3; * @return The bytes for model. */ @java.lang.Override @@ -14248,218 +16879,397 @@ public java.lang.String getModel() { } } - public static final int N_FIELD_NUMBER = 5; - private long n_ = 0L; + public static final int PRESENCE_PENALTY_FIELD_NUMBER = 4; + private double presencePenalty_ = 0D; /** - * optional int64 n = 5; - * @return Whether the n field is set. + * optional double presence_penalty = 4; + * @return Whether the presencePenalty field is set. */ @java.lang.Override - public boolean hasN() { + public boolean hasPresencePenalty() { return ((bitField0_ & 0x00000008) != 0); } /** - * optional int64 n = 5; - * @return The n. + * optional double presence_penalty = 4; + * @return The presencePenalty. */ @java.lang.Override - public long getN() { - return n_; + public double getPresencePenalty() { + return presencePenalty_; } - public static final int PRESENCE_PENALTY_FIELD_NUMBER = 6; - private double presencePenalty_ = 0D; + public static final int TEMPERATURE_FIELD_NUMBER = 5; + private double temperature_ = 0D; /** - * optional double presence_penalty = 6; - * @return Whether the presencePenalty field is set. + * optional double temperature = 5; + * @return Whether the temperature field is set. */ @java.lang.Override - public boolean hasPresencePenalty() { + public boolean hasTemperature() { return ((bitField0_ & 0x00000010) != 0); } /** - * optional double presence_penalty = 6; - * @return The presencePenalty. + * optional double temperature = 5; + * @return The temperature. */ @java.lang.Override - public double getPresencePenalty() { - return presencePenalty_; + public double getTemperature() { + return temperature_; } - public static final int STOP_FIELD_NUMBER = 7; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stop_; + public static final int TOP_K_FIELD_NUMBER = 6; + private long topK_ = 0L; /** - * optional .weaviate.v1.TextArray stop = 7; - * @return Whether the stop field is set. + * optional int64 top_k = 6; + * @return Whether the topK field is set. */ @java.lang.Override - public boolean hasStop() { + public boolean hasTopK() { 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; + * optional int64 top_k = 6; + * @return The topK. */ @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 long getTopK() { + return topK_; } - public static final int TEMPERATURE_FIELD_NUMBER = 8; - private double temperature_ = 0D; + public static final int TOP_P_FIELD_NUMBER = 7; + private double topP_ = 0D; /** - * optional double temperature = 8; - * @return Whether the temperature field is set. + * optional double top_p = 7; + * @return Whether the topP field is set. */ @java.lang.Override - public boolean hasTemperature() { + public boolean hasTopP() { return ((bitField0_ & 0x00000040) != 0); } /** - * optional double temperature = 8; - * @return The temperature. + * optional double top_p = 7; + * @return The topP. */ @java.lang.Override - public double getTemperature() { - return temperature_; + public double getTopP() { + return topP_; } - public static final int TOP_P_FIELD_NUMBER = 9; - private double topP_ = 0D; + public static final int STOP_SEQUENCES_FIELD_NUMBER = 8; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_; /** - * optional double top_p = 9; - * @return Whether the topP field is set. + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return Whether the stopSequences field is set. */ @java.lang.Override - public boolean hasTopP() { + public boolean hasStopSequences() { return ((bitField0_ & 0x00000080) != 0); } /** - * optional double top_p = 9; - * @return The topP. + * optional .weaviate.v1.TextArray stop_sequences = 8; + * @return The stopSequences. */ @java.lang.Override - public double getTopP() { - return topP_; + 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 TOP_LOG_PROBS_FIELD_NUMBER = 10; - private long topLogProbs_ = 0L; + public static final int API_ENDPOINT_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object apiEndpoint_ = ""; /** - * optional int64 top_log_probs = 10; - * @return Whether the topLogProbs field is set. + * optional string api_endpoint = 9; + * @return Whether the apiEndpoint field is set. */ @java.lang.Override - public boolean hasTopLogProbs() { + public boolean hasApiEndpoint() { return ((bitField0_ & 0x00000100) != 0); } /** - * optional int64 top_log_probs = 10; - * @return The topLogProbs. + * optional string api_endpoint = 9; + * @return The apiEndpoint. */ @java.lang.Override - public long getTopLogProbs() { - return topLogProbs_; + 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; + } } - - private byte memoizedIsInitialized = -1; + /** + * optional string api_endpoint = 9; + * @return The bytes for apiEndpoint. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + 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 PROJECT_ID_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * optional string project_id = 10; + * @return Whether the projectId field is set. + */ @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_); + public boolean hasProjectId() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string project_id = 10; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeInt64(10, topLogProbs_); + } + /** + * optional string project_id = 10; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - getUnknownFields().writeTo(output); } + public static final int ENDPOINT_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object endpointId_ = ""; + /** + * optional string endpoint_id = 11; + * @return Whether the endpointId field is set. + */ @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_); + public boolean hasEndpointId() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string endpoint_id = 11; + * @return The endpointId. + */ + @java.lang.Override + public java.lang.String getEndpointId() { + java.lang.Object ref = endpointId_; + 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(); + endpointId_ = s; + return s; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_); + } + /** + * optional string endpoint_id = 11; + * @return The bytes for endpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEndpointIdBytes() { + java.lang.Object ref = endpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + * optional string region = 12; + * @return Whether the region field is set. + */ + @java.lang.Override + public boolean hasRegion() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string region = 12; + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + * optional string region = 12; + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = 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)) { + 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()); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, apiEndpoint_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, projectId_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endpointId_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, region_); + } + 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 - .computeInt64Size(5, n_); + .computeDoubleSize(4, presencePenalty_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(6, presencePenalty_); + .computeDoubleSize(5, temperature_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getStop()); + .computeInt64Size(6, topK_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(8, temperature_); + .computeDoubleSize(7, topP_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(9, topP_); + .computeMessageSize(8, getStopSequences()); } if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, topLogProbs_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, apiEndpoint_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, projectId_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endpointId_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, region_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -14471,10 +17281,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) 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()) { @@ -14482,22 +17292,15 @@ public boolean equals(final java.lang.Object obj) { != 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 (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel() + .equals(other.getModel())) return false; } if (hasPresencePenalty() != other.hasPresencePenalty()) return false; if (hasPresencePenalty()) { @@ -14505,27 +17308,47 @@ public boolean equals(final java.lang.Object obj) { != 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 (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 (hasTopLogProbs() != other.hasTopLogProbs()) return false; - if (hasTopLogProbs()) { - if (getTopLogProbs() - != other.getTopLogProbs()) return false; + if (hasStopSequences() != other.hasStopSequences()) return false; + if (hasStopSequences()) { + if (!getStopSequences() + .equals(other.getStopSequences())) return false; + } + if (hasApiEndpoint() != other.hasApiEndpoint()) return false; + if (hasApiEndpoint()) { + if (!getApiEndpoint() + .equals(other.getApiEndpoint())) return false; + } + if (hasProjectId() != other.hasProjectId()) return false; + if (hasProjectId()) { + if (!getProjectId() + .equals(other.getProjectId())) return false; + } + if (hasEndpointId() != other.hasEndpointId()) return false; + if (hasEndpointId()) { + if (!getEndpointId() + .equals(other.getEndpointId())) return false; + } + if (hasRegion() != other.hasRegion()) return false; + if (hasRegion()) { + if (!getRegion() + .equals(other.getRegion())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -14543,90 +17366,98 @@ public int hashCode() { 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 (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 (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 (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 (hasTopLogProbs()) { - hash = (37 * hash) + TOP_LOG_PROBS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTopLogProbs()); + if (hasStopSequences()) { + hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER; + hash = (53 * hash) + getStopSequences().hashCode(); + } + if (hasApiEndpoint()) { + hash = (37 * hash) + API_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getApiEndpoint().hashCode(); + } + if (hasProjectId()) { + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + } + if (hasEndpointId()) { + hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEndpointId().hashCode(); + } + if (hasRegion()) { + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom( + 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.GenerativeOpenAI parseFrom( + 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.GenerativeOpenAI parseFrom( + 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.GenerativeOpenAI parseFrom( + 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.GenerativeOpenAI parseFrom(byte[] data) + 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.GenerativeOpenAI parseFrom( + 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.GenerativeOpenAI parseFrom(java.io.InputStream input) + 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.GenerativeOpenAI parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -14634,26 +17465,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseDelimitedFrom(java.io.InputStream input) + 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.GenerativeOpenAI parseDelimitedFrom( + 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.GenerativeOpenAI parseFrom( + 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.GenerativeOpenAI parseFrom( + 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 { @@ -14666,7 +17497,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -14682,26 +17513,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeOpenAI} + * 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.GenerativeOpenAI) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder { + // @@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_GenerativeOpenAI_descriptor; + 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_GenerativeOpenAI_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder.class); + 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.GenerativeOpenAI.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -14714,7 +17545,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getStopFieldBuilder(); + getStopSequencesFieldBuilder(); } } @java.lang.Override @@ -14722,36 +17553,38 @@ 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; + topK_ = 0L; topP_ = 0D; - topLogProbs_ = 0L; + stopSequences_ = null; + if (stopSequencesBuilder_ != null) { + stopSequencesBuilder_.dispose(); + stopSequencesBuilder_ = null; + } + apiEndpoint_ = ""; + projectId_ = ""; + endpointId_ = ""; + region_ = ""; 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; + 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.GenerativeOpenAI getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance(); + 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.GenerativeOpenAI build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI result = buildPartial(); + 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); } @@ -14759,14 +17592,14 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpe } @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); + 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.GenerativeOpenAI 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)) { @@ -14774,41 +17607,50 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.logProbs_ = logProbs_; + result.maxTokens_ = maxTokens_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.maxTokens_ = maxTokens_; + result.model_ = model_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.model_ = model_; + result.presencePenalty_ = presencePenalty_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.n_ = n_; - to_bitField0_ |= 0x00000008; + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.presencePenalty_ = presencePenalty_; - to_bitField0_ |= 0x00000010; + result.topK_ = topK_; + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.stop_ = stopBuilder_ == null - ? stop_ - : stopBuilder_.build(); - to_bitField0_ |= 0x00000020; + result.topP_ = topP_; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.temperature_ = temperature_; - to_bitField0_ |= 0x00000040; + result.stopSequences_ = stopSequencesBuilder_ == null + ? stopSequences_ + : stopSequencesBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.topP_ = topP_; - to_bitField0_ |= 0x00000080; + result.apiEndpoint_ = apiEndpoint_; + to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.topLogProbs_ = topLogProbs_; - to_bitField0_ |= 0x00000100; + result.projectId_ = projectId_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.endpointId_ = endpointId_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.region_ = region_; + to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; } @@ -14847,47 +17689,61 @@ public Builder addRepeatedField( } @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); + 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.GenerativeOpenAI other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance()) 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.hasLogProbs()) { - setLogProbs(other.getLogProbs()); - } if (other.hasMaxTokens()) { setMaxTokens(other.getMaxTokens()); } - if (!other.getModel().isEmpty()) { + if (other.hasModel()) { model_ = other.model_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; 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.hasTopK()) { + setTopK(other.getTopK()); + } if (other.hasTopP()) { setTopP(other.getTopP()); } - if (other.hasTopLogProbs()) { - setTopLogProbs(other.getTopLogProbs()); + if (other.hasStopSequences()) { + mergeStopSequences(other.getStopSequences()); + } + if (other.hasApiEndpoint()) { + apiEndpoint_ = other.apiEndpoint_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasProjectId()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasEndpointId()) { + endpointId_ = other.endpointId_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasRegion()) { + region_ = other.region_; + bitField0_ |= 0x00000800; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -14921,52 +17777,62 @@ public Builder mergeFrom( break; } // case 9 case 16: { - logProbs_ = input.readBool(); + maxTokens_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 - case 24: { - maxTokens_ = input.readInt64(); + case 26: { + model_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; - } // case 24 - case 34: { - model_ = input.readStringRequireUtf8(); + } // case 26 + case 33: { + presencePenalty_ = input.readDouble(); bitField0_ |= 0x00000008; break; - } // case 34 - case 40: { - n_ = input.readInt64(); + } // case 33 + case 41: { + temperature_ = input.readDouble(); bitField0_ |= 0x00000010; break; - } // case 40 - case 49: { - presencePenalty_ = input.readDouble(); + } // case 41 + case 48: { + topK_ = input.readInt64(); bitField0_ |= 0x00000020; break; - } // case 49 - case 58: { - input.readMessage( - getStopFieldBuilder().getBuilder(), - extensionRegistry); + } // case 48 + case 57: { + topP_ = input.readDouble(); bitField0_ |= 0x00000040; break; - } // case 58 - case 65: { - temperature_ = input.readDouble(); + } // case 57 + case 66: { + input.readMessage( + getStopSequencesFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000080; break; - } // case 65 - case 73: { - topP_ = input.readDouble(); + } // case 66 + case 74: { + apiEndpoint_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; - } // case 73 - case 80: { - topLogProbs_ = input.readInt64(); + } // case 74 + case 82: { + projectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; - } // case 80 + } // case 82 + case 90: { + endpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -15024,57 +17890,17 @@ public Builder clearFrequencyPenalty() { 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; + * optional int64 max_tokens = 2; * @return Whether the maxTokens field is set. */ @java.lang.Override public boolean hasMaxTokens() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional int64 max_tokens = 3; + * optional int64 max_tokens = 2; * @return The maxTokens. */ @java.lang.Override @@ -15082,23 +17908,23 @@ public long getMaxTokens() { return maxTokens_; } /** - * optional int64 max_tokens = 3; + * optional int64 max_tokens = 2; * @param value The maxTokens to set. * @return This builder for chaining. */ public Builder setMaxTokens(long value) { maxTokens_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * optional int64 max_tokens = 3; + * optional int64 max_tokens = 2; * @return This builder for chaining. */ public Builder clearMaxTokens() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); maxTokens_ = 0L; onChanged(); return this; @@ -15106,7 +17932,14 @@ public Builder clearMaxTokens() { private java.lang.Object model_ = ""; /** - * string model = 4; + * 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() { @@ -15122,7 +17955,7 @@ public java.lang.String getModel() { } } /** - * string model = 4; + * optional string model = 3; * @return The bytes for model. */ public com.google.protobuf.ByteString @@ -15139,7 +17972,7 @@ public java.lang.String getModel() { } } /** - * string model = 4; + * optional string model = 3; * @param value The model to set. * @return This builder for chaining. */ @@ -15147,22 +17980,22 @@ public Builder setModel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } model_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * string model = 4; + * optional string model = 3; * @return This builder for chaining. */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * string model = 4; + * optional string model = 3; * @param value The bytes for model to set. * @return This builder for chaining. */ @@ -15171,328 +18004,604 @@ public Builder setModelBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } - private long n_ ; + private double presencePenalty_ ; /** - * optional int64 n = 5; - * @return Whether the n field is set. + * optional double presence_penalty = 4; + * @return Whether the presencePenalty field is set. */ @java.lang.Override - public boolean hasN() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasPresencePenalty() { + return ((bitField0_ & 0x00000008) != 0); } /** - * optional int64 n = 5; - * @return The n. + * optional double presence_penalty = 4; + * @return The presencePenalty. */ @java.lang.Override - public long getN() { - return n_; + public double getPresencePenalty() { + return presencePenalty_; } /** - * optional int64 n = 5; - * @param value The n to set. + * optional double presence_penalty = 4; + * @param value The presencePenalty to set. * @return This builder for chaining. */ - public Builder setN(long value) { + public Builder setPresencePenalty(double value) { - n_ = value; - bitField0_ |= 0x00000010; + presencePenalty_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } /** - * optional int64 n = 5; + * optional double presence_penalty = 4; * @return This builder for chaining. */ - public Builder clearN() { + 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); - n_ = 0L; + temperature_ = 0D; onChanged(); return this; } - private double presencePenalty_ ; + private long topK_ ; /** - * optional double presence_penalty = 6; - * @return Whether the presencePenalty field is set. + * optional int64 top_k = 6; + * @return Whether the topK field is set. */ @java.lang.Override - public boolean hasPresencePenalty() { + public boolean hasTopK() { return ((bitField0_ & 0x00000020) != 0); } /** - * optional double presence_penalty = 6; - * @return The presencePenalty. + * optional int64 top_k = 6; + * @return The topK. */ @java.lang.Override - public double getPresencePenalty() { - return presencePenalty_; + public long getTopK() { + return topK_; } /** - * optional double presence_penalty = 6; - * @param value The presencePenalty to set. + * optional int64 top_k = 6; + * @param value The topK to set. * @return This builder for chaining. */ - public Builder setPresencePenalty(double value) { + public Builder setTopK(long value) { - presencePenalty_ = value; + topK_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * optional double presence_penalty = 6; + * optional int64 top_k = 6; * @return This builder for chaining. */ - public Builder clearPresencePenalty() { + public Builder clearTopK() { bitField0_ = (bitField0_ & ~0x00000020); - presencePenalty_ = 0D; + topK_ = 0L; 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_; + private double topP_ ; /** - * optional .weaviate.v1.TextArray stop = 7; - * @return Whether the stop field is set. + * optional double top_p = 7; + * @return Whether the topP field is set. */ - public boolean hasStop() { + @java.lang.Override + public boolean hasTopP() { return ((bitField0_ & 0x00000040) != 0); } /** - * optional .weaviate.v1.TextArray stop = 7; - * @return The stop. + * optional double top_p = 7; + * @return The topP. */ - 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_; + @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 stopBuilder_.getMessage(); + return stopSequencesBuilder_.getMessage(); } } /** - * optional .weaviate.v1.TextArray stop = 7; + * optional .weaviate.v1.TextArray stop_sequences = 8; */ - public Builder setStop(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { - if (stopBuilder_ == null) { + public Builder setStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopSequencesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - stop_ = value; + stopSequences_ = value; } else { - stopBuilder_.setMessage(value); + stopSequencesBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } /** - * optional .weaviate.v1.TextArray stop = 7; + * optional .weaviate.v1.TextArray stop_sequences = 8; */ - public Builder setStop( + public Builder setStopSequences( io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) { - if (stopBuilder_ == null) { - stop_ = builderForValue.build(); + if (stopSequencesBuilder_ == null) { + stopSequences_ = builderForValue.build(); } else { - stopBuilder_.setMessage(builderForValue.build()); + stopSequencesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } /** - * optional .weaviate.v1.TextArray stop = 7; + * optional .weaviate.v1.TextArray stop_sequences = 8; */ - 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); + 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 { - stop_ = value; + stopSequences_ = value; } } else { - stopBuilder_.mergeFrom(value); + stopSequencesBuilder_.mergeFrom(value); } - if (stop_ != null) { - bitField0_ |= 0x00000040; + if (stopSequences_ != null) { + bitField0_ |= 0x00000080; onChanged(); } return this; } /** - * optional .weaviate.v1.TextArray stop = 7; + * optional .weaviate.v1.TextArray stop_sequences = 8; */ - public Builder clearStop() { - bitField0_ = (bitField0_ & ~0x00000040); - stop_ = null; - if (stopBuilder_ != null) { - stopBuilder_.dispose(); - stopBuilder_ = null; + public Builder clearStopSequences() { + bitField0_ = (bitField0_ & ~0x00000080); + stopSequences_ = null; + if (stopSequencesBuilder_ != null) { + stopSequencesBuilder_.dispose(); + stopSequencesBuilder_ = null; } onChanged(); return this; } /** - * optional .weaviate.v1.TextArray stop = 7; + * optional .weaviate.v1.TextArray stop_sequences = 8; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopBuilder() { - bitField0_ |= 0x00000040; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() { + bitField0_ |= 0x00000080; onChanged(); - return getStopFieldBuilder().getBuilder(); + return getStopSequencesFieldBuilder().getBuilder(); } /** - * optional .weaviate.v1.TextArray stop = 7; + * optional .weaviate.v1.TextArray stop_sequences = 8; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder() { - if (stopBuilder_ != null) { - return stopBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() { + if (stopSequencesBuilder_ != null) { + return stopSequencesBuilder_.getMessageOrBuilder(); } else { - return stop_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_; + return stopSequences_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; } } /** - * optional .weaviate.v1.TextArray stop = 7; + * 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> - getStopFieldBuilder() { - if (stopBuilder_ == null) { - stopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + 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>( - getStop(), + getStopSequences(), getParentForChildren(), isClean()); - stop_ = null; + stopSequences_ = null; } - return stopBuilder_; + return stopSequencesBuilder_; } - private double temperature_ ; + private java.lang.Object apiEndpoint_ = ""; /** - * optional double temperature = 8; - * @return Whether the temperature field is set. + * optional string api_endpoint = 9; + * @return Whether the apiEndpoint field is set. */ - @java.lang.Override - public boolean hasTemperature() { - return ((bitField0_ & 0x00000080) != 0); + public boolean hasApiEndpoint() { + return ((bitField0_ & 0x00000100) != 0); } /** - * optional double temperature = 8; - * @return The temperature. + * optional string api_endpoint = 9; + * @return The apiEndpoint. */ - @java.lang.Override - public double getTemperature() { - return temperature_; + 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 double temperature = 8; - * @param value The temperature to set. + * optional string api_endpoint = 9; + * @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 = 9; + * @param value The apiEndpoint to set. * @return This builder for chaining. */ - public Builder setTemperature(double value) { - - temperature_ = value; - bitField0_ |= 0x00000080; + public Builder setApiEndpoint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + apiEndpoint_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } /** - * optional double temperature = 8; + * optional string api_endpoint = 9; * @return This builder for chaining. */ - public Builder clearTemperature() { - bitField0_ = (bitField0_ & ~0x00000080); - temperature_ = 0D; + public Builder clearApiEndpoint() { + apiEndpoint_ = getDefaultInstance().getApiEndpoint(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * optional string api_endpoint = 9; + * @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_ |= 0x00000100; onChanged(); return this; } - private double topP_ ; + private java.lang.Object projectId_ = ""; /** - * optional double top_p = 9; - * @return Whether the topP field is set. + * optional string project_id = 10; + * @return Whether the projectId field is set. */ - @java.lang.Override - public boolean hasTopP() { - return ((bitField0_ & 0x00000100) != 0); + public boolean hasProjectId() { + return ((bitField0_ & 0x00000200) != 0); } /** - * optional double top_p = 9; - * @return The topP. + * optional string project_id = 10; + * @return The projectId. */ - @java.lang.Override - public double getTopP() { - return topP_; + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional double top_p = 9; - * @param value The topP to set. + * optional string project_id = 10; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string project_id = 10; + * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setTopP(double value) { - - topP_ = value; - bitField0_ |= 0x00000100; + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + projectId_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } /** - * optional double top_p = 9; + * optional string project_id = 10; * @return This builder for chaining. */ - public Builder clearTopP() { - bitField0_ = (bitField0_ & ~0x00000100); - topP_ = 0D; + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * optional string project_id = 10; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } - private long topLogProbs_ ; + private java.lang.Object endpointId_ = ""; /** - * optional int64 top_log_probs = 10; - * @return Whether the topLogProbs field is set. + * optional string endpoint_id = 11; + * @return Whether the endpointId field is set. */ - @java.lang.Override - public boolean hasTopLogProbs() { - return ((bitField0_ & 0x00000200) != 0); + public boolean hasEndpointId() { + return ((bitField0_ & 0x00000400) != 0); } /** - * optional int64 top_log_probs = 10; - * @return The topLogProbs. + * optional string endpoint_id = 11; + * @return The endpointId. */ - @java.lang.Override - public long getTopLogProbs() { - return topLogProbs_; + public java.lang.String getEndpointId() { + java.lang.Object ref = endpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional int64 top_log_probs = 10; - * @param value The topLogProbs to set. + * optional string endpoint_id = 11; + * @return The bytes for endpointId. + */ + public com.google.protobuf.ByteString + getEndpointIdBytes() { + java.lang.Object ref = endpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string endpoint_id = 11; + * @param value The endpointId to set. * @return This builder for chaining. */ - public Builder setTopLogProbs(long value) { + public Builder setEndpointId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + endpointId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional string endpoint_id = 11; + * @return This builder for chaining. + */ + public Builder clearEndpointId() { + endpointId_ = getDefaultInstance().getEndpointId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * optional string endpoint_id = 11; + * @param value The bytes for endpointId to set. + * @return This builder for chaining. + */ + public Builder setEndpointIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + endpointId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } - topLogProbs_ = value; - bitField0_ |= 0x00000200; + private java.lang.Object region_ = ""; + /** + * optional string region = 12; + * @return Whether the region field is set. + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string region = 12; + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string region = 12; + * @return The bytes for region. + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string region = 12; + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + region_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } /** - * optional int64 top_log_probs = 10; + * optional string region = 12; * @return This builder for chaining. */ - public Builder clearTopLogProbs() { - bitField0_ = (bitField0_ & ~0x00000200); - topLogProbs_ = 0L; + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * optional string region = 12; + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -15509,23 +18618,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOpenAI) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogle) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOpenAI) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI DEFAULT_INSTANCE; + // @@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.GenerativeOpenAI(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GenerativeOpenAI parsePartialFrom( + public GenerativeGoogle parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15544,137 +18653,177 @@ public GenerativeOpenAI 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.WeaviateProtoGenerative.GenerativeOpenAI getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface GenerativeGoogleOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogle) + public interface GenerativeDatabricksOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDatabricks) 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. + * optional string endpoint = 1; + * @return Whether the endpoint field is set. */ - double getFrequencyPenalty(); - + boolean hasEndpoint(); /** - * optional int64 max_tokens = 2; - * @return Whether the maxTokens field is set. + * optional string endpoint = 1; + * @return The endpoint. */ - boolean hasMaxTokens(); + java.lang.String getEndpoint(); /** - * optional int64 max_tokens = 2; - * @return The maxTokens. + * optional string endpoint = 1; + * @return The bytes for endpoint. */ - long getMaxTokens(); + com.google.protobuf.ByteString + getEndpointBytes(); /** - * optional string model = 3; + * optional string model = 2; * @return Whether the model field is set. */ boolean hasModel(); /** - * optional string model = 3; + * optional string model = 2; * @return The model. */ java.lang.String getModel(); /** - * optional string model = 3; + * optional string model = 2; * @return The bytes for model. */ com.google.protobuf.ByteString getModelBytes(); /** - * optional double presence_penalty = 4; - * @return Whether the presencePenalty field is set. + * optional double frequency_penalty = 3; + * @return Whether the frequencyPenalty field is set. */ - boolean hasPresencePenalty(); + boolean hasFrequencyPenalty(); /** - * optional double presence_penalty = 4; - * @return The presencePenalty. + * optional double frequency_penalty = 3; + * @return The frequencyPenalty. */ - double getPresencePenalty(); + double getFrequencyPenalty(); /** - * optional double temperature = 5; - * @return Whether the temperature field is set. + * optional bool log_probs = 4; + * @return Whether the logProbs field is set. */ - boolean hasTemperature(); + boolean hasLogProbs(); /** - * optional double temperature = 5; - * @return The temperature. + * optional bool log_probs = 4; + * @return The logProbs. */ - double getTemperature(); + boolean getLogProbs(); /** - * optional int64 top_k = 6; - * @return Whether the topK field is set. + * optional int64 top_log_probs = 5; + * @return Whether the topLogProbs field is set. */ - boolean hasTopK(); + boolean hasTopLogProbs(); /** - * optional int64 top_k = 6; - * @return The topK. + * optional int64 top_log_probs = 5; + * @return The topLogProbs. */ - long getTopK(); + long getTopLogProbs(); /** - * optional double top_p = 7; - * @return Whether the topP field is set. + * optional int64 max_tokens = 6; + * @return Whether the maxTokens field is set. */ - boolean hasTopP(); + boolean hasMaxTokens(); /** - * optional double top_p = 7; - * @return The topP. + * optional int64 max_tokens = 6; + * @return The maxTokens. */ - double getTopP(); + long getMaxTokens(); /** - * optional .weaviate.v1.TextArray stop_sequences = 8; - * @return Whether the stopSequences field is set. + * optional int64 n = 7; + * @return Whether the n field is set. */ - boolean hasStopSequences(); + boolean hasN(); /** - * optional .weaviate.v1.TextArray stop_sequences = 8; - * @return The stopSequences. + * optional int64 n = 7; + * @return The n. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences(); + long getN(); + /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional double presence_penalty = 8; + * @return Whether the presencePenalty field is set. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder(); + boolean hasPresencePenalty(); + /** + * optional double presence_penalty = 8; + * @return The presencePenalty. + */ + double getPresencePenalty(); + + /** + * optional .weaviate.v1.TextArray stop = 9; + * @return Whether the stop field is set. + */ + boolean hasStop(); + /** + * optional .weaviate.v1.TextArray stop = 9; + * @return The stop. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop(); + /** + * optional .weaviate.v1.TextArray stop = 9; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder(); + + /** + * optional double temperature = 10; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 10; + * @return The temperature. + */ + double getTemperature(); + + /** + * optional double top_p = 11; + * @return Whether the topP field is set. + */ + boolean hasTopP(); + /** + * optional double top_p = 11; + * @return The topP. + */ + double getTopP(); } /** - * Protobuf type {@code weaviate.v1.GenerativeGoogle} + * Protobuf type {@code weaviate.v1.GenerativeDatabricks} */ - public static final class GenerativeGoogle extends + public static final class GenerativeDatabricks extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogle) - GenerativeGoogleOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDatabricks) + GenerativeDatabricksOrBuilder { private static final long serialVersionUID = 0L; - // Use GenerativeGoogle.newBuilder() to construct. - private GenerativeGoogle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GenerativeDatabricks.newBuilder() to construct. + private GenerativeDatabricks(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerativeGoogle() { + private GenerativeDatabricks() { + endpoint_ = ""; model_ = ""; } @@ -15682,74 +18831,83 @@ private GenerativeGoogle() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GenerativeGoogle(); + return new GenerativeDatabricks(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricks_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricks_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.Builder.class); } private int bitField0_; - public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 1; - private double frequencyPenalty_ = 0D; + public static final int ENDPOINT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; /** - * optional double frequency_penalty = 1; - * @return Whether the frequencyPenalty field is set. + * optional string endpoint = 1; + * @return Whether the endpoint field is set. */ @java.lang.Override - public boolean hasFrequencyPenalty() { + public boolean hasEndpoint() { 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. + * optional string endpoint = 1; + * @return The endpoint. */ @java.lang.Override - public boolean hasMaxTokens() { - return ((bitField0_ & 0x00000002) != 0); + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + 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(); + endpoint_ = s; + return s; + } } /** - * optional int64 max_tokens = 2; - * @return The maxTokens. + * optional string endpoint = 1; + * @return The bytes for endpoint. */ @java.lang.Override - public long getMaxTokens() { - return maxTokens_; + public com.google.protobuf.ByteString + getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int MODEL_FIELD_NUMBER = 3; + public static final int MODEL_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * optional string model = 3; + * optional string model = 2; * @return Whether the model field is set. */ @java.lang.Override public boolean hasModel() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional string model = 3; + * optional string model = 2; * @return The model. */ @java.lang.Override @@ -15766,7 +18924,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 3; + * optional string model = 2; * @return The bytes for model. */ @java.lang.Override @@ -15784,106 +18942,182 @@ public java.lang.String getModel() { } } - public static final int PRESENCE_PENALTY_FIELD_NUMBER = 4; - private double presencePenalty_ = 0D; + public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 3; + private double frequencyPenalty_ = 0D; /** - * optional double presence_penalty = 4; - * @return Whether the presencePenalty field is set. + * optional double frequency_penalty = 3; + * @return Whether the frequencyPenalty field is set. */ @java.lang.Override - public boolean hasPresencePenalty() { + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double frequency_penalty = 3; + * @return The frequencyPenalty. + */ + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; + } + + public static final int LOG_PROBS_FIELD_NUMBER = 4; + private boolean logProbs_ = false; + /** + * optional bool log_probs = 4; + * @return Whether the logProbs field is set. + */ + @java.lang.Override + public boolean hasLogProbs() { return ((bitField0_ & 0x00000008) != 0); } /** - * optional double presence_penalty = 4; - * @return The presencePenalty. + * optional bool log_probs = 4; + * @return The logProbs. */ @java.lang.Override - public double getPresencePenalty() { - return presencePenalty_; + public boolean getLogProbs() { + return logProbs_; } - public static final int TEMPERATURE_FIELD_NUMBER = 5; - private double temperature_ = 0D; + public static final int TOP_LOG_PROBS_FIELD_NUMBER = 5; + private long topLogProbs_ = 0L; /** - * optional double temperature = 5; - * @return Whether the temperature field is set. + * optional int64 top_log_probs = 5; + * @return Whether the topLogProbs field is set. */ @java.lang.Override - public boolean hasTemperature() { + public boolean hasTopLogProbs() { return ((bitField0_ & 0x00000010) != 0); } /** - * optional double temperature = 5; - * @return The temperature. + * optional int64 top_log_probs = 5; + * @return The topLogProbs. */ @java.lang.Override - public double getTemperature() { - return temperature_; + public long getTopLogProbs() { + return topLogProbs_; } - public static final int TOP_K_FIELD_NUMBER = 6; - private long topK_ = 0L; + public static final int MAX_TOKENS_FIELD_NUMBER = 6; + private long maxTokens_ = 0L; /** - * optional int64 top_k = 6; - * @return Whether the topK field is set. + * optional int64 max_tokens = 6; + * @return Whether the maxTokens field is set. */ @java.lang.Override - public boolean hasTopK() { + public boolean hasMaxTokens() { return ((bitField0_ & 0x00000020) != 0); } /** - * optional int64 top_k = 6; - * @return The topK. + * optional int64 max_tokens = 6; + * @return The maxTokens. */ @java.lang.Override - public long getTopK() { - return topK_; + public long getMaxTokens() { + return maxTokens_; } - public static final int TOP_P_FIELD_NUMBER = 7; - private double topP_ = 0D; + public static final int N_FIELD_NUMBER = 7; + private long n_ = 0L; /** - * optional double top_p = 7; - * @return Whether the topP field is set. + * optional int64 n = 7; + * @return Whether the n field is set. */ @java.lang.Override - public boolean hasTopP() { + public boolean hasN() { return ((bitField0_ & 0x00000040) != 0); } /** - * optional double top_p = 7; - * @return The topP. + * optional int64 n = 7; + * @return The n. */ @java.lang.Override - public double getTopP() { - return topP_; + public long getN() { + return n_; } - public static final int STOP_SEQUENCES_FIELD_NUMBER = 8; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_; + public static final int PRESENCE_PENALTY_FIELD_NUMBER = 8; + private double presencePenalty_ = 0D; /** - * optional .weaviate.v1.TextArray stop_sequences = 8; - * @return Whether the stopSequences field is set. + * optional double presence_penalty = 8; + * @return Whether the presencePenalty field is set. */ @java.lang.Override - public boolean hasStopSequences() { + public boolean hasPresencePenalty() { return ((bitField0_ & 0x00000080) != 0); } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; - * @return The stopSequences. + * optional double presence_penalty = 8; + * @return The presencePenalty. */ @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_; + public double getPresencePenalty() { + return presencePenalty_; } + + public static final int STOP_FIELD_NUMBER = 9; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stop_; /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional .weaviate.v1.TextArray stop = 9; + * @return Whether the stop field is set. */ @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 boolean hasStop() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .weaviate.v1.TextArray stop = 9; + * @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 = 9; + */ + @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 = 10; + private double temperature_ = 0D; + /** + * optional double temperature = 10; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional double temperature = 10; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + public static final int TOP_P_FIELD_NUMBER = 11; + private double topP_ = 0D; + /** + * optional double top_p = 11; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional double top_p = 11; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; } private byte memoizedIsInitialized = -1; @@ -15901,28 +19135,37 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - output.writeDouble(1, frequencyPenalty_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, maxTokens_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); } if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_); + output.writeDouble(3, frequencyPenalty_); } if (((bitField0_ & 0x00000008) != 0)) { - output.writeDouble(4, presencePenalty_); + output.writeBool(4, logProbs_); } if (((bitField0_ & 0x00000010) != 0)) { - output.writeDouble(5, temperature_); + output.writeInt64(5, topLogProbs_); } if (((bitField0_ & 0x00000020) != 0)) { - output.writeInt64(6, topK_); + output.writeInt64(6, maxTokens_); } if (((bitField0_ & 0x00000040) != 0)) { - output.writeDouble(7, topP_); + output.writeInt64(7, n_); } if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(8, getStopSequences()); + output.writeDouble(8, presencePenalty_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getStop()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeDouble(10, temperature_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeDouble(11, topP_); } getUnknownFields().writeTo(output); } @@ -15934,35 +19177,46 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, frequencyPenalty_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, maxTokens_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, frequencyPenalty_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, presencePenalty_); + .computeBoolSize(4, logProbs_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, temperature_); + .computeInt64Size(5, topLogProbs_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, topK_); + .computeInt64Size(6, maxTokens_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(7, topP_); + .computeInt64Size(7, n_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getStopSequences()); + .computeDoubleSize(8, presencePenalty_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getStop()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(10, temperature_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, topP_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -15974,26 +19228,46 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) obj; + if (hasEndpoint() != other.hasEndpoint()) return false; + if (hasEndpoint()) { + if (!getEndpoint() + .equals(other.getEndpoint())) return false; + } + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel() + .equals(other.getModel())) 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 (hasLogProbs() != other.hasLogProbs()) return false; + if (hasLogProbs()) { + if (getLogProbs() + != other.getLogProbs()) return false; + } + if (hasTopLogProbs() != other.hasTopLogProbs()) return false; + if (hasTopLogProbs()) { + if (getTopLogProbs() + != other.getTopLogProbs()) 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 (hasPresencePenalty() != other.hasPresencePenalty()) return false; if (hasPresencePenalty()) { @@ -16001,28 +19275,23 @@ public boolean equals(final java.lang.Object obj) { != 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 (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; } @@ -16034,87 +19303,101 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEndpoint()) { + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + } + if (hasModel()) { + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().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 (hasTopLogProbs()) { + hash = (37 * hash) + TOP_LOG_PROBS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTopLogProbs()); + } 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 (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 (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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -16122,26 +19405,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -16154,7 +19437,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -16170,26 +19453,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeGoogle} + * Protobuf type {@code weaviate.v1.GenerativeDatabricks} */ 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 { + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDatabricks) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricks_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricks_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -16202,42 +19485,45 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getStopSequencesFieldBuilder(); + getStopFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + endpoint_ = ""; + model_ = ""; frequencyPenalty_ = 0D; + logProbs_ = false; + topLogProbs_ = 0L; maxTokens_ = 0L; - model_ = ""; + n_ = 0L; presencePenalty_ = 0D; + stop_ = null; + if (stopBuilder_ != null) { + stopBuilder_.dispose(); + stopBuilder_ = null; + } 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; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricks_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -16245,50 +19531,62 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoo } @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); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.frequencyPenalty_ = frequencyPenalty_; + result.endpoint_ = endpoint_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxTokens_ = maxTokens_; + result.model_ = model_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.model_ = model_; + result.frequencyPenalty_ = frequencyPenalty_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.presencePenalty_ = presencePenalty_; + result.logProbs_ = logProbs_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.temperature_ = temperature_; + result.topLogProbs_ = topLogProbs_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.topK_ = topK_; + result.maxTokens_ = maxTokens_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.topP_ = topP_; + result.n_ = n_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.stopSequences_ = stopSequencesBuilder_ == null - ? stopSequences_ - : stopSequencesBuilder_.build(); + result.presencePenalty_ = presencePenalty_; to_bitField0_ |= 0x00000080; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.stop_ = stopBuilder_ == null + ? stop_ + : stopBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000400; + } result.bitField0_ |= to_bitField0_; } @@ -16326,42 +19624,53 @@ public Builder addRepeatedField( } @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); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks)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; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks.getDefaultInstance()) return this; + if (other.hasEndpoint()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000002; + onChanged(); + } if (other.hasFrequencyPenalty()) { setFrequencyPenalty(other.getFrequencyPenalty()); } + if (other.hasLogProbs()) { + setLogProbs(other.getLogProbs()); + } + if (other.hasTopLogProbs()) { + setTopLogProbs(other.getTopLogProbs()); + } if (other.hasMaxTokens()) { setMaxTokens(other.getMaxTokens()); } - if (other.hasModel()) { - model_ = other.model_; - bitField0_ |= 0x00000004; - 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.hasTopK()) { - setTopK(other.getTopK()); - } if (other.hasTopP()) { setTopP(other.getTopP()); } - if (other.hasStopSequences()) { - mergeStopSequences(other.getStopSequences()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -16388,48 +19697,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: { - frequencyPenalty_ = input.readDouble(); + case 10: { + endpoint_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 9 - case 16: { - maxTokens_ = input.readInt64(); + } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; - } // case 16 - case 26: { - model_ = input.readStringRequireUtf8(); + } // case 18 + case 25: { + frequencyPenalty_ = input.readDouble(); bitField0_ |= 0x00000004; break; - } // case 26 - case 33: { - presencePenalty_ = input.readDouble(); + } // case 25 + case 32: { + logProbs_ = input.readBool(); bitField0_ |= 0x00000008; break; - } // case 33 - case 41: { - temperature_ = input.readDouble(); - bitField0_ |= 0x00000010; + } // case 32 + case 40: { + topLogProbs_ = input.readInt64(); + bitField0_ |= 0x00000010; break; - } // case 41 + } // case 40 case 48: { - topK_ = input.readInt64(); + maxTokens_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 48 - case 57: { - topP_ = input.readDouble(); + case 56: { + n_ = input.readInt64(); bitField0_ |= 0x00000040; break; - } // case 57 - case 66: { + } // case 56 + case 65: { + presencePenalty_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 74: { input.readMessage( - getStopSequencesFieldBuilder().getBuilder(), + getStopFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; - } // case 66 + } // case 74 + case 81: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000200; + break; + } // case 81 + case 89: { + topP_ = input.readDouble(); + bitField0_ |= 0x00000400; + break; + } // case 89 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -16447,96 +19771,95 @@ public Builder mergeFrom( } private int bitField0_; - private double frequencyPenalty_ ; + private java.lang.Object endpoint_ = ""; /** - * optional double frequency_penalty = 1; - * @return Whether the frequencyPenalty field is set. + * optional string endpoint = 1; + * @return Whether the endpoint field is set. */ - @java.lang.Override - public boolean hasFrequencyPenalty() { + public boolean hasEndpoint() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional double frequency_penalty = 1; - * @return The frequencyPenalty. + * optional string endpoint = 1; + * @return The endpoint. */ - @java.lang.Override - public double getFrequencyPenalty() { - return frequencyPenalty_; + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * optional double frequency_penalty = 1; - * @param value The frequencyPenalty to set. - * @return This builder for chaining. + * optional string endpoint = 1; + * @return The bytes for endpoint. */ - public Builder setFrequencyPenalty(double value) { - - frequencyPenalty_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public com.google.protobuf.ByteString + getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** - * optional double frequency_penalty = 1; + * optional string endpoint = 1; + * @param value The endpoint to set. * @return This builder for chaining. */ - public Builder clearFrequencyPenalty() { - bitField0_ = (bitField0_ & ~0x00000001); - frequencyPenalty_ = 0D; + public Builder setEndpoint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + endpoint_ = 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. + * optional string endpoint = 1; * @return This builder for chaining. */ - public Builder setMaxTokens(long value) { - - maxTokens_ = value; - bitField0_ |= 0x00000002; + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * optional int64 max_tokens = 2; + * optional string endpoint = 1; + * @param value The bytes for endpoint to set. * @return This builder for chaining. */ - public Builder clearMaxTokens() { - bitField0_ = (bitField0_ & ~0x00000002); - maxTokens_ = 0L; + public Builder setEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object model_ = ""; /** - * optional string model = 3; + * optional string model = 2; * @return Whether the model field is set. */ public boolean hasModel() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional string model = 3; + * optional string model = 2; * @return The model. */ public java.lang.String getModel() { @@ -16552,7 +19875,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 3; + * optional string model = 2; * @return The bytes for model. */ public com.google.protobuf.ByteString @@ -16569,7 +19892,7 @@ public java.lang.String getModel() { } } /** - * optional string model = 3; + * optional string model = 2; * @param value The model to set. * @return This builder for chaining. */ @@ -16577,22 +19900,22 @@ public Builder setModel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } model_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * optional string model = 3; + * optional string model = 2; * @return This builder for chaining. */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * optional string model = 3; + * optional string model = 2; * @param value The bytes for model to set. * @return This builder for chaining. */ @@ -16601,290 +19924,450 @@ public Builder setModelBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private double frequencyPenalty_ ; + /** + * optional double frequency_penalty = 3; + * @return Whether the frequencyPenalty field is set. + */ + @java.lang.Override + public boolean hasFrequencyPenalty() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double frequency_penalty = 3; + * @return The frequencyPenalty. + */ + @java.lang.Override + public double getFrequencyPenalty() { + return frequencyPenalty_; + } + /** + * optional double frequency_penalty = 3; + * @param value The frequencyPenalty to set. + * @return This builder for chaining. + */ + public Builder setFrequencyPenalty(double value) { + + frequencyPenalty_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + /** + * optional double frequency_penalty = 3; + * @return This builder for chaining. + */ + public Builder clearFrequencyPenalty() { + bitField0_ = (bitField0_ & ~0x00000004); + frequencyPenalty_ = 0D; + onChanged(); + return this; + } - private double presencePenalty_ ; + private boolean logProbs_ ; /** - * optional double presence_penalty = 4; - * @return Whether the presencePenalty field is set. + * optional bool log_probs = 4; + * @return Whether the logProbs field is set. */ @java.lang.Override - public boolean hasPresencePenalty() { + public boolean hasLogProbs() { return ((bitField0_ & 0x00000008) != 0); } /** - * optional double presence_penalty = 4; - * @return The presencePenalty. + * optional bool log_probs = 4; + * @return The logProbs. */ @java.lang.Override - public double getPresencePenalty() { - return presencePenalty_; + public boolean getLogProbs() { + return logProbs_; } /** - * optional double presence_penalty = 4; - * @param value The presencePenalty to set. + * optional bool log_probs = 4; + * @param value The logProbs to set. * @return This builder for chaining. */ - public Builder setPresencePenalty(double value) { + public Builder setLogProbs(boolean value) { - presencePenalty_ = value; + logProbs_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * optional double presence_penalty = 4; + * optional bool log_probs = 4; * @return This builder for chaining. */ - public Builder clearPresencePenalty() { + public Builder clearLogProbs() { bitField0_ = (bitField0_ & ~0x00000008); - presencePenalty_ = 0D; + logProbs_ = false; onChanged(); return this; } - private double temperature_ ; + private long topLogProbs_ ; /** - * optional double temperature = 5; - * @return Whether the temperature field is set. + * optional int64 top_log_probs = 5; + * @return Whether the topLogProbs field is set. */ @java.lang.Override - public boolean hasTemperature() { + public boolean hasTopLogProbs() { return ((bitField0_ & 0x00000010) != 0); } /** - * optional double temperature = 5; - * @return The temperature. + * optional int64 top_log_probs = 5; + * @return The topLogProbs. */ @java.lang.Override - public double getTemperature() { - return temperature_; + public long getTopLogProbs() { + return topLogProbs_; } /** - * optional double temperature = 5; - * @param value The temperature to set. + * optional int64 top_log_probs = 5; + * @param value The topLogProbs to set. * @return This builder for chaining. */ - public Builder setTemperature(double value) { + public Builder setTopLogProbs(long value) { - temperature_ = value; + topLogProbs_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * optional double temperature = 5; + * optional int64 top_log_probs = 5; * @return This builder for chaining. */ - public Builder clearTemperature() { + public Builder clearTopLogProbs() { bitField0_ = (bitField0_ & ~0x00000010); - temperature_ = 0D; + topLogProbs_ = 0L; onChanged(); return this; } - private long topK_ ; + private long maxTokens_ ; /** - * optional int64 top_k = 6; - * @return Whether the topK field is set. + * optional int64 max_tokens = 6; + * @return Whether the maxTokens field is set. */ @java.lang.Override - public boolean hasTopK() { + public boolean hasMaxTokens() { return ((bitField0_ & 0x00000020) != 0); } /** - * optional int64 top_k = 6; - * @return The topK. + * optional int64 max_tokens = 6; + * @return The maxTokens. */ @java.lang.Override - public long getTopK() { - return topK_; + public long getMaxTokens() { + return maxTokens_; } /** - * optional int64 top_k = 6; - * @param value The topK to set. + * optional int64 max_tokens = 6; + * @param value The maxTokens to set. * @return This builder for chaining. */ - public Builder setTopK(long value) { + public Builder setMaxTokens(long value) { - topK_ = value; + maxTokens_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * optional int64 top_k = 6; + * optional int64 max_tokens = 6; * @return This builder for chaining. */ - public Builder clearTopK() { + public Builder clearMaxTokens() { bitField0_ = (bitField0_ & ~0x00000020); - topK_ = 0L; + maxTokens_ = 0L; onChanged(); return this; } - private double topP_ ; + private long n_ ; /** - * optional double top_p = 7; - * @return Whether the topP field is set. + * optional int64 n = 7; + * @return Whether the n field is set. */ @java.lang.Override - public boolean hasTopP() { + public boolean hasN() { return ((bitField0_ & 0x00000040) != 0); } /** - * optional double top_p = 7; - * @return The topP. + * optional int64 n = 7; + * @return The n. */ @java.lang.Override - public double getTopP() { - return topP_; + public long getN() { + return n_; } /** - * optional double top_p = 7; - * @param value The topP to set. + * optional int64 n = 7; + * @param value The n to set. * @return This builder for chaining. */ - public Builder setTopP(double value) { + public Builder setN(long value) { - topP_ = value; + n_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * optional double top_p = 7; + * optional int64 n = 7; * @return This builder for chaining. */ - public Builder clearTopP() { + public Builder clearN() { bitField0_ = (bitField0_ & ~0x00000040); - topP_ = 0D; + n_ = 0L; 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_; + private double presencePenalty_ ; /** - * optional .weaviate.v1.TextArray stop_sequences = 8; - * @return Whether the stopSequences field is set. + * optional double presence_penalty = 8; + * @return Whether the presencePenalty field is set. */ - public boolean hasStopSequences() { + @java.lang.Override + public boolean hasPresencePenalty() { return ((bitField0_ & 0x00000080) != 0); } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; - * @return The stopSequences. + * optional double presence_penalty = 8; + * @return The presencePenalty. */ - 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_; + @java.lang.Override + public double getPresencePenalty() { + return presencePenalty_; + } + /** + * optional double presence_penalty = 8; + * @param value The presencePenalty to set. + * @return This builder for chaining. + */ + public Builder setPresencePenalty(double value) { + + presencePenalty_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional double presence_penalty = 8; + * @return This builder for chaining. + */ + public Builder clearPresencePenalty() { + bitField0_ = (bitField0_ & ~0x00000080); + 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 = 9; + * @return Whether the stop field is set. + */ + public boolean hasStop() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .weaviate.v1.TextArray stop = 9; + * @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 stopSequencesBuilder_.getMessage(); + return stopBuilder_.getMessage(); } } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional .weaviate.v1.TextArray stop = 9; */ - public Builder setStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { - if (stopSequencesBuilder_ == null) { + public Builder setStop(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - stopSequences_ = value; + stop_ = value; } else { - stopSequencesBuilder_.setMessage(value); + stopBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional .weaviate.v1.TextArray stop = 9; */ - public Builder setStopSequences( + public Builder setStop( io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) { - if (stopSequencesBuilder_ == null) { - stopSequences_ = builderForValue.build(); + if (stopBuilder_ == null) { + stop_ = builderForValue.build(); } else { - stopSequencesBuilder_.setMessage(builderForValue.build()); + stopBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional .weaviate.v1.TextArray stop = 9; */ - 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); + public Builder mergeStop(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) { + if (stopBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + stop_ != null && + stop_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) { + getStopBuilder().mergeFrom(value); } else { - stopSequences_ = value; + stop_ = value; } } else { - stopSequencesBuilder_.mergeFrom(value); + stopBuilder_.mergeFrom(value); } - if (stopSequences_ != null) { - bitField0_ |= 0x00000080; + if (stop_ != null) { + bitField0_ |= 0x00000100; onChanged(); } return this; } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional .weaviate.v1.TextArray stop = 9; */ - public Builder clearStopSequences() { - bitField0_ = (bitField0_ & ~0x00000080); - stopSequences_ = null; - if (stopSequencesBuilder_ != null) { - stopSequencesBuilder_.dispose(); - stopSequencesBuilder_ = null; + public Builder clearStop() { + bitField0_ = (bitField0_ & ~0x00000100); + stop_ = null; + if (stopBuilder_ != null) { + stopBuilder_.dispose(); + stopBuilder_ = null; } onChanged(); return this; } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional .weaviate.v1.TextArray stop = 9; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() { - bitField0_ |= 0x00000080; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return getStopSequencesFieldBuilder().getBuilder(); + return getStopFieldBuilder().getBuilder(); } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional .weaviate.v1.TextArray stop = 9; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() { - if (stopSequencesBuilder_ != null) { - return stopSequencesBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder() { + if (stopBuilder_ != null) { + return stopBuilder_.getMessageOrBuilder(); } else { - return stopSequences_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_; + return stop_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_; } } /** - * optional .weaviate.v1.TextArray stop_sequences = 8; + * optional .weaviate.v1.TextArray stop = 9; */ 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< + 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>( - getStopSequences(), + getStop(), getParentForChildren(), isClean()); - stopSequences_ = null; + stop_ = null; } - return stopSequencesBuilder_; + return stopBuilder_; + } + + private double temperature_ ; + /** + * optional double temperature = 10; + * @return Whether the temperature field is set. + */ + @java.lang.Override + public boolean hasTemperature() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional double temperature = 10; + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + /** + * optional double temperature = 10; + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * optional double temperature = 10; + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000200); + temperature_ = 0D; + onChanged(); + return this; + } + + private double topP_ ; + /** + * optional double top_p = 11; + * @return Whether the topP field is set. + */ + @java.lang.Override + public boolean hasTopP() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional double top_p = 11; + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + /** + * optional double top_p = 11; + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + + topP_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional double top_p = 11; + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000400); + topP_ = 0D; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -16899,23 +20382,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogle) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeDatabricks) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogle) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDatabricks) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks 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 GenerativeGoogle parsePartialFrom( + public GenerativeDatabricks parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -16934,702 +20417,421 @@ public GenerativeGoogle 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.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricks getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface GenerativeAnthropicMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnthropicMetadata) + public interface GenerativeFriendliAIOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeFriendliAI) com.google.protobuf.MessageOrBuilder { /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; - * @return Whether the usage field is set. + * optional string base_url = 1; + * @return Whether the baseUrl field is set. */ - boolean hasUsage(); + boolean hasBaseUrl(); /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; - * @return The usage. + * optional string base_url = 1; + * @return The baseUrl. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getUsage(); + java.lang.String getBaseUrl(); /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * optional string base_url = 1; + * @return The bytes for baseUrl. */ - 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 { + 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 int64 max_tokens = 3; + * @return Whether the maxTokens field is set. + */ + boolean hasMaxTokens(); + /** + * optional int64 max_tokens = 3; + * @return The maxTokens. + */ + long getMaxTokens(); + + /** + * optional double temperature = 4; + * @return Whether the temperature field is set. + */ + boolean hasTemperature(); + /** + * optional double temperature = 4; + * @return The temperature. + */ + double getTemperature(); + + /** + * optional int64 n = 5; + * @return Whether the n field is set. + */ + boolean hasN(); + /** + * optional int64 n = 5; + * @return The n. + */ + long getN(); + + /** + * 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.GenerativeFriendliAI} + */ + public static final class GenerativeFriendliAI extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeFriendliAI) + GenerativeFriendliAIOrBuilder { private static final long serialVersionUID = 0L; - // Use GenerativeAnthropicMetadata.newBuilder() to construct. - private GenerativeAnthropicMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GenerativeFriendliAI.newBuilder() to construct. + private GenerativeFriendliAI(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerativeAnthropicMetadata() { + private GenerativeFriendliAI() { + baseUrl_ = ""; + model_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GenerativeAnthropicMetadata(); + return new GenerativeFriendliAI(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAI_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAI_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.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(); + 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); } /** - * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata.Usage} + * optional string base_url = 1; + * @return The baseUrl. */ - 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 + 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; } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Usage(); + } + /** + * 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 com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor; + 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; } - - @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); + } + /** + * 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 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 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 OUTPUT_TOKENS_FIELD_NUMBER = 2; - private long outputTokens_ = 0L; - /** - * int64 output_tokens = 2; - * @return The outputTokens. - */ - @java.lang.Override - public long getOutputTokens() { - return outputTokens_; - } + 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_; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + 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_ & 0x00000010) != 0); + } + /** + * optional int64 n = 5; + * @return The n. + */ + @java.lang.Override + public long getN() { + return n_; + } - memoizedIsInitialized = 1; - return true; - } + 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_; + } - @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); - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + memoizedIsInitialized = 1; + return true; + } - 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 void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseUrl_); } - - @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; + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); } - - @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; + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, maxTokens_); } - - 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); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(4, temperature_); } - 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); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, n_); } - 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); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeDouble(6, topP_); } - 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); + 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_); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); } - 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); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, maxTokens_); } - 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); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, temperature_); } - 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); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, n_); } - - 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); + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, topP_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - 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); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - 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); + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI)) { + return super.equals(obj); } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) obj; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + if (hasBaseUrl() != other.hasBaseUrl()) return false; + if (hasBaseUrl()) { + if (!getBaseUrl() + .equals(other.getBaseUrl())) return false; } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + if (hasModel() != other.hasModel()) return false; + if (hasModel()) { + if (!getModel() + .equals(other.getModel())) return false; } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + if (hasMaxTokens() != other.hasMaxTokens()) return false; + if (hasMaxTokens()) { + if (getMaxTokens() + != other.getMaxTokens()) return false; } - - @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 (hasTemperature() != other.hasTemperature()) return false; + if (hasTemperature()) { + if (java.lang.Double.doubleToLongBits(getTemperature()) + != java.lang.Double.doubleToLongBits( + other.getTemperature())) return false; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata)) { - return super.equals(obj); + if (hasN() != other.hasN()) return false; + if (hasN()) { + if (getN() + != other.getN()) return false; } - 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 (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; @@ -17642,53 +20844,77 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUsage()) { - hash = (37 * hash) + USAGE_FIELD_NUMBER; - hash = (53 * hash) + getUsage().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 (hasMaxTokens()) { + hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxTokens()); + } + if (hasTemperature()) { + hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTemperature())); + } + if (hasN()) { + hash = (37 * hash) + N_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getN()); + } + 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.GenerativeAnthropicMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -17696,26 +20922,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -17728,7 +20954,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -17744,67 +20970,62 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata} + * Protobuf type {@code weaviate.v1.GenerativeFriendliAI} */ 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 { + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeFriendliAI) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAI_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAI_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.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; - } + baseUrl_ = ""; + model_ = ""; + maxTokens_ = 0L; + temperature_ = 0D; + n_ = 0L; + 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_GenerativeAnthropicMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAI_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -17812,22 +21033,40 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnt } @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); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.usage_ = usageBuilder_ == null - ? usage_ - : usageBuilder_.build(); + result.baseUrl_ = baseUrl_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.model_ = model_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxTokens_ = maxTokens_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.temperature_ = temperature_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.n_ = n_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.topP_ = topP_; + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -17865,21 +21104,40 @@ public Builder addRepeatedField( } @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); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI)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()); + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI.getDefaultInstance()) return this; + if (other.hasBaseUrl()) { + baseUrl_ = other.baseUrl_; + bitField0_ |= 0x00000001; + onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + if (other.hasModel()) { + model_ = other.model_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMaxTokens()) { + setMaxTokens(other.getMaxTokens()); + } + if (other.hasTemperature()) { + setTemperature(other.getTemperature()); + } + if (other.hasN()) { + setN(other.getN()); + } + if (other.hasTopP()) { + setTopP(other.getTopP()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } @@ -17905,12 +21163,35 @@ public Builder mergeFrom( done = true; break; case 10: { - input.readMessage( - getUsageFieldBuilder().getBuilder(), - extensionRegistry); + baseUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 + case 18: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + maxTokens_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 33: { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 40: { + n_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 49: { + topP_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 49 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -17928,125 +21209,322 @@ public Builder mergeFrom( } 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_; + private java.lang.Object baseUrl_ = ""; /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; - * @return Whether the usage field is set. + * optional string base_url = 1; + * @return Whether the baseUrl field is set. */ - public boolean hasUsage() { + public boolean hasBaseUrl() { return ((bitField0_ & 0x00000001) != 0); } /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; - * @return The usage. + * optional string base_url = 1; + * @return The baseUrl. */ - 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_; + 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 usageBuilder_.getMessage(); + return (java.lang.String) ref; } } /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * optional string base_url = 1; + * @return The bytes for baseUrl. */ - public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage value) { - if (usageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - usage_ = value; + 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 { - usageBuilder_.setMessage(value); + 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; } /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * optional string base_url = 1; + * @return This builder for chaining. */ - 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()); - } + 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_ = ""; /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * optional string model = 2; + * @return Whether the model field is set. */ - 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; - } + 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 { - usageBuilder_.mergeFrom(value); + return (java.lang.String) ref; } - if (usage_ != null) { - bitField0_ |= 0x00000001; - onChanged(); + } + /** + * 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; } /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * optional string model = 2; + * @return This builder for chaining. */ - public Builder clearUsage() { - bitField0_ = (bitField0_ & ~0x00000001); - usage_ = null; - if (usageBuilder_ != null) { - usageBuilder_.dispose(); - usageBuilder_ = null; - } + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * optional string model = 2; + * @param value The bytes for model to set. + * @return This builder for chaining. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder getUsageBuilder() { - bitField0_ |= 0x00000001; + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000002; onChanged(); - return getUsageFieldBuilder().getBuilder(); + return this; } + + private long maxTokens_ ; /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * optional int64 max_tokens = 3; + * @return Whether the maxTokens field is set. */ - 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_; - } + @java.lang.Override + public boolean hasMaxTokens() { + return ((bitField0_ & 0x00000004) != 0); } /** - * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1; + * optional int64 max_tokens = 3; + * @return The maxTokens. */ - 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 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 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 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 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( @@ -18061,23 +21539,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAnthropicMetadata) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeFriendliAI) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnthropicMetadata) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeFriendliAI) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI 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 GenerativeAnthropicMetadata parsePartialFrom( + public GenerativeFriendliAI parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18096,472 +21574,670 @@ public GenerativeAnthropicMetadata 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.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAI getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface GenerativeAnyscaleMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnyscaleMetadata) + 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.GenerativeAnyscaleMetadata} + * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata} */ - public static final class GenerativeAnyscaleMetadata extends + public static final class GenerativeAnthropicMetadata extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnyscaleMetadata) - GenerativeAnyscaleMetadataOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnthropicMetadata) + GenerativeAnthropicMetadataOrBuilder { private static final long serialVersionUID = 0L; - // Use GenerativeAnyscaleMetadata.newBuilder() to construct. - private GenerativeAnyscaleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GenerativeAnthropicMetadata.newBuilder() to construct. + private GenerativeAnthropicMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerativeAnyscaleMetadata() { + private GenerativeAnthropicMetadata() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GenerativeAnyscaleMetadata(); + return new GenerativeAnthropicMetadata(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor; + 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_GenerativeAnyscaleMetadata_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_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; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder.class); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } + public interface UsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnthropicMetadata.Usage) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * int64 input_tokens = 1; + * @return The inputTokens. + */ + long getInputTokens(); - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * int64 output_tokens = 2; + * @return The outputTokens. + */ + long getOutputTokens(); } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * 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); } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata)) { - return super.equals(obj); + private Usage() { } - 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; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Usage(); } - 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; + 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_GenerativeAnyscaleMetadata_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder.class); + 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.GenerativeAnyscaleMetadata.newBuilder() - private Builder() { - + 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_; } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } + public static final int OUTPUT_TOKENS_FIELD_NUMBER = 2; + private long outputTokens_ = 0L; + /** + * int64 output_tokens = 2; + * @return The outputTokens. + */ @java.lang.Override - public Builder clear() { - super.clear(); - return this; + public long getOutputTokens() { + return outputTokens_; } + private byte memoizedIsInitialized = -1; @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor; + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); + 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 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); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputTokens_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, inputTokens_); } - return result; + if (outputTokens_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, outputTokens_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @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; + 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 Builder clone() { - return super.clone(); + 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; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + + 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); } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + 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); } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + 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); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + 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); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @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 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 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; + 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); } - @java.lang.Override - public final boolean isInitialized() { - return true; + 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); } - @java.lang.Override - public Builder mergeFrom( + 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 { - 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; + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + 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 final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - - // @@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(); + 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; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @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); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.newBuilder() + private Builder() { - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + } - } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - 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 + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputTokens_ = 0L; + outputTokens_ = 0L; + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GenerativeAWSMetadata(); - } + @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; + } - 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 + 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 - 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); - } + @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; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @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; + } - memoizedIsInitialized = 1; + 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); } @@ -18571,6 +22247,10 @@ public int getSerializedSize() { 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; @@ -18581,11 +22261,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) 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; } @@ -18597,49 +22282,53 @@ public int hashCode() { } 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.GenerativeAWSMetadata parseFrom( + 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.GenerativeAWSMetadata parseFrom( + 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.GenerativeAWSMetadata parseFrom( + 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.GenerativeAWSMetadata parseFrom( + 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.GenerativeAWSMetadata parseFrom(byte[] data) + 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.GenerativeAWSMetadata parseFrom( + 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.GenerativeAWSMetadata parseFrom(java.io.InputStream input) + 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.GenerativeAWSMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -18647,26 +22336,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseDelimitedFrom(java.io.InputStream input) + 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.GenerativeAWSMetadata parseDelimitedFrom( + 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.GenerativeAWSMetadata parseFrom( + 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.GenerativeAWSMetadata parseFrom( + 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 { @@ -18679,7 +22368,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -18695,55 +22384,67 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeAWSMetadata} + * 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.GenerativeAWSMetadata) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder { + // @@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_GenerativeAWSMetadata_descriptor; + 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_GenerativeAWSMetadata_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder.class); + 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.GenerativeAWSMetadata.newBuilder() + // 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_GenerativeAWSMetadata_descriptor; + 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.GenerativeAWSMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); + 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.GenerativeAWSMetadata build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata result = buildPartial(); + 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); } @@ -18751,12 +22452,25 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS } @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); + 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(); @@ -18791,16 +22505,19 @@ public Builder addRepeatedField( } @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); + 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.GenerativeAWSMetadata other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance()) 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; @@ -18827,6 +22544,13 @@ public Builder mergeFrom( 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 @@ -18842,1111 +22566,1251 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + private int bitField0_; - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + 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); } - - - // @@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()); + /** + * .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(); } - 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(); + /** + * .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); + } - /** - * 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(); + @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.GenerativeCohereMetadata} + * Protobuf type {@code weaviate.v1.GenerativeAnyscaleMetadata} */ - public static final class GenerativeCohereMetadata extends + public static final class GenerativeAnyscaleMetadata extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata) - GenerativeCohereMetadataOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnyscaleMetadata) + GenerativeAnyscaleMetadataOrBuilder { private static final long serialVersionUID = 0L; - // Use GenerativeCohereMetadata.newBuilder() to construct. - private GenerativeCohereMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GenerativeAnyscaleMetadata.newBuilder() to construct. + private GenerativeAnyscaleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerativeCohereMetadata() { + private GenerativeAnyscaleMetadata() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GenerativeCohereMetadata(); + return new GenerativeAnyscaleMetadata(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor; + 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_GenerativeCohereMetadata_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder.class); } - public interface ApiVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.ApiVersion) - com.google.protobuf.MessageOrBuilder { + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * 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(); + memoizedIsInitialized = 1; + return true; + } - /** - * optional bool is_deprecated = 2; - * @return Whether the isDeprecated field is set. - */ - boolean hasIsDeprecated(); - /** - * optional bool is_deprecated = 2; - * @return The isDeprecated. - */ - boolean getIsDeprecated(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } - /** - * optional bool is_experimental = 3; - * @return Whether the isExperimental field is set. - */ - boolean hasIsExperimental(); - /** - * optional bool is_experimental = 3; - * @return The isExperimental. - */ - boolean getIsExperimental(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - /** - * 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); + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - private ApiVersion() { - version_ = ""; + 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; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ApiVersion(); + 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_GenerativeCohereMetadata_ApiVersion_descriptor; + 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_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.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); + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.newBuilder() + private Builder() { + } - /** - * 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; - } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - /** - * 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 Builder clear() { + super.clear(); + return this; } - 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); + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor; } - /** - * optional bool is_deprecated = 2; - * @return The isDeprecated. - */ + @java.lang.Override - public boolean getIsDeprecated() { - return isDeprecated_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance(); } - 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); + 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; } - /** - * optional bool is_experimental = 3; - * @return The isExperimental. - */ + @java.lang.Override - public boolean getIsExperimental() { - return isExperimental_; + 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; } - 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; + public Builder clone() { + return super.clone(); } - @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); + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - @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; + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - @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; + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - @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 Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - 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); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } - 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); + @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 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 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; } - 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); + @java.lang.Override + public final boolean isInitialized() { + return true; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom( + + @java.lang.Override + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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 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); + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } + @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + 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 - 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; + 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(); + } + }; - @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); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.newBuilder() - private Builder() { + @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; + } - 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; - } + 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 - 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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeAWSMetadata(); + } - @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(); - } + 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 - 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 + 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); + } - @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 byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - 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_; - } + memoizedIsInitialized = 1; + return true; + } - @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; - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } - 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 int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public final boolean isInitialized() { - return true; - } + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @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; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - 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; + 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; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @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 interface BilledUnitsOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.BilledUnits) - com.google.protobuf.MessageOrBuilder { + 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); + } - /** - * optional double input_tokens = 1; - * @return Whether the inputTokens field is set. - */ - boolean hasInputTokens(); - /** - * optional double input_tokens = 1; - * @return The inputTokens. - */ - double getInputTokens(); + 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); + } - /** - * optional double output_tokens = 2; - * @return Whether the outputTokens field is set. - */ - boolean hasOutputTokens(); - /** - * optional double output_tokens = 2; - * @return The outputTokens. - */ - double getOutputTokens(); + 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); + } - /** - * optional double search_units = 3; - * @return Whether the searchUnits field is set. - */ - boolean hasSearchUnits(); - /** - * optional double search_units = 3; - * @return The searchUnits. - */ - double getSearchUnits(); + @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); + } - /** - * optional double classifications = 4; - * @return Whether the classifications field is set. - */ - boolean hasClassifications(); - /** - * optional double classifications = 4; - * @return The classifications. - */ - double getClassifications(); + @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} + * Protobuf type {@code weaviate.v1.GenerativeAWSMetadata} */ - 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 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_GenerativeCohereMetadata_BilledUnits_descriptor; + 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_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.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); + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - /** - * optional double input_tokens = 1; - * @return The inputTokens. - */ @java.lang.Override - public double getInputTokens() { - return inputTokens_; + public Builder clear() { + super.clear(); + return this; } - 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); + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor; } - /** - * optional double output_tokens = 2; - * @return The outputTokens. - */ + @java.lang.Override - public double getOutputTokens() { - return outputTokens_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance(); } - 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); + 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; } - /** - * optional double search_units = 3; - * @return The searchUnits. - */ + @java.lang.Override - public double getSearchUnits() { - return searchUnits_; + 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; } - 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); + public Builder clone() { + return super.clone(); } - /** - * optional double classifications = 4; - * @return The classifications. - */ @java.lang.Override - public double getClassifications() { - return classifications_; + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - - private byte memoizedIsInitialized = -1; + @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; @@ -19961,16 +23825,13 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - output.writeDouble(1, inputTokens_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeDouble(2, outputTokens_); + output.writeBool(2, isDeprecated_); } if (((bitField0_ & 0x00000004) != 0)) { - output.writeDouble(3, searchUnits_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeDouble(4, classifications_); + output.writeBool(3, isExperimental_); } getUnknownFields().writeTo(output); } @@ -19982,20 +23843,15 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, inputTokens_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, outputTokens_); + .computeBoolSize(2, isDeprecated_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, searchUnits_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, classifications_); + .computeBoolSize(3, isExperimental_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -20007,34 +23863,25 @@ 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)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion) 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 (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (!getVersion() + .equals(other.getVersion())) 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 (hasIsDeprecated() != other.hasIsDeprecated()) return false; + if (hasIsDeprecated()) { + if (getIsDeprecated() + != other.getIsDeprecated()) 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 (hasIsExperimental() != other.hasIsExperimental()) return false; + if (hasIsExperimental()) { + if (getIsExperimental() + != other.getIsExperimental()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -20047,69 +23894,63 @@ public int hashCode() { } 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 (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); } - if (hasSearchUnits()) { - hash = (37 * hash) + SEARCH_UNITS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSearchUnits())); + if (hasIsDeprecated()) { + hash = (37 * hash) + IS_DEPRECATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDeprecated()); } - if (hasClassifications()) { - hash = (37 * hash) + CLASSIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getClassifications())); + 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.BilledUnits parseFrom( + 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.BilledUnits parseFrom( + 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.BilledUnits parseFrom( + 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.BilledUnits parseFrom( + 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.BilledUnits parseFrom(byte[] data) + 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.BilledUnits parseFrom( + 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.BilledUnits parseFrom(java.io.InputStream input) + 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.BilledUnits parseFrom( + 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 { @@ -20117,26 +23958,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseDelimitedFrom(java.io.InputStream input) + 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.BilledUnits parseDelimitedFrom( + 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.BilledUnits parseFrom( + 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.BilledUnits parseFrom( + 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 { @@ -20149,7 +23990,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20165,26 +24006,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.BilledUnits} + * 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.BilledUnits) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder { + // @@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_BilledUnits_descriptor; + 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_BilledUnits_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder.class); + 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.BilledUnits.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.newBuilder() private Builder() { } @@ -20198,27 +24039,26 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - inputTokens_ = 0D; - outputTokens_ = 0D; - searchUnits_ = 0D; - classifications_ = 0D; + 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_BilledUnits_descriptor; + 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.BilledUnits getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance(); + 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.BilledUnits build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits result = buildPartial(); + 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); } @@ -20226,32 +24066,28 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCoh } @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); + 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.BilledUnits 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.inputTokens_ = inputTokens_; + result.version_ = version_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.outputTokens_ = outputTokens_; + result.isDeprecated_ = isDeprecated_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.searchUnits_ = searchUnits_; + result.isExperimental_ = isExperimental_; to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.classifications_ = classifications_; - to_bitField0_ |= 0x00000008; - } result.bitField0_ |= to_bitField0_; } @@ -20289,27 +24125,26 @@ public Builder addRepeatedField( } @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); + 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.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()); + 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.hasSearchUnits()) { - setSearchUnits(other.getSearchUnits()); + if (other.hasIsDeprecated()) { + setIsDeprecated(other.getIsDeprecated()); } - if (other.hasClassifications()) { - setClassifications(other.getClassifications()); + if (other.hasIsExperimental()) { + setIsExperimental(other.getIsExperimental()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -20337,26 +24172,21 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: { - inputTokens_ = input.readDouble(); + case 10: { + version_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 9 - case 17: { - outputTokens_ = input.readDouble(); + } // case 10 + case 16: { + isDeprecated_ = input.readBool(); bitField0_ |= 0x00000002; break; - } // case 17 - case 25: { - searchUnits_ = input.readDouble(); + } // case 16 + case 24: { + isExperimental_ = input.readBool(); bitField0_ |= 0x00000004; break; - } // case 25 - case 33: { - classifications_ = input.readDouble(); - bitField0_ |= 0x00000008; - break; - } // case 33 + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -20374,162 +24204,161 @@ public Builder mergeFrom( } private int bitField0_; - private double inputTokens_ ; + private java.lang.Object version_ = ""; /** - * optional double input_tokens = 1; - * @return Whether the inputTokens field is set. + * optional string version = 1; + * @return Whether the version field is set. */ - @java.lang.Override - public boolean hasInputTokens() { + public boolean hasVersion() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional double input_tokens = 1; - * @return The inputTokens. + * optional string version = 1; + * @return The version. */ - @java.lang.Override - public double getInputTokens() { - return inputTokens_; + 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 double input_tokens = 1; - * @param value The inputTokens to set. - * @return This builder for chaining. + * optional string version = 1; + * @return The bytes for version. */ - public Builder setInputTokens(double value) { - - inputTokens_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + 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 double input_tokens = 1; + * optional string version = 1; + * @param value The version to set. * @return This builder for chaining. */ - public Builder clearInputTokens() { - bitField0_ = (bitField0_ & ~0x00000001); - inputTokens_ = 0D; + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000001; 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. + * optional string version = 1; * @return This builder for chaining. */ - public Builder setOutputTokens(double value) { - - outputTokens_ = value; - bitField0_ |= 0x00000002; + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * optional double output_tokens = 2; + * optional string version = 1; + * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder clearOutputTokens() { - bitField0_ = (bitField0_ & ~0x00000002); - outputTokens_ = 0D; + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private double searchUnits_ ; + private boolean isDeprecated_ ; /** - * optional double search_units = 3; - * @return Whether the searchUnits field is set. + * optional bool is_deprecated = 2; + * @return Whether the isDeprecated field is set. */ @java.lang.Override - public boolean hasSearchUnits() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasIsDeprecated() { + return ((bitField0_ & 0x00000002) != 0); } /** - * optional double search_units = 3; - * @return The searchUnits. + * optional bool is_deprecated = 2; + * @return The isDeprecated. */ @java.lang.Override - public double getSearchUnits() { - return searchUnits_; + public boolean getIsDeprecated() { + return isDeprecated_; } /** - * optional double search_units = 3; - * @param value The searchUnits to set. + * optional bool is_deprecated = 2; + * @param value The isDeprecated to set. * @return This builder for chaining. */ - public Builder setSearchUnits(double value) { + public Builder setIsDeprecated(boolean value) { - searchUnits_ = value; - bitField0_ |= 0x00000004; + isDeprecated_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * optional double search_units = 3; + * optional bool is_deprecated = 2; * @return This builder for chaining. */ - public Builder clearSearchUnits() { - bitField0_ = (bitField0_ & ~0x00000004); - searchUnits_ = 0D; + public Builder clearIsDeprecated() { + bitField0_ = (bitField0_ & ~0x00000002); + isDeprecated_ = false; onChanged(); return this; } - private double classifications_ ; + private boolean isExperimental_ ; /** - * optional double classifications = 4; - * @return Whether the classifications field is set. + * optional bool is_experimental = 3; + * @return Whether the isExperimental field is set. */ @java.lang.Override - public boolean hasClassifications() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasIsExperimental() { + return ((bitField0_ & 0x00000004) != 0); } /** - * optional double classifications = 4; - * @return The classifications. + * optional bool is_experimental = 3; + * @return The isExperimental. */ @java.lang.Override - public double getClassifications() { - return classifications_; + public boolean getIsExperimental() { + return isExperimental_; } /** - * optional double classifications = 4; - * @param value The classifications to set. + * optional bool is_experimental = 3; + * @param value The isExperimental to set. * @return This builder for chaining. */ - public Builder setClassifications(double value) { + public Builder setIsExperimental(boolean value) { - classifications_ = value; - bitField0_ |= 0x00000008; + isExperimental_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * optional double classifications = 4; + * optional bool is_experimental = 3; * @return This builder for chaining. */ - public Builder clearClassifications() { - bitField0_ = (bitField0_ & ~0x00000008); - classifications_ = 0D; + public Builder clearIsExperimental() { + bitField0_ = (bitField0_ & ~0x00000004); + isExperimental_ = false; onChanged(); return this; } @@ -20546,23 +24375,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.BilledUnits) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.ApiVersion) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata.BilledUnits) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits DEFAULT_INSTANCE; + // @@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.BilledUnits(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public BilledUnits parsePartialFrom( + public ApiVersion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20581,24 +24410,24 @@ public BilledUnits 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.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface TokensOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.Tokens) + public interface BilledUnitsOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.BilledUnits) com.google.protobuf.MessageOrBuilder { /** @@ -20622,40 +24451,62 @@ public interface TokensOrBuilder extends * @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.Tokens} + * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.BilledUnits} */ - public static final class Tokens extends + public static final class BilledUnits extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata.Tokens) - TokensOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata.BilledUnits) + BilledUnitsOrBuilder { private static final long serialVersionUID = 0L; - // Use Tokens.newBuilder() to construct. - private Tokens(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use BilledUnits.newBuilder() to construct. + private BilledUnits(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Tokens() { + private BilledUnits() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Tokens(); + 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_Tokens_descriptor; + 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_Tokens_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder.class); } private int bitField0_; @@ -20697,6 +24548,44 @@ 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() { @@ -20717,6 +24606,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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); } @@ -20734,6 +24629,14 @@ public int getSerializedSize() { 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; @@ -20744,10 +24647,10 @@ 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)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens) 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()) { @@ -20761,6 +24664,18 @@ public boolean equals(final java.lang.Object obj) { != 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; } @@ -20782,49 +24697,59 @@ public int hashCode() { 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.Tokens parseFrom( + 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.Tokens parseFrom( + 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.Tokens parseFrom( + 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.Tokens parseFrom( + 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.Tokens parseFrom(byte[] data) + 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.Tokens parseFrom( + 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.Tokens parseFrom(java.io.InputStream input) + 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.Tokens parseFrom( + 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 { @@ -20832,26 +24757,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseDelimitedFrom(java.io.InputStream input) + 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.Tokens parseDelimitedFrom( + 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.Tokens parseFrom( + 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.Tokens parseFrom( + 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 { @@ -20864,7 +24789,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20880,26 +24805,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.Tokens} + * 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.Tokens) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder { + // @@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_Tokens_descriptor; + 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_Tokens_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder.class); + 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.Tokens.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.newBuilder() private Builder() { } @@ -20915,23 +24840,25 @@ public Builder 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_Tokens_descriptor; + 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.Tokens getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance(); + 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.Tokens build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens result = buildPartial(); + 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); } @@ -20939,14 +24866,14 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCoh } @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); + 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.Tokens 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)) { @@ -20957,6 +24884,14 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene 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_; } @@ -20994,22 +24929,28 @@ public Builder addRepeatedField( } @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); + 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.Tokens other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance()) 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; @@ -21046,6 +24987,16 @@ public Builder mergeFrom( 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 @@ -21142,9 +25093,89 @@ public Builder clearOutputTokens() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + + 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); } @@ -21155,23 +25186,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.Tokens) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.BilledUnits) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata.Tokens) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens DEFAULT_INSTANCE; + // @@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.Tokens(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Tokens parsePartialFrom( + public BilledUnits parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21190,1172 +25221,734 @@ public Tokens 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.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits 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 interface TokensOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.Tokens) + com.google.protobuf.MessageOrBuilder { - 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_; - } + /** + * optional double input_tokens = 1; + * @return Whether the inputTokens field is set. + */ + boolean hasInputTokens(); + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + double getInputTokens(); - 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 double output_tokens = 2; + * @return Whether the outputTokens field is set. + */ + boolean hasOutputTokens(); + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + double getOutputTokens(); } /** - * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.Tokens} */ - @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 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() { + } - 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_; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Tokens(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + @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); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getApiVersion()); + 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); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getBilledUnits()); + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + @java.lang.Override + public double getInputTokens() { + return inputTokens_; } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getTokens()); + + 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); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getWarnings()); + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + @java.lang.Override + public double getOutputTokens() { + return outputTokens_; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - 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()); + memoizedIsInitialized = 1; + return true; } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTokens()); + + @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); } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getWarnings()); + + @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; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @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; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata)) { - return super.equals(obj); + + @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; } - 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; + 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); } - if (hasBilledUnits() != other.hasBilledUnits()) return false; - if (hasBilledUnits()) { - if (!getBilledUnits() - .equals(other.getBilledUnits())) return false; + 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); } - if (hasTokens() != other.hasTokens()) return false; - if (hasTokens()) { - if (!getTokens() - .equals(other.getTokens())) return false; + 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); } - if (hasWarnings() != other.hasWarnings()) return false; - if (hasWarnings()) { - if (!getWarnings() - .equals(other.getWarnings())) return false; + 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); } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasApiVersion()) { - hash = (37 * hash) + API_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getApiVersion().hashCode(); + 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); } - if (hasBilledUnits()) { - hash = (37 * hash) + BILLED_UNITS_FIELD_NUMBER; - hash = (53 * hash) + getBilledUnits().hashCode(); + 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); } - if (hasTokens()) { - hash = (37 * hash) + TOKENS_FIELD_NUMBER; - hash = (53 * hash) + getTokens().hashCode(); + 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); } - if (hasWarnings()) { - hash = (37 * hash) + WARNINGS_FIELD_NUMBER; - hash = (53 * hash) + getWarnings().hashCode(); + + 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); } - 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; + 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); } - - @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 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); } - - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + 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); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getApiVersionFieldBuilder(); - getBilledUnitsFieldBuilder(); - getTokensFieldBuilder(); - getWarningsFieldBuilder(); - } + 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 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; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(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; + 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 - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance(); - } + @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() { - @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 Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - 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; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inputTokens_ = 0D; + outputTokens_ = 0D; + return this; } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tokens_ = tokensBuilder_ == null - ? tokens_ - : tokensBuilder_.build(); - to_bitField0_ |= 0x00000004; + + @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; } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.warnings_ = warningsBuilder_ == null - ? warnings_ - : warningsBuilder_.build(); - to_bitField0_ |= 0x00000008; + + @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(); } - 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; + @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; } - } - 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()); + @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; } - if (other.hasBilledUnits()) { - mergeBilledUnits(other.getBilledUnits()); + + 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_; } - if (other.hasTokens()) { - mergeTokens(other.getTokens()); + + @java.lang.Override + public Builder clone() { + return super.clone(); } - if (other.hasWarnings()) { - mergeWarnings(other.getWarnings()); + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - 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(); + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - 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(); + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - } - /** - * 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); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, 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()); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } - 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); + @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 { - apiVersion_ = value; + super.mergeFrom(other); + return this; } - } else { - apiVersionBuilder_.mergeFrom(value); } - if (apiVersion_ != null) { - bitField0_ |= 0x00000001; + + 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; } - 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(); + @java.lang.Override + public final boolean isInitialized() { + return true; } - } - /** - * 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(); + + @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(); } - billedUnits_ = value; - } else { - billedUnitsBuilder_.setMessage(value); + 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; } - 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()); + 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); } - 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); + /** + * optional double input_tokens = 1; + * @return The inputTokens. + */ + @java.lang.Override + public double getInputTokens() { + return inputTokens_; } - if (billedUnits_ != null) { - bitField0_ |= 0x00000002; + /** + * 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; } - 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; + /** + * optional double input_tokens = 1; + * @return This builder for chaining. + */ + public Builder clearInputTokens() { + bitField0_ = (bitField0_ & ~0x00000001); + inputTokens_ = 0D; + onChanged(); + return this; } - 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()); + 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); } - 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); + /** + * optional double output_tokens = 2; + * @return The outputTokens. + */ + @java.lang.Override + public double getOutputTokens() { + return outputTokens_; } - if (tokens_ != null) { - bitField0_ |= 0x00000004; + /** + * 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; } - return this; - } - /** - * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; - */ - public Builder clearTokens() { - bitField0_ = (bitField0_ & ~0x00000004); - tokens_ = null; - if (tokensBuilder_ != null) { - tokensBuilder_.dispose(); - tokensBuilder_ = null; + /** + * optional double output_tokens = 2; + * @return This builder for chaining. + */ + public Builder clearOutputTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + outputTokens_ = 0D; + onChanged(); + return this; } - 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_; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - } - /** - * 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; + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - return tokensBuilder_; + + + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.Tokens) } - 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); + // @@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(); } - /** - * 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(); - } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstance() { + return DEFAULT_INSTANCE; } - /** - * 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(); + + 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()); } - warnings_ = value; - } else { - warningsBuilder_.setMessage(value); + return builder.buildPartial(); } - bitField0_ |= 0x00000008; - onChanged(); - return this; + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - /** - * 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; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * 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; + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - /** - * 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(); + 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); } - - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * 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_; } - - 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; + /** + * 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 com.google.protobuf.Parser getParserForType() { - return PARSER; + 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 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + 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 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); + 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); } - private GenerativeDummyMetadata() { + /** + * 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 - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GenerativeDummyMetadata(); + 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 com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor; + 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 - 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); + 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; @@ -22372,6 +25965,18 @@ public final boolean isInitialized() { @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); } @@ -22381,6 +25986,22 @@ public int getSerializedSize() { 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; @@ -22391,11 +26012,31 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) 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; } @@ -22407,49 +26048,65 @@ public int hashCode() { } 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.GenerativeDummyMetadata parseFrom( + 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.GenerativeDummyMetadata parseFrom( + 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.GenerativeDummyMetadata parseFrom( + 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.GenerativeDummyMetadata parseFrom( + 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.GenerativeDummyMetadata parseFrom(byte[] data) + 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.GenerativeDummyMetadata parseFrom( + 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.GenerativeDummyMetadata parseFrom(java.io.InputStream input) + 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.GenerativeDummyMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22457,26 +26114,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseDelimitedFrom(java.io.InputStream input) + 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.GenerativeDummyMetadata parseDelimitedFrom( + 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.GenerativeDummyMetadata parseFrom( + 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.GenerativeDummyMetadata parseFrom( + 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 { @@ -22489,7 +26146,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -22505,55 +26162,85 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeDummyMetadata} + * 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.GenerativeDummyMetadata) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder { + // @@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_GenerativeDummyMetadata_descriptor; + 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_GenerativeDummyMetadata_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder.class); + 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.GenerativeDummyMetadata.newBuilder() + // 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_GenerativeDummyMetadata_descriptor; + 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.GenerativeDummyMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); + 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.GenerativeDummyMetadata build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata result = buildPartial(); + 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); } @@ -22561,12 +26248,43 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDum } @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); + 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(); @@ -22601,16 +26319,28 @@ public Builder addRepeatedField( } @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); + 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.GenerativeDummyMetadata other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance()) 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; @@ -22637,6 +26367,34 @@ public Builder mergeFrom( 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 @@ -22652,1875 +26410,1438 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + private int bitField0_; - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + 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); } - - - // @@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()); + /** + * 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(); } - 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. + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; */ - boolean hasPromptTokens(); + 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 int64 prompt_tokens = 1; - * @return The promptTokens. + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; */ - long getPromptTokens(); - + 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 int64 completion_tokens = 2; - * @return Whether the completionTokens field is set. + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; */ - boolean hasCompletionTokens(); + 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 int64 completion_tokens = 2; - * @return The completionTokens. + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; */ - long getCompletionTokens(); - + public Builder clearApiVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + apiVersion_ = null; + if (apiVersionBuilder_ != null) { + apiVersionBuilder_.dispose(); + apiVersionBuilder_ = null; + } + onChanged(); + return this; + } /** - * optional int64 total_tokens = 3; - * @return Whether the totalTokens field is set. + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; */ - boolean hasTotalTokens(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder getApiVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getApiVersionFieldBuilder().getBuilder(); + } /** - * optional int64 total_tokens = 3; - * @return The totalTokens. + * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1; */ - 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); + 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_; + } } - private Usage() { + /** + * 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_; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Usage(); + 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); } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor; + /** + * 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(); + } } - - @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); + /** + * 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; } - - 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. + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; */ - @java.lang.Override - public boolean hasPromptTokens() { - return ((bitField0_ & 0x00000001) != 0); + 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 int64 prompt_tokens = 1; - * @return The promptTokens. + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; */ - @java.lang.Override - public long getPromptTokens() { - return promptTokens_; + 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; } - - 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. + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; */ - @java.lang.Override - public boolean hasCompletionTokens() { - return ((bitField0_ & 0x00000002) != 0); + public Builder clearBilledUnits() { + bitField0_ = (bitField0_ & ~0x00000002); + billedUnits_ = null; + if (billedUnitsBuilder_ != null) { + billedUnitsBuilder_.dispose(); + billedUnitsBuilder_ = null; + } + onChanged(); + return this; } /** - * optional int64 completion_tokens = 2; - * @return The completionTokens. + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; */ - @java.lang.Override - public long getCompletionTokens() { - return completionTokens_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder getBilledUnitsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getBilledUnitsFieldBuilder().getBuilder(); } - - 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. + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; */ - @java.lang.Override - public boolean hasTotalTokens() { - return ((bitField0_ & 0x00000004) != 0); + 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 int64 total_tokens = 3; - * @return The totalTokens. + * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2; */ - @java.lang.Override - public long getTotalTokens() { - return totalTokens_; + 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 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; + 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); } - - @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_); + /** + * 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(); } - 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_); + /** + * 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); } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, totalTokens_); + 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()); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * 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 (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage)) { - return super.equals(obj); + if (tokens_ != null) { + bitField0_ |= 0x00000004; + onChanged(); } - 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; + return this; + } + /** + * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3; + */ + public Builder clearTokens() { + bitField0_ = (bitField0_ & ~0x00000004); + tokens_ = null; + if (tokensBuilder_ != null) { + tokensBuilder_.dispose(); + tokensBuilder_ = null; } - if (hasCompletionTokens() != other.hasCompletionTokens()) return false; - if (hasCompletionTokens()) { - if (getCompletionTokens() - != other.getCompletionTokens()) return false; + 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_; } - if (hasTotalTokens() != other.hasTotalTokens()) return false; - if (hasTotalTokens()) { - if (getTotalTokens() - != other.getTotalTokens()) return false; + } + /** + * 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; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + return tokensBuilder_; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + 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(); } - 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()); + } + /** + * 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); } - if (hasCompletionTokens()) { - hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCompletionTokens()); + 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()); } - if (hasTotalTokens()) { - hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalTokens()); + 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); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + if (warnings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; } - - 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); + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + public Builder clearWarnings() { + bitField0_ = (bitField0_ & ~0x00000008); + warnings_ = null; + if (warningsBuilder_ != null) { + warningsBuilder_.dispose(); + warningsBuilder_ = null; + } + onChanged(); + return this; } - 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); + /** + * optional .weaviate.v1.TextArray warnings = 4; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getWarningsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getWarningsFieldBuilder().getBuilder(); } - 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); + /** + * 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_; + } } - 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); + /** + * 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_; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom( - byte[] data, + + @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 { - return PARSER.parseFrom(data, extensionRegistry); + 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 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 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; } - 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); + 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; - 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); + 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.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.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; } - 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); + + @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); } - 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); + + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.newBuilder() + private Builder() { + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - 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 clear() { + super.clear(); + return this; } + @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance(); } - /** - * 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); + @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; + } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.newBuilder() - private Builder() { - - } + @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; + } - 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; + @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; } + } - @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; - } + 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; + } - 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 final boolean isInitialized() { + return true; + } - @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; - } + @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(); } - - 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()); + 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(); - 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) { + } // finally + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - 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; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - 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; - } + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeDummyMetadata) + } - 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) { + // @@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(); + } - 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); - } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + 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()); } - - - // @@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; + return builder.buildPartial(); } + }; - 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; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + 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; + } - @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + } - } + public interface GenerativeMistralMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMistralMetadata) + com.google.protobuf.MessageOrBuilder { - 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); - } + boolean hasUsage(); /** * 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_; - } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getUsage(); /** * 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_; + 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() { } - private byte memoizedIsInitialized = -1; @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeMistralMetadata(); + } - memoizedIsInitialized = 1; - return true; + 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 - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getUsage()); - } - getUnknownFields().writeTo(output); + 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); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public interface UsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMistralMetadata.Usage) + com.google.protobuf.MessageOrBuilder { - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUsage()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. + */ + boolean hasPromptTokens(); + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + long getPromptTokens(); - @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; + /** + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. + */ + boolean hasCompletionTokens(); + /** + * optional int64 completion_tokens = 2; + * @return The completionTokens. + */ + long getCompletionTokens(); - if (hasUsage() != other.hasUsage()) return false; - if (hasUsage()) { - if (!getUsage() - .equals(other.getUsage())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. + */ + boolean hasTotalTokens(); + /** + * optional int64 total_tokens = 3; + * @return The totalTokens. + */ + long getTotalTokens(); } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * 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); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUsage()) { - hash = (37 * hash) + USAGE_FIELD_NUMBER; - hash = (53 * hash) + getUsage().hashCode(); + private Usage() { } - 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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Usage(); + } - @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; + 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_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder.class); + 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.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + 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); } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * optional int64 prompt_tokens = 1; + * @return The promptTokens. + */ + @java.lang.Override + public long getPromptTokens() { + return promptTokens_; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getUsageFieldBuilder(); - } + + 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 Builder clear() { - super.clear(); - bitField0_ = 0; - usage_ = null; - if (usageBuilder_ != null) { - usageBuilder_.dispose(); - usageBuilder_ = null; - } - return this; + 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 com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor; + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance(); + 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 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); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, promptTokens_); } - return result; + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, totalTokens_); + } + getUnknownFields().writeTo(output); } @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; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - 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; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, promptTokens_); } - result.bitField0_ |= to_bitField0_; + 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 Builder clone() { - return super.clone(); + 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 Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + 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; } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + + 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); } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + 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); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + 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); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + 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); } - @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 static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - - 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; + 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); } - @java.lang.Override - public final boolean isInitialized() { - return true; + 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); } - @java.lang.Override - public Builder mergeFrom( + 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 { - 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() { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Usage(); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor; + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @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); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - 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); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** - * optional int64 prompt_tokens = 1; - * @return The promptTokens. + * Protobuf type {@code weaviate.v1.GenerativeMistralMetadata.Usage} */ - @java.lang.Override - public long getPromptTokens() { - return promptTokens_; - } + 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; + } - 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_; - } + @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); + } - 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_; - } + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.newBuilder() + private Builder() { - 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; - } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - @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_); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokens_ = 0L; + completionTokens_ = 0L; + totalTokens_ = 0L; + return this; } - 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_); + @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; } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, completionTokens_); + + @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(); } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, totalTokens_); + + @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; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @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; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage)) { - return super.equals(obj); + + 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_; } - 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; + @java.lang.Override + public Builder clone() { + return super.clone(); } - if (hasCompletionTokens() != other.hasCompletionTokens()) return false; - if (hasCompletionTokens()) { - if (getCompletionTokens() - != other.getCompletionTokens()) return false; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - if (hasTotalTokens() != other.hasTotalTokens()) return false; - if (hasTotalTokens()) { - if (getTotalTokens() - != other.getTotalTokens()) return false; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - 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 clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( @@ -24536,16 +27857,16 @@ public Builder addRepeatedField( } @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); + 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.GenerativeOctoAIMetadata.Usage other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance()) 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()); } @@ -24745,16 +28066,16 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOctoAIMetadata.Usage) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeMistralMetadata.Usage) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAIMetadata.Usage) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage DEFAULT_INSTANCE; + // @@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.GenerativeOctoAIMetadata.Usage(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -24790,7 +28111,7 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -24798,9 +28119,9 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOct private int bitField0_; public static final int USAGE_FIELD_NUMBER = 1; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage usage_; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage usage_; /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; * @return Whether the usage field is set. */ @java.lang.Override @@ -24808,19 +28129,19 @@ public boolean hasUsage() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.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_; + 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.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.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_; + 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; @@ -24863,10 +28184,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) 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()) { @@ -24893,44 +28214,44 @@ public int hashCode() { return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom( + 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.GenerativeOctoAIMetadata parseFrom( + 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.GenerativeOctoAIMetadata parseFrom( + 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.GenerativeOctoAIMetadata parseFrom( + 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.GenerativeOctoAIMetadata parseFrom(byte[] data) + 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.GenerativeOctoAIMetadata parseFrom( + 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.GenerativeOctoAIMetadata parseFrom(java.io.InputStream input) + 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.GenerativeOctoAIMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -24938,26 +28259,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseDelimitedFrom(java.io.InputStream input) + 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.GenerativeOctoAIMetadata parseDelimitedFrom( + 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.GenerativeOctoAIMetadata parseFrom( + 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.GenerativeOctoAIMetadata parseFrom( + 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 { @@ -24970,7 +28291,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -24986,26 +28307,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeOctoAIMetadata} + * 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.GenerativeOctoAIMetadata) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder { + // @@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_GenerativeOctoAIMetadata_descriptor; + 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_GenerativeOctoAIMetadata_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder.class); + 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.GenerativeOctoAIMetadata.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -25036,17 +28357,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor; + 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.GenerativeOctoAIMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + 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.GenerativeOctoAIMetadata build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata result = buildPartial(); + 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); } @@ -25054,14 +28375,14 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOct } @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); + 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.GenerativeOctoAIMetadata 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)) { @@ -25107,16 +28428,16 @@ public Builder addRepeatedField( } @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); + 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.GenerativeOctoAIMetadata other) { - if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance()) 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()); } @@ -25170,31 +28491,31 @@ public Builder mergeFrom( } private int bitField0_; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage usage_; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.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_; + 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.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; * @return Whether the usage field is set. */ public boolean hasUsage() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; * @return The usage. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getUsage() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getUsage() { if (usageBuilder_ == null) { - return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_; + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_; } else { return usageBuilder_.getMessage(); } } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; */ - public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage value) { + public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage value) { if (usageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -25208,10 +28529,10 @@ public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerat return this; } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; */ public Builder setUsage( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder builderForValue) { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder builderForValue) { if (usageBuilder_ == null) { usage_ = builderForValue.build(); } else { @@ -25222,13 +28543,13 @@ public Builder setUsage( return this; } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; */ - public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage value) { + 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.GenerativeOctoAIMetadata.Usage.getDefaultInstance()) { + usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance()) { getUsageBuilder().mergeFrom(value); } else { usage_ = value; @@ -25243,7 +28564,7 @@ public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGener return this; } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; */ public Builder clearUsage() { bitField0_ = (bitField0_ & ~0x00000001); @@ -25256,33 +28577,33 @@ public Builder clearUsage() { return this; } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder getUsageBuilder() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder getUsageBuilder() { bitField0_ |= 0x00000001; onChanged(); return getUsageFieldBuilder().getBuilder(); } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder getUsageOrBuilder() { + 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.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_; } } /** - * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1; + * optional .weaviate.v1.GenerativeMistralMetadata.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> + 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.GenerativeOctoAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder>( + 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()); @@ -25303,23 +28624,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOctoAIMetadata) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeMistralMetadata) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAIMetadata) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata DEFAULT_INSTANCE; + // @@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.GenerativeOctoAIMetadata(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GenerativeOctoAIMetadata parsePartialFrom( + public GenerativeMistralMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -25338,17 +28659,17 @@ public GenerativeOctoAIMetadata 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.WeaviateProtoGenerative.GenerativeOctoAIMetadata getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -25785,154 +29106,2858 @@ private GenerativeOpenAIMetadata(com.google.protobuf.GeneratedMessageV3.Builder< private GenerativeOpenAIMetadata() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new 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 final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor; - } + 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; + } - @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) + public interface MetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.Metadata) 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. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return Whether the tokenMetadata field is set. */ - long getCompletionTokens(); - + boolean hasTokenMetadata(); /** - * optional int64 total_tokens = 3; - * @return Whether the totalTokens field is set. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return The tokenMetadata. */ - boolean hasTotalTokens(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getTokenMetadata(); /** - * optional int64 total_tokens = 3; - * @return The totalTokens. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ - long getTotalTokens(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder getTokenMetadataOrBuilder(); } /** - * Protobuf type {@code weaviate.v1.GenerativeOpenAIMetadata.Usage} + * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.Metadata} */ - public static final class Usage extends + public static final class Metadata extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAIMetadata.Usage) - UsageOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.Metadata) + MetadataOrBuilder { private static final long serialVersionUID = 0L; - // Use Usage.newBuilder() to construct. - private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Metadata.newBuilder() to construct. + private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Usage() { + private Metadata() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Usage(); + return new Metadata(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor; + 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_GenerativeOpenAIMetadata_Usage_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder.class); + 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 PROMPT_TOKENS_FIELD_NUMBER = 1; - private long promptTokens_ = 0L; + public static final int TOKEN_METADATA_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata tokenMetadata_; /** - * optional int64 prompt_tokens = 1; - * @return Whether the promptTokens field is set. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return Whether the tokenMetadata field is set. */ @java.lang.Override - public boolean hasPromptTokens() { + public boolean hasTokenMetadata() { 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. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return The tokenMetadata. */ @java.lang.Override - public boolean hasTotalTokens() { - return ((bitField0_ & 0x00000004) != 0); + 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 int64 total_tokens = 3; - * @return The totalTokens. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ @java.lang.Override - public long getTotalTokens() { - return totalTokens_; + 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; @@ -25950,13 +31975,7 @@ public final boolean isInitialized() { 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_); + output.writeMessage(1, getTokenMetadata()); } getUnknownFields().writeTo(output); } @@ -25969,15 +31988,7 @@ public int getSerializedSize() { 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_); + .computeMessageSize(1, getTokenMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -25989,25 +32000,15 @@ 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)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata) 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 (hasTokenMetadata() != other.hasTokenMetadata()) return false; + if (hasTokenMetadata()) { + if (!getTokenMetadata() + .equals(other.getTokenMetadata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -26020,64 +32021,53 @@ public int hashCode() { } 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()); + 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.GenerativeOpenAIMetadata.Usage parseFrom( + 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.GenerativeOpenAIMetadata.Usage parseFrom( + 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.GenerativeOpenAIMetadata.Usage parseFrom( + 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.GenerativeOpenAIMetadata.Usage parseFrom( + 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.GenerativeOpenAIMetadata.Usage parseFrom(byte[] data) + 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.GenerativeOpenAIMetadata.Usage parseFrom( + 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.GenerativeOpenAIMetadata.Usage parseFrom(java.io.InputStream input) + 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.GenerativeOpenAIMetadata.Usage parseFrom( + 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 { @@ -26085,26 +32075,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseDelimitedFrom(java.io.InputStream input) + 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.GenerativeOpenAIMetadata.Usage parseDelimitedFrom( + 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.GenerativeOpenAIMetadata.Usage parseFrom( + 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.GenerativeOpenAIMetadata.Usage parseFrom( + 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 { @@ -26117,7 +32107,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -26133,59 +32123,67 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeOpenAIMetadata.Usage} + * 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.GenerativeOpenAIMetadata.Usage) - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder { + // @@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_GenerativeOpenAIMetadata_Usage_descriptor; + 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_GenerativeOpenAIMetadata_Usage_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder.class); + 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.GenerativeOpenAIMetadata.Usage.newBuilder() + // 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; - promptTokens_ = 0L; - completionTokens_ = 0L; - totalTokens_ = 0L; + 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_GenerativeOpenAIMetadata_Usage_descriptor; + 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.GenerativeOpenAIMetadata.Usage getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance(); + 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.GenerativeOpenAIMetadata.Usage build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage result = buildPartial(); + 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); } @@ -26193,28 +32191,22 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpe } @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); + 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.GenerativeOpenAIMetadata.Usage 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.promptTokens_ = promptTokens_; + result.tokenMetadata_ = tokenMetadataBuilder_ == null + ? tokenMetadata_ + : tokenMetadataBuilder_.build(); 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_; } @@ -26252,24 +32244,18 @@ public Builder addRepeatedField( } @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); + 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.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()); + 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(); @@ -26297,21 +32283,13 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - promptTokens_ = input.readInt64(); + case 10: { + input.readMessage( + getTokenMetadataFieldBuilder().getBuilder(), + extensionRegistry); 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 + } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -26329,124 +32307,125 @@ public Builder mergeFrom( } private int bitField0_; - private long promptTokens_ ; + 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 int64 prompt_tokens = 1; - * @return Whether the promptTokens field is set. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return Whether the tokenMetadata field is set. */ - @java.lang.Override - public boolean hasPromptTokens() { + public boolean hasTokenMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional int64 prompt_tokens = 1; - * @return The promptTokens. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; + * @return The tokenMetadata. */ - @java.lang.Override - public long getPromptTokens() { - return promptTokens_; + 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 int64 prompt_tokens = 1; - * @param value The promptTokens to set. - * @return This builder for chaining. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ - public Builder setPromptTokens(long value) { - - promptTokens_ = value; + 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 int64 prompt_tokens = 1; - * @return This builder for chaining. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ - public Builder clearPromptTokens() { - bitField0_ = (bitField0_ & ~0x00000001); - promptTokens_ = 0L; + 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; } - - 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. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ - public Builder setCompletionTokens(long value) { - - completionTokens_ = value; - bitField0_ |= 0x00000002; - onChanged(); + 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 int64 completion_tokens = 2; - * @return This builder for chaining. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ - public Builder clearCompletionTokens() { - bitField0_ = (bitField0_ & ~0x00000002); - completionTokens_ = 0L; + public Builder clearTokenMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + tokenMetadata_ = null; + if (tokenMetadataBuilder_ != null) { + tokenMetadataBuilder_.dispose(); + tokenMetadataBuilder_ = null; + } 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. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ - @java.lang.Override - public long getTotalTokens() { - return totalTokens_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder getTokenMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokenMetadataFieldBuilder().getBuilder(); } /** - * optional int64 total_tokens = 3; - * @param value The totalTokens to set. - * @return This builder for chaining. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ - public Builder setTotalTokens(long value) { - - totalTokens_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + 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 int64 total_tokens = 3; - * @return This builder for chaining. + * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; */ - public Builder clearTotalTokens() { - bitField0_ = (bitField0_ & ~0x00000004); - totalTokens_ = 0L; - onChanged(); - return this; + 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( @@ -26461,23 +32440,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOpenAIMetadata.Usage) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.Metadata) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOpenAIMetadata.Usage) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage DEFAULT_INSTANCE; + // @@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.GenerativeOpenAIMetadata.Usage(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Usage parsePartialFrom( + public Metadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -26496,1376 +32475,1654 @@ public Usage 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.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata 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; - } + public interface UsageMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) + com.google.protobuf.MessageOrBuilder { - @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); - } + /** + * 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(); - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * 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(); - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUsage()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * 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(); } - - @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); + /** + * 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); } - 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; + private UsageMetadata() { } - 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(); + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UsageMetadata(); } - 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; + 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_GenerativeOpenAIMetadata_fieldAccessorTable + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder.class); + 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.GenerativeOpenAIMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + 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); } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * optional int64 prompt_token_count = 1; + * @return The promptTokenCount. + */ + @java.lang.Override + public long getPromptTokenCount() { + return promptTokenCount_; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getUsageFieldBuilder(); - } + + 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 Builder clear() { - super.clear(); - bitField0_ = 0; - usage_ = null; - if (usageBuilder_ != null) { - usageBuilder_.dispose(); - usageBuilder_ = null; - } - return this; + 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 com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor; + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + 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 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); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, promptTokenCount_); } - return result; + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, candidatesTokenCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, totalTokenCount_); + } + getUnknownFields().writeTo(output); } @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; + 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; } - 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; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - result.bitField0_ |= to_bitField0_; + 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 Builder clone() { - return super.clone(); + 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); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + 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 clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + 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 setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } + @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - @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); + /** + * 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; } - } - 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()); + @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; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @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 Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + @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; } - 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(); + @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; } - } - /** - * 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(); + + 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; } - usage_ = value; - } else { - usageBuilder_.setMessage(value); + 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_; } - 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()); + + @java.lang.Override + public Builder clone() { + return super.clone(); } - 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); + @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 { - usage_ = value; + super.mergeFrom(other); + return this; } - } else { - usageBuilder_.mergeFrom(value); } - if (usage_ != null) { + + 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; } - return this; - } - /** - * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1; - */ - public Builder clearUsage() { - bitField0_ = (bitField0_ & ~0x00000001); - usage_ = null; - if (usageBuilder_ != null) { - usageBuilder_.dispose(); - usageBuilder_ = null; + /** + * optional int64 prompt_token_count = 1; + * @return This builder for chaining. + */ + public Builder clearPromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokenCount_ = 0L; + onChanged(); + return this; } - 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_; + + 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 .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; + /** + * 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); } - 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.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(); + } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOpenAIMetadata) - } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // @@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(); - } + 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - 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 com.google.protobuf.Parser getParserForType() { + return PARSER; } - }; - - 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; + } - @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 { - + 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. */ - boolean hasMetadata(); + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } /** * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; * @return The metadata. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getMetadata(); + @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; */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder getMetadataOrBuilder(); + @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. */ - boolean hasUsageMetadata(); + @java.lang.Override + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } /** * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; * @return The usageMetadata. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getUsageMetadata(); + @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; */ - 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 + 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 - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GenerativeGoogleMetadata(); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor; + memoizedIsInitialized = 1; + return true; } @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); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMetadata()); } - private TokenCount() { + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUsageMetadata()); } + getUnknownFields().writeTo(output); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TokenCount(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); } - - @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); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUsageMetadata()); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - 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); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - * optional int64 total_billable_characters = 1; - * @return The totalBillableCharacters. - */ - @java.lang.Override - public long getTotalBillableCharacters() { - return totalBillableCharacters_; + 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; - 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); + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; } - /** - * optional int64 total_tokens = 2; - * @return The totalTokens. - */ - @java.lang.Override - public long getTotalTokens() { - return totalTokens_; + if (hasUsageMetadata() != other.hasUsageMetadata()) return false; + if (hasUsageMetadata()) { + if (!getUsageMetadata() + .equals(other.getUsageMetadata())) return false; } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - 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 int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - @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); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); } - - @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; + if (hasUsageMetadata()) { + hash = (37 * hash) + USAGE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getUsageMetadata().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @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; + 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); + } - 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; - } + 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); + } - @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 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); + } - 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); + @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; } - 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); + + @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 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); + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - 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); + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - 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); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getUsageMetadataFieldBuilder(); + } } - 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 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 Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor; } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + + @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 Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + 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 - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + 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; } - /** - * 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); + 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; } - - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.newBuilder() - private Builder() { - + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usageMetadata_ = usageMetadataBuilder_ == null + ? usageMetadata_ + : usageMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; + } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - totalBillableCharacters_ = 0L; - totalTokens_ = 0L; + @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; } + } - @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(); + 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()); } - - @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; + if (other.hasUsageMetadata()) { + mergeUsageMetadata(other.getUsageMetadata()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @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; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - 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 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_; - @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); + 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(); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + } + /** + * 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); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, 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()); } - @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); + 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 { - super.mergeFrom(other); - return this; + metadata_ = value; } + } else { + metadataBuilder_.mergeFrom(value); } - - 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()); + if (metadata_ != null) { + bitField0_ |= 0x00000001; 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; + return this; + } + /** + * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; } - 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); + 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 int64 total_billable_characters = 1; - * @return The totalBillableCharacters. - */ - @java.lang.Override - public long getTotalBillableCharacters() { - return totalBillableCharacters_; + } + /** + * 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; } - /** - * optional int64 total_billable_characters = 1; - * @param value The totalBillableCharacters to set. - * @return This builder for chaining. - */ - public Builder setTotalBillableCharacters(long value) { + return metadataBuilder_; + } - totalBillableCharacters_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + 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 int64 total_billable_characters = 1; - * @return This builder for chaining. - */ - public Builder clearTotalBillableCharacters() { - bitField0_ = (bitField0_ & ~0x00000001); - totalBillableCharacters_ = 0L; - onChanged(); - return this; + } + /** + * 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); } - - 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); + 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()); } - /** - * optional int64 total_tokens = 2; - * @return The totalTokens. - */ - @java.lang.Override - public long getTotalTokens() { - return totalTokens_; + 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); } - /** - * optional int64 total_tokens = 2; - * @param value The totalTokens to set. - * @return This builder for chaining. - */ - public Builder setTotalTokens(long value) { - - totalTokens_ = value; + if (usageMetadata_ != null) { 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; + 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; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + 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_; } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + } + /** + * 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; } - - - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.TokenCount) + return usageMetadataBuilder_; } - - // @@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(); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getDefaultInstance() { - return DEFAULT_INSTANCE; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - 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; - } + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + 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; } - public interface TokenMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata) + @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 GenerativeDatabricksMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDatabricksMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + boolean hasUsage(); + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + * @return The usage. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage getUsage(); + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.UsageOrBuilder getUsageOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeDatabricksMetadata} + */ + public static final class GenerativeDatabricksMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDatabricksMetadata) + GenerativeDatabricksMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeDatabricksMetadata.newBuilder() to construct. + private GenerativeDatabricksMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeDatabricksMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeDatabricksMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Builder.class); + } + + public interface UsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDatabricksMetadata.Usage) com.google.protobuf.MessageOrBuilder { /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; - * @return Whether the inputTokenCount field is set. + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. */ - boolean hasInputTokenCount(); + boolean hasPromptTokens(); /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; - * @return The inputTokenCount. + * optional int64 prompt_tokens = 1; + * @return The promptTokens. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getInputTokenCount(); + long getPromptTokens(); + /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getInputTokenCountOrBuilder(); - + boolean hasCompletionTokens(); /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; - * @return Whether the outputTokenCount field is set. + * optional int64 completion_tokens = 2; + * @return The completionTokens. */ - boolean hasOutputTokenCount(); + long getCompletionTokens(); + /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; - * @return The outputTokenCount. + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getOutputTokenCount(); + boolean hasTotalTokens(); /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * optional int64 total_tokens = 3; + * @return The totalTokens. */ - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getOutputTokenCountOrBuilder(); + long getTotalTokens(); } /** - * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.TokenMetadata} + * Protobuf type {@code weaviate.v1.GenerativeDatabricksMetadata.Usage} */ - public static final class TokenMetadata extends + public static final class Usage extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata) - TokenMetadataOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDatabricksMetadata.Usage) + UsageOrBuilder { private static final long serialVersionUID = 0L; - // Use TokenMetadata.newBuilder() to construct. - private TokenMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Usage.newBuilder() to construct. + private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TokenMetadata() { + private Usage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new TokenMetadata(); + return new Usage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.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_; + public static final int PROMPT_TOKENS_FIELD_NUMBER = 1; + private long promptTokens_ = 0L; /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; - * @return Whether the inputTokenCount field is set. + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. */ @java.lang.Override - public boolean hasInputTokenCount() { + public boolean hasPromptTokens() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; - * @return The inputTokenCount. + * optional int64 prompt_tokens = 1; + * @return The promptTokens. */ @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_; + public long getPromptTokens() { + return promptTokens_; } + + public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2; + private long completionTokens_ = 0L; /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. */ @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 boolean hasCompletionTokens() { + return ((bitField0_ & 0x00000002) != 0); } - - 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. + * optional int64 completion_tokens = 2; + * @return The completionTokens. */ @java.lang.Override - public boolean hasOutputTokenCount() { - return ((bitField0_ & 0x00000002) != 0); + public long getCompletionTokens() { + return completionTokens_; } + + public static final int TOTAL_TOKENS_FIELD_NUMBER = 3; + private long totalTokens_ = 0L; /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; - * @return The outputTokenCount. + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. */ @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_; + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000004) != 0); } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * optional int64 total_tokens = 3; + * @return The totalTokens. */ @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_; + public long getTotalTokens() { + return totalTokens_; } private byte memoizedIsInitialized = -1; @@ -27883,10 +34140,13 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getInputTokenCount()); + output.writeInt64(1, promptTokens_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getOutputTokenCount()); + output.writeInt64(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, totalTokens_); } getUnknownFields().writeTo(output); } @@ -27899,11 +34159,15 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputTokenCount()); + .computeInt64Size(1, promptTokens_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputTokenCount()); + .computeInt64Size(2, completionTokens_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, totalTokens_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -27915,20 +34179,25 @@ 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)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage) obj; - if (hasInputTokenCount() != other.hasInputTokenCount()) return false; - if (hasInputTokenCount()) { - if (!getInputTokenCount() - .equals(other.getInputTokenCount())) return false; + if (hasPromptTokens() != other.hasPromptTokens()) return false; + if (hasPromptTokens()) { + if (getPromptTokens() + != other.getPromptTokens()) return false; } - if (hasOutputTokenCount() != other.hasOutputTokenCount()) return false; - if (hasOutputTokenCount()) { - if (!getOutputTokenCount() - .equals(other.getOutputTokenCount())) 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; @@ -27941,57 +34210,64 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasInputTokenCount()) { - hash = (37 * hash) + INPUT_TOKEN_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getInputTokenCount().hashCode(); + if (hasPromptTokens()) { + hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPromptTokens()); } - if (hasOutputTokenCount()) { - hash = (37 * hash) + OUTPUT_TOKEN_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getOutputTokenCount().hashCode(); + 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.GenerativeGoogleMetadata.TokenMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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.GenerativeGoogleMetadata.TokenMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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.GenerativeGoogleMetadata.TokenMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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.GenerativeGoogleMetadata.TokenMetadata parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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.GenerativeGoogleMetadata.TokenMetadata parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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.GenerativeGoogleMetadata.TokenMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -27999,26 +34275,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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.GenerativeGoogleMetadata.TokenMetadata parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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.GenerativeGoogleMetadata.TokenMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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.GenerativeGoogleMetadata.TokenMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -28031,7 +34307,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -28047,73 +34323,59 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.TokenMetadata} + * Protobuf type {@code weaviate.v1.GenerativeDatabricksMetadata.Usage} */ 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 { + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDatabricksMetadata.Usage) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.UsageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.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; - } + 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_GenerativeGoogleMetadata_TokenMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_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(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.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(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -28121,28 +34383,28 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoo } @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); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.inputTokenCount_ = inputTokenCountBuilder_ == null - ? inputTokenCount_ - : inputTokenCountBuilder_.build(); + result.promptTokens_ = promptTokens_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.outputTokenCount_ = outputTokenCountBuilder_ == null - ? outputTokenCount_ - : outputTokenCountBuilder_.build(); + result.completionTokens_ = completionTokens_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokens_ = totalTokens_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -28180,21 +34442,24 @@ public Builder addRepeatedField( } @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); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage)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()); + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.getDefaultInstance()) return this; + if (other.hasPromptTokens()) { + setPromptTokens(other.getPromptTokens()); } - if (other.hasOutputTokenCount()) { - mergeOutputTokenCount(other.getOutputTokenCount()); + if (other.hasCompletionTokens()) { + setCompletionTokens(other.getCompletionTokens()); + } + if (other.hasTotalTokens()) { + setTotalTokens(other.getTotalTokens()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -28222,20 +34487,21 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getInputTokenCountFieldBuilder().getBuilder(), - extensionRegistry); + case 8: { + promptTokens_ = input.readInt64(); bitField0_ |= 0x00000001; break; - } // case 10 - case 18: { - input.readMessage( - getOutputTokenCountFieldBuilder().getBuilder(), - extensionRegistry); + } // case 8 + case 16: { + completionTokens_ = input.readInt64(); bitField0_ |= 0x00000002; break; - } // case 18 + } // 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 @@ -28253,246 +34519,124 @@ public Builder mergeFrom( } 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_; + private long promptTokens_ ; /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; - * @return Whether the inputTokenCount field is set. + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. */ - public boolean hasInputTokenCount() { + @java.lang.Override + public boolean hasPromptTokens() { 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; + * optional int64 prompt_tokens = 1; + * @return The promptTokens. */ - 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; + @java.lang.Override + public long getPromptTokens() { + return promptTokens_; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1; + * optional int64 prompt_tokens = 1; + * @param value The promptTokens to set. + * @return This builder for chaining. */ - 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()); - } + public Builder setPromptTokens(long value) { + + promptTokens_ = value; 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; + * optional int64 prompt_tokens = 1; + * @return This builder for chaining. */ - public Builder clearInputTokenCount() { + public Builder clearPromptTokens() { bitField0_ = (bitField0_ & ~0x00000001); - inputTokenCount_ = null; - if (inputTokenCountBuilder_ != null) { - inputTokenCountBuilder_.dispose(); - inputTokenCountBuilder_ = null; - } + promptTokens_ = 0L; 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_; + private long completionTokens_ ; /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; - * @return Whether the outputTokenCount field is set. + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. */ - public boolean hasOutputTokenCount() { + @java.lang.Override + public boolean hasCompletionTokens() { return ((bitField0_ & 0x00000002) != 0); } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; - * @return The outputTokenCount. + * optional int64 completion_tokens = 2; + * @return The completionTokens. */ - 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(); - } + @java.lang.Override + public long getCompletionTokens() { + return completionTokens_; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * optional int64 completion_tokens = 2; + * @param value The completionTokens to set. + * @return This builder for chaining. */ - 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); - } + public Builder setCompletionTokens(long value) { + + completionTokens_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * optional int64 completion_tokens = 2; + * @return This builder for chaining. */ - 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; + public Builder clearCompletionTokens() { + bitField0_ = (bitField0_ & ~0x00000002); + completionTokens_ = 0L; onChanged(); return this; } + + private long totalTokens_ ; /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. */ - 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; + @java.lang.Override + public boolean hasTotalTokens() { + return ((bitField0_ & 0x00000004) != 0); } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * optional int64 total_tokens = 3; + * @return The totalTokens. */ - public Builder clearOutputTokenCount() { - bitField0_ = (bitField0_ & ~0x00000002); - outputTokenCount_ = null; - if (outputTokenCountBuilder_ != null) { - outputTokenCountBuilder_.dispose(); - outputTokenCountBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public long getTotalTokens() { + return totalTokens_; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * optional int64 total_tokens = 3; + * @param value The totalTokens to set. + * @return This builder for chaining. */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder getOutputTokenCountBuilder() { - bitField0_ |= 0x00000002; + public Builder setTotalTokens(long value) { + + totalTokens_ = value; + bitField0_ |= 0x00000004; 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_; - } + return this; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2; + * optional int64 total_tokens = 3; + * @return This builder for chaining. */ - 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_; + public Builder clearTotalTokens() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokens_ = 0L; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -28507,23 +34651,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeDatabricksMetadata.Usage) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDatabricksMetadata.Usage) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage 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 TokenMetadata parsePartialFrom( + public Usage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -28542,762 +34686,762 @@ public TokenMetadata 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.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.Metadata) - com.google.protobuf.MessageOrBuilder { + private int bitField0_; + public static final int USAGE_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage usage_; + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + @java.lang.Override + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + * @return The usage. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage getUsage() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.getDefaultInstance() : usage_; + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.UsageOrBuilder getUsageOrBuilder() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.getDefaultInstance() : usage_; + } - /** - * 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(); + 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.GenerativeDatabricksMetadata)) { + return super.equals(obj); + } + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) 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.GenerativeDatabricksMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata 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.GenerativeDatabricksMetadata 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} + * Protobuf type {@code weaviate.v1.GenerativeDatabricksMetadata} */ - 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 class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDatabricksMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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_; + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - 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; + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getTokenMetadata()); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUsageFieldBuilder(); } - 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()); + public Builder clear() { + super.clear(); + bitField0_ = 0; + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + return this; } @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; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDatabricksMetadata_descriptor; + } - 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 io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.getDefaultInstance(); } @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(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + return result; } - 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); + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; } - 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); + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata 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_; } - 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); + @java.lang.Override + public Builder clone() { + return super.clone(); } - 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 setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - 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 clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); } - /** - * 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; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata)other); + } else { + super.mergeFrom(other); 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; + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.getDefaultInstance()) return this; + if (other.hasUsage()) { + mergeUsage(other.getUsage()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - 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 final boolean isInitialized() { + return true; + } - @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; - } + @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(); } - - 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()); + 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(); - 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_; + } // 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(); - } + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage usage_; + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.UsageOrBuilder> usageBuilder_; + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + * @return The usage. + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage getUsage() { + if (usageBuilder_ == null) { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.getDefaultInstance() : usage_; + } else { + return usageBuilder_.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); + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage value) { + if (usageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000001; - onChanged(); - return this; + usage_ = value; + } else { + usageBuilder_.setMessage(value); } - /** - * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + public Builder setUsage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.Builder builderForValue) { + if (usageBuilder_ == null) { + usage_ = builderForValue.build(); + } else { + usageBuilder_.setMessage(builderForValue.build()); } - /** - * 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; - } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage value) { + if (usageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + usage_ != null && + usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.getDefaultInstance()) { + getUsageBuilder().mergeFrom(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; + usage_ = value; } - onChanged(); - return this; + } else { + usageBuilder_.mergeFrom(value); } - /** - * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1; - */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder getTokenMetadataBuilder() { + if (usage_ != null) { 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_; + return this; + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + public Builder clearUsage() { + bitField0_ = (bitField0_ & ~0x00000001); + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + onChanged(); + return this; + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.Builder getUsageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUsageFieldBuilder().getBuilder(); + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.UsageOrBuilder getUsageOrBuilder() { + if (usageBuilder_ != null) { + return usageBuilder_.getMessageOrBuilder(); + } else { + return usage_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.getDefaultInstance() : usage_; } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + } + /** + * optional .weaviate.v1.GenerativeDatabricksMetadata.Usage usage = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.UsageOrBuilder> + getUsageFieldBuilder() { + if (usageBuilder_ == null) { + usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.UsageOrBuilder>( + getUsage(), + getParentForChildren(), + isClean()); + usage_ = null; } - - - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.Metadata) + return usageBuilder_; } - - // @@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(); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getDefaultInstance() { - return DEFAULT_INSTANCE; + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - 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; - } + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeDatabricksMetadata) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDatabricksMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata(); + } + + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public GenerativeDatabricksMetadata 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; } - public interface UsageMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerativeFriendliAIMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeFriendliAIMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. + */ + boolean hasUsage(); + /** + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; + * @return The usage. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage getUsage(); + /** + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.UsageOrBuilder getUsageOrBuilder(); + } + /** + * Protobuf type {@code weaviate.v1.GenerativeFriendliAIMetadata} + */ + public static final class GenerativeFriendliAIMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeFriendliAIMetadata) + GenerativeFriendliAIMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenerativeFriendliAIMetadata.newBuilder() to construct. + private GenerativeFriendliAIMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerativeFriendliAIMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerativeFriendliAIMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Builder.class); + } + + public interface UsageOrBuilder extends + // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeFriendliAIMetadata.Usage) com.google.protobuf.MessageOrBuilder { /** - * optional int64 prompt_token_count = 1; - * @return Whether the promptTokenCount field is set. + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. */ - boolean hasPromptTokenCount(); + boolean hasPromptTokens(); /** - * optional int64 prompt_token_count = 1; - * @return The promptTokenCount. + * optional int64 prompt_tokens = 1; + * @return The promptTokens. */ - long getPromptTokenCount(); + long getPromptTokens(); /** - * optional int64 candidates_token_count = 2; - * @return Whether the candidatesTokenCount field is set. + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. */ - boolean hasCandidatesTokenCount(); + boolean hasCompletionTokens(); /** - * optional int64 candidates_token_count = 2; - * @return The candidatesTokenCount. + * optional int64 completion_tokens = 2; + * @return The completionTokens. */ - long getCandidatesTokenCount(); + long getCompletionTokens(); /** - * optional int64 total_token_count = 3; - * @return Whether the totalTokenCount field is set. + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. */ - boolean hasTotalTokenCount(); + boolean hasTotalTokens(); /** - * optional int64 total_token_count = 3; - * @return The totalTokenCount. + * optional int64 total_tokens = 3; + * @return The totalTokens. */ - long getTotalTokenCount(); + long getTotalTokens(); } /** - * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.UsageMetadata} + * Protobuf type {@code weaviate.v1.GenerativeFriendliAIMetadata.Usage} */ - public static final class UsageMetadata extends + public static final class Usage extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) - UsageMetadataOrBuilder { + // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeFriendliAIMetadata.Usage) + UsageOrBuilder { private static final long serialVersionUID = 0L; - // Use UsageMetadata.newBuilder() to construct. - private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Usage.newBuilder() to construct. + private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UsageMetadata() { + private Usage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new UsageMetadata(); + return new Usage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.Builder.class); } private int bitField0_; - public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1; - private long promptTokenCount_ = 0L; + public static final int PROMPT_TOKENS_FIELD_NUMBER = 1; + private long promptTokens_ = 0L; /** - * optional int64 prompt_token_count = 1; - * @return Whether the promptTokenCount field is set. + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. */ @java.lang.Override - public boolean hasPromptTokenCount() { + public boolean hasPromptTokens() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional int64 prompt_token_count = 1; - * @return The promptTokenCount. + * optional int64 prompt_tokens = 1; + * @return The promptTokens. */ @java.lang.Override - public long getPromptTokenCount() { - return promptTokenCount_; + public long getPromptTokens() { + return promptTokens_; } - public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2; - private long candidatesTokenCount_ = 0L; + public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2; + private long completionTokens_ = 0L; /** - * optional int64 candidates_token_count = 2; - * @return Whether the candidatesTokenCount field is set. + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. */ @java.lang.Override - public boolean hasCandidatesTokenCount() { + public boolean hasCompletionTokens() { return ((bitField0_ & 0x00000002) != 0); } /** - * optional int64 candidates_token_count = 2; - * @return The candidatesTokenCount. + * optional int64 completion_tokens = 2; + * @return The completionTokens. */ @java.lang.Override - public long getCandidatesTokenCount() { - return candidatesTokenCount_; + public long getCompletionTokens() { + return completionTokens_; } - public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3; - private long totalTokenCount_ = 0L; + public static final int TOTAL_TOKENS_FIELD_NUMBER = 3; + private long totalTokens_ = 0L; /** - * optional int64 total_token_count = 3; - * @return Whether the totalTokenCount field is set. + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. */ @java.lang.Override - public boolean hasTotalTokenCount() { + public boolean hasTotalTokens() { return ((bitField0_ & 0x00000004) != 0); } /** - * optional int64 total_token_count = 3; - * @return The totalTokenCount. + * optional int64 total_tokens = 3; + * @return The totalTokens. */ @java.lang.Override - public long getTotalTokenCount() { - return totalTokenCount_; + public long getTotalTokens() { + return totalTokens_; } private byte memoizedIsInitialized = -1; @@ -29315,13 +35459,13 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, promptTokenCount_); + output.writeInt64(1, promptTokens_); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, candidatesTokenCount_); + output.writeInt64(2, completionTokens_); } if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt64(3, totalTokenCount_); + output.writeInt64(3, totalTokens_); } getUnknownFields().writeTo(output); } @@ -29334,15 +35478,15 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, promptTokenCount_); + .computeInt64Size(1, promptTokens_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, candidatesTokenCount_); + .computeInt64Size(2, completionTokens_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, totalTokenCount_); + .computeInt64Size(3, totalTokens_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -29354,25 +35498,25 @@ 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)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage) obj; - if (hasPromptTokenCount() != other.hasPromptTokenCount()) return false; - if (hasPromptTokenCount()) { - if (getPromptTokenCount() - != other.getPromptTokenCount()) return false; + if (hasPromptTokens() != other.hasPromptTokens()) return false; + if (hasPromptTokens()) { + if (getPromptTokens() + != other.getPromptTokens()) return false; } - if (hasCandidatesTokenCount() != other.hasCandidatesTokenCount()) return false; - if (hasCandidatesTokenCount()) { - if (getCandidatesTokenCount() - != other.getCandidatesTokenCount()) return false; + if (hasCompletionTokens() != other.hasCompletionTokens()) return false; + if (hasCompletionTokens()) { + if (getCompletionTokens() + != other.getCompletionTokens()) return false; } - if (hasTotalTokenCount() != other.hasTotalTokenCount()) return false; - if (hasTotalTokenCount()) { - if (getTotalTokenCount() - != other.getTotalTokenCount()) 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; @@ -29385,64 +35529,64 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPromptTokenCount()) { - hash = (37 * hash) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + if (hasPromptTokens()) { + hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPromptTokenCount()); + getPromptTokens()); } - if (hasCandidatesTokenCount()) { - hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; + if (hasCompletionTokens()) { + hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCandidatesTokenCount()); + getCompletionTokens()); } - if (hasTotalTokenCount()) { - hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + if (hasTotalTokens()) { + hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalTokenCount()); + getTotalTokens()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.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.GenerativeGoogleMetadata.UsageMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.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.GenerativeGoogleMetadata.UsageMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.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.GenerativeGoogleMetadata.UsageMetadata parseFrom(byte[] data) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.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.GenerativeGoogleMetadata.UsageMetadata parseFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.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.GenerativeGoogleMetadata.UsageMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -29450,26 +35594,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.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.GenerativeGoogleMetadata.UsageMetadata parseDelimitedFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.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.GenerativeGoogleMetadata.UsageMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.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.GenerativeGoogleMetadata.UsageMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -29482,7 +35626,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -29498,26 +35642,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.UsageMetadata} + * Protobuf type {@code weaviate.v1.GenerativeFriendliAIMetadata.Usage} */ 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 { + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeFriendliAIMetadata.Usage) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.UsageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.newBuilder() private Builder() { } @@ -29531,26 +35675,26 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - promptTokenCount_ = 0L; - candidatesTokenCount_ = 0L; - totalTokenCount_ = 0L; + 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_GenerativeGoogleMetadata_UsageMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_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(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.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(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -29558,26 +35702,26 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoo } @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); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.promptTokenCount_ = promptTokenCount_; + result.promptTokens_ = promptTokens_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.candidatesTokenCount_ = candidatesTokenCount_; + result.completionTokens_ = completionTokens_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.totalTokenCount_ = totalTokenCount_; + result.totalTokens_ = totalTokens_; to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -29617,24 +35761,24 @@ public Builder addRepeatedField( } @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); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage)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()); + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.getDefaultInstance()) return this; + if (other.hasPromptTokens()) { + setPromptTokens(other.getPromptTokens()); } - if (other.hasCandidatesTokenCount()) { - setCandidatesTokenCount(other.getCandidatesTokenCount()); + if (other.hasCompletionTokens()) { + setCompletionTokens(other.getCompletionTokens()); } - if (other.hasTotalTokenCount()) { - setTotalTokenCount(other.getTotalTokenCount()); + if (other.hasTotalTokens()) { + setTotalTokens(other.getTotalTokens()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -29663,17 +35807,17 @@ public Builder mergeFrom( done = true; break; case 8: { - promptTokenCount_ = input.readInt64(); + promptTokens_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { - candidatesTokenCount_ = input.readInt64(); + completionTokens_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { - totalTokenCount_ = input.readInt64(); + totalTokens_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 @@ -29694,122 +35838,122 @@ public Builder mergeFrom( } private int bitField0_; - private long promptTokenCount_ ; + private long promptTokens_ ; /** - * optional int64 prompt_token_count = 1; - * @return Whether the promptTokenCount field is set. + * optional int64 prompt_tokens = 1; + * @return Whether the promptTokens field is set. */ @java.lang.Override - public boolean hasPromptTokenCount() { + public boolean hasPromptTokens() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional int64 prompt_token_count = 1; - * @return The promptTokenCount. + * optional int64 prompt_tokens = 1; + * @return The promptTokens. */ @java.lang.Override - public long getPromptTokenCount() { - return promptTokenCount_; + public long getPromptTokens() { + return promptTokens_; } /** - * optional int64 prompt_token_count = 1; - * @param value The promptTokenCount to set. + * optional int64 prompt_tokens = 1; + * @param value The promptTokens to set. * @return This builder for chaining. */ - public Builder setPromptTokenCount(long value) { + public Builder setPromptTokens(long value) { - promptTokenCount_ = value; + promptTokens_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * optional int64 prompt_token_count = 1; + * optional int64 prompt_tokens = 1; * @return This builder for chaining. */ - public Builder clearPromptTokenCount() { + public Builder clearPromptTokens() { bitField0_ = (bitField0_ & ~0x00000001); - promptTokenCount_ = 0L; + promptTokens_ = 0L; onChanged(); return this; } - private long candidatesTokenCount_ ; + private long completionTokens_ ; /** - * optional int64 candidates_token_count = 2; - * @return Whether the candidatesTokenCount field is set. + * optional int64 completion_tokens = 2; + * @return Whether the completionTokens field is set. */ @java.lang.Override - public boolean hasCandidatesTokenCount() { + public boolean hasCompletionTokens() { return ((bitField0_ & 0x00000002) != 0); } /** - * optional int64 candidates_token_count = 2; - * @return The candidatesTokenCount. + * optional int64 completion_tokens = 2; + * @return The completionTokens. */ @java.lang.Override - public long getCandidatesTokenCount() { - return candidatesTokenCount_; + public long getCompletionTokens() { + return completionTokens_; } /** - * optional int64 candidates_token_count = 2; - * @param value The candidatesTokenCount to set. + * optional int64 completion_tokens = 2; + * @param value The completionTokens to set. * @return This builder for chaining. */ - public Builder setCandidatesTokenCount(long value) { + public Builder setCompletionTokens(long value) { - candidatesTokenCount_ = value; + completionTokens_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * optional int64 candidates_token_count = 2; + * optional int64 completion_tokens = 2; * @return This builder for chaining. */ - public Builder clearCandidatesTokenCount() { + public Builder clearCompletionTokens() { bitField0_ = (bitField0_ & ~0x00000002); - candidatesTokenCount_ = 0L; + completionTokens_ = 0L; onChanged(); return this; } - private long totalTokenCount_ ; + private long totalTokens_ ; /** - * optional int64 total_token_count = 3; - * @return Whether the totalTokenCount field is set. + * optional int64 total_tokens = 3; + * @return Whether the totalTokens field is set. */ @java.lang.Override - public boolean hasTotalTokenCount() { + public boolean hasTotalTokens() { return ((bitField0_ & 0x00000004) != 0); } /** - * optional int64 total_token_count = 3; - * @return The totalTokenCount. + * optional int64 total_tokens = 3; + * @return The totalTokens. */ @java.lang.Override - public long getTotalTokenCount() { - return totalTokenCount_; + public long getTotalTokens() { + return totalTokens_; } /** - * optional int64 total_token_count = 3; - * @param value The totalTokenCount to set. + * optional int64 total_tokens = 3; + * @param value The totalTokens to set. * @return This builder for chaining. */ - public Builder setTotalTokenCount(long value) { + public Builder setTotalTokens(long value) { - totalTokenCount_ = value; + totalTokens_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * optional int64 total_token_count = 3; + * optional int64 total_tokens = 3; * @return This builder for chaining. */ - public Builder clearTotalTokenCount() { + public Builder clearTotalTokens() { bitField0_ = (bitField0_ & ~0x00000004); - totalTokenCount_ = 0L; + totalTokens_ = 0L; onChanged(); return this; } @@ -29826,23 +35970,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeFriendliAIMetadata.Usage) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeFriendliAIMetadata.Usage) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage 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 UsageMetadata parsePartialFrom( + public Usage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -29861,73 +36005,47 @@ public UsageMetadata 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.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage 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_; + public static final int USAGE_FIELD_NUMBER = 1; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage usage_; /** - * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; - * @return Whether the metadata field is set. + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. */ @java.lang.Override - public boolean hasMetadata() { + public boolean hasUsage() { 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. + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; + * @return The usage. */ @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_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage getUsage() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.getDefaultInstance() : usage_; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; */ @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_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.UsageOrBuilder getUsageOrBuilder() { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.getDefaultInstance() : usage_; } private byte memoizedIsInitialized = -1; @@ -29945,10 +36063,7 @@ public final boolean isInitialized() { 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()); + output.writeMessage(1, getUsage()); } getUnknownFields().writeTo(output); } @@ -29961,11 +36076,7 @@ public int getSerializedSize() { 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()); + .computeMessageSize(1, getUsage()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -29977,20 +36088,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata)) { + if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata)) { return super.equals(obj); } - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) obj; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) 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 (hasUsage() != other.hasUsage()) return false; + if (hasUsage()) { + if (!getUsage() + .equals(other.getUsage())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -30003,57 +36109,53 @@ public int hashCode() { } 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(); + 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.GenerativeGoogleMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -30061,26 +36163,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseDelimitedFrom(java.io.InputStream input) + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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( + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -30093,7 +36195,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.Genera public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata prototype) { + public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -30109,26 +36211,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata} + * Protobuf type {@code weaviate.v1.GenerativeFriendliAIMetadata} */ 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 { + // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeFriendliAIMetadata) + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_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 + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder.class); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Builder.class); } - // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.newBuilder() + // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -30141,23 +36243,17 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - getUsageMetadataFieldBuilder(); + getUsageFieldBuilder(); } } @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; + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; } return this; } @@ -30165,17 +36261,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor; + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeFriendliAIMetadata_descriptor; } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstanceForType() { - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata getDefaultInstanceForType() { + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance(); } @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata build() { - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata result = buildPartial(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata build() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -30183,28 +36279,22 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoo } @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); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata buildPartial() { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata result) { + private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.usage_ = usageBuilder_ == null + ? usage_ + : usageBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.usageMetadata_ = usageMetadataBuilder_ == null - ? usageMetadata_ - : usageMetadataBuilder_.build(); - to_bitField0_ |= 0x00000002; - } result.bitField0_ |= to_bitField0_; } @@ -30242,21 +36332,18 @@ public Builder addRepeatedField( } @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); + if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) { + return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata)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()); + public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata other) { + if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance()) return this; + if (other.hasUsage()) { + mergeUsage(other.getUsage()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -30286,18 +36373,11 @@ public Builder mergeFrom( break; case 10: { input.readMessage( - getMetadataFieldBuilder().getBuilder(), + getUsageFieldBuilder().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 @@ -30315,246 +36395,125 @@ public Builder mergeFrom( } private int bitField0_; - private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata metadata_; + private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage usage_; 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_; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.UsageOrBuilder> usageBuilder_; /** - * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; - * @return Whether the metadata field is set. + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; + * @return Whether the usage field is set. */ - public boolean hasMetadata() { + public boolean hasUsage() { return ((bitField0_ & 0x00000001) != 0); } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; - * @return The metadata. + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; + * @return The usage. */ - 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_; + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage getUsage() { + if (usageBuilder_ == null) { + return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.getDefaultInstance() : usage_; } else { - return metadataBuilder_.getMessage(); + return usageBuilder_.getMessage(); } } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; */ - public Builder setMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata value) { - if (metadataBuilder_ == null) { + public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage value) { + if (usageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - metadata_ = value; + usage_ = value; } else { - metadataBuilder_.setMessage(value); + usageBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; */ - public Builder setMetadata( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); + public Builder setUsage( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.Builder builderForValue) { + if (usageBuilder_ == null) { + usage_ = builderForValue.build(); } else { - metadataBuilder_.setMessage(builderForValue.build()); + usageBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; */ - public Builder mergeMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata value) { - if (metadataBuilder_ == null) { + public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage value) { + if (usageBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && - metadata_ != null && - metadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); + usage_ != null && + usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.getDefaultInstance()) { + getUsageBuilder().mergeFrom(value); } else { - metadata_ = value; + usage_ = value; } } else { - metadataBuilder_.mergeFrom(value); + usageBuilder_.mergeFrom(value); } - if (metadata_ != null) { + if (usage_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; */ - public Builder clearMetadata() { + public Builder clearUsage() { bitField0_ = (bitField0_ & ~0x00000001); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; } onChanged(); return this; } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1; + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder getMetadataBuilder() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.Builder getUsageBuilder() { 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; + return getUsageFieldBuilder().getBuilder(); } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; */ - 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(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.UsageOrBuilder getUsageOrBuilder() { + if (usageBuilder_ != null) { + return usageBuilder_.getMessageOrBuilder(); } else { - return usageMetadata_ == null ? - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_; + return usage_ == null ? + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.getDefaultInstance() : usage_; } } /** - * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2; + * optional .weaviate.v1.GenerativeFriendliAIMetadata.Usage usage = 1; */ 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(), + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.UsageOrBuilder> + getUsageFieldBuilder() { + if (usageBuilder_ == null) { + usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.UsageOrBuilder>( + getUsage(), getParentForChildren(), isClean()); - usageMetadata_ = null; + usage_ = null; } - return usageMetadataBuilder_; + return usageBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -30569,23 +36528,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata) + // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeFriendliAIMetadata) } - // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata) - private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeFriendliAIMetadata) + private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata(); + DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata(); } - public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstance() { + public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata 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 GenerativeGoogleMetadata parsePartialFrom( + public GenerativeFriendliAIMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -30604,17 +36563,17 @@ public GenerativeGoogleMetadata 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.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstanceForType() { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -30715,65 +36674,80 @@ public interface GenerativeMetadataOrBuilder extends 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; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; * @return Whether the ollama field is set. */ boolean hasOllama(); /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; * @return The ollama. */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama(); /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder(); /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; * @return Whether the openai field is set. */ boolean hasOpenai(); /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; * @return The openai. */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai(); /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder(); /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; * @return Whether the google field is set. */ boolean hasGoogle(); /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; * @return The google. */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle(); /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; */ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder(); + /** + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; + * @return Whether the databricks field is set. + */ + boolean hasDatabricks(); + /** + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; + * @return The databricks. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata getDatabricks(); + /** + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadataOrBuilder getDatabricksOrBuilder(); + + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + * @return Whether the friendliai field is set. + */ + boolean hasFriendliai(); + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + * @return The friendliai. + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata getFriendliai(); + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadataOrBuilder getFriendliaiOrBuilder(); + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.KindCase getKindCase(); } /** @@ -30823,10 +36797,11 @@ public enum KindCase COHERE(4), DUMMY(5), MISTRAL(6), - OCTOAI(7), - OLLAMA(8), - OPENAI(9), - GOOGLE(10), + OLLAMA(7), + OPENAI(8), + GOOGLE(9), + DATABRICKS(10), + FRIENDLIAI(11), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -30850,10 +36825,11 @@ public static KindCase forNumber(int value) { 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 7: return OLLAMA; + case 8: return OPENAI; + case 9: return GOOGLE; + case 10: return DATABRICKS; + case 11: return FRIENDLIAI; case 0: return KIND_NOT_SET; default: return null; } @@ -31055,130 +37031,161 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMis 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; + public static final int OLLAMA_FIELD_NUMBER = 7; /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; * @return Whether the ollama field is set. */ @java.lang.Override public boolean hasOllama() { - return kindCase_ == 8; + return kindCase_ == 7; } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; * @return The ollama. */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama() { - if (kindCase_ == 8) { + if (kindCase_ == 7) { 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; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder() { - if (kindCase_ == 8) { + if (kindCase_ == 7) { 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; + public static final int OPENAI_FIELD_NUMBER = 8; /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; * @return Whether the openai field is set. */ @java.lang.Override public boolean hasOpenai() { - return kindCase_ == 9; + return kindCase_ == 8; } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; * @return The openai. */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai() { - if (kindCase_ == 9) { + if (kindCase_ == 8) { 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; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder() { - if (kindCase_ == 9) { + if (kindCase_ == 8) { 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; + public static final int GOOGLE_FIELD_NUMBER = 9; /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; * @return Whether the google field is set. */ @java.lang.Override public boolean hasGoogle() { - return kindCase_ == 10; + return kindCase_ == 9; } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; * @return The google. */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle() { - if (kindCase_ == 10) { + if (kindCase_ == 9) { 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; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; */ @java.lang.Override public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder() { - if (kindCase_ == 10) { + if (kindCase_ == 9) { return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; } return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); } + public static final int DATABRICKS_FIELD_NUMBER = 10; + /** + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; + * @return Whether the databricks field is set. + */ + @java.lang.Override + public boolean hasDatabricks() { + return kindCase_ == 10; + } + /** + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; + * @return The databricks. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata getDatabricks() { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadataOrBuilder getDatabricksOrBuilder() { + if (kindCase_ == 10) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.getDefaultInstance(); + } + + public static final int FRIENDLIAI_FIELD_NUMBER = 11; + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + * @return Whether the friendliai field is set. + */ + @java.lang.Override + public boolean hasFriendliai() { + return kindCase_ == 11; + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + * @return The friendliai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata getFriendliai() { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance(); + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadataOrBuilder getFriendliaiOrBuilder() { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -31212,16 +37219,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) 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_); + output.writeMessage(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_); } if (kindCase_ == 8) { - output.writeMessage(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_); + output.writeMessage(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_); } if (kindCase_ == 9) { - output.writeMessage(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_); + output.writeMessage(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_); } if (kindCase_ == 10) { - output.writeMessage(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_); + output.writeMessage(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) kind_); + } + if (kindCase_ == 11) { + output.writeMessage(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) kind_); } getUnknownFields().writeTo(output); } @@ -31258,19 +37268,23 @@ public int getSerializedSize() { } if (kindCase_ == 7) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_); + .computeMessageSize(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_); } if (kindCase_ == 8) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_); + .computeMessageSize(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_); } if (kindCase_ == 9) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_); + .computeMessageSize(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_); } if (kindCase_ == 10) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_); + .computeMessageSize(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) kind_); + } + if (kindCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) kind_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -31314,21 +37328,25 @@ public boolean equals(final java.lang.Object obj) { .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: + case 8: if (!getOpenai() .equals(other.getOpenai())) return false; break; - case 10: + case 9: if (!getGoogle() .equals(other.getGoogle())) return false; break; + case 10: + if (!getDatabricks() + .equals(other.getDatabricks())) return false; + break; + case 11: + if (!getFriendliai() + .equals(other.getFriendliai())) return false; + break; case 0: default: } @@ -31369,21 +37387,25 @@ public int hashCode() { 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: + case 8: hash = (37 * hash) + OPENAI_FIELD_NUMBER; hash = (53 * hash) + getOpenai().hashCode(); break; - case 10: + case 9: hash = (37 * hash) + GOOGLE_FIELD_NUMBER; hash = (53 * hash) + getGoogle().hashCode(); break; + case 10: + hash = (37 * hash) + DATABRICKS_FIELD_NUMBER; + hash = (53 * hash) + getDatabricks().hashCode(); + break; + case 11: + hash = (37 * hash) + FRIENDLIAI_FIELD_NUMBER; + hash = (53 * hash) + getFriendliai().hashCode(); + break; case 0: default: } @@ -31536,9 +37558,6 @@ public Builder clear() { if (mistralBuilder_ != null) { mistralBuilder_.clear(); } - if (octoaiBuilder_ != null) { - octoaiBuilder_.clear(); - } if (ollamaBuilder_ != null) { ollamaBuilder_.clear(); } @@ -31548,6 +37567,12 @@ public Builder clear() { if (googleBuilder_ != null) { googleBuilder_.clear(); } + if (databricksBuilder_ != null) { + databricksBuilder_.clear(); + } + if (friendliaiBuilder_ != null) { + friendliaiBuilder_.clear(); + } kindCase_ = 0; kind_ = null; return this; @@ -31614,21 +37639,25 @@ private void buildPartialOneofs(io.weaviate.client.grpc.protocol.v1.WeaviateProt 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 && + if (kindCase_ == 8 && openaiBuilder_ != null) { result.kind_ = openaiBuilder_.build(); } - if (kindCase_ == 10 && + if (kindCase_ == 9 && googleBuilder_ != null) { result.kind_ = googleBuilder_.build(); } + if (kindCase_ == 10 && + databricksBuilder_ != null) { + result.kind_ = databricksBuilder_.build(); + } + if (kindCase_ == 11 && + friendliaiBuilder_ != null) { + result.kind_ = friendliaiBuilder_.build(); + } } @java.lang.Override @@ -31700,10 +37729,6 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenera mergeMistral(other.getMistral()); break; } - case OCTOAI: { - mergeOctoai(other.getOctoai()); - break; - } case OLLAMA: { mergeOllama(other.getOllama()); break; @@ -31716,6 +37741,14 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenera mergeGoogle(other.getGoogle()); break; } + case DATABRICKS: { + mergeDatabricks(other.getDatabricks()); + break; + } + case FRIENDLIAI: { + mergeFriendliai(other.getFriendliai()); + break; + } case KIND_NOT_SET: { break; } @@ -31790,32 +37823,39 @@ public Builder mergeFrom( } // case 50 case 58: { input.readMessage( - getOctoaiFieldBuilder().getBuilder(), + getOllamaFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 7; break; } // case 58 case 66: { input.readMessage( - getOllamaFieldBuilder().getBuilder(), + getOpenaiFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 8; break; } // case 66 case 74: { input.readMessage( - getOpenaiFieldBuilder().getBuilder(), + getGoogleFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 9; break; } // case 74 case 82: { input.readMessage( - getGoogleFieldBuilder().getBuilder(), + getDatabricksFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 10; break; } // case 82 + case 90: { + input.readMessage( + getFriendliaiFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 11; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -32701,71 +38741,71 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMis } 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_; + 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.GenerativeOctoAIMetadata octoai = 7; - * @return Whether the octoai field is set. + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; + * @return Whether the ollama field is set. */ @java.lang.Override - public boolean hasOctoai() { + public boolean hasOllama() { return kindCase_ == 7; } /** - * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; - * @return The octoai. + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; + * @return The ollama. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getOctoai() { - if (octoaiBuilder_ == null) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama() { + if (ollamaBuilder_ == null) { if (kindCase_ == 7) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); } else { if (kindCase_ == 7) { - return octoaiBuilder_.getMessage(); + return ollamaBuilder_.getMessage(); } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; */ - public Builder setOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata value) { - if (octoaiBuilder_ == null) { + 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 { - octoaiBuilder_.setMessage(value); + ollamaBuilder_.setMessage(value); } kindCase_ = 7; return this; } /** - * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; */ - public Builder setOctoai( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder builderForValue) { - if (octoaiBuilder_ == null) { + public Builder setOllama( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder builderForValue) { + if (ollamaBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - octoaiBuilder_.setMessage(builderForValue.build()); + ollamaBuilder_.setMessage(builderForValue.build()); } kindCase_ = 7; return this; } /** - * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; */ - public Builder mergeOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata value) { - if (octoaiBuilder_ == null) { + public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata value) { + if (ollamaBuilder_ == 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_) + 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; @@ -32773,19 +38813,19 @@ public Builder mergeOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene onChanged(); } else { if (kindCase_ == 7) { - octoaiBuilder_.mergeFrom(value); + ollamaBuilder_.mergeFrom(value); } else { - octoaiBuilder_.setMessage(value); + ollamaBuilder_.setMessage(value); } } kindCase_ = 7; return this; } /** - * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; */ - public Builder clearOctoai() { - if (octoaiBuilder_ == null) { + public Builder clearOllama() { + if (ollamaBuilder_ == null) { if (kindCase_ == 7) { kindCase_ = 0; kind_ = null; @@ -32796,118 +38836,118 @@ public Builder clearOctoai() { kindCase_ = 0; kind_ = null; } - octoaiBuilder_.clear(); + ollamaBuilder_.clear(); } return this; } /** - * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder getOctoaiBuilder() { - return getOctoaiFieldBuilder().getBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder getOllamaBuilder() { + return getOllamaFieldBuilder().getBuilder(); } /** - * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 7; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder getOctoaiOrBuilder() { - if ((kindCase_ == 7) && (octoaiBuilder_ != null)) { - return octoaiBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder() { + if ((kindCase_ == 7) && (ollamaBuilder_ != null)) { + return ollamaBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 7) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7; + * .weaviate.v1.GenerativeOllamaMetadata ollama = 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) { + 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_ == 7)) { - kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance(); + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.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_, + 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_ = 7; onChanged(); - return octoaiBuilder_; + return ollamaBuilder_; } 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_; + 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.GenerativeOllamaMetadata ollama = 8; - * @return Whether the ollama field is set. + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; + * @return Whether the openai field is set. */ @java.lang.Override - public boolean hasOllama() { + public boolean hasOpenai() { return kindCase_ == 8; } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; - * @return The ollama. + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; + * @return The openai. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama() { - if (ollamaBuilder_ == null) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai() { + if (openaiBuilder_ == null) { if (kindCase_ == 8) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); } else { if (kindCase_ == 8) { - return ollamaBuilder_.getMessage(); + return openaiBuilder_.getMessage(); } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; */ - public Builder setOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata value) { - if (ollamaBuilder_ == null) { + 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 { - ollamaBuilder_.setMessage(value); + openaiBuilder_.setMessage(value); } kindCase_ = 8; return this; } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; */ - public Builder setOllama( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder builderForValue) { - if (ollamaBuilder_ == null) { + public Builder setOpenai( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder builderForValue) { + if (openaiBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - ollamaBuilder_.setMessage(builderForValue.build()); + openaiBuilder_.setMessage(builderForValue.build()); } kindCase_ = 8; return this; } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; */ - public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata value) { - if (ollamaBuilder_ == null) { + public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata value) { + if (openaiBuilder_ == 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_) + 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; @@ -32915,19 +38955,19 @@ public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene onChanged(); } else { if (kindCase_ == 8) { - ollamaBuilder_.mergeFrom(value); + openaiBuilder_.mergeFrom(value); } else { - ollamaBuilder_.setMessage(value); + openaiBuilder_.setMessage(value); } } kindCase_ = 8; return this; } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; */ - public Builder clearOllama() { - if (ollamaBuilder_ == null) { + public Builder clearOpenai() { + if (openaiBuilder_ == null) { if (kindCase_ == 8) { kindCase_ = 0; kind_ = null; @@ -32938,118 +38978,118 @@ public Builder clearOllama() { kindCase_ = 0; kind_ = null; } - ollamaBuilder_.clear(); + openaiBuilder_.clear(); } return this; } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder getOllamaBuilder() { - return getOllamaFieldBuilder().getBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder getOpenaiBuilder() { + return getOpenaiFieldBuilder().getBuilder(); } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 8; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder() { - if ((kindCase_ == 8) && (ollamaBuilder_ != null)) { - return ollamaBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder() { + if ((kindCase_ == 8) && (openaiBuilder_ != null)) { + return openaiBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 8) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOllamaMetadata ollama = 8; + * .weaviate.v1.GenerativeOpenAIMetadata openai = 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) { + 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_ == 8)) { - kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance(); + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.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_, + 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_ = 8; onChanged(); - return ollamaBuilder_; + return openaiBuilder_; } 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_; + 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.GenerativeOpenAIMetadata openai = 9; - * @return Whether the openai field is set. + * .weaviate.v1.GenerativeGoogleMetadata google = 9; + * @return Whether the google field is set. */ @java.lang.Override - public boolean hasOpenai() { + public boolean hasGoogle() { return kindCase_ == 9; } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; - * @return The openai. + * .weaviate.v1.GenerativeGoogleMetadata google = 9; + * @return The google. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai() { - if (openaiBuilder_ == null) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle() { + if (googleBuilder_ == null) { if (kindCase_ == 9) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); } else { if (kindCase_ == 9) { - return openaiBuilder_.getMessage(); + return googleBuilder_.getMessage(); } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; */ - public Builder setOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata value) { - if (openaiBuilder_ == null) { + 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 { - openaiBuilder_.setMessage(value); + googleBuilder_.setMessage(value); } kindCase_ = 9; return this; } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; */ - public Builder setOpenai( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder builderForValue) { - if (openaiBuilder_ == null) { + public Builder setGoogle( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder builderForValue) { + if (googleBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - openaiBuilder_.setMessage(builderForValue.build()); + googleBuilder_.setMessage(builderForValue.build()); } kindCase_ = 9; return this; } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; */ - public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata value) { - if (openaiBuilder_ == null) { + public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata value) { + if (googleBuilder_ == 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_) + 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; @@ -33057,19 +39097,19 @@ public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene onChanged(); } else { if (kindCase_ == 9) { - openaiBuilder_.mergeFrom(value); + googleBuilder_.mergeFrom(value); } else { - openaiBuilder_.setMessage(value); + googleBuilder_.setMessage(value); } } kindCase_ = 9; return this; } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; */ - public Builder clearOpenai() { - if (openaiBuilder_ == null) { + public Builder clearGoogle() { + if (googleBuilder_ == null) { if (kindCase_ == 9) { kindCase_ = 0; kind_ = null; @@ -33080,118 +39120,118 @@ public Builder clearOpenai() { kindCase_ = 0; kind_ = null; } - openaiBuilder_.clear(); + googleBuilder_.clear(); } return this; } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder getOpenaiBuilder() { - return getOpenaiFieldBuilder().getBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder getGoogleBuilder() { + return getGoogleFieldBuilder().getBuilder(); } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeGoogleMetadata google = 9; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder() { - if ((kindCase_ == 9) && (openaiBuilder_ != null)) { - return openaiBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder() { + if ((kindCase_ == 9) && (googleBuilder_ != null)) { + return googleBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 9) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeOpenAIMetadata openai = 9; + * .weaviate.v1.GenerativeGoogleMetadata google = 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) { + 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_ == 9)) { - kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance(); + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.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_, + 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_ = 9; onChanged(); - return openaiBuilder_; + return googleBuilder_; } 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_; + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadataOrBuilder> databricksBuilder_; /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; - * @return Whether the google field is set. + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; + * @return Whether the databricks field is set. */ @java.lang.Override - public boolean hasGoogle() { + public boolean hasDatabricks() { return kindCase_ == 10; } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; - * @return The google. + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; + * @return The databricks. */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle() { - if (googleBuilder_ == null) { + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata getDatabricks() { + if (databricksBuilder_ == null) { if (kindCase_ == 10) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.getDefaultInstance(); } else { if (kindCase_ == 10) { - return googleBuilder_.getMessage(); + return databricksBuilder_.getMessage(); } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; */ - public Builder setGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata value) { - if (googleBuilder_ == null) { + public Builder setDatabricks(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata value) { + if (databricksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { - googleBuilder_.setMessage(value); + databricksBuilder_.setMessage(value); } kindCase_ = 10; return this; } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; */ - public Builder setGoogle( - io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder builderForValue) { - if (googleBuilder_ == null) { + public Builder setDatabricks( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Builder builderForValue) { + if (databricksBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - googleBuilder_.setMessage(builderForValue.build()); + databricksBuilder_.setMessage(builderForValue.build()); } kindCase_ = 10; return this; } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; */ - public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata value) { - if (googleBuilder_ == null) { + public Builder mergeDatabricks(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata value) { + if (databricksBuilder_ == 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_) + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; @@ -33199,19 +39239,19 @@ public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGene onChanged(); } else { if (kindCase_ == 10) { - googleBuilder_.mergeFrom(value); + databricksBuilder_.mergeFrom(value); } else { - googleBuilder_.setMessage(value); + databricksBuilder_.setMessage(value); } } kindCase_ = 10; return this; } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; */ - public Builder clearGoogle() { - if (googleBuilder_ == null) { + public Builder clearDatabricks() { + if (databricksBuilder_ == null) { if (kindCase_ == 10) { kindCase_ = 0; kind_ = null; @@ -33222,50 +39262,192 @@ public Builder clearGoogle() { kindCase_ = 0; kind_ = null; } - googleBuilder_.clear(); + databricksBuilder_.clear(); } return this; } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; */ - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder getGoogleBuilder() { - return getGoogleFieldBuilder().getBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Builder getDatabricksBuilder() { + return getDatabricksFieldBuilder().getBuilder(); } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 10; */ @java.lang.Override - public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder() { - if ((kindCase_ == 10) && (googleBuilder_ != null)) { - return googleBuilder_.getMessageOrBuilder(); + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadataOrBuilder getDatabricksOrBuilder() { + if ((kindCase_ == 10) && (databricksBuilder_ != null)) { + return databricksBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 10) { - return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_; + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) kind_; } - return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.getDefaultInstance(); } } /** - * .weaviate.v1.GenerativeGoogleMetadata google = 10; + * .weaviate.v1.GenerativeDatabricksMetadata databricks = 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) { + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadataOrBuilder> + getDatabricksFieldBuilder() { + if (databricksBuilder_ == null) { if (!(kindCase_ == 10)) { - kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance(); + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.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_, + databricksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDatabricksMetadata) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 10; onChanged(); - return googleBuilder_; + return databricksBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadataOrBuilder> friendliaiBuilder_; + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + * @return Whether the friendliai field is set. + */ + @java.lang.Override + public boolean hasFriendliai() { + return kindCase_ == 11; + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + * @return The friendliai. + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata getFriendliai() { + if (friendliaiBuilder_ == null) { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance(); + } else { + if (kindCase_ == 11) { + return friendliaiBuilder_.getMessage(); + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + public Builder setFriendliai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata value) { + if (friendliaiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + friendliaiBuilder_.setMessage(value); + } + kindCase_ = 11; + return this; + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + public Builder setFriendliai( + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Builder builderForValue) { + if (friendliaiBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + friendliaiBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 11; + return this; + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + public Builder mergeFriendliai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata value) { + if (friendliaiBuilder_ == null) { + if (kindCase_ == 11 && + kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance()) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 11) { + friendliaiBuilder_.mergeFrom(value); + } else { + friendliaiBuilder_.setMessage(value); + } + } + kindCase_ = 11; + return this; + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + public Builder clearFriendliai() { + if (friendliaiBuilder_ == null) { + if (kindCase_ == 11) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 11) { + kindCase_ = 0; + kind_ = null; + } + friendliaiBuilder_.clear(); + } + return this; + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Builder getFriendliaiBuilder() { + return getFriendliaiFieldBuilder().getBuilder(); + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + @java.lang.Override + public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadataOrBuilder getFriendliaiOrBuilder() { + if ((kindCase_ == 11) && (friendliaiBuilder_ != null)) { + return friendliaiBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 11) { + return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) kind_; + } + return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance(); + } + } + /** + * .weaviate.v1.GenerativeFriendliAIMetadata friendliai = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadataOrBuilder> + getFriendliaiFieldBuilder() { + if (friendliaiBuilder_ == null) { + if (!(kindCase_ == 11)) { + kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.getDefaultInstance(); + } + friendliaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadataOrBuilder>( + (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeFriendliAIMetadata) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 11; + onChanged(); + return friendliaiBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -35704,11 +41886,6 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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 @@ -35724,6 +41901,16 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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_GenerativeDatabricks_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeDatabricks_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeFriendliAI_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeFriendliAI_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor; private static final @@ -35779,16 +41966,6 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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 @@ -35829,6 +42006,26 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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_GenerativeDatabricksMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeDatabricksMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_weaviate_v1_GenerativeMetadata_descriptor; private static final @@ -35859,7 +42056,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb static { java.lang.String[] descriptorData = { "\n\023v1/generative.proto\022\013weaviate.v1\032\rv1/b" + - "ase.proto\"\233\003\n\020GenerativeSearch\022\"\n\026single" + + "ase.proto\"\316\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" + @@ -35867,173 +42064,208 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb " \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" + + "rativeProvider\032\211\001\n\007Grouped\022\014\n\004task\030\001 \001(\t" + + "\022/\n\nproperties\030\002 \001(\0132\026.weaviate.v1.TextA" + + "rrayH\000\210\001\001\0220\n\007queries\030\003 \003(\0132\037.weaviate.v1" + + ".GenerativeProviderB\r\n\013_properties\"\344\004\n\022G" + + "enerativeProvider\022\027\n\017return_metadata\030\001 \001" + + "(\010\0225\n\tanthropic\030\002 \001(\0132 .weaviate.v1.Gene" + + "rativeAnthropicH\000\0223\n\010anyscale\030\003 \001(\0132\037.we" + + "aviate.v1.GenerativeAnyscaleH\000\022)\n\003aws\030\004 " + + "\001(\0132\032.weaviate.v1.GenerativeAWSH\000\022/\n\006coh" + + "ere\030\005 \001(\0132\035.weaviate.v1.GenerativeCohere" + + "H\000\022-\n\005dummy\030\006 \001(\0132\034.weaviate.v1.Generati" + + "veDummyH\000\0221\n\007mistral\030\007 \001(\0132\036.weaviate.v1" + + ".GenerativeMistralH\000\022/\n\006ollama\030\010 \001(\0132\035.w" + + "eaviate.v1.GenerativeOllamaH\000\022/\n\006openai\030" + + "\t \001(\0132\035.weaviate.v1.GenerativeOpenAIH\000\022/" + + "\n\006google\030\n \001(\0132\035.weaviate.v1.GenerativeG" + + "oogleH\000\0227\n\ndatabricks\030\013 \001(\0132!.weaviate.v" + + "1.GenerativeDatabricksH\000\0227\n\nfriendliai\030\014" + + " \001(\0132!.weaviate.v1.GenerativeFriendliAIH" + + "\000B\006\n\004kind\"\255\002\n\023GenerativeAnthropic\022\025\n\010bas" + + "e_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_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.weavia" + + "te.v1.TextArrayH\006\210\001\001B\013\n\t_base_urlB\r\n\013_ma" + + "x_tokensB\010\n\006_modelB\016\n\014_temperatureB\010\n\006_t" + + "op_kB\010\n\006_top_pB\021\n\017_stop_sequences\"\200\001\n\022Ge" + + "nerativeAnyscale\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(\001" + + "H\002\210\001\001B\013\n\t_base_urlB\010\n\006_modelB\016\n\014_tempera" + + "ture\"\231\002\n\rGenerativeAWS\022\022\n\005model\030\003 \001(\tH\000\210" + + "\001\001\022\030\n\013temperature\030\010 \001(\001H\001\210\001\001\022\024\n\007service\030" + + "\t \001(\tH\002\210\001\001\022\023\n\006region\030\n \001(\tH\003\210\001\001\022\025\n\010endpo" + + "int\030\013 \001(\tH\004\210\001\001\022\031\n\014target_model\030\014 \001(\tH\005\210\001" + + "\001\022\033\n\016target_variant\030\r \001(\tH\006\210\001\001B\010\n\006_model" + + "B\016\n\014_temperatureB\n\n\010_serviceB\t\n\007_regionB" + + "\013\n\t_endpointB\017\n\r_target_modelB\021\n\017_target" + + "_variant\"\204\003\n\020GenerativeCohere\022\025\n\010base_ur" + + "l\030\001 \001(\tH\000\210\001\001\022\036\n\021frequency_penalty\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.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" + "H\007\210\001\001\022\030\n\013temperature\030\t \001(\001H\010\210\001\001B\013\n\t_base" + + "_urlB\024\n\022_frequency_penaltyB\r\n\013_max_token" + + "sB\010\n\006_modelB\004\n\002_kB\004\n\002_pB\023\n\021_presence_pen" + + "altyB\021\n\017_stop_sequencesB\016\n\014_temperature\"" + + "\021\n\017GenerativeDummy\"\305\001\n\021GenerativeMistral" + + "\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\013temperat" + + "ure\030\004 \001(\001H\003\210\001\001\022\022\n\005top_p\030\005 \001(\001H\004\210\001\001B\013\n\t_b" + + "ase_urlB\r\n\013_max_tokensB\010\n\006_modelB\016\n\014_tem" + + "peratureB\010\n\006_top_p\"\206\001\n\020GenerativeOllama\022" + + "\031\n\014api_endpoint\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\017\n\r_api" + + "_endpointB\010\n\006_modelB\016\n\014_temperature\"\223\004\n\020" + + "GenerativeOpenAI\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\r\n\005mod" + + "el\030\003 \001(\t\022\016\n\001n\030\004 \001(\003H\002\210\001\001\022\035\n\020presence_pen" + + "alty\030\005 \001(\001H\003\210\001\001\022)\n\004stop\030\006 \001(\0132\026.weaviate" + + ".v1.TextArrayH\004\210\001\001\022\030\n\013temperature\030\007 \001(\001H" + + "\005\210\001\001\022\022\n\005top_p\030\010 \001(\001H\006\210\001\001\022\025\n\010base_url\030\t \001" + + "(\tH\007\210\001\001\022\030\n\013api_version\030\n \001(\tH\010\210\001\001\022\032\n\rres" + + "ource_name\030\013 \001(\tH\t\210\001\001\022\032\n\rdeployment_id\030\014" + + " \001(\tH\n\210\001\001\022\025\n\010is_azure\030\r \001(\010H\013\210\001\001B\024\n\022_fre" + + "quency_penaltyB\r\n\013_max_tokensB\004\n\002_nB\023\n\021_" + + "presence_penaltyB\007\n\005_stopB\016\n\014_temperatur" + + "eB\010\n\006_top_pB\013\n\t_base_urlB\016\n\014_api_version" + + "B\020\n\016_resource_nameB\020\n\016_deployment_idB\013\n\t" + + "_is_azure\"\216\004\n\020GenerativeGoogle\022\036\n\021freque" + + "ncy_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\005model\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.TextArrayH\007\210\001\001\022\031\n\014api_endpoint\030\t \001(\tH" + + "\010\210\001\001\022\027\n\nproject_id\030\n \001(\tH\t\210\001\001\022\030\n\013endpoin" + + "t_id\030\013 \001(\tH\n\210\001\001\022\023\n\006region\030\014 \001(\tH\013\210\001\001B\024\n\022" + + "_frequency_penaltyB\r\n\013_max_tokensB\010\n\006_mo" + + "delB\023\n\021_presence_penaltyB\016\n\014_temperature" + + "B\010\n\006_top_kB\010\n\006_top_pB\021\n\017_stop_sequencesB" + + "\017\n\r_api_endpointB\r\n\013_project_idB\016\n\014_endp" + + "oint_idB\t\n\007_region\"\320\003\n\024GenerativeDatabri" + + "cks\022\025\n\010endpoint\030\001 \001(\tH\000\210\001\001\022\022\n\005model\030\002 \001(" + + "\tH\001\210\001\001\022\036\n\021frequency_penalty\030\003 \001(\001H\002\210\001\001\022\026" + + "\n\tlog_probs\030\004 \001(\010H\003\210\001\001\022\032\n\rtop_log_probs\030" + + "\005 \001(\003H\004\210\001\001\022\027\n\nmax_tokens\030\006 \001(\003H\005\210\001\001\022\016\n\001n" + + "\030\007 \001(\003H\006\210\001\001\022\035\n\020presence_penalty\030\010 \001(\001H\007\210" + + "\001\001\022)\n\004stop\030\t \001(\0132\026.weaviate.v1.TextArray" + + "H\010\210\001\001\022\030\n\013temperature\030\n \001(\001H\t\210\001\001\022\022\n\005top_p" + + "\030\013 \001(\001H\n\210\001\001B\013\n\t_endpointB\010\n\006_modelB\024\n\022_f" + + "requency_penaltyB\014\n\n_log_probsB\020\n\016_top_l" + + "og_probsB\r\n\013_max_tokensB\004\n\002_nB\023\n\021_presen" + + "ce_penaltyB\007\n\005_stopB\016\n\014_temperatureB\010\n\006_" + + "top_p\"\336\001\n\024GenerativeFriendliAI\022\025\n\010base_u" + + "rl\030\001 \001(\tH\000\210\001\001\022\022\n\005model\030\002 \001(\tH\001\210\001\001\022\027\n\nmax" + + "_tokens\030\003 \001(\003H\002\210\001\001\022\030\n\013temperature\030\004 \001(\001H" + + "\003\210\001\001\022\016\n\001n\030\005 \001(\003H\004\210\001\001\022\022\n\005top_p\030\006 \001(\001H\005\210\001\001" + + "B\013\n\t_base_urlB\010\n\006_modelB\r\n\013_max_tokensB\016" + + "\n\014_temperatureB\004\n\002_nB\010\n\006_top_p\"\222\001\n\033Gener" + + "ativeAnthropicMetadata\022=\n\005usage\030\001 \001(\0132.." + + "weaviate.v1.GenerativeAnthropicMetadata." + + "Usage\0324\n\005Usage\022\024\n\014input_tokens\030\001 \001(\003\022\025\n\r" + + "output_tokens\030\002 \001(\003\"\034\n\032GenerativeAnyscal" + + "eMetadata\"\027\n\025GenerativeAWSMetadata\"\234\006\n\030G" + + "enerativeCohereMetadata\022J\n\013api_version\030\001" + + " \001(\01320.weaviate.v1.GenerativeCohereMetad" + + "ata.ApiVersionH\000\210\001\001\022L\n\014billed_units\030\002 \001(" + + "\01321.weaviate.v1.GenerativeCohereMetadata" + + ".BilledUnitsH\001\210\001\001\022A\n\006tokens\030\003 \001(\0132,.weav" + + "iate.v1.GenerativeCohereMetadata.TokensH" + + "\002\210\001\001\022-\n\010warnings\030\004 \001(\0132\026.weaviate.v1.Tex" + + "tArrayH\003\210\001\001\032\216\001\n\nApiVersion\022\024\n\007version\030\001 " + + "\001(\tH\000\210\001\001\022\032\n\ris_deprecated\030\002 \001(\010H\001\210\001\001\022\034\n\017" + + "is_experimental\030\003 \001(\010H\002\210\001\001B\n\n\010_versionB\020" + + "\n\016_is_deprecatedB\022\n\020_is_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(\001H\001\210\001\001\022\031\n\014search_un" + + "its\030\003 \001(\001H\002\210\001\001\022\034\n\017classifications\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_classifications\032b\n\006" + + "Tokens\022\031\n\014input_tokens\030\001 \001(\001H\000\210\001\001\022\032\n\rout" + + "put_tokens\030\002 \001(\001H\001\210\001\001B\017\n\r_input_tokensB\020" + + "\n\016_output_tokensB\016\n\014_api_versionB\017\n\r_bil" + + "led_unitsB\t\n\007_tokensB\013\n\t_warnings\"\031\n\027Gen" + + "erativeDummyMetadata\"\201\002\n\031GenerativeMistr" + + "alMetadata\022@\n\005usage\030\001 \001(\0132,.weaviate.v1." + + "GenerativeMistralMetadata.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\021co" + + "mpletion_tokens\030\002 \001(\003H\001\210\001\001\022\031\n\014total_toke" + + "ns\030\003 \001(\003H\002\210\001\001B\020\n\016_prompt_tokensB\024\n\022_comp" + + "letion_tokensB\017\n\r_total_tokensB\010\n\006_usage" + + "\"\032\n\030GenerativeOllamaMetadata\"\377\001\n\030Generat" + + "iveOpenAIMetadata\022?\n\005usage\030\001 \001(\0132+.weavi" + + "ate.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\021completion_tokens\030\002 \001(\003H\001\210\001\001\022\031\n\014tota" + + "l_tokens\030\003 \001(\003H\002\210\001\001B\020\n\016_prompt_tokensB\024\n" + + "\022_completion_tokensB\017\n\r_total_tokensB\010\n\006" + + "_usage\"\350\006\n\030GenerativeGoogleMetadata\022E\n\010m" + + "etadata\030\001 \001(\0132..weaviate.v1.GenerativeGo" + + "ogleMetadata.MetadataH\000\210\001\001\022P\n\016usage_meta" + + "data\030\002 \001(\01323.weaviate.v1.GenerativeGoogl" + + "eMetadata.UsageMetadataH\001\210\001\001\032~\n\nTokenCou" + + "nt\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_" + + "billable_charactersB\017\n\r_total_tokens\032\341\001\n" + + "\rTokenMetadata\022P\n\021input_token_count\030\001 \001(" + + "\01320.weaviate.v1.GenerativeGoogleMetadata" + + ".TokenCountH\000\210\001\001\022Q\n\022output_token_count\030\002" + + " \001(\01320.weaviate.v1.GenerativeGoogleMetad" + + "ata.TokenCountH\001\210\001\001B\024\n\022_input_token_coun" + + "tB\025\n\023_output_token_count\032o\n\010Metadata\022P\n\016" + + "token_metadata\030\001 \001(\01323.weaviate.v1.Gener" + + "ativeGoogleMetadata.TokenMetadataH\000\210\001\001B\021" + + "\n\017_token_metadata\032\275\001\n\rUsageMetadata\022\037\n\022p" + + "rompt_token_count\030\001 \001(\003H\000\210\001\001\022#\n\026candidat" + + "es_token_count\030\002 \001(\003H\001\210\001\001\022\036\n\021total_token" + + "_count\030\003 \001(\003H\002\210\001\001B\025\n\023_prompt_token_count" + + "B\031\n\027_candidates_token_countB\024\n\022_total_to" + + "ken_countB\013\n\t_metadataB\021\n\017_usage_metadat" + + "a\"\207\002\n\034GenerativeDatabricksMetadata\022C\n\005us" + + "age\030\001 \001(\0132/.weaviate.v1.GenerativeDatabr" + + "icksMetadata.UsageH\000\210\001\001\032\227\001\n\005Usage\022\032\n\rpro" + + "mpt_tokens\030\001 \001(\003H\000\210\001\001\022\036\n\021completion_toke" + + "ns\030\002 \001(\003H\001\210\001\001\022\031\n\014total_tokens\030\003 \001(\003H\002\210\001\001" + + "B\020\n\016_prompt_tokensB\024\n\022_completion_tokens" + + "B\017\n\r_total_tokensB\010\n\006_usage\"\207\002\n\034Generati" + + "veFriendliAIMetadata\022C\n\005usage\030\001 \001(\0132/.we" + + "aviate.v1.GenerativeFriendliAIMetadata.U" + + "sageH\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\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_prompt_to" + + "kensB\024\n\022_completion_tokensB\017\n\r_total_tok" + + "ensB\010\n\006_usage\"\243\005\n\022GenerativeMetadata\022=\n\t" + + "anthropic\030\001 \001(\0132(.weaviate.v1.Generative" + + "AnthropicMetadataH\000\022;\n\010anyscale\030\002 \001(\0132\'." + + "weaviate.v1.GenerativeAnyscaleMetadataH\000" + + "\0221\n\003aws\030\003 \001(\0132\".weaviate.v1.GenerativeAW" + + "SMetadataH\000\0227\n\006cohere\030\004 \001(\0132%.weaviate.v" + + "1.GenerativeCohereMetadataH\000\0225\n\005dummy\030\005 " + + "\001(\0132$.weaviate.v1.GenerativeDummyMetadat" + + "aH\000\0229\n\007mistral\030\006 \001(\0132&.weaviate.v1.Gener" + + "ativeMistralMetadataH\000\0227\n\006ollama\030\007 \001(\0132%" + + ".weaviate.v1.GenerativeOllamaMetadataH\000\022" + + "7\n\006openai\030\010 \001(\0132%.weaviate.v1.Generative" + + "OpenAIMetadataH\000\0227\n\006google\030\t \001(\0132%.weavi" + + "ate.v1.GenerativeGoogleMetadataH\000\022?\n\ndat" + + "abricks\030\n \001(\0132).weaviate.v1.GenerativeDa" + + "tabricksMetadataH\000\022?\n\nfriendliai\030\013 \001(\0132)" + + ".weaviate.v1.GenerativeFriendliAIMetadat" + + "aH\000B\006\n\004kind\"\242\001\n\017GenerativeReply\022\016\n\006resul" + + "t\030\001 \001(\t\0220\n\005debug\030\002 \001(\0132\034.weaviate.v1.Gen" + + "erativeDebugH\000\210\001\001\0226\n\010metadata\030\003 \001(\0132\037.we" + + "aviate.v1.GenerativeMetadataH\001\210\001\001B\010\n\006_de" + + "bugB\013\n\t_metadata\"@\n\020GenerativeResult\022,\n\006" + + "values\030\001 \003(\0132\034.weaviate.v1.GenerativeRep" + + "ly\";\n\017GenerativeDebug\022\030\n\013full_prompt\030\001 \001" + + "(\tH\000\210\001\001B\016\n\014_full_promptBt\n#io.weaviate.c" + + "lient.grpc.protocol.v1B\027WeaviateProtoGen" + + "erativeZ4github.com/weaviate/weaviate/gr" + + "pc/generated;protocolb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -36057,13 +42289,13 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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", }); + new java.lang.String[] { "Task", "Properties", "Queries", "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", }); + new java.lang.String[] { "ReturnMetadata", "Anthropic", "Anyscale", "Aws", "Cohere", "Dummy", "Mistral", "Ollama", "Openai", "Google", "Databricks", "Friendliai", "Kind", }); internal_static_weaviate_v1_GenerativeAnthropic_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable = new @@ -36081,7 +42313,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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", }); + new java.lang.String[] { "Model", "Temperature", "Service", "Region", "Endpoint", "TargetModel", "TargetVariant", "Model", "Temperature", "Service", "Region", "Endpoint", "TargetModel", "TargetVariant", }); internal_static_weaviate_v1_GenerativeCohere_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable = new @@ -36100,32 +42332,38 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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); + getDescriptor().getMessageTypes().get(8); 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); + getDescriptor().getMessageTypes().get(9); 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", }); + new java.lang.String[] { "FrequencyPenalty", "MaxTokens", "Model", "N", "PresencePenalty", "Stop", "Temperature", "TopP", "BaseUrl", "ApiVersion", "ResourceName", "DeploymentId", "IsAzure", "FrequencyPenalty", "MaxTokens", "N", "PresencePenalty", "Stop", "Temperature", "TopP", "BaseUrl", "ApiVersion", "ResourceName", "DeploymentId", "IsAzure", }); internal_static_weaviate_v1_GenerativeGoogle_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(10); 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 = + new java.lang.String[] { "FrequencyPenalty", "MaxTokens", "Model", "PresencePenalty", "Temperature", "TopK", "TopP", "StopSequences", "ApiEndpoint", "ProjectId", "EndpointId", "Region", "FrequencyPenalty", "MaxTokens", "Model", "PresencePenalty", "Temperature", "TopK", "TopP", "StopSequences", "ApiEndpoint", "ProjectId", "EndpointId", "Region", }); + internal_static_weaviate_v1_GenerativeDatabricks_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_weaviate_v1_GenerativeDatabricks_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeDatabricks_descriptor, + new java.lang.String[] { "Endpoint", "Model", "FrequencyPenalty", "LogProbs", "TopLogProbs", "MaxTokens", "N", "PresencePenalty", "Stop", "Temperature", "TopP", "Endpoint", "Model", "FrequencyPenalty", "LogProbs", "TopLogProbs", "MaxTokens", "N", "PresencePenalty", "Stop", "Temperature", "TopP", }); + internal_static_weaviate_v1_GenerativeFriendliAI_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_weaviate_v1_GenerativeFriendliAI_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeFriendliAI_descriptor, + new java.lang.String[] { "BaseUrl", "Model", "MaxTokens", "Temperature", "N", "TopP", "BaseUrl", "Model", "MaxTokens", "Temperature", "N", "TopP", }); + internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor, @@ -36137,19 +42375,19 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor, new java.lang.String[] { "InputTokens", "OutputTokens", }); internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); 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); + getDescriptor().getMessageTypes().get(15); 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); + getDescriptor().getMessageTypes().get(16); internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor, @@ -36173,13 +42411,13 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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); + getDescriptor().getMessageTypes().get(17); 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); + getDescriptor().getMessageTypes().get(18); internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor, @@ -36190,18 +42428,6 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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 @@ -36250,26 +42476,50 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDeb 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 = + internal_static_weaviate_v1_GenerativeDatabricksMetadata_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_weaviate_v1_GenerativeDatabricksMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeDatabricksMetadata_descriptor, + new java.lang.String[] { "Usage", "Usage", }); + internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_descriptor = + internal_static_weaviate_v1_GenerativeDatabricksMetadata_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeDatabricksMetadata_Usage_descriptor, + new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", "PromptTokens", "CompletionTokens", "TotalTokens", }); + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_descriptor, + new java.lang.String[] { "Usage", "Usage", }); + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_descriptor = + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_descriptor.getNestedTypes().get(0); + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_weaviate_v1_GenerativeFriendliAIMetadata_Usage_descriptor, + new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", "PromptTokens", "CompletionTokens", "TotalTokens", }); + internal_static_weaviate_v1_GenerativeMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); 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", }); + new java.lang.String[] { "Anthropic", "Anyscale", "Aws", "Cohere", "Dummy", "Mistral", "Ollama", "Openai", "Google", "Databricks", "Friendliai", "Kind", }); internal_static_weaviate_v1_GenerativeReply_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); 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); + getDescriptor().getMessageTypes().get(26); 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); + getDescriptor().getMessageTypes().get(27); internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_weaviate_v1_GenerativeDebug_descriptor, diff --git a/src/main/proto/v1/generative.proto b/src/main/proto/v1/generative.proto index 758a38a0..c28536ed 100644 --- a/src/main/proto/v1/generative.proto +++ b/src/main/proto/v1/generative.proto @@ -19,6 +19,8 @@ message GenerativeSearch { message Grouped { string task = 1; optional TextArray properties = 2; + // only allow one at the beginning, but multiple in the future + repeated GenerativeProvider queries = 3; } string single_response_prompt = 1 [deprecated = true]; @@ -39,10 +41,11 @@ message GenerativeProvider { GenerativeCohere cohere = 5; GenerativeDummy dummy = 6; GenerativeMistral mistral = 7; - GenerativeOctoAI octoai = 8; - GenerativeOllama ollama = 9; - GenerativeOpenAI openai = 10; - GenerativeGoogle google = 11; + GenerativeOllama ollama = 8; + GenerativeOpenAI openai = 9; + GenerativeGoogle google = 10; + GenerativeDatabricks databricks = 11; + GenerativeFriendliAI friendliai = 12; } } @@ -65,6 +68,11 @@ message GenerativeAnyscale{ message GenerativeAWS{ optional string model = 3; optional double temperature = 8; + optional string service = 9; + optional string region = 10; + optional string endpoint = 11; + optional string target_model = 12; + optional string target_variant = 13; } message GenerativeCohere{ @@ -90,15 +98,6 @@ message GenerativeMistral{ 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; @@ -107,15 +106,18 @@ message GenerativeOllama{ 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; + optional int64 max_tokens = 2; + string model = 3; + optional int64 n = 4; + optional double presence_penalty = 5; + optional TextArray stop = 6; + optional double temperature = 7; + optional double top_p = 8; + optional string base_url = 9; + optional string api_version = 10; + optional string resource_name = 11; + optional string deployment_id = 12; + optional bool is_azure = 13; } message GenerativeGoogle{ @@ -127,6 +129,33 @@ message GenerativeGoogle{ optional int64 top_k = 6; optional double top_p = 7; optional TextArray stop_sequences = 8; + optional string api_endpoint = 9; + optional string project_id = 10; + optional string endpoint_id = 11; + optional string region = 12; +} + +message GenerativeDatabricks{ + optional string endpoint = 1; + optional string model = 2; + optional double frequency_penalty = 3; + optional bool log_probs = 4; + optional int64 top_log_probs = 5; + optional int64 max_tokens = 6; + optional int64 n = 7; + optional double presence_penalty = 8; + optional TextArray stop = 9; + optional double temperature = 10; + optional double top_p = 11; +} + +message GenerativeFriendliAI{ + optional string base_url = 1; + optional string model = 2; + optional int64 max_tokens = 3; + optional double temperature = 4; + optional int64 n = 5; + optional double top_p = 6; } message GenerativeAnthropicMetadata { @@ -177,15 +206,6 @@ message GenerativeMistralMetadata { 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 { } @@ -219,6 +239,24 @@ message GenerativeGoogleMetadata { optional UsageMetadata usage_metadata = 2; } +message GenerativeDatabricksMetadata { + message Usage { + optional int64 prompt_tokens = 1; + optional int64 completion_tokens = 2; + optional int64 total_tokens = 3; + } + optional Usage usage = 1; +} + +message GenerativeFriendliAIMetadata { + message Usage { + optional int64 prompt_tokens = 1; + optional int64 completion_tokens = 2; + optional int64 total_tokens = 3; + } + optional Usage usage = 1; +} + message GenerativeMetadata { oneof kind { GenerativeAnthropicMetadata anthropic = 1; @@ -227,10 +265,11 @@ message GenerativeMetadata { GenerativeCohereMetadata cohere = 4; GenerativeDummyMetadata dummy = 5; GenerativeMistralMetadata mistral = 6; - GenerativeOctoAIMetadata octoai = 7; - GenerativeOllamaMetadata ollama = 8; - GenerativeOpenAIMetadata openai = 9; - GenerativeGoogleMetadata google = 10; + GenerativeOllamaMetadata ollama = 7; + GenerativeOpenAIMetadata openai = 8; + GenerativeGoogleMetadata google = 9; + GenerativeDatabricksMetadata databricks = 10; + GenerativeFriendliAIMetadata friendliai = 11; } }