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 extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider> 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 extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder>
+ getQueriesOrBuilderList() {
+ if (queriesBuilder_ != null) {
+ return queriesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(queries_);
+ }
+ }
+ /**
+ *
+ * only allow one at the beginning, but multiple in the future
+ *
+ *
+ * repeated .weaviate.v1.GenerativeProvider queries = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder addQueriesBuilder() {
+ return getQueriesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.getDefaultInstance());
+ }
+ /**
+ *
+ * only allow one at the beginning, but multiple in the future
+ *
+ *
+ * repeated .weaviate.v1.GenerativeProvider queries = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder addQueriesBuilder(
+ int index) {
+ return getQueriesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.getDefaultInstance());
+ }
+ /**
+ *
+ * only allow one at the beginning, but multiple in the future
+ *
+ *
+ * repeated .weaviate.v1.GenerativeProvider queries = 3;
+ */
+ public java.util.List
+ getQueriesBuilderList() {
+ return getQueriesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder>
+ getQueriesFieldBuilder() {
+ if (queriesBuilder_ == null) {
+ queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder>(
+ queries_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ queries_ = null;
+ }
+ return queriesBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeSearch.Single)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeSearch.Single)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Single parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GroupedOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeSearch.Grouped)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string task = 1;
+ * @return The task.
+ */
+ java.lang.String getTask();
+ /**
+ * string task = 1;
+ * @return The bytes for task.
+ */
+ com.google.protobuf.ByteString
+ getTaskBytes();
+
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ * @return Whether the properties field is set.
+ */
+ boolean hasProperties();
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ * @return The properties.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getProperties();
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getPropertiesOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeSearch.Grouped}
+ */
+ public static final class Grouped extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeSearch.Grouped)
+ GroupedOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Grouped.newBuilder() to construct.
+ private Grouped(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Grouped() {
+ task_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Grouped();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TASK_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object task_ = "";
+ /**
+ * string task = 1;
+ * @return The task.
+ */
+ @java.lang.Override
+ public java.lang.String getTask() {
+ java.lang.Object ref = task_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ task_ = s;
+ return s;
+ }
+ }
+ /**
+ * string task = 1;
+ * @return The bytes for task.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTaskBytes() {
+ java.lang.Object ref = task_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ task_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROPERTIES_FIELD_NUMBER = 2;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray properties_;
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ * @return Whether the properties field is set.
+ */
+ @java.lang.Override
+ public boolean hasProperties() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ * @return The properties.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getProperties() {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getPropertiesOrBuilder() {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(task_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, task_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getProperties());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(task_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, task_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getProperties());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped) obj;
+
+ if (!getTask()
+ .equals(other.getTask())) return false;
+ if (hasProperties() != other.hasProperties()) return false;
+ if (hasProperties()) {
+ if (!getProperties()
+ .equals(other.getProperties())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TASK_FIELD_NUMBER;
+ hash = (53 * hash) + getTask().hashCode();
+ if (hasProperties()) {
+ hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getProperties().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeSearch.Grouped}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeSearch.Grouped)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getPropertiesFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ task_ = "";
+ properties_ = null;
+ if (propertiesBuilder_ != null) {
+ propertiesBuilder_.dispose();
+ propertiesBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.task_ = task_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.properties_ = propertiesBuilder_ == null
+ ? properties_
+ : propertiesBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance()) return this;
+ if (!other.getTask().isEmpty()) {
+ task_ = other.task_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasProperties()) {
+ mergeProperties(other.getProperties());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ task_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getPropertiesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object task_ = "";
+ /**
+ * string task = 1;
+ * @return The task.
+ */
+ public java.lang.String getTask() {
+ java.lang.Object ref = task_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ task_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string task = 1;
+ * @return The bytes for task.
+ */
+ public com.google.protobuf.ByteString
+ getTaskBytes() {
+ java.lang.Object ref = task_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ task_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string task = 1;
+ * @param value The task to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTask(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ task_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string task = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearTask() {
+ task_ = getDefaultInstance().getTask();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string task = 1;
+ * @param value The bytes for task to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTaskBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ task_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray properties_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> propertiesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ * @return Whether the properties field is set.
+ */
+ public boolean hasProperties() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ * @return The properties.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getProperties() {
+ if (propertiesBuilder_ == null) {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_;
+ } else {
+ return propertiesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ public Builder setProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (propertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ properties_ = value;
+ } else {
+ propertiesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ public Builder setProperties(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (propertiesBuilder_ == null) {
+ properties_ = builderForValue.build();
+ } else {
+ propertiesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ public Builder mergeProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (propertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ properties_ != null &&
+ properties_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getPropertiesBuilder().mergeFrom(value);
+ } else {
+ properties_ = value;
+ }
+ } else {
+ propertiesBuilder_.mergeFrom(value);
+ }
+ if (properties_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ public Builder clearProperties() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ properties_ = null;
+ if (propertiesBuilder_ != null) {
+ propertiesBuilder_.dispose();
+ propertiesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getPropertiesBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getPropertiesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getPropertiesOrBuilder() {
+ if (propertiesBuilder_ != null) {
+ return propertiesBuilder_.getMessageOrBuilder();
+ } else {
+ return properties_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : properties_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray properties = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>
+ getPropertiesFieldBuilder() {
+ if (propertiesBuilder_ == null) {
+ propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>(
+ getProperties(),
+ getParentForChildren(),
+ isClean());
+ properties_ = null;
+ }
+ return propertiesBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeSearch.Grouped)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeSearch.Grouped)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Grouped parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int SINGLE_RESPONSE_PROMPT_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object singleResponsePrompt_ = "";
+ /**
+ * string single_response_prompt = 1 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated.
+ * See v1/generative.proto;l=23
+ * @return The singleResponsePrompt.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated public java.lang.String getSingleResponsePrompt() {
+ java.lang.Object ref = singleResponsePrompt_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ singleResponsePrompt_ = s;
+ return s;
+ }
+ }
+ /**
+ * string single_response_prompt = 1 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated.
+ * See v1/generative.proto;l=23
+ * @return The bytes for singleResponsePrompt.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated public com.google.protobuf.ByteString
+ getSingleResponsePromptBytes() {
+ java.lang.Object ref = singleResponsePrompt_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ singleResponsePrompt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GROUPED_RESPONSE_TASK_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object groupedResponseTask_ = "";
+ /**
+ * string grouped_response_task = 2 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated.
+ * See v1/generative.proto;l=24
+ * @return The groupedResponseTask.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated public java.lang.String getGroupedResponseTask() {
+ java.lang.Object ref = groupedResponseTask_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ groupedResponseTask_ = s;
+ return s;
+ }
+ }
+ /**
+ * string grouped_response_task = 2 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated.
+ * See v1/generative.proto;l=24
+ * @return The bytes for groupedResponseTask.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated public com.google.protobuf.ByteString
+ getGroupedResponseTaskBytes() {
+ java.lang.Object ref = groupedResponseTask_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ groupedResponseTask_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GROUPED_PROPERTIES_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList groupedProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @return A list containing the groupedProperties.
+ */
+ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList
+ getGroupedPropertiesList() {
+ return groupedProperties_;
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @return The count of groupedProperties.
+ */
+ @java.lang.Deprecated public int getGroupedPropertiesCount() {
+ return groupedProperties_.size();
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @param index The index of the element to return.
+ * @return The groupedProperties at the given index.
+ */
+ @java.lang.Deprecated public java.lang.String getGroupedProperties(int index) {
+ return groupedProperties_.get(index);
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @param index The index of the value to return.
+ * @return The bytes of the groupedProperties at the given index.
+ */
+ @java.lang.Deprecated public com.google.protobuf.ByteString
+ getGroupedPropertiesBytes(int index) {
+ return groupedProperties_.getByteString(index);
+ }
+
+ public static final int SINGLE_FIELD_NUMBER = 4;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single single_;
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ * @return Whether the single field is set.
+ */
+ @java.lang.Override
+ public boolean hasSingle() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ * @return The single.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getSingle() {
+ return single_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance() : single_;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder getSingleOrBuilder() {
+ return single_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance() : single_;
+ }
+
+ public static final int GROUPED_FIELD_NUMBER = 5;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped grouped_;
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ * @return Whether the grouped field is set.
+ */
+ @java.lang.Override
+ public boolean hasGrouped() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ * @return The grouped.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getGrouped() {
+ return grouped_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance() : grouped_;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder getGroupedOrBuilder() {
+ return grouped_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance() : grouped_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleResponsePrompt_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, singleResponsePrompt_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupedResponseTask_);
+ }
+ for (int i = 0; i < groupedProperties_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupedProperties_.getRaw(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getSingle());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(5, getGrouped());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleResponsePrompt_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, singleResponsePrompt_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupedResponseTask_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < groupedProperties_.size(); i++) {
+ dataSize += computeStringSizeNoTag(groupedProperties_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getGroupedPropertiesList().size();
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getSingle());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getGrouped());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch) obj;
+
+ if (!getSingleResponsePrompt()
+ .equals(other.getSingleResponsePrompt())) return false;
+ if (!getGroupedResponseTask()
+ .equals(other.getGroupedResponseTask())) return false;
+ if (!getGroupedPropertiesList()
+ .equals(other.getGroupedPropertiesList())) return false;
+ if (hasSingle() != other.hasSingle()) return false;
+ if (hasSingle()) {
+ if (!getSingle()
+ .equals(other.getSingle())) return false;
+ }
+ if (hasGrouped() != other.hasGrouped()) return false;
+ if (hasGrouped()) {
+ if (!getGrouped()
+ .equals(other.getGrouped())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SINGLE_RESPONSE_PROMPT_FIELD_NUMBER;
+ hash = (53 * hash) + getSingleResponsePrompt().hashCode();
+ hash = (37 * hash) + GROUPED_RESPONSE_TASK_FIELD_NUMBER;
+ hash = (53 * hash) + getGroupedResponseTask().hashCode();
+ if (getGroupedPropertiesCount() > 0) {
+ hash = (37 * hash) + GROUPED_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getGroupedPropertiesList().hashCode();
+ }
+ if (hasSingle()) {
+ hash = (37 * hash) + SINGLE_FIELD_NUMBER;
+ hash = (53 * hash) + getSingle().hashCode();
+ }
+ if (hasGrouped()) {
+ hash = (37 * hash) + GROUPED_FIELD_NUMBER;
+ hash = (53 * hash) + getGrouped().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeSearch}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeSearch)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getSingleFieldBuilder();
+ getGroupedFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ singleResponsePrompt_ = "";
+ groupedResponseTask_ = "";
+ groupedProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ single_ = null;
+ if (singleBuilder_ != null) {
+ singleBuilder_.dispose();
+ singleBuilder_ = null;
+ }
+ grouped_ = null;
+ if (groupedBuilder_ != null) {
+ groupedBuilder_.dispose();
+ groupedBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeSearch_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.singleResponsePrompt_ = singleResponsePrompt_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.groupedResponseTask_ = groupedResponseTask_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ groupedProperties_.makeImmutable();
+ result.groupedProperties_ = groupedProperties_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.single_ = singleBuilder_ == null
+ ? single_
+ : singleBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.grouped_ = groupedBuilder_ == null
+ ? grouped_
+ : groupedBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance()) return this;
+ if (!other.getSingleResponsePrompt().isEmpty()) {
+ singleResponsePrompt_ = other.singleResponsePrompt_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getGroupedResponseTask().isEmpty()) {
+ groupedResponseTask_ = other.groupedResponseTask_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.groupedProperties_.isEmpty()) {
+ if (groupedProperties_.isEmpty()) {
+ groupedProperties_ = other.groupedProperties_;
+ bitField0_ |= 0x00000004;
+ } else {
+ ensureGroupedPropertiesIsMutable();
+ groupedProperties_.addAll(other.groupedProperties_);
+ }
+ onChanged();
+ }
+ if (other.hasSingle()) {
+ mergeSingle(other.getSingle());
+ }
+ if (other.hasGrouped()) {
+ mergeGrouped(other.getGrouped());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ singleResponsePrompt_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ groupedResponseTask_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureGroupedPropertiesIsMutable();
+ groupedProperties_.add(s);
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getSingleFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ input.readMessage(
+ getGroupedFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object singleResponsePrompt_ = "";
+ /**
+ * string single_response_prompt = 1 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated.
+ * See v1/generative.proto;l=23
+ * @return The singleResponsePrompt.
+ */
+ @java.lang.Deprecated public java.lang.String getSingleResponsePrompt() {
+ java.lang.Object ref = singleResponsePrompt_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ singleResponsePrompt_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string single_response_prompt = 1 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated.
+ * See v1/generative.proto;l=23
+ * @return The bytes for singleResponsePrompt.
+ */
+ @java.lang.Deprecated public com.google.protobuf.ByteString
+ getSingleResponsePromptBytes() {
+ java.lang.Object ref = singleResponsePrompt_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ singleResponsePrompt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string single_response_prompt = 1 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated.
+ * See v1/generative.proto;l=23
+ * @param value The singleResponsePrompt to set.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder setSingleResponsePrompt(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ singleResponsePrompt_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string single_response_prompt = 1 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated.
+ * See v1/generative.proto;l=23
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder clearSingleResponsePrompt() {
+ singleResponsePrompt_ = getDefaultInstance().getSingleResponsePrompt();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string single_response_prompt = 1 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.single_response_prompt is deprecated.
+ * See v1/generative.proto;l=23
+ * @param value The bytes for singleResponsePrompt to set.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder setSingleResponsePromptBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ singleResponsePrompt_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object groupedResponseTask_ = "";
+ /**
+ * string grouped_response_task = 2 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated.
+ * See v1/generative.proto;l=24
+ * @return The groupedResponseTask.
+ */
+ @java.lang.Deprecated public java.lang.String getGroupedResponseTask() {
+ java.lang.Object ref = groupedResponseTask_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ groupedResponseTask_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string grouped_response_task = 2 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated.
+ * See v1/generative.proto;l=24
+ * @return The bytes for groupedResponseTask.
+ */
+ @java.lang.Deprecated public com.google.protobuf.ByteString
+ getGroupedResponseTaskBytes() {
+ java.lang.Object ref = groupedResponseTask_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ groupedResponseTask_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string grouped_response_task = 2 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated.
+ * See v1/generative.proto;l=24
+ * @param value The groupedResponseTask to set.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder setGroupedResponseTask(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ groupedResponseTask_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string grouped_response_task = 2 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated.
+ * See v1/generative.proto;l=24
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder clearGroupedResponseTask() {
+ groupedResponseTask_ = getDefaultInstance().getGroupedResponseTask();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string grouped_response_task = 2 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_response_task is deprecated.
+ * See v1/generative.proto;l=24
+ * @param value The bytes for groupedResponseTask to set.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder setGroupedResponseTaskBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ groupedResponseTask_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList groupedProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureGroupedPropertiesIsMutable() {
+ if (!groupedProperties_.isModifiable()) {
+ groupedProperties_ = new com.google.protobuf.LazyStringArrayList(groupedProperties_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @return A list containing the groupedProperties.
+ */
+ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList
+ getGroupedPropertiesList() {
+ groupedProperties_.makeImmutable();
+ return groupedProperties_;
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @return The count of groupedProperties.
+ */
+ @java.lang.Deprecated public int getGroupedPropertiesCount() {
+ return groupedProperties_.size();
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @param index The index of the element to return.
+ * @return The groupedProperties at the given index.
+ */
+ @java.lang.Deprecated public java.lang.String getGroupedProperties(int index) {
+ return groupedProperties_.get(index);
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @param index The index of the value to return.
+ * @return The bytes of the groupedProperties at the given index.
+ */
+ @java.lang.Deprecated public com.google.protobuf.ByteString
+ getGroupedPropertiesBytes(int index) {
+ return groupedProperties_.getByteString(index);
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @param index The index to set the value at.
+ * @param value The groupedProperties to set.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder setGroupedProperties(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureGroupedPropertiesIsMutable();
+ groupedProperties_.set(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @param value The groupedProperties to add.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder addGroupedProperties(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureGroupedPropertiesIsMutable();
+ groupedProperties_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @param values The groupedProperties to add.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder addAllGroupedProperties(
+ java.lang.Iterable values) {
+ ensureGroupedPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, groupedProperties_);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder clearGroupedProperties() {
+ groupedProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string grouped_properties = 3 [deprecated = true];
+ * @deprecated weaviate.v1.GenerativeSearch.grouped_properties is deprecated.
+ * See v1/generative.proto;l=25
+ * @param value The bytes of the groupedProperties to add.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated public Builder addGroupedPropertiesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureGroupedPropertiesIsMutable();
+ groupedProperties_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single single_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder> singleBuilder_;
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ * @return Whether the single field is set.
+ */
+ public boolean hasSingle() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ * @return The single.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single getSingle() {
+ if (singleBuilder_ == null) {
+ return single_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance() : single_;
+ } else {
+ return singleBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ */
+ public Builder setSingle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single value) {
+ if (singleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ single_ = value;
+ } else {
+ singleBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ */
+ public Builder setSingle(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder builderForValue) {
+ if (singleBuilder_ == null) {
+ single_ = builderForValue.build();
+ } else {
+ singleBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ */
+ public Builder mergeSingle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single value) {
+ if (singleBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ single_ != null &&
+ single_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance()) {
+ getSingleBuilder().mergeFrom(value);
+ } else {
+ single_ = value;
+ }
+ } else {
+ singleBuilder_.mergeFrom(value);
+ }
+ if (single_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ */
+ public Builder clearSingle() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ single_ = null;
+ if (singleBuilder_ != null) {
+ singleBuilder_.dispose();
+ singleBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder getSingleBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getSingleFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder getSingleOrBuilder() {
+ if (singleBuilder_ != null) {
+ return singleBuilder_.getMessageOrBuilder();
+ } else {
+ return single_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.getDefaultInstance() : single_;
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Single single = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder>
+ getSingleFieldBuilder() {
+ if (singleBuilder_ == null) {
+ singleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Single.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.SingleOrBuilder>(
+ getSingle(),
+ getParentForChildren(),
+ isClean());
+ single_ = null;
+ }
+ return singleBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped grouped_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder> groupedBuilder_;
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ * @return Whether the grouped field is set.
+ */
+ public boolean hasGrouped() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ * @return The grouped.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped getGrouped() {
+ if (groupedBuilder_ == null) {
+ return grouped_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance() : grouped_;
+ } else {
+ return groupedBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ */
+ public Builder setGrouped(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped value) {
+ if (groupedBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ grouped_ = value;
+ } else {
+ groupedBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ */
+ public Builder setGrouped(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder builderForValue) {
+ if (groupedBuilder_ == null) {
+ grouped_ = builderForValue.build();
+ } else {
+ groupedBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ */
+ public Builder mergeGrouped(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped value) {
+ if (groupedBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ grouped_ != null &&
+ grouped_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance()) {
+ getGroupedBuilder().mergeFrom(value);
+ } else {
+ grouped_ = value;
+ }
+ } else {
+ groupedBuilder_.mergeFrom(value);
+ }
+ if (grouped_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ */
+ public Builder clearGrouped() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ grouped_ = null;
+ if (groupedBuilder_ != null) {
+ groupedBuilder_.dispose();
+ groupedBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder getGroupedBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getGroupedFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder getGroupedOrBuilder() {
+ if (groupedBuilder_ != null) {
+ return groupedBuilder_.getMessageOrBuilder();
+ } else {
+ return grouped_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.getDefaultInstance() : grouped_;
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeSearch.Grouped grouped = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder>
+ getGroupedFieldBuilder() {
+ if (groupedBuilder_ == null) {
+ groupedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Grouped.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.GroupedOrBuilder>(
+ getGrouped(),
+ getParentForChildren(),
+ isClean());
+ grouped_ = null;
+ }
+ return groupedBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeSearch)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeSearch)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeSearch parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeProviderOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeProvider)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool return_metadata = 1;
+ * @return The returnMetadata.
+ */
+ boolean getReturnMetadata();
+
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ * @return Whether the anthropic field is set.
+ */
+ boolean hasAnthropic();
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ * @return The anthropic.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getAnthropic();
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder getAnthropicOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ * @return Whether the anyscale field is set.
+ */
+ boolean hasAnyscale();
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ * @return The anyscale.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getAnyscale();
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder getAnyscaleOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ * @return Whether the aws field is set.
+ */
+ boolean hasAws();
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ * @return The aws.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getAws();
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder getAwsOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ * @return Whether the cohere field is set.
+ */
+ boolean hasCohere();
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ * @return The cohere.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getCohere();
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder getCohereOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ * @return Whether the dummy field is set.
+ */
+ boolean hasDummy();
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ * @return The dummy.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDummy();
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder getDummyOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ * @return Whether the mistral field is set.
+ */
+ boolean hasMistral();
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ * @return The mistral.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getMistral();
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder getMistralOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ * @return Whether the octoai field is set.
+ */
+ boolean hasOctoai();
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ * @return The octoai.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getOctoai();
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder getOctoaiOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ * @return Whether the ollama field is set.
+ */
+ boolean hasOllama();
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ * @return The ollama.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama();
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ * @return Whether the openai field is set.
+ */
+ boolean hasOpenai();
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ * @return The openai.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai();
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ * @return Whether the google field is set.
+ */
+ boolean hasGoogle();
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ * @return The google.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle();
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder();
+
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.KindCase getKindCase();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeProvider}
+ */
+ public static final class GenerativeProvider extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeProvider)
+ GenerativeProviderOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeProvider.newBuilder() to construct.
+ private GenerativeProvider(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeProvider() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeProvider();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder.class);
+ }
+
+ private int kindCase_ = 0;
+ @SuppressWarnings("serial")
+ private java.lang.Object kind_;
+ public enum KindCase
+ implements com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ ANTHROPIC(2),
+ ANYSCALE(3),
+ AWS(4),
+ COHERE(5),
+ DUMMY(6),
+ MISTRAL(7),
+ OCTOAI(8),
+ OLLAMA(9),
+ OPENAI(10),
+ GOOGLE(11),
+ KIND_NOT_SET(0);
+ private final int value;
+ private KindCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static KindCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static KindCase forNumber(int value) {
+ switch (value) {
+ case 2: return ANTHROPIC;
+ case 3: return ANYSCALE;
+ case 4: return AWS;
+ case 5: return COHERE;
+ case 6: return DUMMY;
+ case 7: return MISTRAL;
+ case 8: return OCTOAI;
+ case 9: return OLLAMA;
+ case 10: return OPENAI;
+ case 11: return GOOGLE;
+ case 0: return KIND_NOT_SET;
+ default: return null;
+ }
+ }
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public KindCase
+ getKindCase() {
+ return KindCase.forNumber(
+ kindCase_);
+ }
+
+ public static final int RETURN_METADATA_FIELD_NUMBER = 1;
+ private boolean returnMetadata_ = false;
+ /**
+ * bool return_metadata = 1;
+ * @return The returnMetadata.
+ */
+ @java.lang.Override
+ public boolean getReturnMetadata() {
+ return returnMetadata_;
+ }
+
+ public static final int ANTHROPIC_FIELD_NUMBER = 2;
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ * @return Whether the anthropic field is set.
+ */
+ @java.lang.Override
+ public boolean hasAnthropic() {
+ return kindCase_ == 2;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ * @return The anthropic.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getAnthropic() {
+ if (kindCase_ == 2) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder getAnthropicOrBuilder() {
+ if (kindCase_ == 2) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance();
+ }
+
+ public static final int ANYSCALE_FIELD_NUMBER = 3;
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ * @return Whether the anyscale field is set.
+ */
+ @java.lang.Override
+ public boolean hasAnyscale() {
+ return kindCase_ == 3;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ * @return The anyscale.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getAnyscale() {
+ if (kindCase_ == 3) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder getAnyscaleOrBuilder() {
+ if (kindCase_ == 3) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance();
+ }
+
+ public static final int AWS_FIELD_NUMBER = 4;
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ * @return Whether the aws field is set.
+ */
+ @java.lang.Override
+ public boolean hasAws() {
+ return kindCase_ == 4;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ * @return The aws.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getAws() {
+ if (kindCase_ == 4) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder getAwsOrBuilder() {
+ if (kindCase_ == 4) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance();
+ }
+
+ public static final int COHERE_FIELD_NUMBER = 5;
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ * @return Whether the cohere field is set.
+ */
+ @java.lang.Override
+ public boolean hasCohere() {
+ return kindCase_ == 5;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ * @return The cohere.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getCohere() {
+ if (kindCase_ == 5) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder getCohereOrBuilder() {
+ if (kindCase_ == 5) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance();
+ }
+
+ public static final int DUMMY_FIELD_NUMBER = 6;
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ * @return Whether the dummy field is set.
+ */
+ @java.lang.Override
+ public boolean hasDummy() {
+ return kindCase_ == 6;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ * @return The dummy.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDummy() {
+ if (kindCase_ == 6) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder getDummyOrBuilder() {
+ if (kindCase_ == 6) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance();
+ }
+
+ public static final int MISTRAL_FIELD_NUMBER = 7;
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ * @return Whether the mistral field is set.
+ */
+ @java.lang.Override
+ public boolean hasMistral() {
+ return kindCase_ == 7;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ * @return The mistral.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getMistral() {
+ if (kindCase_ == 7) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder getMistralOrBuilder() {
+ if (kindCase_ == 7) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance();
+ }
+
+ public static final int OCTOAI_FIELD_NUMBER = 8;
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ * @return Whether the octoai field is set.
+ */
+ @java.lang.Override
+ public boolean hasOctoai() {
+ return kindCase_ == 8;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ * @return The octoai.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getOctoai() {
+ if (kindCase_ == 8) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder getOctoaiOrBuilder() {
+ if (kindCase_ == 8) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance();
+ }
+
+ public static final int OLLAMA_FIELD_NUMBER = 9;
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ * @return Whether the ollama field is set.
+ */
+ @java.lang.Override
+ public boolean hasOllama() {
+ return kindCase_ == 9;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ * @return The ollama.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama() {
+ if (kindCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder() {
+ if (kindCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance();
+ }
+
+ public static final int OPENAI_FIELD_NUMBER = 10;
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ * @return Whether the openai field is set.
+ */
+ @java.lang.Override
+ public boolean hasOpenai() {
+ return kindCase_ == 10;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ * @return The openai.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai() {
+ if (kindCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder() {
+ if (kindCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance();
+ }
+
+ public static final int GOOGLE_FIELD_NUMBER = 11;
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ * @return Whether the google field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogle() {
+ return kindCase_ == 11;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ * @return The google.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle() {
+ if (kindCase_ == 11) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder() {
+ if (kindCase_ == 11) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (returnMetadata_ != false) {
+ output.writeBool(1, returnMetadata_);
+ }
+ if (kindCase_ == 2) {
+ output.writeMessage(2, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_);
+ }
+ if (kindCase_ == 3) {
+ output.writeMessage(3, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_);
+ }
+ if (kindCase_ == 4) {
+ output.writeMessage(4, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_);
+ }
+ if (kindCase_ == 5) {
+ output.writeMessage(5, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_);
+ }
+ if (kindCase_ == 6) {
+ output.writeMessage(6, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_);
+ }
+ if (kindCase_ == 7) {
+ output.writeMessage(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_);
+ }
+ if (kindCase_ == 8) {
+ output.writeMessage(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_);
+ }
+ if (kindCase_ == 9) {
+ output.writeMessage(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_);
+ }
+ if (kindCase_ == 10) {
+ output.writeMessage(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_);
+ }
+ if (kindCase_ == 11) {
+ output.writeMessage(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (returnMetadata_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, returnMetadata_);
+ }
+ if (kindCase_ == 2) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_);
+ }
+ if (kindCase_ == 3) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_);
+ }
+ if (kindCase_ == 4) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_);
+ }
+ if (kindCase_ == 5) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_);
+ }
+ if (kindCase_ == 6) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_);
+ }
+ if (kindCase_ == 7) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_);
+ }
+ if (kindCase_ == 8) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_);
+ }
+ if (kindCase_ == 9) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_);
+ }
+ if (kindCase_ == 10) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_);
+ }
+ if (kindCase_ == 11) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(11, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider) obj;
+
+ if (getReturnMetadata()
+ != other.getReturnMetadata()) return false;
+ if (!getKindCase().equals(other.getKindCase())) return false;
+ switch (kindCase_) {
+ case 2:
+ if (!getAnthropic()
+ .equals(other.getAnthropic())) return false;
+ break;
+ case 3:
+ if (!getAnyscale()
+ .equals(other.getAnyscale())) return false;
+ break;
+ case 4:
+ if (!getAws()
+ .equals(other.getAws())) return false;
+ break;
+ case 5:
+ if (!getCohere()
+ .equals(other.getCohere())) return false;
+ break;
+ case 6:
+ if (!getDummy()
+ .equals(other.getDummy())) return false;
+ break;
+ case 7:
+ if (!getMistral()
+ .equals(other.getMistral())) return false;
+ break;
+ case 8:
+ if (!getOctoai()
+ .equals(other.getOctoai())) return false;
+ break;
+ case 9:
+ if (!getOllama()
+ .equals(other.getOllama())) return false;
+ break;
+ case 10:
+ if (!getOpenai()
+ .equals(other.getOpenai())) return false;
+ break;
+ case 11:
+ if (!getGoogle()
+ .equals(other.getGoogle())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RETURN_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getReturnMetadata());
+ switch (kindCase_) {
+ case 2:
+ hash = (37 * hash) + ANTHROPIC_FIELD_NUMBER;
+ hash = (53 * hash) + getAnthropic().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + ANYSCALE_FIELD_NUMBER;
+ hash = (53 * hash) + getAnyscale().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + AWS_FIELD_NUMBER;
+ hash = (53 * hash) + getAws().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + COHERE_FIELD_NUMBER;
+ hash = (53 * hash) + getCohere().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + DUMMY_FIELD_NUMBER;
+ hash = (53 * hash) + getDummy().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + MISTRAL_FIELD_NUMBER;
+ hash = (53 * hash) + getMistral().hashCode();
+ break;
+ case 8:
+ hash = (37 * hash) + OCTOAI_FIELD_NUMBER;
+ hash = (53 * hash) + getOctoai().hashCode();
+ break;
+ case 9:
+ hash = (37 * hash) + OLLAMA_FIELD_NUMBER;
+ hash = (53 * hash) + getOllama().hashCode();
+ break;
+ case 10:
+ hash = (37 * hash) + OPENAI_FIELD_NUMBER;
+ hash = (53 * hash) + getOpenai().hashCode();
+ break;
+ case 11:
+ hash = (37 * hash) + GOOGLE_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogle().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeProvider}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeProvider)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProviderOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ returnMetadata_ = false;
+ if (anthropicBuilder_ != null) {
+ anthropicBuilder_.clear();
+ }
+ if (anyscaleBuilder_ != null) {
+ anyscaleBuilder_.clear();
+ }
+ if (awsBuilder_ != null) {
+ awsBuilder_.clear();
+ }
+ if (cohereBuilder_ != null) {
+ cohereBuilder_.clear();
+ }
+ if (dummyBuilder_ != null) {
+ dummyBuilder_.clear();
+ }
+ if (mistralBuilder_ != null) {
+ mistralBuilder_.clear();
+ }
+ if (octoaiBuilder_ != null) {
+ octoaiBuilder_.clear();
+ }
+ if (ollamaBuilder_ != null) {
+ ollamaBuilder_.clear();
+ }
+ if (openaiBuilder_ != null) {
+ openaiBuilder_.clear();
+ }
+ if (googleBuilder_ != null) {
+ googleBuilder_.clear();
+ }
+ kindCase_ = 0;
+ kind_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeProvider_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.returnMetadata_ = returnMetadata_;
+ }
+ }
+
+ private void buildPartialOneofs(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider result) {
+ result.kindCase_ = kindCase_;
+ result.kind_ = this.kind_;
+ if (kindCase_ == 2 &&
+ anthropicBuilder_ != null) {
+ result.kind_ = anthropicBuilder_.build();
+ }
+ if (kindCase_ == 3 &&
+ anyscaleBuilder_ != null) {
+ result.kind_ = anyscaleBuilder_.build();
+ }
+ if (kindCase_ == 4 &&
+ awsBuilder_ != null) {
+ result.kind_ = awsBuilder_.build();
+ }
+ if (kindCase_ == 5 &&
+ cohereBuilder_ != null) {
+ result.kind_ = cohereBuilder_.build();
+ }
+ if (kindCase_ == 6 &&
+ dummyBuilder_ != null) {
+ result.kind_ = dummyBuilder_.build();
+ }
+ if (kindCase_ == 7 &&
+ mistralBuilder_ != null) {
+ result.kind_ = mistralBuilder_.build();
+ }
+ if (kindCase_ == 8 &&
+ octoaiBuilder_ != null) {
+ result.kind_ = octoaiBuilder_.build();
+ }
+ if (kindCase_ == 9 &&
+ ollamaBuilder_ != null) {
+ result.kind_ = ollamaBuilder_.build();
+ }
+ if (kindCase_ == 10 &&
+ openaiBuilder_ != null) {
+ result.kind_ = openaiBuilder_.build();
+ }
+ if (kindCase_ == 11 &&
+ googleBuilder_ != null) {
+ result.kind_ = googleBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider.getDefaultInstance()) return this;
+ if (other.getReturnMetadata() != false) {
+ setReturnMetadata(other.getReturnMetadata());
+ }
+ switch (other.getKindCase()) {
+ case ANTHROPIC: {
+ mergeAnthropic(other.getAnthropic());
+ break;
+ }
+ case ANYSCALE: {
+ mergeAnyscale(other.getAnyscale());
+ break;
+ }
+ case AWS: {
+ mergeAws(other.getAws());
+ break;
+ }
+ case COHERE: {
+ mergeCohere(other.getCohere());
+ break;
+ }
+ case DUMMY: {
+ mergeDummy(other.getDummy());
+ break;
+ }
+ case MISTRAL: {
+ mergeMistral(other.getMistral());
+ break;
+ }
+ case OCTOAI: {
+ mergeOctoai(other.getOctoai());
+ break;
+ }
+ case OLLAMA: {
+ mergeOllama(other.getOllama());
+ break;
+ }
+ case OPENAI: {
+ mergeOpenai(other.getOpenai());
+ break;
+ }
+ case GOOGLE: {
+ mergeGoogle(other.getGoogle());
+ break;
+ }
+ case KIND_NOT_SET: {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ returnMetadata_ = input.readBool();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getAnthropicFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 2;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getAnyscaleFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 3;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getAwsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 4;
+ break;
+ } // case 34
+ case 42: {
+ input.readMessage(
+ getCohereFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 5;
+ break;
+ } // case 42
+ case 50: {
+ input.readMessage(
+ getDummyFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 6;
+ break;
+ } // case 50
+ case 58: {
+ input.readMessage(
+ getMistralFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 7;
+ break;
+ } // case 58
+ case 66: {
+ input.readMessage(
+ getOctoaiFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 8;
+ break;
+ } // case 66
+ case 74: {
+ input.readMessage(
+ getOllamaFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 9;
+ break;
+ } // case 74
+ case 82: {
+ input.readMessage(
+ getOpenaiFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 10;
+ break;
+ } // case 82
+ case 90: {
+ input.readMessage(
+ getGoogleFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 11;
+ break;
+ } // case 90
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int kindCase_ = 0;
+ private java.lang.Object kind_;
+ public KindCase
+ getKindCase() {
+ return KindCase.forNumber(
+ kindCase_);
+ }
+
+ public Builder clearKind() {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private boolean returnMetadata_ ;
+ /**
+ * bool return_metadata = 1;
+ * @return The returnMetadata.
+ */
+ @java.lang.Override
+ public boolean getReturnMetadata() {
+ return returnMetadata_;
+ }
+ /**
+ * bool return_metadata = 1;
+ * @param value The returnMetadata to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReturnMetadata(boolean value) {
+
+ returnMetadata_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool return_metadata = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearReturnMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ returnMetadata_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder> anthropicBuilder_;
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ * @return Whether the anthropic field is set.
+ */
+ @java.lang.Override
+ public boolean hasAnthropic() {
+ return kindCase_ == 2;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ * @return The anthropic.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getAnthropic() {
+ if (anthropicBuilder_ == null) {
+ if (kindCase_ == 2) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance();
+ } else {
+ if (kindCase_ == 2) {
+ return anthropicBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ public Builder setAnthropic(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic value) {
+ if (anthropicBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ anthropicBuilder_.setMessage(value);
+ }
+ kindCase_ = 2;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ public Builder setAnthropic(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder builderForValue) {
+ if (anthropicBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ anthropicBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 2;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ public Builder mergeAnthropic(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic value) {
+ if (anthropicBuilder_ == null) {
+ if (kindCase_ == 2 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 2) {
+ anthropicBuilder_.mergeFrom(value);
+ } else {
+ anthropicBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 2;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ public Builder clearAnthropic() {
+ if (anthropicBuilder_ == null) {
+ if (kindCase_ == 2) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 2) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ anthropicBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder getAnthropicBuilder() {
+ return getAnthropicFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder getAnthropicOrBuilder() {
+ if ((kindCase_ == 2) && (anthropicBuilder_ != null)) {
+ return anthropicBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 2) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropic anthropic = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder>
+ getAnthropicFieldBuilder() {
+ if (anthropicBuilder_ == null) {
+ if (!(kindCase_ == 2)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance();
+ }
+ anthropicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 2;
+ onChanged();
+ return anthropicBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder> anyscaleBuilder_;
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ * @return Whether the anyscale field is set.
+ */
+ @java.lang.Override
+ public boolean hasAnyscale() {
+ return kindCase_ == 3;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ * @return The anyscale.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getAnyscale() {
+ if (anyscaleBuilder_ == null) {
+ if (kindCase_ == 3) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance();
+ } else {
+ if (kindCase_ == 3) {
+ return anyscaleBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ public Builder setAnyscale(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale value) {
+ if (anyscaleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ anyscaleBuilder_.setMessage(value);
+ }
+ kindCase_ = 3;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ public Builder setAnyscale(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder builderForValue) {
+ if (anyscaleBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ anyscaleBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 3;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ public Builder mergeAnyscale(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale value) {
+ if (anyscaleBuilder_ == null) {
+ if (kindCase_ == 3 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 3) {
+ anyscaleBuilder_.mergeFrom(value);
+ } else {
+ anyscaleBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 3;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ public Builder clearAnyscale() {
+ if (anyscaleBuilder_ == null) {
+ if (kindCase_ == 3) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 3) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ anyscaleBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder getAnyscaleBuilder() {
+ return getAnyscaleFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder getAnyscaleOrBuilder() {
+ if ((kindCase_ == 3) && (anyscaleBuilder_ != null)) {
+ return anyscaleBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 3) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscale anyscale = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder>
+ getAnyscaleFieldBuilder() {
+ if (anyscaleBuilder_ == null) {
+ if (!(kindCase_ == 3)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance();
+ }
+ anyscaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 3;
+ onChanged();
+ return anyscaleBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder> awsBuilder_;
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ * @return Whether the aws field is set.
+ */
+ @java.lang.Override
+ public boolean hasAws() {
+ return kindCase_ == 4;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ * @return The aws.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getAws() {
+ if (awsBuilder_ == null) {
+ if (kindCase_ == 4) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance();
+ } else {
+ if (kindCase_ == 4) {
+ return awsBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ public Builder setAws(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS value) {
+ if (awsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ awsBuilder_.setMessage(value);
+ }
+ kindCase_ = 4;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ public Builder setAws(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder builderForValue) {
+ if (awsBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ awsBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 4;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ public Builder mergeAws(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS value) {
+ if (awsBuilder_ == null) {
+ if (kindCase_ == 4 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 4) {
+ awsBuilder_.mergeFrom(value);
+ } else {
+ awsBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 4;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ public Builder clearAws() {
+ if (awsBuilder_ == null) {
+ if (kindCase_ == 4) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 4) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ awsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder getAwsBuilder() {
+ return getAwsFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder getAwsOrBuilder() {
+ if ((kindCase_ == 4) && (awsBuilder_ != null)) {
+ return awsBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 4) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAWS aws = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder>
+ getAwsFieldBuilder() {
+ if (awsBuilder_ == null) {
+ if (!(kindCase_ == 4)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance();
+ }
+ awsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 4;
+ onChanged();
+ return awsBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder> cohereBuilder_;
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ * @return Whether the cohere field is set.
+ */
+ @java.lang.Override
+ public boolean hasCohere() {
+ return kindCase_ == 5;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ * @return The cohere.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getCohere() {
+ if (cohereBuilder_ == null) {
+ if (kindCase_ == 5) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance();
+ } else {
+ if (kindCase_ == 5) {
+ return cohereBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ public Builder setCohere(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere value) {
+ if (cohereBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ cohereBuilder_.setMessage(value);
+ }
+ kindCase_ = 5;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ public Builder setCohere(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder builderForValue) {
+ if (cohereBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ cohereBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 5;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ public Builder mergeCohere(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere value) {
+ if (cohereBuilder_ == null) {
+ if (kindCase_ == 5 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 5) {
+ cohereBuilder_.mergeFrom(value);
+ } else {
+ cohereBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 5;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ public Builder clearCohere() {
+ if (cohereBuilder_ == null) {
+ if (kindCase_ == 5) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 5) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ cohereBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder getCohereBuilder() {
+ return getCohereFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder getCohereOrBuilder() {
+ if ((kindCase_ == 5) && (cohereBuilder_ != null)) {
+ return cohereBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 5) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeCohere cohere = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder>
+ getCohereFieldBuilder() {
+ if (cohereBuilder_ == null) {
+ if (!(kindCase_ == 5)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance();
+ }
+ cohereBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 5;
+ onChanged();
+ return cohereBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder> dummyBuilder_;
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ * @return Whether the dummy field is set.
+ */
+ @java.lang.Override
+ public boolean hasDummy() {
+ return kindCase_ == 6;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ * @return The dummy.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDummy() {
+ if (dummyBuilder_ == null) {
+ if (kindCase_ == 6) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance();
+ } else {
+ if (kindCase_ == 6) {
+ return dummyBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ public Builder setDummy(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy value) {
+ if (dummyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ dummyBuilder_.setMessage(value);
+ }
+ kindCase_ = 6;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ public Builder setDummy(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder builderForValue) {
+ if (dummyBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ dummyBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 6;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ public Builder mergeDummy(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy value) {
+ if (dummyBuilder_ == null) {
+ if (kindCase_ == 6 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 6) {
+ dummyBuilder_.mergeFrom(value);
+ } else {
+ dummyBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 6;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ public Builder clearDummy() {
+ if (dummyBuilder_ == null) {
+ if (kindCase_ == 6) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 6) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ dummyBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder getDummyBuilder() {
+ return getDummyFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder getDummyOrBuilder() {
+ if ((kindCase_ == 6) && (dummyBuilder_ != null)) {
+ return dummyBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 6) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeDummy dummy = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder>
+ getDummyFieldBuilder() {
+ if (dummyBuilder_ == null) {
+ if (!(kindCase_ == 6)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance();
+ }
+ dummyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 6;
+ onChanged();
+ return dummyBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder> mistralBuilder_;
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ * @return Whether the mistral field is set.
+ */
+ @java.lang.Override
+ public boolean hasMistral() {
+ return kindCase_ == 7;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ * @return The mistral.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getMistral() {
+ if (mistralBuilder_ == null) {
+ if (kindCase_ == 7) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance();
+ } else {
+ if (kindCase_ == 7) {
+ return mistralBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ public Builder setMistral(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral value) {
+ if (mistralBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ mistralBuilder_.setMessage(value);
+ }
+ kindCase_ = 7;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ public Builder setMistral(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder builderForValue) {
+ if (mistralBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ mistralBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 7;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ public Builder mergeMistral(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral value) {
+ if (mistralBuilder_ == null) {
+ if (kindCase_ == 7 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 7) {
+ mistralBuilder_.mergeFrom(value);
+ } else {
+ mistralBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 7;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ public Builder clearMistral() {
+ if (mistralBuilder_ == null) {
+ if (kindCase_ == 7) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 7) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ mistralBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder getMistralBuilder() {
+ return getMistralFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder getMistralOrBuilder() {
+ if ((kindCase_ == 7) && (mistralBuilder_ != null)) {
+ return mistralBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 7) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeMistral mistral = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder>
+ getMistralFieldBuilder() {
+ if (mistralBuilder_ == null) {
+ if (!(kindCase_ == 7)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance();
+ }
+ mistralBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 7;
+ onChanged();
+ return mistralBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder> octoaiBuilder_;
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ * @return Whether the octoai field is set.
+ */
+ @java.lang.Override
+ public boolean hasOctoai() {
+ return kindCase_ == 8;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ * @return The octoai.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getOctoai() {
+ if (octoaiBuilder_ == null) {
+ if (kindCase_ == 8) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance();
+ } else {
+ if (kindCase_ == 8) {
+ return octoaiBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ public Builder setOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI value) {
+ if (octoaiBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ octoaiBuilder_.setMessage(value);
+ }
+ kindCase_ = 8;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ public Builder setOctoai(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder builderForValue) {
+ if (octoaiBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ octoaiBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 8;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ public Builder mergeOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI value) {
+ if (octoaiBuilder_ == null) {
+ if (kindCase_ == 8 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 8) {
+ octoaiBuilder_.mergeFrom(value);
+ } else {
+ octoaiBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 8;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ public Builder clearOctoai() {
+ if (octoaiBuilder_ == null) {
+ if (kindCase_ == 8) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 8) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ octoaiBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder getOctoaiBuilder() {
+ return getOctoaiFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder getOctoaiOrBuilder() {
+ if ((kindCase_ == 8) && (octoaiBuilder_ != null)) {
+ return octoaiBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 8) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAI octoai = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder>
+ getOctoaiFieldBuilder() {
+ if (octoaiBuilder_ == null) {
+ if (!(kindCase_ == 8)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance();
+ }
+ octoaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 8;
+ onChanged();
+ return octoaiBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder> ollamaBuilder_;
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ * @return Whether the ollama field is set.
+ */
+ @java.lang.Override
+ public boolean hasOllama() {
+ return kindCase_ == 9;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ * @return The ollama.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getOllama() {
+ if (ollamaBuilder_ == null) {
+ if (kindCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance();
+ } else {
+ if (kindCase_ == 9) {
+ return ollamaBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ public Builder setOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama value) {
+ if (ollamaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ ollamaBuilder_.setMessage(value);
+ }
+ kindCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ public Builder setOllama(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder builderForValue) {
+ if (ollamaBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ ollamaBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama value) {
+ if (ollamaBuilder_ == null) {
+ if (kindCase_ == 9 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 9) {
+ ollamaBuilder_.mergeFrom(value);
+ } else {
+ ollamaBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ public Builder clearOllama() {
+ if (ollamaBuilder_ == null) {
+ if (kindCase_ == 9) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 9) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ ollamaBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder getOllamaBuilder() {
+ return getOllamaFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder getOllamaOrBuilder() {
+ if ((kindCase_ == 9) && (ollamaBuilder_ != null)) {
+ return ollamaBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOllama ollama = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder>
+ getOllamaFieldBuilder() {
+ if (ollamaBuilder_ == null) {
+ if (!(kindCase_ == 9)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance();
+ }
+ ollamaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 9;
+ onChanged();
+ return ollamaBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder> openaiBuilder_;
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ * @return Whether the openai field is set.
+ */
+ @java.lang.Override
+ public boolean hasOpenai() {
+ return kindCase_ == 10;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ * @return The openai.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getOpenai() {
+ if (openaiBuilder_ == null) {
+ if (kindCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance();
+ } else {
+ if (kindCase_ == 10) {
+ return openaiBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ public Builder setOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI value) {
+ if (openaiBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ openaiBuilder_.setMessage(value);
+ }
+ kindCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ public Builder setOpenai(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder builderForValue) {
+ if (openaiBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ openaiBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI value) {
+ if (openaiBuilder_ == null) {
+ if (kindCase_ == 10 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 10) {
+ openaiBuilder_.mergeFrom(value);
+ } else {
+ openaiBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ public Builder clearOpenai() {
+ if (openaiBuilder_ == null) {
+ if (kindCase_ == 10) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 10) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ openaiBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder getOpenaiBuilder() {
+ return getOpenaiFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder getOpenaiOrBuilder() {
+ if ((kindCase_ == 10) && (openaiBuilder_ != null)) {
+ return openaiBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAI openai = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder>
+ getOpenaiFieldBuilder() {
+ if (openaiBuilder_ == null) {
+ if (!(kindCase_ == 10)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance();
+ }
+ openaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 10;
+ onChanged();
+ return openaiBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder> googleBuilder_;
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ * @return Whether the google field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogle() {
+ return kindCase_ == 11;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ * @return The google.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getGoogle() {
+ if (googleBuilder_ == null) {
+ if (kindCase_ == 11) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance();
+ } else {
+ if (kindCase_ == 11) {
+ return googleBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ public Builder setGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle value) {
+ if (googleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ googleBuilder_.setMessage(value);
+ }
+ kindCase_ = 11;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ public Builder setGoogle(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder builderForValue) {
+ if (googleBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ googleBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 11;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle value) {
+ if (googleBuilder_ == null) {
+ if (kindCase_ == 11 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 11) {
+ googleBuilder_.mergeFrom(value);
+ } else {
+ googleBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 11;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ public Builder clearGoogle() {
+ if (googleBuilder_ == null) {
+ if (kindCase_ == 11) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 11) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ googleBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder getGoogleBuilder() {
+ return getGoogleFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder getGoogleOrBuilder() {
+ if ((kindCase_ == 11) && (googleBuilder_ != null)) {
+ return googleBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 11) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogle google = 11;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder>
+ getGoogleFieldBuilder() {
+ if (googleBuilder_ == null) {
+ if (!(kindCase_ == 11)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance();
+ }
+ googleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 11;
+ onChanged();
+ return googleBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeProvider)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeProvider)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeProvider parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeProvider getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeAnthropicOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnthropic)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ boolean hasBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ java.lang.String getBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ com.google.protobuf.ByteString
+ getBaseUrlBytes();
+
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ boolean hasMaxTokens();
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ long getMaxTokens();
+
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional double temperature = 4;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 4;
+ * @return The temperature.
+ */
+ double getTemperature();
+
+ /**
+ * optional int64 top_k = 5;
+ * @return Whether the topK field is set.
+ */
+ boolean hasTopK();
+ /**
+ * optional int64 top_k = 5;
+ * @return The topK.
+ */
+ long getTopK();
+
+ /**
+ * optional double top_p = 6;
+ * @return Whether the topP field is set.
+ */
+ boolean hasTopP();
+ /**
+ * optional double top_p = 6;
+ * @return The topP.
+ */
+ double getTopP();
+
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ * @return Whether the stopSequences field is set.
+ */
+ boolean hasStopSequences();
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ * @return The stopSequences.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences();
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnthropic}
+ */
+ public static final class GenerativeAnthropic extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnthropic)
+ GenerativeAnthropicOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeAnthropic.newBuilder() to construct.
+ private GenerativeAnthropic(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeAnthropic() {
+ baseUrl_ = "";
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeAnthropic();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int BASE_URL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ @java.lang.Override
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MAX_TOKENS_FIELD_NUMBER = 2;
+ private long maxTokens_ = 0L;
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 4;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 4;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double temperature = 4;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ public static final int TOP_K_FIELD_NUMBER = 5;
+ private long topK_ = 0L;
+ /**
+ * optional int64 top_k = 5;
+ * @return Whether the topK field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopK() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional int64 top_k = 5;
+ * @return The topK.
+ */
+ @java.lang.Override
+ public long getTopK() {
+ return topK_;
+ }
+
+ public static final int TOP_P_FIELD_NUMBER = 6;
+ private double topP_ = 0D;
+ /**
+ * optional double top_p = 6;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional double top_p = 6;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+
+ public static final int STOP_SEQUENCES_FIELD_NUMBER = 7;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_;
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ * @return Whether the stopSequences field is set.
+ */
+ @java.lang.Override
+ public boolean hasStopSequences() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ * @return The stopSequences.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeDouble(4, temperature_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt64(5, topK_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeDouble(6, topP_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(7, getStopSequences());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(4, temperature_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(5, topK_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(6, topP_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getStopSequences());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) obj;
+
+ if (hasBaseUrl() != other.hasBaseUrl()) return false;
+ if (hasBaseUrl()) {
+ if (!getBaseUrl()
+ .equals(other.getBaseUrl())) return false;
+ }
+ if (hasMaxTokens() != other.hasMaxTokens()) return false;
+ if (hasMaxTokens()) {
+ if (getMaxTokens()
+ != other.getMaxTokens()) return false;
+ }
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (hasTopK() != other.hasTopK()) return false;
+ if (hasTopK()) {
+ if (getTopK()
+ != other.getTopK()) return false;
+ }
+ if (hasTopP() != other.hasTopP()) return false;
+ if (hasTopP()) {
+ if (java.lang.Double.doubleToLongBits(getTopP())
+ != java.lang.Double.doubleToLongBits(
+ other.getTopP())) return false;
+ }
+ if (hasStopSequences() != other.hasStopSequences()) return false;
+ if (hasStopSequences()) {
+ if (!getStopSequences()
+ .equals(other.getStopSequences())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasBaseUrl()) {
+ hash = (37 * hash) + BASE_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseUrl().hashCode();
+ }
+ if (hasMaxTokens()) {
+ hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxTokens());
+ }
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ if (hasTopK()) {
+ hash = (37 * hash) + TOP_K_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTopK());
+ }
+ if (hasTopP()) {
+ hash = (37 * hash) + TOP_P_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTopP()));
+ }
+ if (hasStopSequences()) {
+ hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getStopSequences().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnthropic}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnthropic)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getStopSequencesFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ baseUrl_ = "";
+ maxTokens_ = 0L;
+ model_ = "";
+ temperature_ = 0D;
+ topK_ = 0L;
+ topP_ = 0D;
+ stopSequences_ = null;
+ if (stopSequencesBuilder_ != null) {
+ stopSequencesBuilder_.dispose();
+ stopSequencesBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropic_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.baseUrl_ = baseUrl_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.maxTokens_ = maxTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.model_ = model_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.topK_ = topK_;
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.topP_ = topP_;
+ to_bitField0_ |= 0x00000020;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.stopSequences_ = stopSequencesBuilder_ == null
+ ? stopSequences_
+ : stopSequencesBuilder_.build();
+ to_bitField0_ |= 0x00000040;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic.getDefaultInstance()) return this;
+ if (other.hasBaseUrl()) {
+ baseUrl_ = other.baseUrl_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasMaxTokens()) {
+ setMaxTokens(other.getMaxTokens());
+ }
+ if (other.hasModel()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ if (other.hasTopK()) {
+ setTopK(other.getTopK());
+ }
+ if (other.hasTopP()) {
+ setTopP(other.getTopP());
+ }
+ if (other.hasStopSequences()) {
+ mergeStopSequences(other.getStopSequences());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ baseUrl_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ maxTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 33: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 33
+ case 40: {
+ topK_ = input.readInt64();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 49: {
+ topP_ = input.readDouble();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 49
+ case 58: {
+ input.readMessage(
+ getStopSequencesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseUrl() {
+ baseUrl_ = getDefaultInstance().getBaseUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The bytes for baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private long maxTokens_ ;
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @param value The maxTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxTokens(long value) {
+
+ maxTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 4;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double temperature = 4;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 4;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private long topK_ ;
+ /**
+ * optional int64 top_k = 5;
+ * @return Whether the topK field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopK() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional int64 top_k = 5;
+ * @return The topK.
+ */
+ @java.lang.Override
+ public long getTopK() {
+ return topK_;
+ }
+ /**
+ * optional int64 top_k = 5;
+ * @param value The topK to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopK(long value) {
+
+ topK_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 top_k = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopK() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ topK_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private double topP_ ;
+ /**
+ * optional double top_p = 6;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional double top_p = 6;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+ /**
+ * optional double top_p = 6;
+ * @param value The topP to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopP(double value) {
+
+ topP_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double top_p = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopP() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ topP_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> stopSequencesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ * @return Whether the stopSequences field is set.
+ */
+ public boolean hasStopSequences() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ * @return The stopSequences.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() {
+ if (stopSequencesBuilder_ == null) {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ } else {
+ return stopSequencesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ public Builder setStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (stopSequencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stopSequences_ = value;
+ } else {
+ stopSequencesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ public Builder setStopSequences(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (stopSequencesBuilder_ == null) {
+ stopSequences_ = builderForValue.build();
+ } else {
+ stopSequencesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ public Builder mergeStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (stopSequencesBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0) &&
+ stopSequences_ != null &&
+ stopSequences_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getStopSequencesBuilder().mergeFrom(value);
+ } else {
+ stopSequences_ = value;
+ }
+ } else {
+ stopSequencesBuilder_.mergeFrom(value);
+ }
+ if (stopSequences_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ public Builder clearStopSequences() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ stopSequences_ = null;
+ if (stopSequencesBuilder_ != null) {
+ stopSequencesBuilder_.dispose();
+ stopSequencesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getStopSequencesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() {
+ if (stopSequencesBuilder_ != null) {
+ return stopSequencesBuilder_.getMessageOrBuilder();
+ } else {
+ return stopSequences_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>
+ getStopSequencesFieldBuilder() {
+ if (stopSequencesBuilder_ == null) {
+ stopSequencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>(
+ getStopSequences(),
+ getParentForChildren(),
+ isClean());
+ stopSequences_ = null;
+ }
+ return stopSequencesBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAnthropic)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnthropic)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeAnthropic parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropic getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeAnyscaleOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnyscale)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ boolean hasBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ java.lang.String getBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ com.google.protobuf.ByteString
+ getBaseUrlBytes();
+
+ /**
+ * optional string model = 2;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 2;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 2;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional double temperature = 3;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 3;
+ * @return The temperature.
+ */
+ double getTemperature();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnyscale}
+ */
+ public static final class GenerativeAnyscale extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnyscale)
+ GenerativeAnyscaleOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeAnyscale.newBuilder() to construct.
+ private GenerativeAnyscale(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeAnyscale() {
+ baseUrl_ = "";
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeAnyscale();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int BASE_URL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ @java.lang.Override
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 2;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string model = 2;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 2;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 3;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 3;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double temperature = 3;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeDouble(3, temperature_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, temperature_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) obj;
+
+ if (hasBaseUrl() != other.hasBaseUrl()) return false;
+ if (hasBaseUrl()) {
+ if (!getBaseUrl()
+ .equals(other.getBaseUrl())) return false;
+ }
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasBaseUrl()) {
+ hash = (37 * hash) + BASE_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseUrl().hashCode();
+ }
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnyscale}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnyscale)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ baseUrl_ = "";
+ model_ = "";
+ temperature_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscale_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.baseUrl_ = baseUrl_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.model_ = model_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000004;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale.getDefaultInstance()) return this;
+ if (other.hasBaseUrl()) {
+ baseUrl_ = other.baseUrl_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasModel()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ baseUrl_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 25: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseUrl() {
+ baseUrl_ = getDefaultInstance().getBaseUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The bytes for baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 2;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string model = 2;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 2;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 2;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 2;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 3;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double temperature = 3;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 3;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAnyscale)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnyscale)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeAnyscale parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscale getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeAWSOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAWS)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional double temperature = 8;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 8;
+ * @return The temperature.
+ */
+ double getTemperature();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAWS}
+ */
+ public static final class GenerativeAWS extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAWS)
+ GenerativeAWSOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeAWS.newBuilder() to construct.
+ private GenerativeAWS(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeAWS() {
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeAWS();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int MODEL_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 8;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 8;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double temperature = 8;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(8, temperature_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(8, temperature_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) obj;
+
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAWS}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAWS)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ model_ = "";
+ temperature_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWS_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.model_ = model_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS.getDefaultInstance()) return this;
+ if (other.hasModel()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 26: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 26
+ case 65: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 65
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 8;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double temperature = 8;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 8;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAWS)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAWS)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeAWS parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWS getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeCohereOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohere)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ boolean hasBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ java.lang.String getBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ com.google.protobuf.ByteString
+ getBaseUrlBytes();
+
+ /**
+ * optional double frequency_penalty = 2;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ boolean hasFrequencyPenalty();
+ /**
+ * optional double frequency_penalty = 2;
+ * @return The frequencyPenalty.
+ */
+ double getFrequencyPenalty();
+
+ /**
+ * optional int64 max_tokens = 3;
+ * @return Whether the maxTokens field is set.
+ */
+ boolean hasMaxTokens();
+ /**
+ * optional int64 max_tokens = 3;
+ * @return The maxTokens.
+ */
+ long getMaxTokens();
+
+ /**
+ * optional string model = 4;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 4;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 4;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional int64 k = 5;
+ * @return Whether the k field is set.
+ */
+ boolean hasK();
+ /**
+ * optional int64 k = 5;
+ * @return The k.
+ */
+ long getK();
+
+ /**
+ * optional double p = 6;
+ * @return Whether the p field is set.
+ */
+ boolean hasP();
+ /**
+ * optional double p = 6;
+ * @return The p.
+ */
+ double getP();
+
+ /**
+ * optional double presence_penalty = 7;
+ * @return Whether the presencePenalty field is set.
+ */
+ boolean hasPresencePenalty();
+ /**
+ * optional double presence_penalty = 7;
+ * @return The presencePenalty.
+ */
+ double getPresencePenalty();
+
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return Whether the stopSequences field is set.
+ */
+ boolean hasStopSequences();
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return The stopSequences.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences();
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder();
+
+ /**
+ * optional double temperature = 9;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 9;
+ * @return The temperature.
+ */
+ double getTemperature();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohere}
+ */
+ public static final class GenerativeCohere extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohere)
+ GenerativeCohereOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeCohere.newBuilder() to construct.
+ private GenerativeCohere(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeCohere() {
+ baseUrl_ = "";
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeCohere();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int BASE_URL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ @java.lang.Override
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 2;
+ private double frequencyPenalty_ = 0D;
+ /**
+ * optional double frequency_penalty = 2;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasFrequencyPenalty() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double frequency_penalty = 2;
+ * @return The frequencyPenalty.
+ */
+ @java.lang.Override
+ public double getFrequencyPenalty() {
+ return frequencyPenalty_;
+ }
+
+ public static final int MAX_TOKENS_FIELD_NUMBER = 3;
+ private long maxTokens_ = 0L;
+ /**
+ * optional int64 max_tokens = 3;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 3;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 4;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional string model = 4;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 4;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int K_FIELD_NUMBER = 5;
+ private long k_ = 0L;
+ /**
+ * optional int64 k = 5;
+ * @return Whether the k field is set.
+ */
+ @java.lang.Override
+ public boolean hasK() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional int64 k = 5;
+ * @return The k.
+ */
+ @java.lang.Override
+ public long getK() {
+ return k_;
+ }
+
+ public static final int P_FIELD_NUMBER = 6;
+ private double p_ = 0D;
+ /**
+ * optional double p = 6;
+ * @return Whether the p field is set.
+ */
+ @java.lang.Override
+ public boolean hasP() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional double p = 6;
+ * @return The p.
+ */
+ @java.lang.Override
+ public double getP() {
+ return p_;
+ }
+
+ public static final int PRESENCE_PENALTY_FIELD_NUMBER = 7;
+ private double presencePenalty_ = 0D;
+ /**
+ * optional double presence_penalty = 7;
+ * @return Whether the presencePenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasPresencePenalty() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional double presence_penalty = 7;
+ * @return The presencePenalty.
+ */
+ @java.lang.Override
+ public double getPresencePenalty() {
+ return presencePenalty_;
+ }
+
+ public static final int STOP_SEQUENCES_FIELD_NUMBER = 8;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_;
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return Whether the stopSequences field is set.
+ */
+ @java.lang.Override
+ public boolean hasStopSequences() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return The stopSequences.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 9;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 9;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * optional double temperature = 9;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(2, frequencyPenalty_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt64(3, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, model_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt64(5, k_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeDouble(6, p_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeDouble(7, presencePenalty_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeMessage(8, getStopSequences());
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeDouble(9, temperature_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, frequencyPenalty_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(5, k_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(6, p_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(7, presencePenalty_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, getStopSequences());
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(9, temperature_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) obj;
+
+ if (hasBaseUrl() != other.hasBaseUrl()) return false;
+ if (hasBaseUrl()) {
+ if (!getBaseUrl()
+ .equals(other.getBaseUrl())) return false;
+ }
+ if (hasFrequencyPenalty() != other.hasFrequencyPenalty()) return false;
+ if (hasFrequencyPenalty()) {
+ if (java.lang.Double.doubleToLongBits(getFrequencyPenalty())
+ != java.lang.Double.doubleToLongBits(
+ other.getFrequencyPenalty())) return false;
+ }
+ if (hasMaxTokens() != other.hasMaxTokens()) return false;
+ if (hasMaxTokens()) {
+ if (getMaxTokens()
+ != other.getMaxTokens()) return false;
+ }
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasK() != other.hasK()) return false;
+ if (hasK()) {
+ if (getK()
+ != other.getK()) return false;
+ }
+ if (hasP() != other.hasP()) return false;
+ if (hasP()) {
+ if (java.lang.Double.doubleToLongBits(getP())
+ != java.lang.Double.doubleToLongBits(
+ other.getP())) return false;
+ }
+ if (hasPresencePenalty() != other.hasPresencePenalty()) return false;
+ if (hasPresencePenalty()) {
+ if (java.lang.Double.doubleToLongBits(getPresencePenalty())
+ != java.lang.Double.doubleToLongBits(
+ other.getPresencePenalty())) return false;
+ }
+ if (hasStopSequences() != other.hasStopSequences()) return false;
+ if (hasStopSequences()) {
+ if (!getStopSequences()
+ .equals(other.getStopSequences())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasBaseUrl()) {
+ hash = (37 * hash) + BASE_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseUrl().hashCode();
+ }
+ if (hasFrequencyPenalty()) {
+ hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getFrequencyPenalty()));
+ }
+ if (hasMaxTokens()) {
+ hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxTokens());
+ }
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasK()) {
+ hash = (37 * hash) + K_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getK());
+ }
+ if (hasP()) {
+ hash = (37 * hash) + P_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getP()));
+ }
+ if (hasPresencePenalty()) {
+ hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getPresencePenalty()));
+ }
+ if (hasStopSequences()) {
+ hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getStopSequences().hashCode();
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohere}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohere)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getStopSequencesFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ baseUrl_ = "";
+ frequencyPenalty_ = 0D;
+ maxTokens_ = 0L;
+ model_ = "";
+ k_ = 0L;
+ p_ = 0D;
+ presencePenalty_ = 0D;
+ stopSequences_ = null;
+ if (stopSequencesBuilder_ != null) {
+ stopSequencesBuilder_.dispose();
+ stopSequencesBuilder_ = null;
+ }
+ temperature_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohere_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.baseUrl_ = baseUrl_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.frequencyPenalty_ = frequencyPenalty_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.maxTokens_ = maxTokens_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.model_ = model_;
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.k_ = k_;
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.p_ = p_;
+ to_bitField0_ |= 0x00000020;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.presencePenalty_ = presencePenalty_;
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.stopSequences_ = stopSequencesBuilder_ == null
+ ? stopSequences_
+ : stopSequencesBuilder_.build();
+ to_bitField0_ |= 0x00000080;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000100;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere.getDefaultInstance()) return this;
+ if (other.hasBaseUrl()) {
+ baseUrl_ = other.baseUrl_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasFrequencyPenalty()) {
+ setFrequencyPenalty(other.getFrequencyPenalty());
+ }
+ if (other.hasMaxTokens()) {
+ setMaxTokens(other.getMaxTokens());
+ }
+ if (other.hasModel()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (other.hasK()) {
+ setK(other.getK());
+ }
+ if (other.hasP()) {
+ setP(other.getP());
+ }
+ if (other.hasPresencePenalty()) {
+ setPresencePenalty(other.getPresencePenalty());
+ }
+ if (other.hasStopSequences()) {
+ mergeStopSequences(other.getStopSequences());
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ baseUrl_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 17: {
+ frequencyPenalty_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 24: {
+ maxTokens_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 34: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 40: {
+ k_ = input.readInt64();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 49: {
+ p_ = input.readDouble();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 49
+ case 57: {
+ presencePenalty_ = input.readDouble();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 57
+ case 66: {
+ input.readMessage(
+ getStopSequencesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ case 73: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 73
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseUrl() {
+ baseUrl_ = getDefaultInstance().getBaseUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The bytes for baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private double frequencyPenalty_ ;
+ /**
+ * optional double frequency_penalty = 2;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasFrequencyPenalty() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double frequency_penalty = 2;
+ * @return The frequencyPenalty.
+ */
+ @java.lang.Override
+ public double getFrequencyPenalty() {
+ return frequencyPenalty_;
+ }
+ /**
+ * optional double frequency_penalty = 2;
+ * @param value The frequencyPenalty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFrequencyPenalty(double value) {
+
+ frequencyPenalty_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double frequency_penalty = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearFrequencyPenalty() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ frequencyPenalty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private long maxTokens_ ;
+ /**
+ * optional int64 max_tokens = 3;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 3;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+ /**
+ * optional int64 max_tokens = 3;
+ * @param value The maxTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxTokens(long value) {
+
+ maxTokens_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 max_tokens = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxTokens() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ maxTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 4;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional string model = 4;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 4;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 4;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 4;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private long k_ ;
+ /**
+ * optional int64 k = 5;
+ * @return Whether the k field is set.
+ */
+ @java.lang.Override
+ public boolean hasK() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional int64 k = 5;
+ * @return The k.
+ */
+ @java.lang.Override
+ public long getK() {
+ return k_;
+ }
+ /**
+ * optional int64 k = 5;
+ * @param value The k to set.
+ * @return This builder for chaining.
+ */
+ public Builder setK(long value) {
+
+ k_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 k = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearK() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ k_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private double p_ ;
+ /**
+ * optional double p = 6;
+ * @return Whether the p field is set.
+ */
+ @java.lang.Override
+ public boolean hasP() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional double p = 6;
+ * @return The p.
+ */
+ @java.lang.Override
+ public double getP() {
+ return p_;
+ }
+ /**
+ * optional double p = 6;
+ * @param value The p to set.
+ * @return This builder for chaining.
+ */
+ public Builder setP(double value) {
+
+ p_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double p = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearP() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ p_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double presencePenalty_ ;
+ /**
+ * optional double presence_penalty = 7;
+ * @return Whether the presencePenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasPresencePenalty() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional double presence_penalty = 7;
+ * @return The presencePenalty.
+ */
+ @java.lang.Override
+ public double getPresencePenalty() {
+ return presencePenalty_;
+ }
+ /**
+ * optional double presence_penalty = 7;
+ * @param value The presencePenalty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPresencePenalty(double value) {
+
+ presencePenalty_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double presence_penalty = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearPresencePenalty() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ presencePenalty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> stopSequencesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return Whether the stopSequences field is set.
+ */
+ public boolean hasStopSequences() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return The stopSequences.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() {
+ if (stopSequencesBuilder_ == null) {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ } else {
+ return stopSequencesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public Builder setStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (stopSequencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stopSequences_ = value;
+ } else {
+ stopSequencesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public Builder setStopSequences(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (stopSequencesBuilder_ == null) {
+ stopSequences_ = builderForValue.build();
+ } else {
+ stopSequencesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public Builder mergeStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (stopSequencesBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0) &&
+ stopSequences_ != null &&
+ stopSequences_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getStopSequencesBuilder().mergeFrom(value);
+ } else {
+ stopSequences_ = value;
+ }
+ } else {
+ stopSequencesBuilder_.mergeFrom(value);
+ }
+ if (stopSequences_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public Builder clearStopSequences() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ stopSequences_ = null;
+ if (stopSequencesBuilder_ != null) {
+ stopSequencesBuilder_.dispose();
+ stopSequencesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getStopSequencesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() {
+ if (stopSequencesBuilder_ != null) {
+ return stopSequencesBuilder_.getMessageOrBuilder();
+ } else {
+ return stopSequences_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>
+ getStopSequencesFieldBuilder() {
+ if (stopSequencesBuilder_ == null) {
+ stopSequencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>(
+ getStopSequences(),
+ getParentForChildren(),
+ isClean());
+ stopSequences_ = null;
+ }
+ return stopSequencesBuilder_;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 9;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * optional double temperature = 9;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 9;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohere)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohere)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeCohere parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohere getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeDummyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDummy)
+ com.google.protobuf.MessageOrBuilder {
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeDummy}
+ */
+ public static final class GenerativeDummy extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDummy)
+ GenerativeDummyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeDummy.newBuilder() to construct.
+ private GenerativeDummy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeDummy() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeDummy();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) obj;
+
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeDummy}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDummy)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummy_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy(this);
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy.getDefaultInstance()) return this;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeDummy)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDummy)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeDummy parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummy getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeMistralOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMistral)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ boolean hasBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ java.lang.String getBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ com.google.protobuf.ByteString
+ getBaseUrlBytes();
+
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ boolean hasMaxTokens();
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ long getMaxTokens();
+
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional double temperature = 4;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 4;
+ * @return The temperature.
+ */
+ double getTemperature();
+
+ /**
+ * optional double top_p = 5;
+ * @return Whether the topP field is set.
+ */
+ boolean hasTopP();
+ /**
+ * optional double top_p = 5;
+ * @return The topP.
+ */
+ double getTopP();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeMistral}
+ */
+ public static final class GenerativeMistral extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeMistral)
+ GenerativeMistralOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeMistral.newBuilder() to construct.
+ private GenerativeMistral(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeMistral() {
+ baseUrl_ = "";
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeMistral();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int BASE_URL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ @java.lang.Override
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MAX_TOKENS_FIELD_NUMBER = 2;
+ private long maxTokens_ = 0L;
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 4;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 4;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double temperature = 4;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ public static final int TOP_P_FIELD_NUMBER = 5;
+ private double topP_ = 0D;
+ /**
+ * optional double top_p = 5;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional double top_p = 5;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeDouble(4, temperature_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeDouble(5, topP_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(4, temperature_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(5, topP_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) obj;
+
+ if (hasBaseUrl() != other.hasBaseUrl()) return false;
+ if (hasBaseUrl()) {
+ if (!getBaseUrl()
+ .equals(other.getBaseUrl())) return false;
+ }
+ if (hasMaxTokens() != other.hasMaxTokens()) return false;
+ if (hasMaxTokens()) {
+ if (getMaxTokens()
+ != other.getMaxTokens()) return false;
+ }
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (hasTopP() != other.hasTopP()) return false;
+ if (hasTopP()) {
+ if (java.lang.Double.doubleToLongBits(getTopP())
+ != java.lang.Double.doubleToLongBits(
+ other.getTopP())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasBaseUrl()) {
+ hash = (37 * hash) + BASE_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseUrl().hashCode();
+ }
+ if (hasMaxTokens()) {
+ hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxTokens());
+ }
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ if (hasTopP()) {
+ hash = (37 * hash) + TOP_P_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTopP()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeMistral}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeMistral)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ baseUrl_ = "";
+ maxTokens_ = 0L;
+ model_ = "";
+ temperature_ = 0D;
+ topP_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistral_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.baseUrl_ = baseUrl_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.maxTokens_ = maxTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.model_ = model_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.topP_ = topP_;
+ to_bitField0_ |= 0x00000010;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral.getDefaultInstance()) return this;
+ if (other.hasBaseUrl()) {
+ baseUrl_ = other.baseUrl_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasMaxTokens()) {
+ setMaxTokens(other.getMaxTokens());
+ }
+ if (other.hasModel()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ if (other.hasTopP()) {
+ setTopP(other.getTopP());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ baseUrl_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ maxTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 33: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 33
+ case 41: {
+ topP_ = input.readDouble();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 41
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseUrl() {
+ baseUrl_ = getDefaultInstance().getBaseUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The bytes for baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private long maxTokens_ ;
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @param value The maxTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxTokens(long value) {
+
+ maxTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 4;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double temperature = 4;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 4;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double topP_ ;
+ /**
+ * optional double top_p = 5;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional double top_p = 5;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+ /**
+ * optional double top_p = 5;
+ * @param value The topP to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopP(double value) {
+
+ topP_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double top_p = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopP() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ topP_ = 0D;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeMistral)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeMistral)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeMistral parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistral getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeOctoAIOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOctoAI)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ boolean hasBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ java.lang.String getBaseUrl();
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ com.google.protobuf.ByteString
+ getBaseUrlBytes();
+
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ boolean hasMaxTokens();
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ long getMaxTokens();
+
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional int64 n = 4;
+ * @return Whether the n field is set.
+ */
+ boolean hasN();
+ /**
+ * optional int64 n = 4;
+ * @return The n.
+ */
+ long getN();
+
+ /**
+ * optional double temperature = 5;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 5;
+ * @return The temperature.
+ */
+ double getTemperature();
+
+ /**
+ * optional double top_p = 6;
+ * @return Whether the topP field is set.
+ */
+ boolean hasTopP();
+ /**
+ * optional double top_p = 6;
+ * @return The topP.
+ */
+ double getTopP();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOctoAI}
+ */
+ public static final class GenerativeOctoAI extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOctoAI)
+ GenerativeOctoAIOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeOctoAI.newBuilder() to construct.
+ private GenerativeOctoAI(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeOctoAI() {
+ baseUrl_ = "";
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeOctoAI();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int BASE_URL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ @java.lang.Override
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MAX_TOKENS_FIELD_NUMBER = 2;
+ private long maxTokens_ = 0L;
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int N_FIELD_NUMBER = 4;
+ private long n_ = 0L;
+ /**
+ * optional int64 n = 4;
+ * @return Whether the n field is set.
+ */
+ @java.lang.Override
+ public boolean hasN() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional int64 n = 4;
+ * @return The n.
+ */
+ @java.lang.Override
+ public long getN() {
+ return n_;
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 5;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 5;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional double temperature = 5;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ public static final int TOP_P_FIELD_NUMBER = 6;
+ private double topP_ = 0D;
+ /**
+ * optional double top_p = 6;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional double top_p = 6;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeInt64(4, n_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeDouble(5, temperature_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeDouble(6, topP_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, baseUrl_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, n_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(5, temperature_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(6, topP_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) obj;
+
+ if (hasBaseUrl() != other.hasBaseUrl()) return false;
+ if (hasBaseUrl()) {
+ if (!getBaseUrl()
+ .equals(other.getBaseUrl())) return false;
+ }
+ if (hasMaxTokens() != other.hasMaxTokens()) return false;
+ if (hasMaxTokens()) {
+ if (getMaxTokens()
+ != other.getMaxTokens()) return false;
+ }
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasN() != other.hasN()) return false;
+ if (hasN()) {
+ if (getN()
+ != other.getN()) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (hasTopP() != other.hasTopP()) return false;
+ if (hasTopP()) {
+ if (java.lang.Double.doubleToLongBits(getTopP())
+ != java.lang.Double.doubleToLongBits(
+ other.getTopP())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasBaseUrl()) {
+ hash = (37 * hash) + BASE_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseUrl().hashCode();
+ }
+ if (hasMaxTokens()) {
+ hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxTokens());
+ }
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasN()) {
+ hash = (37 * hash) + N_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getN());
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ if (hasTopP()) {
+ hash = (37 * hash) + TOP_P_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTopP()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOctoAI}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOctoAI)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ baseUrl_ = "";
+ maxTokens_ = 0L;
+ model_ = "";
+ n_ = 0L;
+ temperature_ = 0D;
+ topP_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAI_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.baseUrl_ = baseUrl_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.maxTokens_ = maxTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.model_ = model_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.n_ = n_;
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.topP_ = topP_;
+ to_bitField0_ |= 0x00000020;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI.getDefaultInstance()) return this;
+ if (other.hasBaseUrl()) {
+ baseUrl_ = other.baseUrl_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasMaxTokens()) {
+ setMaxTokens(other.getMaxTokens());
+ }
+ if (other.hasModel()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.hasN()) {
+ setN(other.getN());
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ if (other.hasTopP()) {
+ setTopP(other.getTopP());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ baseUrl_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ maxTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32: {
+ n_ = input.readInt64();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ case 41: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 41
+ case 49: {
+ topP_ = input.readDouble();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 49
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object baseUrl_ = "";
+ /**
+ * optional string base_url = 1;
+ * @return Whether the baseUrl field is set.
+ */
+ public boolean hasBaseUrl() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The baseUrl.
+ */
+ public java.lang.String getBaseUrl() {
+ java.lang.Object ref = baseUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @return The bytes for baseUrl.
+ */
+ public com.google.protobuf.ByteString
+ getBaseUrlBytes() {
+ java.lang.Object ref = baseUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ baseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseUrl() {
+ baseUrl_ = getDefaultInstance().getBaseUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string base_url = 1;
+ * @param value The bytes for baseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ baseUrl_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private long maxTokens_ ;
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @param value The maxTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxTokens(long value) {
+
+ maxTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private long n_ ;
+ /**
+ * optional int64 n = 4;
+ * @return Whether the n field is set.
+ */
+ @java.lang.Override
+ public boolean hasN() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional int64 n = 4;
+ * @return The n.
+ */
+ @java.lang.Override
+ public long getN() {
+ return n_;
+ }
+ /**
+ * optional int64 n = 4;
+ * @param value The n to set.
+ * @return This builder for chaining.
+ */
+ public Builder setN(long value) {
+
+ n_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 n = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearN() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ n_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 5;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional double temperature = 5;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 5;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double topP_ ;
+ /**
+ * optional double top_p = 6;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional double top_p = 6;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+ /**
+ * optional double top_p = 6;
+ * @param value The topP to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopP(double value) {
+
+ topP_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double top_p = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopP() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ topP_ = 0D;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOctoAI)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAI)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeOctoAI parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAI getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeOllamaOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOllama)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string api_endpoint = 1;
+ * @return Whether the apiEndpoint field is set.
+ */
+ boolean hasApiEndpoint();
+ /**
+ * optional string api_endpoint = 1;
+ * @return The apiEndpoint.
+ */
+ java.lang.String getApiEndpoint();
+ /**
+ * optional string api_endpoint = 1;
+ * @return The bytes for apiEndpoint.
+ */
+ com.google.protobuf.ByteString
+ getApiEndpointBytes();
+
+ /**
+ * optional string model = 2;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 2;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 2;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional double temperature = 3;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 3;
+ * @return The temperature.
+ */
+ double getTemperature();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOllama}
+ */
+ public static final class GenerativeOllama extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOllama)
+ GenerativeOllamaOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeOllama.newBuilder() to construct.
+ private GenerativeOllama(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeOllama() {
+ apiEndpoint_ = "";
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeOllama();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int API_ENDPOINT_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object apiEndpoint_ = "";
+ /**
+ * optional string api_endpoint = 1;
+ * @return Whether the apiEndpoint field is set.
+ */
+ @java.lang.Override
+ public boolean hasApiEndpoint() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string api_endpoint = 1;
+ * @return The apiEndpoint.
+ */
+ @java.lang.Override
+ public java.lang.String getApiEndpoint() {
+ java.lang.Object ref = apiEndpoint_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiEndpoint_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string api_endpoint = 1;
+ * @return The bytes for apiEndpoint.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getApiEndpointBytes() {
+ java.lang.Object ref = apiEndpoint_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ apiEndpoint_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 2;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string model = 2;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 2;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 3;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 3;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double temperature = 3;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiEndpoint_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeDouble(3, temperature_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiEndpoint_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, temperature_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) obj;
+
+ if (hasApiEndpoint() != other.hasApiEndpoint()) return false;
+ if (hasApiEndpoint()) {
+ if (!getApiEndpoint()
+ .equals(other.getApiEndpoint())) return false;
+ }
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasApiEndpoint()) {
+ hash = (37 * hash) + API_ENDPOINT_FIELD_NUMBER;
+ hash = (53 * hash) + getApiEndpoint().hashCode();
+ }
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOllama}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOllama)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ apiEndpoint_ = "";
+ model_ = "";
+ temperature_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllama_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.apiEndpoint_ = apiEndpoint_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.model_ = model_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000004;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama.getDefaultInstance()) return this;
+ if (other.hasApiEndpoint()) {
+ apiEndpoint_ = other.apiEndpoint_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasModel()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ apiEndpoint_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 25: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object apiEndpoint_ = "";
+ /**
+ * optional string api_endpoint = 1;
+ * @return Whether the apiEndpoint field is set.
+ */
+ public boolean hasApiEndpoint() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string api_endpoint = 1;
+ * @return The apiEndpoint.
+ */
+ public java.lang.String getApiEndpoint() {
+ java.lang.Object ref = apiEndpoint_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiEndpoint_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string api_endpoint = 1;
+ * @return The bytes for apiEndpoint.
+ */
+ public com.google.protobuf.ByteString
+ getApiEndpointBytes() {
+ java.lang.Object ref = apiEndpoint_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ apiEndpoint_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string api_endpoint = 1;
+ * @param value The apiEndpoint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setApiEndpoint(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ apiEndpoint_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string api_endpoint = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearApiEndpoint() {
+ apiEndpoint_ = getDefaultInstance().getApiEndpoint();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string api_endpoint = 1;
+ * @param value The bytes for apiEndpoint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setApiEndpointBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ apiEndpoint_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 2;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional string model = 2;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 2;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 2;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 2;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 3;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double temperature = 3;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 3;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOllama)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOllama)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeOllama parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllama getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeOpenAIOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOpenAI)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional double frequency_penalty = 1;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ boolean hasFrequencyPenalty();
+ /**
+ * optional double frequency_penalty = 1;
+ * @return The frequencyPenalty.
+ */
+ double getFrequencyPenalty();
+
+ /**
+ * optional bool log_probs = 2;
+ * @return Whether the logProbs field is set.
+ */
+ boolean hasLogProbs();
+ /**
+ * optional bool log_probs = 2;
+ * @return The logProbs.
+ */
+ boolean getLogProbs();
+
+ /**
+ * optional int64 max_tokens = 3;
+ * @return Whether the maxTokens field is set.
+ */
+ boolean hasMaxTokens();
+ /**
+ * optional int64 max_tokens = 3;
+ * @return The maxTokens.
+ */
+ long getMaxTokens();
+
+ /**
+ * string model = 4;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * string model = 4;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional int64 n = 5;
+ * @return Whether the n field is set.
+ */
+ boolean hasN();
+ /**
+ * optional int64 n = 5;
+ * @return The n.
+ */
+ long getN();
+
+ /**
+ * optional double presence_penalty = 6;
+ * @return Whether the presencePenalty field is set.
+ */
+ boolean hasPresencePenalty();
+ /**
+ * optional double presence_penalty = 6;
+ * @return The presencePenalty.
+ */
+ double getPresencePenalty();
+
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ * @return Whether the stop field is set.
+ */
+ boolean hasStop();
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ * @return The stop.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop();
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder();
+
+ /**
+ * optional double temperature = 8;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 8;
+ * @return The temperature.
+ */
+ double getTemperature();
+
+ /**
+ * optional double top_p = 9;
+ * @return Whether the topP field is set.
+ */
+ boolean hasTopP();
+ /**
+ * optional double top_p = 9;
+ * @return The topP.
+ */
+ double getTopP();
+
+ /**
+ * optional int64 top_log_probs = 10;
+ * @return Whether the topLogProbs field is set.
+ */
+ boolean hasTopLogProbs();
+ /**
+ * optional int64 top_log_probs = 10;
+ * @return The topLogProbs.
+ */
+ long getTopLogProbs();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOpenAI}
+ */
+ public static final class GenerativeOpenAI extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAI)
+ GenerativeOpenAIOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeOpenAI.newBuilder() to construct.
+ private GenerativeOpenAI(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeOpenAI() {
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeOpenAI();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 1;
+ private double frequencyPenalty_ = 0D;
+ /**
+ * optional double frequency_penalty = 1;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasFrequencyPenalty() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double frequency_penalty = 1;
+ * @return The frequencyPenalty.
+ */
+ @java.lang.Override
+ public double getFrequencyPenalty() {
+ return frequencyPenalty_;
+ }
+
+ public static final int LOG_PROBS_FIELD_NUMBER = 2;
+ private boolean logProbs_ = false;
+ /**
+ * optional bool log_probs = 2;
+ * @return Whether the logProbs field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogProbs() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional bool log_probs = 2;
+ * @return The logProbs.
+ */
+ @java.lang.Override
+ public boolean getLogProbs() {
+ return logProbs_;
+ }
+
+ public static final int MAX_TOKENS_FIELD_NUMBER = 3;
+ private long maxTokens_ = 0L;
+ /**
+ * optional int64 max_tokens = 3;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 3;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * string model = 4;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * string model = 4;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int N_FIELD_NUMBER = 5;
+ private long n_ = 0L;
+ /**
+ * optional int64 n = 5;
+ * @return Whether the n field is set.
+ */
+ @java.lang.Override
+ public boolean hasN() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional int64 n = 5;
+ * @return The n.
+ */
+ @java.lang.Override
+ public long getN() {
+ return n_;
+ }
+
+ public static final int PRESENCE_PENALTY_FIELD_NUMBER = 6;
+ private double presencePenalty_ = 0D;
+ /**
+ * optional double presence_penalty = 6;
+ * @return Whether the presencePenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasPresencePenalty() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional double presence_penalty = 6;
+ * @return The presencePenalty.
+ */
+ @java.lang.Override
+ public double getPresencePenalty() {
+ return presencePenalty_;
+ }
+
+ public static final int STOP_FIELD_NUMBER = 7;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stop_;
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ * @return Whether the stop field is set.
+ */
+ @java.lang.Override
+ public boolean hasStop() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ * @return The stop.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop() {
+ return stop_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder() {
+ return stop_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_;
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 8;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 8;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional double temperature = 8;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ public static final int TOP_P_FIELD_NUMBER = 9;
+ private double topP_ = 0D;
+ /**
+ * optional double top_p = 9;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional double top_p = 9;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+
+ public static final int TOP_LOG_PROBS_FIELD_NUMBER = 10;
+ private long topLogProbs_ = 0L;
+ /**
+ * optional int64 top_log_probs = 10;
+ * @return Whether the topLogProbs field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopLogProbs() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * optional int64 top_log_probs = 10;
+ * @return The topLogProbs.
+ */
+ @java.lang.Override
+ public long getTopLogProbs() {
+ return topLogProbs_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeDouble(1, frequencyPenalty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeBool(2, logProbs_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt64(3, maxTokens_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeInt64(5, n_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeDouble(6, presencePenalty_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(7, getStop());
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeDouble(8, temperature_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeDouble(9, topP_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeInt64(10, topLogProbs_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, frequencyPenalty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, logProbs_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, maxTokens_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(5, n_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(6, presencePenalty_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getStop());
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(8, temperature_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(9, topP_);
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(10, topLogProbs_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) obj;
+
+ if (hasFrequencyPenalty() != other.hasFrequencyPenalty()) return false;
+ if (hasFrequencyPenalty()) {
+ if (java.lang.Double.doubleToLongBits(getFrequencyPenalty())
+ != java.lang.Double.doubleToLongBits(
+ other.getFrequencyPenalty())) return false;
+ }
+ if (hasLogProbs() != other.hasLogProbs()) return false;
+ if (hasLogProbs()) {
+ if (getLogProbs()
+ != other.getLogProbs()) return false;
+ }
+ if (hasMaxTokens() != other.hasMaxTokens()) return false;
+ if (hasMaxTokens()) {
+ if (getMaxTokens()
+ != other.getMaxTokens()) return false;
+ }
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ if (hasN() != other.hasN()) return false;
+ if (hasN()) {
+ if (getN()
+ != other.getN()) return false;
+ }
+ if (hasPresencePenalty() != other.hasPresencePenalty()) return false;
+ if (hasPresencePenalty()) {
+ if (java.lang.Double.doubleToLongBits(getPresencePenalty())
+ != java.lang.Double.doubleToLongBits(
+ other.getPresencePenalty())) return false;
+ }
+ if (hasStop() != other.hasStop()) return false;
+ if (hasStop()) {
+ if (!getStop()
+ .equals(other.getStop())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (hasTopP() != other.hasTopP()) return false;
+ if (hasTopP()) {
+ if (java.lang.Double.doubleToLongBits(getTopP())
+ != java.lang.Double.doubleToLongBits(
+ other.getTopP())) return false;
+ }
+ if (hasTopLogProbs() != other.hasTopLogProbs()) return false;
+ if (hasTopLogProbs()) {
+ if (getTopLogProbs()
+ != other.getTopLogProbs()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasFrequencyPenalty()) {
+ hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getFrequencyPenalty()));
+ }
+ if (hasLogProbs()) {
+ hash = (37 * hash) + LOG_PROBS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLogProbs());
+ }
+ if (hasMaxTokens()) {
+ hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxTokens());
+ }
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ if (hasN()) {
+ hash = (37 * hash) + N_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getN());
+ }
+ if (hasPresencePenalty()) {
+ hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getPresencePenalty()));
+ }
+ if (hasStop()) {
+ hash = (37 * hash) + STOP_FIELD_NUMBER;
+ hash = (53 * hash) + getStop().hashCode();
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ if (hasTopP()) {
+ hash = (37 * hash) + TOP_P_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTopP()));
+ }
+ if (hasTopLogProbs()) {
+ hash = (37 * hash) + TOP_LOG_PROBS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTopLogProbs());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOpenAI}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOpenAI)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getStopFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ frequencyPenalty_ = 0D;
+ logProbs_ = false;
+ maxTokens_ = 0L;
+ model_ = "";
+ n_ = 0L;
+ presencePenalty_ = 0D;
+ stop_ = null;
+ if (stopBuilder_ != null) {
+ stopBuilder_.dispose();
+ stopBuilder_ = null;
+ }
+ temperature_ = 0D;
+ topP_ = 0D;
+ topLogProbs_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAI_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.frequencyPenalty_ = frequencyPenalty_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.logProbs_ = logProbs_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.maxTokens_ = maxTokens_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.model_ = model_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.n_ = n_;
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.presencePenalty_ = presencePenalty_;
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.stop_ = stopBuilder_ == null
+ ? stop_
+ : stopBuilder_.build();
+ to_bitField0_ |= 0x00000020;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.topP_ = topP_;
+ to_bitField0_ |= 0x00000080;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.topLogProbs_ = topLogProbs_;
+ to_bitField0_ |= 0x00000100;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI.getDefaultInstance()) return this;
+ if (other.hasFrequencyPenalty()) {
+ setFrequencyPenalty(other.getFrequencyPenalty());
+ }
+ if (other.hasLogProbs()) {
+ setLogProbs(other.getLogProbs());
+ }
+ if (other.hasMaxTokens()) {
+ setMaxTokens(other.getMaxTokens());
+ }
+ if (!other.getModel().isEmpty()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (other.hasN()) {
+ setN(other.getN());
+ }
+ if (other.hasPresencePenalty()) {
+ setPresencePenalty(other.getPresencePenalty());
+ }
+ if (other.hasStop()) {
+ mergeStop(other.getStop());
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ if (other.hasTopP()) {
+ setTopP(other.getTopP());
+ }
+ if (other.hasTopLogProbs()) {
+ setTopLogProbs(other.getTopLogProbs());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 9: {
+ frequencyPenalty_ = input.readDouble();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 9
+ case 16: {
+ logProbs_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ maxTokens_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 34: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 40: {
+ n_ = input.readInt64();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 49: {
+ presencePenalty_ = input.readDouble();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 49
+ case 58: {
+ input.readMessage(
+ getStopFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 65: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 65
+ case 73: {
+ topP_ = input.readDouble();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 73
+ case 80: {
+ topLogProbs_ = input.readInt64();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 80
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private double frequencyPenalty_ ;
+ /**
+ * optional double frequency_penalty = 1;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasFrequencyPenalty() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double frequency_penalty = 1;
+ * @return The frequencyPenalty.
+ */
+ @java.lang.Override
+ public double getFrequencyPenalty() {
+ return frequencyPenalty_;
+ }
+ /**
+ * optional double frequency_penalty = 1;
+ * @param value The frequencyPenalty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFrequencyPenalty(double value) {
+
+ frequencyPenalty_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double frequency_penalty = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearFrequencyPenalty() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ frequencyPenalty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private boolean logProbs_ ;
+ /**
+ * optional bool log_probs = 2;
+ * @return Whether the logProbs field is set.
+ */
+ @java.lang.Override
+ public boolean hasLogProbs() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional bool log_probs = 2;
+ * @return The logProbs.
+ */
+ @java.lang.Override
+ public boolean getLogProbs() {
+ return logProbs_;
+ }
+ /**
+ * optional bool log_probs = 2;
+ * @param value The logProbs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLogProbs(boolean value) {
+
+ logProbs_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool log_probs = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearLogProbs() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ logProbs_ = false;
+ onChanged();
+ return this;
+ }
+
+ private long maxTokens_ ;
+ /**
+ * optional int64 max_tokens = 3;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 3;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+ /**
+ * optional int64 max_tokens = 3;
+ * @param value The maxTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxTokens(long value) {
+
+ maxTokens_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 max_tokens = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxTokens() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ maxTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * string model = 4;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string model = 4;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string model = 4;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string model = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string model = 4;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private long n_ ;
+ /**
+ * optional int64 n = 5;
+ * @return Whether the n field is set.
+ */
+ @java.lang.Override
+ public boolean hasN() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional int64 n = 5;
+ * @return The n.
+ */
+ @java.lang.Override
+ public long getN() {
+ return n_;
+ }
+ /**
+ * optional int64 n = 5;
+ * @param value The n to set.
+ * @return This builder for chaining.
+ */
+ public Builder setN(long value) {
+
+ n_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 n = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearN() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ n_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private double presencePenalty_ ;
+ /**
+ * optional double presence_penalty = 6;
+ * @return Whether the presencePenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasPresencePenalty() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional double presence_penalty = 6;
+ * @return The presencePenalty.
+ */
+ @java.lang.Override
+ public double getPresencePenalty() {
+ return presencePenalty_;
+ }
+ /**
+ * optional double presence_penalty = 6;
+ * @param value The presencePenalty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPresencePenalty(double value) {
+
+ presencePenalty_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double presence_penalty = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearPresencePenalty() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ presencePenalty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stop_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> stopBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ * @return Whether the stop field is set.
+ */
+ public boolean hasStop() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ * @return The stop.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStop() {
+ if (stopBuilder_ == null) {
+ return stop_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_;
+ } else {
+ return stopBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ public Builder setStop(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (stopBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stop_ = value;
+ } else {
+ stopBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ public Builder setStop(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (stopBuilder_ == null) {
+ stop_ = builderForValue.build();
+ } else {
+ stopBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ public Builder mergeStop(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (stopBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0) &&
+ stop_ != null &&
+ stop_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getStopBuilder().mergeFrom(value);
+ } else {
+ stop_ = value;
+ }
+ } else {
+ stopBuilder_.mergeFrom(value);
+ }
+ if (stop_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ public Builder clearStop() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ stop_ = null;
+ if (stopBuilder_ != null) {
+ stopBuilder_.dispose();
+ stopBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getStopFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopOrBuilder() {
+ if (stopBuilder_ != null) {
+ return stopBuilder_.getMessageOrBuilder();
+ } else {
+ return stop_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stop_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>
+ getStopFieldBuilder() {
+ if (stopBuilder_ == null) {
+ stopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>(
+ getStop(),
+ getParentForChildren(),
+ isClean());
+ stop_ = null;
+ }
+ return stopBuilder_;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 8;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional double temperature = 8;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 8;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double topP_ ;
+ /**
+ * optional double top_p = 9;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * optional double top_p = 9;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+ /**
+ * optional double top_p = 9;
+ * @param value The topP to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopP(double value) {
+
+ topP_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double top_p = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopP() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ topP_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private long topLogProbs_ ;
+ /**
+ * optional int64 top_log_probs = 10;
+ * @return Whether the topLogProbs field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopLogProbs() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional int64 top_log_probs = 10;
+ * @return The topLogProbs.
+ */
+ @java.lang.Override
+ public long getTopLogProbs() {
+ return topLogProbs_;
+ }
+ /**
+ * optional int64 top_log_probs = 10;
+ * @param value The topLogProbs to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopLogProbs(long value) {
+
+ topLogProbs_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 top_log_probs = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopLogProbs() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ topLogProbs_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOpenAI)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOpenAI)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeOpenAI parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAI getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeGoogleOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogle)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional double frequency_penalty = 1;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ boolean hasFrequencyPenalty();
+ /**
+ * optional double frequency_penalty = 1;
+ * @return The frequencyPenalty.
+ */
+ double getFrequencyPenalty();
+
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ boolean hasMaxTokens();
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ long getMaxTokens();
+
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ boolean hasModel();
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ java.lang.String getModel();
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ com.google.protobuf.ByteString
+ getModelBytes();
+
+ /**
+ * optional double presence_penalty = 4;
+ * @return Whether the presencePenalty field is set.
+ */
+ boolean hasPresencePenalty();
+ /**
+ * optional double presence_penalty = 4;
+ * @return The presencePenalty.
+ */
+ double getPresencePenalty();
+
+ /**
+ * optional double temperature = 5;
+ * @return Whether the temperature field is set.
+ */
+ boolean hasTemperature();
+ /**
+ * optional double temperature = 5;
+ * @return The temperature.
+ */
+ double getTemperature();
+
+ /**
+ * optional int64 top_k = 6;
+ * @return Whether the topK field is set.
+ */
+ boolean hasTopK();
+ /**
+ * optional int64 top_k = 6;
+ * @return The topK.
+ */
+ long getTopK();
+
+ /**
+ * optional double top_p = 7;
+ * @return Whether the topP field is set.
+ */
+ boolean hasTopP();
+ /**
+ * optional double top_p = 7;
+ * @return The topP.
+ */
+ double getTopP();
+
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return Whether the stopSequences field is set.
+ */
+ boolean hasStopSequences();
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return The stopSequences.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences();
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogle}
+ */
+ public static final class GenerativeGoogle extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogle)
+ GenerativeGoogleOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeGoogle.newBuilder() to construct.
+ private GenerativeGoogle(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeGoogle() {
+ model_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeGoogle();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int FREQUENCY_PENALTY_FIELD_NUMBER = 1;
+ private double frequencyPenalty_ = 0D;
+ /**
+ * optional double frequency_penalty = 1;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasFrequencyPenalty() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double frequency_penalty = 1;
+ * @return The frequencyPenalty.
+ */
+ @java.lang.Override
+ public double getFrequencyPenalty() {
+ return frequencyPenalty_;
+ }
+
+ public static final int MAX_TOKENS_FIELD_NUMBER = 2;
+ private long maxTokens_ = 0L;
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+
+ public static final int MODEL_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ @java.lang.Override
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ @java.lang.Override
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PRESENCE_PENALTY_FIELD_NUMBER = 4;
+ private double presencePenalty_ = 0D;
+ /**
+ * optional double presence_penalty = 4;
+ * @return Whether the presencePenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasPresencePenalty() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double presence_penalty = 4;
+ * @return The presencePenalty.
+ */
+ @java.lang.Override
+ public double getPresencePenalty() {
+ return presencePenalty_;
+ }
+
+ public static final int TEMPERATURE_FIELD_NUMBER = 5;
+ private double temperature_ = 0D;
+ /**
+ * optional double temperature = 5;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional double temperature = 5;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+
+ public static final int TOP_K_FIELD_NUMBER = 6;
+ private long topK_ = 0L;
+ /**
+ * optional int64 top_k = 6;
+ * @return Whether the topK field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopK() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional int64 top_k = 6;
+ * @return The topK.
+ */
+ @java.lang.Override
+ public long getTopK() {
+ return topK_;
+ }
+
+ public static final int TOP_P_FIELD_NUMBER = 7;
+ private double topP_ = 0D;
+ /**
+ * optional double top_p = 7;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional double top_p = 7;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+
+ public static final int STOP_SEQUENCES_FIELD_NUMBER = 8;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_;
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return Whether the stopSequences field is set.
+ */
+ @java.lang.Override
+ public boolean hasStopSequences() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return The stopSequences.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeDouble(1, frequencyPenalty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeDouble(4, presencePenalty_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeDouble(5, temperature_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeInt64(6, topK_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeDouble(7, topP_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeMessage(8, getStopSequences());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, frequencyPenalty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, maxTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, model_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(4, presencePenalty_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(5, temperature_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(6, topK_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(7, topP_);
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, getStopSequences());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) obj;
+
+ if (hasFrequencyPenalty() != other.hasFrequencyPenalty()) return false;
+ if (hasFrequencyPenalty()) {
+ if (java.lang.Double.doubleToLongBits(getFrequencyPenalty())
+ != java.lang.Double.doubleToLongBits(
+ other.getFrequencyPenalty())) return false;
+ }
+ if (hasMaxTokens() != other.hasMaxTokens()) return false;
+ if (hasMaxTokens()) {
+ if (getMaxTokens()
+ != other.getMaxTokens()) return false;
+ }
+ if (hasModel() != other.hasModel()) return false;
+ if (hasModel()) {
+ if (!getModel()
+ .equals(other.getModel())) return false;
+ }
+ if (hasPresencePenalty() != other.hasPresencePenalty()) return false;
+ if (hasPresencePenalty()) {
+ if (java.lang.Double.doubleToLongBits(getPresencePenalty())
+ != java.lang.Double.doubleToLongBits(
+ other.getPresencePenalty())) return false;
+ }
+ if (hasTemperature() != other.hasTemperature()) return false;
+ if (hasTemperature()) {
+ if (java.lang.Double.doubleToLongBits(getTemperature())
+ != java.lang.Double.doubleToLongBits(
+ other.getTemperature())) return false;
+ }
+ if (hasTopK() != other.hasTopK()) return false;
+ if (hasTopK()) {
+ if (getTopK()
+ != other.getTopK()) return false;
+ }
+ if (hasTopP() != other.hasTopP()) return false;
+ if (hasTopP()) {
+ if (java.lang.Double.doubleToLongBits(getTopP())
+ != java.lang.Double.doubleToLongBits(
+ other.getTopP())) return false;
+ }
+ if (hasStopSequences() != other.hasStopSequences()) return false;
+ if (hasStopSequences()) {
+ if (!getStopSequences()
+ .equals(other.getStopSequences())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasFrequencyPenalty()) {
+ hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getFrequencyPenalty()));
+ }
+ if (hasMaxTokens()) {
+ hash = (37 * hash) + MAX_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getMaxTokens());
+ }
+ if (hasModel()) {
+ hash = (37 * hash) + MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getModel().hashCode();
+ }
+ if (hasPresencePenalty()) {
+ hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getPresencePenalty()));
+ }
+ if (hasTemperature()) {
+ hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTemperature()));
+ }
+ if (hasTopK()) {
+ hash = (37 * hash) + TOP_K_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTopK());
+ }
+ if (hasTopP()) {
+ hash = (37 * hash) + TOP_P_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTopP()));
+ }
+ if (hasStopSequences()) {
+ hash = (37 * hash) + STOP_SEQUENCES_FIELD_NUMBER;
+ hash = (53 * hash) + getStopSequences().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogle}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogle)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getStopSequencesFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ frequencyPenalty_ = 0D;
+ maxTokens_ = 0L;
+ model_ = "";
+ presencePenalty_ = 0D;
+ temperature_ = 0D;
+ topK_ = 0L;
+ topP_ = 0D;
+ stopSequences_ = null;
+ if (stopSequencesBuilder_ != null) {
+ stopSequencesBuilder_.dispose();
+ stopSequencesBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogle_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.frequencyPenalty_ = frequencyPenalty_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.maxTokens_ = maxTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.model_ = model_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.presencePenalty_ = presencePenalty_;
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.temperature_ = temperature_;
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.topK_ = topK_;
+ to_bitField0_ |= 0x00000020;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.topP_ = topP_;
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.stopSequences_ = stopSequencesBuilder_ == null
+ ? stopSequences_
+ : stopSequencesBuilder_.build();
+ to_bitField0_ |= 0x00000080;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle.getDefaultInstance()) return this;
+ if (other.hasFrequencyPenalty()) {
+ setFrequencyPenalty(other.getFrequencyPenalty());
+ }
+ if (other.hasMaxTokens()) {
+ setMaxTokens(other.getMaxTokens());
+ }
+ if (other.hasModel()) {
+ model_ = other.model_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.hasPresencePenalty()) {
+ setPresencePenalty(other.getPresencePenalty());
+ }
+ if (other.hasTemperature()) {
+ setTemperature(other.getTemperature());
+ }
+ if (other.hasTopK()) {
+ setTopK(other.getTopK());
+ }
+ if (other.hasTopP()) {
+ setTopP(other.getTopP());
+ }
+ if (other.hasStopSequences()) {
+ mergeStopSequences(other.getStopSequences());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 9: {
+ frequencyPenalty_ = input.readDouble();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 9
+ case 16: {
+ maxTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ model_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 33: {
+ presencePenalty_ = input.readDouble();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 33
+ case 41: {
+ temperature_ = input.readDouble();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 41
+ case 48: {
+ topK_ = input.readInt64();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 48
+ case 57: {
+ topP_ = input.readDouble();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 57
+ case 66: {
+ input.readMessage(
+ getStopSequencesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private double frequencyPenalty_ ;
+ /**
+ * optional double frequency_penalty = 1;
+ * @return Whether the frequencyPenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasFrequencyPenalty() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double frequency_penalty = 1;
+ * @return The frequencyPenalty.
+ */
+ @java.lang.Override
+ public double getFrequencyPenalty() {
+ return frequencyPenalty_;
+ }
+ /**
+ * optional double frequency_penalty = 1;
+ * @param value The frequencyPenalty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFrequencyPenalty(double value) {
+
+ frequencyPenalty_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double frequency_penalty = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearFrequencyPenalty() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ frequencyPenalty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private long maxTokens_ ;
+ /**
+ * optional int64 max_tokens = 2;
+ * @return Whether the maxTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return The maxTokens.
+ */
+ @java.lang.Override
+ public long getMaxTokens() {
+ return maxTokens_;
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @param value The maxTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxTokens(long value) {
+
+ maxTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 max_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object model_ = "";
+ /**
+ * optional string model = 3;
+ * @return Whether the model field is set.
+ */
+ public boolean hasModel() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string model = 3;
+ * @return The model.
+ */
+ public java.lang.String getModel() {
+ java.lang.Object ref = model_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ model_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @return The bytes for model.
+ */
+ public com.google.protobuf.ByteString
+ getModelBytes() {
+ java.lang.Object ref = model_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ model_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string model = 3;
+ * @param value The model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ model_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearModel() {
+ model_ = getDefaultInstance().getModel();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string model = 3;
+ * @param value The bytes for model to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ model_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private double presencePenalty_ ;
+ /**
+ * optional double presence_penalty = 4;
+ * @return Whether the presencePenalty field is set.
+ */
+ @java.lang.Override
+ public boolean hasPresencePenalty() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double presence_penalty = 4;
+ * @return The presencePenalty.
+ */
+ @java.lang.Override
+ public double getPresencePenalty() {
+ return presencePenalty_;
+ }
+ /**
+ * optional double presence_penalty = 4;
+ * @param value The presencePenalty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPresencePenalty(double value) {
+
+ presencePenalty_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double presence_penalty = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearPresencePenalty() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ presencePenalty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double temperature_ ;
+ /**
+ * optional double temperature = 5;
+ * @return Whether the temperature field is set.
+ */
+ @java.lang.Override
+ public boolean hasTemperature() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional double temperature = 5;
+ * @return The temperature.
+ */
+ @java.lang.Override
+ public double getTemperature() {
+ return temperature_;
+ }
+ /**
+ * optional double temperature = 5;
+ * @param value The temperature to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemperature(double value) {
+
+ temperature_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double temperature = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemperature() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ temperature_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private long topK_ ;
+ /**
+ * optional int64 top_k = 6;
+ * @return Whether the topK field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopK() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional int64 top_k = 6;
+ * @return The topK.
+ */
+ @java.lang.Override
+ public long getTopK() {
+ return topK_;
+ }
+ /**
+ * optional int64 top_k = 6;
+ * @param value The topK to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopK(long value) {
+
+ topK_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 top_k = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopK() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ topK_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private double topP_ ;
+ /**
+ * optional double top_p = 7;
+ * @return Whether the topP field is set.
+ */
+ @java.lang.Override
+ public boolean hasTopP() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional double top_p = 7;
+ * @return The topP.
+ */
+ @java.lang.Override
+ public double getTopP() {
+ return topP_;
+ }
+ /**
+ * optional double top_p = 7;
+ * @param value The topP to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopP(double value) {
+
+ topP_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double top_p = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopP() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ topP_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray stopSequences_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> stopSequencesBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return Whether the stopSequences field is set.
+ */
+ public boolean hasStopSequences() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ * @return The stopSequences.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getStopSequences() {
+ if (stopSequencesBuilder_ == null) {
+ return stopSequences_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ } else {
+ return stopSequencesBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public Builder setStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (stopSequencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ stopSequences_ = value;
+ } else {
+ stopSequencesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public Builder setStopSequences(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (stopSequencesBuilder_ == null) {
+ stopSequences_ = builderForValue.build();
+ } else {
+ stopSequencesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public Builder mergeStopSequences(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (stopSequencesBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0) &&
+ stopSequences_ != null &&
+ stopSequences_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getStopSequencesBuilder().mergeFrom(value);
+ } else {
+ stopSequences_ = value;
+ }
+ } else {
+ stopSequencesBuilder_.mergeFrom(value);
+ }
+ if (stopSequences_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public Builder clearStopSequences() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ stopSequences_ = null;
+ if (stopSequencesBuilder_ != null) {
+ stopSequencesBuilder_.dispose();
+ stopSequencesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getStopSequencesBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getStopSequencesFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getStopSequencesOrBuilder() {
+ if (stopSequencesBuilder_ != null) {
+ return stopSequencesBuilder_.getMessageOrBuilder();
+ } else {
+ return stopSequences_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : stopSequences_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray stop_sequences = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>
+ getStopSequencesFieldBuilder() {
+ if (stopSequencesBuilder_ == null) {
+ stopSequencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>(
+ getStopSequences(),
+ getParentForChildren(),
+ isClean());
+ stopSequences_ = null;
+ }
+ return stopSequencesBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogle)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogle)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeGoogle parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogle getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeAnthropicMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnthropicMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ boolean hasUsage();
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getUsage();
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder getUsageOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata}
+ */
+ public static final class GenerativeAnthropicMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnthropicMetadata)
+ GenerativeAnthropicMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeAnthropicMetadata.newBuilder() to construct.
+ private GenerativeAnthropicMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeAnthropicMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeAnthropicMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder.class);
+ }
+
+ public interface UsageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnthropicMetadata.Usage)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int64 input_tokens = 1;
+ * @return The inputTokens.
+ */
+ long getInputTokens();
+
+ /**
+ * int64 output_tokens = 2;
+ * @return The outputTokens.
+ */
+ long getOutputTokens();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata.Usage}
+ */
+ public static final class Usage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnthropicMetadata.Usage)
+ UsageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Usage.newBuilder() to construct.
+ private Usage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Usage() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Usage();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder.class);
+ }
+
+ public static final int INPUT_TOKENS_FIELD_NUMBER = 1;
+ private long inputTokens_ = 0L;
+ /**
+ * int64 input_tokens = 1;
+ * @return The inputTokens.
+ */
+ @java.lang.Override
+ public long getInputTokens() {
+ return inputTokens_;
+ }
+
+ public static final int OUTPUT_TOKENS_FIELD_NUMBER = 2;
+ private long outputTokens_ = 0L;
+ /**
+ * int64 output_tokens = 2;
+ * @return The outputTokens.
+ */
+ @java.lang.Override
+ public long getOutputTokens() {
+ return outputTokens_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (inputTokens_ != 0L) {
+ output.writeInt64(1, inputTokens_);
+ }
+ if (outputTokens_ != 0L) {
+ output.writeInt64(2, outputTokens_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (inputTokens_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, inputTokens_);
+ }
+ if (outputTokens_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, outputTokens_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage) obj;
+
+ if (getInputTokens()
+ != other.getInputTokens()) return false;
+ if (getOutputTokens()
+ != other.getOutputTokens()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INPUT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getInputTokens());
+ hash = (37 * hash) + OUTPUT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getOutputTokens());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata.Usage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnthropicMetadata.Usage)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ inputTokens_ = 0L;
+ outputTokens_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.inputTokens_ = inputTokens_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.outputTokens_ = outputTokens_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance()) return this;
+ if (other.getInputTokens() != 0L) {
+ setInputTokens(other.getInputTokens());
+ }
+ if (other.getOutputTokens() != 0L) {
+ setOutputTokens(other.getOutputTokens());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ inputTokens_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ outputTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long inputTokens_ ;
+ /**
+ * int64 input_tokens = 1;
+ * @return The inputTokens.
+ */
+ @java.lang.Override
+ public long getInputTokens() {
+ return inputTokens_;
+ }
+ /**
+ * int64 input_tokens = 1;
+ * @param value The inputTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputTokens(long value) {
+
+ inputTokens_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 input_tokens = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearInputTokens() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ inputTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long outputTokens_ ;
+ /**
+ * int64 output_tokens = 2;
+ * @return The outputTokens.
+ */
+ @java.lang.Override
+ public long getOutputTokens() {
+ return outputTokens_;
+ }
+ /**
+ * int64 output_tokens = 2;
+ * @param value The outputTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputTokens(long value) {
+
+ outputTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 output_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ outputTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAnthropicMetadata.Usage)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnthropicMetadata.Usage)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Usage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int USAGE_FIELD_NUMBER = 1;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage usage_;
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ @java.lang.Override
+ public boolean hasUsage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getUsage() {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance() : usage_;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder getUsageOrBuilder() {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance() : usage_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getUsage());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getUsage());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) obj;
+
+ if (hasUsage() != other.hasUsage()) return false;
+ if (hasUsage()) {
+ if (!getUsage()
+ .equals(other.getUsage())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasUsage()) {
+ hash = (37 * hash) + USAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getUsage().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnthropicMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnthropicMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getUsageFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ usage_ = null;
+ if (usageBuilder_ != null) {
+ usageBuilder_.dispose();
+ usageBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.usage_ = usageBuilder_ == null
+ ? usage_
+ : usageBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance()) return this;
+ if (other.hasUsage()) {
+ mergeUsage(other.getUsage());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getUsageFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage usage_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder> usageBuilder_;
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ public boolean hasUsage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage getUsage() {
+ if (usageBuilder_ == null) {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance() : usage_;
+ } else {
+ return usageBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage value) {
+ if (usageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ usage_ = value;
+ } else {
+ usageBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ public Builder setUsage(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder builderForValue) {
+ if (usageBuilder_ == null) {
+ usage_ = builderForValue.build();
+ } else {
+ usageBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage value) {
+ if (usageBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ usage_ != null &&
+ usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance()) {
+ getUsageBuilder().mergeFrom(value);
+ } else {
+ usage_ = value;
+ }
+ } else {
+ usageBuilder_.mergeFrom(value);
+ }
+ if (usage_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ public Builder clearUsage() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ usage_ = null;
+ if (usageBuilder_ != null) {
+ usageBuilder_.dispose();
+ usageBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder getUsageBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getUsageFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder getUsageOrBuilder() {
+ if (usageBuilder_ != null) {
+ return usageBuilder_.getMessageOrBuilder();
+ } else {
+ return usage_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.getDefaultInstance() : usage_;
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata.Usage usage = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder>
+ getUsageFieldBuilder() {
+ if (usageBuilder_ == null) {
+ usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.UsageOrBuilder>(
+ getUsage(),
+ getParentForChildren(),
+ isClean());
+ usage_ = null;
+ }
+ return usageBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAnthropicMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnthropicMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeAnthropicMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeAnyscaleMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAnyscaleMetadata)
+ com.google.protobuf.MessageOrBuilder {
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnyscaleMetadata}
+ */
+ public static final class GenerativeAnyscaleMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAnyscaleMetadata)
+ GenerativeAnyscaleMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeAnyscaleMetadata.newBuilder() to construct.
+ private GenerativeAnyscaleMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeAnyscaleMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeAnyscaleMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) obj;
+
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAnyscaleMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAnyscaleMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata(this);
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance()) return this;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAnyscaleMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAnyscaleMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeAnyscaleMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeAWSMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeAWSMetadata)
+ com.google.protobuf.MessageOrBuilder {
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAWSMetadata}
+ */
+ public static final class GenerativeAWSMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeAWSMetadata)
+ GenerativeAWSMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeAWSMetadata.newBuilder() to construct.
+ private GenerativeAWSMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeAWSMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeAWSMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) obj;
+
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeAWSMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeAWSMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata(this);
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance()) return this;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeAWSMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeAWSMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeAWSMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeCohereMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ * @return Whether the apiVersion field is set.
+ */
+ boolean hasApiVersion();
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ * @return The apiVersion.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getApiVersion();
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder getApiVersionOrBuilder();
+
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ * @return Whether the billedUnits field is set.
+ */
+ boolean hasBilledUnits();
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ * @return The billedUnits.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getBilledUnits();
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder getBilledUnitsOrBuilder();
+
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ * @return Whether the tokens field is set.
+ */
+ boolean hasTokens();
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ * @return The tokens.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getTokens();
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder getTokensOrBuilder();
+
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ * @return Whether the warnings field is set.
+ */
+ boolean hasWarnings();
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ * @return The warnings.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getWarnings();
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getWarningsOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata}
+ */
+ public static final class GenerativeCohereMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata)
+ GenerativeCohereMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeCohereMetadata.newBuilder() to construct.
+ private GenerativeCohereMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeCohereMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeCohereMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder.class);
+ }
+
+ public interface ApiVersionOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.ApiVersion)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string version = 1;
+ * @return Whether the version field is set.
+ */
+ boolean hasVersion();
+ /**
+ * optional string version = 1;
+ * @return The version.
+ */
+ java.lang.String getVersion();
+ /**
+ * optional string version = 1;
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString
+ getVersionBytes();
+
+ /**
+ * optional bool is_deprecated = 2;
+ * @return Whether the isDeprecated field is set.
+ */
+ boolean hasIsDeprecated();
+ /**
+ * optional bool is_deprecated = 2;
+ * @return The isDeprecated.
+ */
+ boolean getIsDeprecated();
+
+ /**
+ * optional bool is_experimental = 3;
+ * @return Whether the isExperimental field is set.
+ */
+ boolean hasIsExperimental();
+ /**
+ * optional bool is_experimental = 3;
+ * @return The isExperimental.
+ */
+ boolean getIsExperimental();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.ApiVersion}
+ */
+ public static final class ApiVersion extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata.ApiVersion)
+ ApiVersionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ApiVersion.newBuilder() to construct.
+ private ApiVersion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ApiVersion() {
+ version_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ApiVersion();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int VERSION_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object version_ = "";
+ /**
+ * optional string version = 1;
+ * @return Whether the version field is set.
+ */
+ @java.lang.Override
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string version = 1;
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string version = 1;
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IS_DEPRECATED_FIELD_NUMBER = 2;
+ private boolean isDeprecated_ = false;
+ /**
+ * optional bool is_deprecated = 2;
+ * @return Whether the isDeprecated field is set.
+ */
+ @java.lang.Override
+ public boolean hasIsDeprecated() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional bool is_deprecated = 2;
+ * @return The isDeprecated.
+ */
+ @java.lang.Override
+ public boolean getIsDeprecated() {
+ return isDeprecated_;
+ }
+
+ public static final int IS_EXPERIMENTAL_FIELD_NUMBER = 3;
+ private boolean isExperimental_ = false;
+ /**
+ * optional bool is_experimental = 3;
+ * @return Whether the isExperimental field is set.
+ */
+ @java.lang.Override
+ public boolean hasIsExperimental() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional bool is_experimental = 3;
+ * @return The isExperimental.
+ */
+ @java.lang.Override
+ public boolean getIsExperimental() {
+ return isExperimental_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeBool(2, isDeprecated_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeBool(3, isExperimental_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, isDeprecated_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, isExperimental_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion) obj;
+
+ if (hasVersion() != other.hasVersion()) return false;
+ if (hasVersion()) {
+ if (!getVersion()
+ .equals(other.getVersion())) return false;
+ }
+ if (hasIsDeprecated() != other.hasIsDeprecated()) return false;
+ if (hasIsDeprecated()) {
+ if (getIsDeprecated()
+ != other.getIsDeprecated()) return false;
+ }
+ if (hasIsExperimental() != other.hasIsExperimental()) return false;
+ if (hasIsExperimental()) {
+ if (getIsExperimental()
+ != other.getIsExperimental()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasVersion()) {
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ }
+ if (hasIsDeprecated()) {
+ hash = (37 * hash) + IS_DEPRECATED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsDeprecated());
+ }
+ if (hasIsExperimental()) {
+ hash = (37 * hash) + IS_EXPERIMENTAL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsExperimental());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.ApiVersion}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohereMetadata.ApiVersion)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ version_ = "";
+ isDeprecated_ = false;
+ isExperimental_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.version_ = version_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.isDeprecated_ = isDeprecated_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.isExperimental_ = isExperimental_;
+ to_bitField0_ |= 0x00000004;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance()) return this;
+ if (other.hasVersion()) {
+ version_ = other.version_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasIsDeprecated()) {
+ setIsDeprecated(other.getIsDeprecated());
+ }
+ if (other.hasIsExperimental()) {
+ setIsExperimental(other.getIsExperimental());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ version_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ isDeprecated_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ isExperimental_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object version_ = "";
+ /**
+ * optional string version = 1;
+ * @return Whether the version field is set.
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string version = 1;
+ * @return The version.
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string version = 1;
+ * @return The bytes for version.
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string version = 1;
+ * @param value The version to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ version_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string version = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearVersion() {
+ version_ = getDefaultInstance().getVersion();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string version = 1;
+ * @param value The bytes for version to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ version_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private boolean isDeprecated_ ;
+ /**
+ * optional bool is_deprecated = 2;
+ * @return Whether the isDeprecated field is set.
+ */
+ @java.lang.Override
+ public boolean hasIsDeprecated() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional bool is_deprecated = 2;
+ * @return The isDeprecated.
+ */
+ @java.lang.Override
+ public boolean getIsDeprecated() {
+ return isDeprecated_;
+ }
+ /**
+ * optional bool is_deprecated = 2;
+ * @param value The isDeprecated to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsDeprecated(boolean value) {
+
+ isDeprecated_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool is_deprecated = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsDeprecated() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ isDeprecated_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean isExperimental_ ;
+ /**
+ * optional bool is_experimental = 3;
+ * @return Whether the isExperimental field is set.
+ */
+ @java.lang.Override
+ public boolean hasIsExperimental() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional bool is_experimental = 3;
+ * @return The isExperimental.
+ */
+ @java.lang.Override
+ public boolean getIsExperimental() {
+ return isExperimental_;
+ }
+ /**
+ * optional bool is_experimental = 3;
+ * @param value The isExperimental to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsExperimental(boolean value) {
+
+ isExperimental_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool is_experimental = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsExperimental() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ isExperimental_ = false;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.ApiVersion)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata.ApiVersion)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ApiVersion parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface BilledUnitsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.BilledUnits)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional double input_tokens = 1;
+ * @return Whether the inputTokens field is set.
+ */
+ boolean hasInputTokens();
+ /**
+ * optional double input_tokens = 1;
+ * @return The inputTokens.
+ */
+ double getInputTokens();
+
+ /**
+ * optional double output_tokens = 2;
+ * @return Whether the outputTokens field is set.
+ */
+ boolean hasOutputTokens();
+ /**
+ * optional double output_tokens = 2;
+ * @return The outputTokens.
+ */
+ double getOutputTokens();
+
+ /**
+ * optional double search_units = 3;
+ * @return Whether the searchUnits field is set.
+ */
+ boolean hasSearchUnits();
+ /**
+ * optional double search_units = 3;
+ * @return The searchUnits.
+ */
+ double getSearchUnits();
+
+ /**
+ * optional double classifications = 4;
+ * @return Whether the classifications field is set.
+ */
+ boolean hasClassifications();
+ /**
+ * optional double classifications = 4;
+ * @return The classifications.
+ */
+ double getClassifications();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.BilledUnits}
+ */
+ public static final class BilledUnits extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata.BilledUnits)
+ BilledUnitsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BilledUnits.newBuilder() to construct.
+ private BilledUnits(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BilledUnits() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BilledUnits();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int INPUT_TOKENS_FIELD_NUMBER = 1;
+ private double inputTokens_ = 0D;
+ /**
+ * optional double input_tokens = 1;
+ * @return Whether the inputTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasInputTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double input_tokens = 1;
+ * @return The inputTokens.
+ */
+ @java.lang.Override
+ public double getInputTokens() {
+ return inputTokens_;
+ }
+
+ public static final int OUTPUT_TOKENS_FIELD_NUMBER = 2;
+ private double outputTokens_ = 0D;
+ /**
+ * optional double output_tokens = 2;
+ * @return Whether the outputTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutputTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double output_tokens = 2;
+ * @return The outputTokens.
+ */
+ @java.lang.Override
+ public double getOutputTokens() {
+ return outputTokens_;
+ }
+
+ public static final int SEARCH_UNITS_FIELD_NUMBER = 3;
+ private double searchUnits_ = 0D;
+ /**
+ * optional double search_units = 3;
+ * @return Whether the searchUnits field is set.
+ */
+ @java.lang.Override
+ public boolean hasSearchUnits() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double search_units = 3;
+ * @return The searchUnits.
+ */
+ @java.lang.Override
+ public double getSearchUnits() {
+ return searchUnits_;
+ }
+
+ public static final int CLASSIFICATIONS_FIELD_NUMBER = 4;
+ private double classifications_ = 0D;
+ /**
+ * optional double classifications = 4;
+ * @return Whether the classifications field is set.
+ */
+ @java.lang.Override
+ public boolean hasClassifications() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double classifications = 4;
+ * @return The classifications.
+ */
+ @java.lang.Override
+ public double getClassifications() {
+ return classifications_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeDouble(1, inputTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(2, outputTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeDouble(3, searchUnits_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeDouble(4, classifications_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, inputTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, outputTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, searchUnits_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(4, classifications_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits) obj;
+
+ if (hasInputTokens() != other.hasInputTokens()) return false;
+ if (hasInputTokens()) {
+ if (java.lang.Double.doubleToLongBits(getInputTokens())
+ != java.lang.Double.doubleToLongBits(
+ other.getInputTokens())) return false;
+ }
+ if (hasOutputTokens() != other.hasOutputTokens()) return false;
+ if (hasOutputTokens()) {
+ if (java.lang.Double.doubleToLongBits(getOutputTokens())
+ != java.lang.Double.doubleToLongBits(
+ other.getOutputTokens())) return false;
+ }
+ if (hasSearchUnits() != other.hasSearchUnits()) return false;
+ if (hasSearchUnits()) {
+ if (java.lang.Double.doubleToLongBits(getSearchUnits())
+ != java.lang.Double.doubleToLongBits(
+ other.getSearchUnits())) return false;
+ }
+ if (hasClassifications() != other.hasClassifications()) return false;
+ if (hasClassifications()) {
+ if (java.lang.Double.doubleToLongBits(getClassifications())
+ != java.lang.Double.doubleToLongBits(
+ other.getClassifications())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasInputTokens()) {
+ hash = (37 * hash) + INPUT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getInputTokens()));
+ }
+ if (hasOutputTokens()) {
+ hash = (37 * hash) + OUTPUT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getOutputTokens()));
+ }
+ if (hasSearchUnits()) {
+ hash = (37 * hash) + SEARCH_UNITS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getSearchUnits()));
+ }
+ if (hasClassifications()) {
+ hash = (37 * hash) + CLASSIFICATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getClassifications()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.BilledUnits}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohereMetadata.BilledUnits)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ inputTokens_ = 0D;
+ outputTokens_ = 0D;
+ searchUnits_ = 0D;
+ classifications_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.inputTokens_ = inputTokens_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.outputTokens_ = outputTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.searchUnits_ = searchUnits_;
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.classifications_ = classifications_;
+ to_bitField0_ |= 0x00000008;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance()) return this;
+ if (other.hasInputTokens()) {
+ setInputTokens(other.getInputTokens());
+ }
+ if (other.hasOutputTokens()) {
+ setOutputTokens(other.getOutputTokens());
+ }
+ if (other.hasSearchUnits()) {
+ setSearchUnits(other.getSearchUnits());
+ }
+ if (other.hasClassifications()) {
+ setClassifications(other.getClassifications());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 9: {
+ inputTokens_ = input.readDouble();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 9
+ case 17: {
+ outputTokens_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 25: {
+ searchUnits_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ case 33: {
+ classifications_ = input.readDouble();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 33
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private double inputTokens_ ;
+ /**
+ * optional double input_tokens = 1;
+ * @return Whether the inputTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasInputTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double input_tokens = 1;
+ * @return The inputTokens.
+ */
+ @java.lang.Override
+ public double getInputTokens() {
+ return inputTokens_;
+ }
+ /**
+ * optional double input_tokens = 1;
+ * @param value The inputTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputTokens(double value) {
+
+ inputTokens_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double input_tokens = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearInputTokens() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ inputTokens_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double outputTokens_ ;
+ /**
+ * optional double output_tokens = 2;
+ * @return Whether the outputTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutputTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double output_tokens = 2;
+ * @return The outputTokens.
+ */
+ @java.lang.Override
+ public double getOutputTokens() {
+ return outputTokens_;
+ }
+ /**
+ * optional double output_tokens = 2;
+ * @param value The outputTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputTokens(double value) {
+
+ outputTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double output_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ outputTokens_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double searchUnits_ ;
+ /**
+ * optional double search_units = 3;
+ * @return Whether the searchUnits field is set.
+ */
+ @java.lang.Override
+ public boolean hasSearchUnits() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double search_units = 3;
+ * @return The searchUnits.
+ */
+ @java.lang.Override
+ public double getSearchUnits() {
+ return searchUnits_;
+ }
+ /**
+ * optional double search_units = 3;
+ * @param value The searchUnits to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSearchUnits(double value) {
+
+ searchUnits_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double search_units = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSearchUnits() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ searchUnits_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double classifications_ ;
+ /**
+ * optional double classifications = 4;
+ * @return Whether the classifications field is set.
+ */
+ @java.lang.Override
+ public boolean hasClassifications() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional double classifications = 4;
+ * @return The classifications.
+ */
+ @java.lang.Override
+ public double getClassifications() {
+ return classifications_;
+ }
+ /**
+ * optional double classifications = 4;
+ * @param value The classifications to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClassifications(double value) {
+
+ classifications_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double classifications = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearClassifications() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ classifications_ = 0D;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.BilledUnits)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata.BilledUnits)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BilledUnits parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TokensOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeCohereMetadata.Tokens)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional double input_tokens = 1;
+ * @return Whether the inputTokens field is set.
+ */
+ boolean hasInputTokens();
+ /**
+ * optional double input_tokens = 1;
+ * @return The inputTokens.
+ */
+ double getInputTokens();
+
+ /**
+ * optional double output_tokens = 2;
+ * @return Whether the outputTokens field is set.
+ */
+ boolean hasOutputTokens();
+ /**
+ * optional double output_tokens = 2;
+ * @return The outputTokens.
+ */
+ double getOutputTokens();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.Tokens}
+ */
+ public static final class Tokens extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeCohereMetadata.Tokens)
+ TokensOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Tokens.newBuilder() to construct.
+ private Tokens(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Tokens() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Tokens();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int INPUT_TOKENS_FIELD_NUMBER = 1;
+ private double inputTokens_ = 0D;
+ /**
+ * optional double input_tokens = 1;
+ * @return Whether the inputTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasInputTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double input_tokens = 1;
+ * @return The inputTokens.
+ */
+ @java.lang.Override
+ public double getInputTokens() {
+ return inputTokens_;
+ }
+
+ public static final int OUTPUT_TOKENS_FIELD_NUMBER = 2;
+ private double outputTokens_ = 0D;
+ /**
+ * optional double output_tokens = 2;
+ * @return Whether the outputTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutputTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double output_tokens = 2;
+ * @return The outputTokens.
+ */
+ @java.lang.Override
+ public double getOutputTokens() {
+ return outputTokens_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeDouble(1, inputTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(2, outputTokens_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, inputTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, outputTokens_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens) obj;
+
+ if (hasInputTokens() != other.hasInputTokens()) return false;
+ if (hasInputTokens()) {
+ if (java.lang.Double.doubleToLongBits(getInputTokens())
+ != java.lang.Double.doubleToLongBits(
+ other.getInputTokens())) return false;
+ }
+ if (hasOutputTokens() != other.hasOutputTokens()) return false;
+ if (hasOutputTokens()) {
+ if (java.lang.Double.doubleToLongBits(getOutputTokens())
+ != java.lang.Double.doubleToLongBits(
+ other.getOutputTokens())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasInputTokens()) {
+ hash = (37 * hash) + INPUT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getInputTokens()));
+ }
+ if (hasOutputTokens()) {
+ hash = (37 * hash) + OUTPUT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getOutputTokens()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata.Tokens}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohereMetadata.Tokens)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ inputTokens_ = 0D;
+ outputTokens_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.inputTokens_ = inputTokens_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.outputTokens_ = outputTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance()) return this;
+ if (other.hasInputTokens()) {
+ setInputTokens(other.getInputTokens());
+ }
+ if (other.hasOutputTokens()) {
+ setOutputTokens(other.getOutputTokens());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 9: {
+ inputTokens_ = input.readDouble();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 9
+ case 17: {
+ outputTokens_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private double inputTokens_ ;
+ /**
+ * optional double input_tokens = 1;
+ * @return Whether the inputTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasInputTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double input_tokens = 1;
+ * @return The inputTokens.
+ */
+ @java.lang.Override
+ public double getInputTokens() {
+ return inputTokens_;
+ }
+ /**
+ * optional double input_tokens = 1;
+ * @param value The inputTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInputTokens(double value) {
+
+ inputTokens_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double input_tokens = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearInputTokens() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ inputTokens_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double outputTokens_ ;
+ /**
+ * optional double output_tokens = 2;
+ * @return Whether the outputTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutputTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double output_tokens = 2;
+ * @return The outputTokens.
+ */
+ @java.lang.Override
+ public double getOutputTokens() {
+ return outputTokens_;
+ }
+ /**
+ * optional double output_tokens = 2;
+ * @param value The outputTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutputTokens(double value) {
+
+ outputTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double output_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearOutputTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ outputTokens_ = 0D;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata.Tokens)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata.Tokens)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Tokens parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int API_VERSION_FIELD_NUMBER = 1;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion apiVersion_;
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ * @return Whether the apiVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasApiVersion() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ * @return The apiVersion.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getApiVersion() {
+ return apiVersion_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance() : apiVersion_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder getApiVersionOrBuilder() {
+ return apiVersion_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance() : apiVersion_;
+ }
+
+ public static final int BILLED_UNITS_FIELD_NUMBER = 2;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits billedUnits_;
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ * @return Whether the billedUnits field is set.
+ */
+ @java.lang.Override
+ public boolean hasBilledUnits() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ * @return The billedUnits.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getBilledUnits() {
+ return billedUnits_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance() : billedUnits_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder getBilledUnitsOrBuilder() {
+ return billedUnits_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance() : billedUnits_;
+ }
+
+ public static final int TOKENS_FIELD_NUMBER = 3;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens tokens_;
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ * @return Whether the tokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ * @return The tokens.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getTokens() {
+ return tokens_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance() : tokens_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder getTokensOrBuilder() {
+ return tokens_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance() : tokens_;
+ }
+
+ public static final int WARNINGS_FIELD_NUMBER = 4;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray warnings_;
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ * @return Whether the warnings field is set.
+ */
+ @java.lang.Override
+ public boolean hasWarnings() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ * @return The warnings.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getWarnings() {
+ return warnings_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : warnings_;
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getWarningsOrBuilder() {
+ return warnings_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : warnings_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getApiVersion());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getBilledUnits());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(3, getTokens());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(4, getWarnings());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getApiVersion());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getBilledUnits());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getTokens());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getWarnings());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) obj;
+
+ if (hasApiVersion() != other.hasApiVersion()) return false;
+ if (hasApiVersion()) {
+ if (!getApiVersion()
+ .equals(other.getApiVersion())) return false;
+ }
+ if (hasBilledUnits() != other.hasBilledUnits()) return false;
+ if (hasBilledUnits()) {
+ if (!getBilledUnits()
+ .equals(other.getBilledUnits())) return false;
+ }
+ if (hasTokens() != other.hasTokens()) return false;
+ if (hasTokens()) {
+ if (!getTokens()
+ .equals(other.getTokens())) return false;
+ }
+ if (hasWarnings() != other.hasWarnings()) return false;
+ if (hasWarnings()) {
+ if (!getWarnings()
+ .equals(other.getWarnings())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasApiVersion()) {
+ hash = (37 * hash) + API_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getApiVersion().hashCode();
+ }
+ if (hasBilledUnits()) {
+ hash = (37 * hash) + BILLED_UNITS_FIELD_NUMBER;
+ hash = (53 * hash) + getBilledUnits().hashCode();
+ }
+ if (hasTokens()) {
+ hash = (37 * hash) + TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + getTokens().hashCode();
+ }
+ if (hasWarnings()) {
+ hash = (37 * hash) + WARNINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getWarnings().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeCohereMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeCohereMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getApiVersionFieldBuilder();
+ getBilledUnitsFieldBuilder();
+ getTokensFieldBuilder();
+ getWarningsFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ apiVersion_ = null;
+ if (apiVersionBuilder_ != null) {
+ apiVersionBuilder_.dispose();
+ apiVersionBuilder_ = null;
+ }
+ billedUnits_ = null;
+ if (billedUnitsBuilder_ != null) {
+ billedUnitsBuilder_.dispose();
+ billedUnitsBuilder_ = null;
+ }
+ tokens_ = null;
+ if (tokensBuilder_ != null) {
+ tokensBuilder_.dispose();
+ tokensBuilder_ = null;
+ }
+ warnings_ = null;
+ if (warningsBuilder_ != null) {
+ warningsBuilder_.dispose();
+ warningsBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.apiVersion_ = apiVersionBuilder_ == null
+ ? apiVersion_
+ : apiVersionBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.billedUnits_ = billedUnitsBuilder_ == null
+ ? billedUnits_
+ : billedUnitsBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.tokens_ = tokensBuilder_ == null
+ ? tokens_
+ : tokensBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.warnings_ = warningsBuilder_ == null
+ ? warnings_
+ : warningsBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance()) return this;
+ if (other.hasApiVersion()) {
+ mergeApiVersion(other.getApiVersion());
+ }
+ if (other.hasBilledUnits()) {
+ mergeBilledUnits(other.getBilledUnits());
+ }
+ if (other.hasTokens()) {
+ mergeTokens(other.getTokens());
+ }
+ if (other.hasWarnings()) {
+ mergeWarnings(other.getWarnings());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getApiVersionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getBilledUnitsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getTokensFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getWarningsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion apiVersion_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder> apiVersionBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ * @return Whether the apiVersion field is set.
+ */
+ public boolean hasApiVersion() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ * @return The apiVersion.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion getApiVersion() {
+ if (apiVersionBuilder_ == null) {
+ return apiVersion_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance() : apiVersion_;
+ } else {
+ return apiVersionBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ public Builder setApiVersion(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion value) {
+ if (apiVersionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ apiVersion_ = value;
+ } else {
+ apiVersionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ public Builder setApiVersion(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder builderForValue) {
+ if (apiVersionBuilder_ == null) {
+ apiVersion_ = builderForValue.build();
+ } else {
+ apiVersionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ public Builder mergeApiVersion(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion value) {
+ if (apiVersionBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ apiVersion_ != null &&
+ apiVersion_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance()) {
+ getApiVersionBuilder().mergeFrom(value);
+ } else {
+ apiVersion_ = value;
+ }
+ } else {
+ apiVersionBuilder_.mergeFrom(value);
+ }
+ if (apiVersion_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ public Builder clearApiVersion() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ apiVersion_ = null;
+ if (apiVersionBuilder_ != null) {
+ apiVersionBuilder_.dispose();
+ apiVersionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder getApiVersionBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getApiVersionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder getApiVersionOrBuilder() {
+ if (apiVersionBuilder_ != null) {
+ return apiVersionBuilder_.getMessageOrBuilder();
+ } else {
+ return apiVersion_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.getDefaultInstance() : apiVersion_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.ApiVersion api_version = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder>
+ getApiVersionFieldBuilder() {
+ if (apiVersionBuilder_ == null) {
+ apiVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersion.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.ApiVersionOrBuilder>(
+ getApiVersion(),
+ getParentForChildren(),
+ isClean());
+ apiVersion_ = null;
+ }
+ return apiVersionBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits billedUnits_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder> billedUnitsBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ * @return Whether the billedUnits field is set.
+ */
+ public boolean hasBilledUnits() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ * @return The billedUnits.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits getBilledUnits() {
+ if (billedUnitsBuilder_ == null) {
+ return billedUnits_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance() : billedUnits_;
+ } else {
+ return billedUnitsBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ public Builder setBilledUnits(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits value) {
+ if (billedUnitsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ billedUnits_ = value;
+ } else {
+ billedUnitsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ public Builder setBilledUnits(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder builderForValue) {
+ if (billedUnitsBuilder_ == null) {
+ billedUnits_ = builderForValue.build();
+ } else {
+ billedUnitsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ public Builder mergeBilledUnits(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits value) {
+ if (billedUnitsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ billedUnits_ != null &&
+ billedUnits_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance()) {
+ getBilledUnitsBuilder().mergeFrom(value);
+ } else {
+ billedUnits_ = value;
+ }
+ } else {
+ billedUnitsBuilder_.mergeFrom(value);
+ }
+ if (billedUnits_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ public Builder clearBilledUnits() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ billedUnits_ = null;
+ if (billedUnitsBuilder_ != null) {
+ billedUnitsBuilder_.dispose();
+ billedUnitsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder getBilledUnitsBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getBilledUnitsFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder getBilledUnitsOrBuilder() {
+ if (billedUnitsBuilder_ != null) {
+ return billedUnitsBuilder_.getMessageOrBuilder();
+ } else {
+ return billedUnits_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.getDefaultInstance() : billedUnits_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.BilledUnits billed_units = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder>
+ getBilledUnitsFieldBuilder() {
+ if (billedUnitsBuilder_ == null) {
+ billedUnitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnits.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.BilledUnitsOrBuilder>(
+ getBilledUnits(),
+ getParentForChildren(),
+ isClean());
+ billedUnits_ = null;
+ }
+ return billedUnitsBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens tokens_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder> tokensBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ * @return Whether the tokens field is set.
+ */
+ public boolean hasTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ * @return The tokens.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens getTokens() {
+ if (tokensBuilder_ == null) {
+ return tokens_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance() : tokens_;
+ } else {
+ return tokensBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ public Builder setTokens(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens value) {
+ if (tokensBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tokens_ = value;
+ } else {
+ tokensBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ public Builder setTokens(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder builderForValue) {
+ if (tokensBuilder_ == null) {
+ tokens_ = builderForValue.build();
+ } else {
+ tokensBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ public Builder mergeTokens(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens value) {
+ if (tokensBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ tokens_ != null &&
+ tokens_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance()) {
+ getTokensBuilder().mergeFrom(value);
+ } else {
+ tokens_ = value;
+ }
+ } else {
+ tokensBuilder_.mergeFrom(value);
+ }
+ if (tokens_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ public Builder clearTokens() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ tokens_ = null;
+ if (tokensBuilder_ != null) {
+ tokensBuilder_.dispose();
+ tokensBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder getTokensBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getTokensFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder getTokensOrBuilder() {
+ if (tokensBuilder_ != null) {
+ return tokensBuilder_.getMessageOrBuilder();
+ } else {
+ return tokens_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.getDefaultInstance() : tokens_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeCohereMetadata.Tokens tokens = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder>
+ getTokensFieldBuilder() {
+ if (tokensBuilder_ == null) {
+ tokensBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Tokens.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.TokensOrBuilder>(
+ getTokens(),
+ getParentForChildren(),
+ isClean());
+ tokens_ = null;
+ }
+ return tokensBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray warnings_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder> warningsBuilder_;
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ * @return Whether the warnings field is set.
+ */
+ public boolean hasWarnings() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ * @return The warnings.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray getWarnings() {
+ if (warningsBuilder_ == null) {
+ return warnings_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : warnings_;
+ } else {
+ return warningsBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ public Builder setWarnings(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (warningsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ warnings_ = value;
+ } else {
+ warningsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ public Builder setWarnings(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder builderForValue) {
+ if (warningsBuilder_ == null) {
+ warnings_ = builderForValue.build();
+ } else {
+ warningsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ public Builder mergeWarnings(io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray value) {
+ if (warningsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ warnings_ != null &&
+ warnings_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance()) {
+ getWarningsBuilder().mergeFrom(value);
+ } else {
+ warnings_ = value;
+ }
+ } else {
+ warningsBuilder_.mergeFrom(value);
+ }
+ if (warnings_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ public Builder clearWarnings() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ warnings_ = null;
+ if (warningsBuilder_ != null) {
+ warningsBuilder_.dispose();
+ warningsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder getWarningsBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getWarningsFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder getWarningsOrBuilder() {
+ if (warningsBuilder_ != null) {
+ return warningsBuilder_.getMessageOrBuilder();
+ } else {
+ return warnings_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.getDefaultInstance() : warnings_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.TextArray warnings = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>
+ getWarningsFieldBuilder() {
+ if (warningsBuilder_ == null) {
+ warningsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArray.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.TextArrayOrBuilder>(
+ getWarnings(),
+ getParentForChildren(),
+ isClean());
+ warnings_ = null;
+ }
+ return warningsBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeCohereMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeCohereMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeCohereMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeDummyMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDummyMetadata)
+ com.google.protobuf.MessageOrBuilder {
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeDummyMetadata}
+ */
+ public static final class GenerativeDummyMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDummyMetadata)
+ GenerativeDummyMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeDummyMetadata.newBuilder() to construct.
+ private GenerativeDummyMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeDummyMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeDummyMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) obj;
+
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeDummyMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDummyMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata(this);
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance()) return this;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeDummyMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDummyMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeDummyMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeMistralMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMistralMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ boolean hasUsage();
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getUsage();
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder getUsageOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeMistralMetadata}
+ */
+ public static final class GenerativeMistralMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeMistralMetadata)
+ GenerativeMistralMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeMistralMetadata.newBuilder() to construct.
+ private GenerativeMistralMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeMistralMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeMistralMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder.class);
+ }
+
+ public interface UsageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMistralMetadata.Usage)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ boolean hasPromptTokens();
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ long getPromptTokens();
+
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ boolean hasCompletionTokens();
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ long getCompletionTokens();
+
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ boolean hasTotalTokens();
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ long getTotalTokens();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeMistralMetadata.Usage}
+ */
+ public static final class Usage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeMistralMetadata.Usage)
+ UsageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Usage.newBuilder() to construct.
+ private Usage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Usage() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Usage();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PROMPT_TOKENS_FIELD_NUMBER = 1;
+ private long promptTokens_ = 0L;
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasPromptTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ @java.lang.Override
+ public long getPromptTokens() {
+ return promptTokens_;
+ }
+
+ public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2;
+ private long completionTokens_ = 0L;
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompletionTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ @java.lang.Override
+ public long getCompletionTokens() {
+ return completionTokens_;
+ }
+
+ public static final int TOTAL_TOKENS_FIELD_NUMBER = 3;
+ private long totalTokens_ = 0L;
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ @java.lang.Override
+ public long getTotalTokens() {
+ return totalTokens_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(1, promptTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, completionTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt64(3, totalTokens_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, promptTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, completionTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, totalTokens_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage) obj;
+
+ if (hasPromptTokens() != other.hasPromptTokens()) return false;
+ if (hasPromptTokens()) {
+ if (getPromptTokens()
+ != other.getPromptTokens()) return false;
+ }
+ if (hasCompletionTokens() != other.hasCompletionTokens()) return false;
+ if (hasCompletionTokens()) {
+ if (getCompletionTokens()
+ != other.getCompletionTokens()) return false;
+ }
+ if (hasTotalTokens() != other.hasTotalTokens()) return false;
+ if (hasTotalTokens()) {
+ if (getTotalTokens()
+ != other.getTotalTokens()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPromptTokens()) {
+ hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPromptTokens());
+ }
+ if (hasCompletionTokens()) {
+ hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getCompletionTokens());
+ }
+ if (hasTotalTokens()) {
+ hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTotalTokens());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeMistralMetadata.Usage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeMistralMetadata.Usage)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ promptTokens_ = 0L;
+ completionTokens_ = 0L;
+ totalTokens_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.promptTokens_ = promptTokens_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.completionTokens_ = completionTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.totalTokens_ = totalTokens_;
+ to_bitField0_ |= 0x00000004;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance()) return this;
+ if (other.hasPromptTokens()) {
+ setPromptTokens(other.getPromptTokens());
+ }
+ if (other.hasCompletionTokens()) {
+ setCompletionTokens(other.getCompletionTokens());
+ }
+ if (other.hasTotalTokens()) {
+ setTotalTokens(other.getTotalTokens());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ promptTokens_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ completionTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ totalTokens_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long promptTokens_ ;
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasPromptTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ @java.lang.Override
+ public long getPromptTokens() {
+ return promptTokens_;
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @param value The promptTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPromptTokens(long value) {
+
+ promptTokens_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearPromptTokens() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ promptTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long completionTokens_ ;
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompletionTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ @java.lang.Override
+ public long getCompletionTokens() {
+ return completionTokens_;
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @param value The completionTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCompletionTokens(long value) {
+
+ completionTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCompletionTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ completionTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalTokens_ ;
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ @java.lang.Override
+ public long getTotalTokens() {
+ return totalTokens_;
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @param value The totalTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalTokens(long value) {
+
+ totalTokens_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalTokens() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ totalTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeMistralMetadata.Usage)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeMistralMetadata.Usage)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Usage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int USAGE_FIELD_NUMBER = 1;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage usage_;
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ @java.lang.Override
+ public boolean hasUsage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getUsage() {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder getUsageOrBuilder() {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getUsage());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getUsage());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) obj;
+
+ if (hasUsage() != other.hasUsage()) return false;
+ if (hasUsage()) {
+ if (!getUsage()
+ .equals(other.getUsage())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasUsage()) {
+ hash = (37 * hash) + USAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getUsage().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeMistralMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeMistralMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getUsageFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ usage_ = null;
+ if (usageBuilder_ != null) {
+ usageBuilder_.dispose();
+ usageBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.usage_ = usageBuilder_ == null
+ ? usage_
+ : usageBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance()) return this;
+ if (other.hasUsage()) {
+ mergeUsage(other.getUsage());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getUsageFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage usage_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder> usageBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ public boolean hasUsage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage getUsage() {
+ if (usageBuilder_ == null) {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_;
+ } else {
+ return usageBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage value) {
+ if (usageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ usage_ = value;
+ } else {
+ usageBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ public Builder setUsage(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder builderForValue) {
+ if (usageBuilder_ == null) {
+ usage_ = builderForValue.build();
+ } else {
+ usageBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage value) {
+ if (usageBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ usage_ != null &&
+ usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance()) {
+ getUsageBuilder().mergeFrom(value);
+ } else {
+ usage_ = value;
+ }
+ } else {
+ usageBuilder_.mergeFrom(value);
+ }
+ if (usage_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ public Builder clearUsage() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ usage_ = null;
+ if (usageBuilder_ != null) {
+ usageBuilder_.dispose();
+ usageBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder getUsageBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getUsageFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder getUsageOrBuilder() {
+ if (usageBuilder_ != null) {
+ return usageBuilder_.getMessageOrBuilder();
+ } else {
+ return usage_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.getDefaultInstance() : usage_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMistralMetadata.Usage usage = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder>
+ getUsageFieldBuilder() {
+ if (usageBuilder_ == null) {
+ usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.UsageOrBuilder>(
+ getUsage(),
+ getParentForChildren(),
+ isClean());
+ usage_ = null;
+ }
+ return usageBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeMistralMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeMistralMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeMistralMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeOctoAIMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOctoAIMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ boolean hasUsage();
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getUsage();
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder getUsageOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOctoAIMetadata}
+ */
+ public static final class GenerativeOctoAIMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOctoAIMetadata)
+ GenerativeOctoAIMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeOctoAIMetadata.newBuilder() to construct.
+ private GenerativeOctoAIMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeOctoAIMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeOctoAIMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder.class);
+ }
+
+ public interface UsageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOctoAIMetadata.Usage)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ boolean hasPromptTokens();
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ long getPromptTokens();
+
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ boolean hasCompletionTokens();
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ long getCompletionTokens();
+
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ boolean hasTotalTokens();
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ long getTotalTokens();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOctoAIMetadata.Usage}
+ */
+ public static final class Usage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOctoAIMetadata.Usage)
+ UsageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Usage.newBuilder() to construct.
+ private Usage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Usage() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Usage();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PROMPT_TOKENS_FIELD_NUMBER = 1;
+ private long promptTokens_ = 0L;
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasPromptTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ @java.lang.Override
+ public long getPromptTokens() {
+ return promptTokens_;
+ }
+
+ public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2;
+ private long completionTokens_ = 0L;
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompletionTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ @java.lang.Override
+ public long getCompletionTokens() {
+ return completionTokens_;
+ }
+
+ public static final int TOTAL_TOKENS_FIELD_NUMBER = 3;
+ private long totalTokens_ = 0L;
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ @java.lang.Override
+ public long getTotalTokens() {
+ return totalTokens_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(1, promptTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, completionTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt64(3, totalTokens_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, promptTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, completionTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, totalTokens_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage) obj;
+
+ if (hasPromptTokens() != other.hasPromptTokens()) return false;
+ if (hasPromptTokens()) {
+ if (getPromptTokens()
+ != other.getPromptTokens()) return false;
+ }
+ if (hasCompletionTokens() != other.hasCompletionTokens()) return false;
+ if (hasCompletionTokens()) {
+ if (getCompletionTokens()
+ != other.getCompletionTokens()) return false;
+ }
+ if (hasTotalTokens() != other.hasTotalTokens()) return false;
+ if (hasTotalTokens()) {
+ if (getTotalTokens()
+ != other.getTotalTokens()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPromptTokens()) {
+ hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPromptTokens());
+ }
+ if (hasCompletionTokens()) {
+ hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getCompletionTokens());
+ }
+ if (hasTotalTokens()) {
+ hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTotalTokens());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOctoAIMetadata.Usage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOctoAIMetadata.Usage)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ promptTokens_ = 0L;
+ completionTokens_ = 0L;
+ totalTokens_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.promptTokens_ = promptTokens_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.completionTokens_ = completionTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.totalTokens_ = totalTokens_;
+ to_bitField0_ |= 0x00000004;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance()) return this;
+ if (other.hasPromptTokens()) {
+ setPromptTokens(other.getPromptTokens());
+ }
+ if (other.hasCompletionTokens()) {
+ setCompletionTokens(other.getCompletionTokens());
+ }
+ if (other.hasTotalTokens()) {
+ setTotalTokens(other.getTotalTokens());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ promptTokens_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ completionTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ totalTokens_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long promptTokens_ ;
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasPromptTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ @java.lang.Override
+ public long getPromptTokens() {
+ return promptTokens_;
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @param value The promptTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPromptTokens(long value) {
+
+ promptTokens_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearPromptTokens() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ promptTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long completionTokens_ ;
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompletionTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ @java.lang.Override
+ public long getCompletionTokens() {
+ return completionTokens_;
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @param value The completionTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCompletionTokens(long value) {
+
+ completionTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCompletionTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ completionTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalTokens_ ;
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ @java.lang.Override
+ public long getTotalTokens() {
+ return totalTokens_;
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @param value The totalTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalTokens(long value) {
+
+ totalTokens_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalTokens() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ totalTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOctoAIMetadata.Usage)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAIMetadata.Usage)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Usage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int USAGE_FIELD_NUMBER = 1;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage usage_;
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ @java.lang.Override
+ public boolean hasUsage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getUsage() {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder getUsageOrBuilder() {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getUsage());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getUsage());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) obj;
+
+ if (hasUsage() != other.hasUsage()) return false;
+ if (hasUsage()) {
+ if (!getUsage()
+ .equals(other.getUsage())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasUsage()) {
+ hash = (37 * hash) + USAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getUsage().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOctoAIMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOctoAIMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getUsageFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ usage_ = null;
+ if (usageBuilder_ != null) {
+ usageBuilder_.dispose();
+ usageBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.usage_ = usageBuilder_ == null
+ ? usage_
+ : usageBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance()) return this;
+ if (other.hasUsage()) {
+ mergeUsage(other.getUsage());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getUsageFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage usage_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder> usageBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ public boolean hasUsage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage getUsage() {
+ if (usageBuilder_ == null) {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_;
+ } else {
+ return usageBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage value) {
+ if (usageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ usage_ = value;
+ } else {
+ usageBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ public Builder setUsage(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder builderForValue) {
+ if (usageBuilder_ == null) {
+ usage_ = builderForValue.build();
+ } else {
+ usageBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage value) {
+ if (usageBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ usage_ != null &&
+ usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance()) {
+ getUsageBuilder().mergeFrom(value);
+ } else {
+ usage_ = value;
+ }
+ } else {
+ usageBuilder_.mergeFrom(value);
+ }
+ if (usage_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ public Builder clearUsage() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ usage_ = null;
+ if (usageBuilder_ != null) {
+ usageBuilder_.dispose();
+ usageBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder getUsageBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getUsageFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder getUsageOrBuilder() {
+ if (usageBuilder_ != null) {
+ return usageBuilder_.getMessageOrBuilder();
+ } else {
+ return usage_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.getDefaultInstance() : usage_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOctoAIMetadata.Usage usage = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder>
+ getUsageFieldBuilder() {
+ if (usageBuilder_ == null) {
+ usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.UsageOrBuilder>(
+ getUsage(),
+ getParentForChildren(),
+ isClean());
+ usage_ = null;
+ }
+ return usageBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOctoAIMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOctoAIMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeOctoAIMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeOllamaMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOllamaMetadata)
+ com.google.protobuf.MessageOrBuilder {
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOllamaMetadata}
+ */
+ public static final class GenerativeOllamaMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOllamaMetadata)
+ GenerativeOllamaMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeOllamaMetadata.newBuilder() to construct.
+ private GenerativeOllamaMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeOllamaMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeOllamaMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) obj;
+
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOllamaMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOllamaMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata(this);
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance()) return this;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOllamaMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOllamaMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeOllamaMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeOpenAIMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOpenAIMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ boolean hasUsage();
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getUsage();
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder getUsageOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOpenAIMetadata}
+ */
+ public static final class GenerativeOpenAIMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAIMetadata)
+ GenerativeOpenAIMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeOpenAIMetadata.newBuilder() to construct.
+ private GenerativeOpenAIMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeOpenAIMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeOpenAIMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder.class);
+ }
+
+ public interface UsageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeOpenAIMetadata.Usage)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ boolean hasPromptTokens();
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ long getPromptTokens();
+
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ boolean hasCompletionTokens();
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ long getCompletionTokens();
+
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ boolean hasTotalTokens();
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ long getTotalTokens();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOpenAIMetadata.Usage}
+ */
+ public static final class Usage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeOpenAIMetadata.Usage)
+ UsageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Usage.newBuilder() to construct.
+ private Usage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Usage() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Usage();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PROMPT_TOKENS_FIELD_NUMBER = 1;
+ private long promptTokens_ = 0L;
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasPromptTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ @java.lang.Override
+ public long getPromptTokens() {
+ return promptTokens_;
+ }
+
+ public static final int COMPLETION_TOKENS_FIELD_NUMBER = 2;
+ private long completionTokens_ = 0L;
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompletionTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ @java.lang.Override
+ public long getCompletionTokens() {
+ return completionTokens_;
+ }
+
+ public static final int TOTAL_TOKENS_FIELD_NUMBER = 3;
+ private long totalTokens_ = 0L;
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ @java.lang.Override
+ public long getTotalTokens() {
+ return totalTokens_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(1, promptTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, completionTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt64(3, totalTokens_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, promptTokens_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, completionTokens_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, totalTokens_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage) obj;
+
+ if (hasPromptTokens() != other.hasPromptTokens()) return false;
+ if (hasPromptTokens()) {
+ if (getPromptTokens()
+ != other.getPromptTokens()) return false;
+ }
+ if (hasCompletionTokens() != other.hasCompletionTokens()) return false;
+ if (hasCompletionTokens()) {
+ if (getCompletionTokens()
+ != other.getCompletionTokens()) return false;
+ }
+ if (hasTotalTokens() != other.hasTotalTokens()) return false;
+ if (hasTotalTokens()) {
+ if (getTotalTokens()
+ != other.getTotalTokens()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPromptTokens()) {
+ hash = (37 * hash) + PROMPT_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPromptTokens());
+ }
+ if (hasCompletionTokens()) {
+ hash = (37 * hash) + COMPLETION_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getCompletionTokens());
+ }
+ if (hasTotalTokens()) {
+ hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTotalTokens());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOpenAIMetadata.Usage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOpenAIMetadata.Usage)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ promptTokens_ = 0L;
+ completionTokens_ = 0L;
+ totalTokens_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.promptTokens_ = promptTokens_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.completionTokens_ = completionTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.totalTokens_ = totalTokens_;
+ to_bitField0_ |= 0x00000004;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance()) return this;
+ if (other.hasPromptTokens()) {
+ setPromptTokens(other.getPromptTokens());
+ }
+ if (other.hasCompletionTokens()) {
+ setCompletionTokens(other.getCompletionTokens());
+ }
+ if (other.hasTotalTokens()) {
+ setTotalTokens(other.getTotalTokens());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ promptTokens_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ completionTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ totalTokens_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long promptTokens_ ;
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return Whether the promptTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasPromptTokens() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return The promptTokens.
+ */
+ @java.lang.Override
+ public long getPromptTokens() {
+ return promptTokens_;
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @param value The promptTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPromptTokens(long value) {
+
+ promptTokens_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 prompt_tokens = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearPromptTokens() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ promptTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long completionTokens_ ;
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return Whether the completionTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasCompletionTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return The completionTokens.
+ */
+ @java.lang.Override
+ public long getCompletionTokens() {
+ return completionTokens_;
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @param value The completionTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCompletionTokens(long value) {
+
+ completionTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 completion_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCompletionTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ completionTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalTokens_ ;
+ /**
+ * optional int64 total_tokens = 3;
+ * @return Whether the totalTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokens() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return The totalTokens.
+ */
+ @java.lang.Override
+ public long getTotalTokens() {
+ return totalTokens_;
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @param value The totalTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalTokens(long value) {
+
+ totalTokens_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 total_tokens = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalTokens() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ totalTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOpenAIMetadata.Usage)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOpenAIMetadata.Usage)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Usage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int USAGE_FIELD_NUMBER = 1;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage usage_;
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ @java.lang.Override
+ public boolean hasUsage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getUsage() {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance() : usage_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder getUsageOrBuilder() {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance() : usage_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getUsage());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getUsage());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) obj;
+
+ if (hasUsage() != other.hasUsage()) return false;
+ if (hasUsage()) {
+ if (!getUsage()
+ .equals(other.getUsage())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasUsage()) {
+ hash = (37 * hash) + USAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getUsage().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeOpenAIMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeOpenAIMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getUsageFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ usage_ = null;
+ if (usageBuilder_ != null) {
+ usageBuilder_.dispose();
+ usageBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.usage_ = usageBuilder_ == null
+ ? usage_
+ : usageBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance()) return this;
+ if (other.hasUsage()) {
+ mergeUsage(other.getUsage());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getUsageFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage usage_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder> usageBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ * @return Whether the usage field is set.
+ */
+ public boolean hasUsage() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ * @return The usage.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage getUsage() {
+ if (usageBuilder_ == null) {
+ return usage_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance() : usage_;
+ } else {
+ return usageBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ public Builder setUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage value) {
+ if (usageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ usage_ = value;
+ } else {
+ usageBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ public Builder setUsage(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder builderForValue) {
+ if (usageBuilder_ == null) {
+ usage_ = builderForValue.build();
+ } else {
+ usageBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ public Builder mergeUsage(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage value) {
+ if (usageBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ usage_ != null &&
+ usage_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance()) {
+ getUsageBuilder().mergeFrom(value);
+ } else {
+ usage_ = value;
+ }
+ } else {
+ usageBuilder_.mergeFrom(value);
+ }
+ if (usage_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ public Builder clearUsage() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ usage_ = null;
+ if (usageBuilder_ != null) {
+ usageBuilder_.dispose();
+ usageBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder getUsageBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getUsageFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder getUsageOrBuilder() {
+ if (usageBuilder_ != null) {
+ return usageBuilder_.getMessageOrBuilder();
+ } else {
+ return usage_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.getDefaultInstance() : usage_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeOpenAIMetadata.Usage usage = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder>
+ getUsageFieldBuilder() {
+ if (usageBuilder_ == null) {
+ usageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Usage.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.UsageOrBuilder>(
+ getUsage(),
+ getParentForChildren(),
+ isClean());
+ usage_ = null;
+ }
+ return usageBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeOpenAIMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeOpenAIMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeOpenAIMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeGoogleMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ * @return Whether the metadata field is set.
+ */
+ boolean hasMetadata();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ * @return The metadata.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getMetadata();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder getMetadataOrBuilder();
+
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ * @return Whether the usageMetadata field is set.
+ */
+ boolean hasUsageMetadata();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ * @return The usageMetadata.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getUsageMetadata();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder getUsageMetadataOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata}
+ */
+ public static final class GenerativeGoogleMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata)
+ GenerativeGoogleMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeGoogleMetadata.newBuilder() to construct.
+ private GenerativeGoogleMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeGoogleMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeGoogleMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder.class);
+ }
+
+ public interface TokenCountOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.TokenCount)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int64 total_billable_characters = 1;
+ * @return Whether the totalBillableCharacters field is set.
+ */
+ boolean hasTotalBillableCharacters();
+ /**
+ * optional int64 total_billable_characters = 1;
+ * @return The totalBillableCharacters.
+ */
+ long getTotalBillableCharacters();
+
+ /**
+ * optional int64 total_tokens = 2;
+ * @return Whether the totalTokens field is set.
+ */
+ boolean hasTotalTokens();
+ /**
+ * optional int64 total_tokens = 2;
+ * @return The totalTokens.
+ */
+ long getTotalTokens();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.TokenCount}
+ */
+ public static final class TokenCount extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.TokenCount)
+ TokenCountOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TokenCount.newBuilder() to construct.
+ private TokenCount(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TokenCount() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TokenCount();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 1;
+ private long totalBillableCharacters_ = 0L;
+ /**
+ * optional int64 total_billable_characters = 1;
+ * @return Whether the totalBillableCharacters field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalBillableCharacters() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 total_billable_characters = 1;
+ * @return The totalBillableCharacters.
+ */
+ @java.lang.Override
+ public long getTotalBillableCharacters() {
+ return totalBillableCharacters_;
+ }
+
+ public static final int TOTAL_TOKENS_FIELD_NUMBER = 2;
+ private long totalTokens_ = 0L;
+ /**
+ * optional int64 total_tokens = 2;
+ * @return Whether the totalTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 total_tokens = 2;
+ * @return The totalTokens.
+ */
+ @java.lang.Override
+ public long getTotalTokens() {
+ return totalTokens_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(1, totalBillableCharacters_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, totalTokens_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, totalBillableCharacters_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, totalTokens_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount) obj;
+
+ if (hasTotalBillableCharacters() != other.hasTotalBillableCharacters()) return false;
+ if (hasTotalBillableCharacters()) {
+ if (getTotalBillableCharacters()
+ != other.getTotalBillableCharacters()) return false;
+ }
+ if (hasTotalTokens() != other.hasTotalTokens()) return false;
+ if (hasTotalTokens()) {
+ if (getTotalTokens()
+ != other.getTotalTokens()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTotalBillableCharacters()) {
+ hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTotalBillableCharacters());
+ }
+ if (hasTotalTokens()) {
+ hash = (37 * hash) + TOTAL_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTotalTokens());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.TokenCount}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata.TokenCount)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ totalBillableCharacters_ = 0L;
+ totalTokens_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.totalBillableCharacters_ = totalBillableCharacters_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.totalTokens_ = totalTokens_;
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance()) return this;
+ if (other.hasTotalBillableCharacters()) {
+ setTotalBillableCharacters(other.getTotalBillableCharacters());
+ }
+ if (other.hasTotalTokens()) {
+ setTotalTokens(other.getTotalTokens());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ totalBillableCharacters_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ totalTokens_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long totalBillableCharacters_ ;
+ /**
+ * optional int64 total_billable_characters = 1;
+ * @return Whether the totalBillableCharacters field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalBillableCharacters() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 total_billable_characters = 1;
+ * @return The totalBillableCharacters.
+ */
+ @java.lang.Override
+ public long getTotalBillableCharacters() {
+ return totalBillableCharacters_;
+ }
+ /**
+ * optional int64 total_billable_characters = 1;
+ * @param value The totalBillableCharacters to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalBillableCharacters(long value) {
+
+ totalBillableCharacters_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 total_billable_characters = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalBillableCharacters() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ totalBillableCharacters_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalTokens_ ;
+ /**
+ * optional int64 total_tokens = 2;
+ * @return Whether the totalTokens field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokens() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 total_tokens = 2;
+ * @return The totalTokens.
+ */
+ @java.lang.Override
+ public long getTotalTokens() {
+ return totalTokens_;
+ }
+ /**
+ * optional int64 total_tokens = 2;
+ * @param value The totalTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalTokens(long value) {
+
+ totalTokens_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 total_tokens = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalTokens() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ totalTokens_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.TokenCount)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.TokenCount)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TokenCount parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TokenMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ * @return Whether the inputTokenCount field is set.
+ */
+ boolean hasInputTokenCount();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ * @return The inputTokenCount.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getInputTokenCount();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getInputTokenCountOrBuilder();
+
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ * @return Whether the outputTokenCount field is set.
+ */
+ boolean hasOutputTokenCount();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ * @return The outputTokenCount.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getOutputTokenCount();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getOutputTokenCountOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.TokenMetadata}
+ */
+ public static final class TokenMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata)
+ TokenMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TokenMetadata.newBuilder() to construct.
+ private TokenMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TokenMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TokenMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int INPUT_TOKEN_COUNT_FIELD_NUMBER = 1;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount inputTokenCount_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ * @return Whether the inputTokenCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasInputTokenCount() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ * @return The inputTokenCount.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getInputTokenCount() {
+ return inputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : inputTokenCount_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getInputTokenCountOrBuilder() {
+ return inputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : inputTokenCount_;
+ }
+
+ public static final int OUTPUT_TOKEN_COUNT_FIELD_NUMBER = 2;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount outputTokenCount_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ * @return Whether the outputTokenCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutputTokenCount() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ * @return The outputTokenCount.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getOutputTokenCount() {
+ return outputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : outputTokenCount_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getOutputTokenCountOrBuilder() {
+ return outputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : outputTokenCount_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getInputTokenCount());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getOutputTokenCount());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getInputTokenCount());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getOutputTokenCount());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata) obj;
+
+ if (hasInputTokenCount() != other.hasInputTokenCount()) return false;
+ if (hasInputTokenCount()) {
+ if (!getInputTokenCount()
+ .equals(other.getInputTokenCount())) return false;
+ }
+ if (hasOutputTokenCount() != other.hasOutputTokenCount()) return false;
+ if (hasOutputTokenCount()) {
+ if (!getOutputTokenCount()
+ .equals(other.getOutputTokenCount())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasInputTokenCount()) {
+ hash = (37 * hash) + INPUT_TOKEN_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getInputTokenCount().hashCode();
+ }
+ if (hasOutputTokenCount()) {
+ hash = (37 * hash) + OUTPUT_TOKEN_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputTokenCount().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.TokenMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getInputTokenCountFieldBuilder();
+ getOutputTokenCountFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ inputTokenCount_ = null;
+ if (inputTokenCountBuilder_ != null) {
+ inputTokenCountBuilder_.dispose();
+ inputTokenCountBuilder_ = null;
+ }
+ outputTokenCount_ = null;
+ if (outputTokenCountBuilder_ != null) {
+ outputTokenCountBuilder_.dispose();
+ outputTokenCountBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.inputTokenCount_ = inputTokenCountBuilder_ == null
+ ? inputTokenCount_
+ : inputTokenCountBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.outputTokenCount_ = outputTokenCountBuilder_ == null
+ ? outputTokenCount_
+ : outputTokenCountBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance()) return this;
+ if (other.hasInputTokenCount()) {
+ mergeInputTokenCount(other.getInputTokenCount());
+ }
+ if (other.hasOutputTokenCount()) {
+ mergeOutputTokenCount(other.getOutputTokenCount());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getInputTokenCountFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getOutputTokenCountFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount inputTokenCount_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder> inputTokenCountBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ * @return Whether the inputTokenCount field is set.
+ */
+ public boolean hasInputTokenCount() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ * @return The inputTokenCount.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getInputTokenCount() {
+ if (inputTokenCountBuilder_ == null) {
+ return inputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : inputTokenCount_;
+ } else {
+ return inputTokenCountBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ public Builder setInputTokenCount(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount value) {
+ if (inputTokenCountBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inputTokenCount_ = value;
+ } else {
+ inputTokenCountBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ public Builder setInputTokenCount(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder builderForValue) {
+ if (inputTokenCountBuilder_ == null) {
+ inputTokenCount_ = builderForValue.build();
+ } else {
+ inputTokenCountBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ public Builder mergeInputTokenCount(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount value) {
+ if (inputTokenCountBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ inputTokenCount_ != null &&
+ inputTokenCount_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance()) {
+ getInputTokenCountBuilder().mergeFrom(value);
+ } else {
+ inputTokenCount_ = value;
+ }
+ } else {
+ inputTokenCountBuilder_.mergeFrom(value);
+ }
+ if (inputTokenCount_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ public Builder clearInputTokenCount() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ inputTokenCount_ = null;
+ if (inputTokenCountBuilder_ != null) {
+ inputTokenCountBuilder_.dispose();
+ inputTokenCountBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder getInputTokenCountBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getInputTokenCountFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getInputTokenCountOrBuilder() {
+ if (inputTokenCountBuilder_ != null) {
+ return inputTokenCountBuilder_.getMessageOrBuilder();
+ } else {
+ return inputTokenCount_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : inputTokenCount_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount input_token_count = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder>
+ getInputTokenCountFieldBuilder() {
+ if (inputTokenCountBuilder_ == null) {
+ inputTokenCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder>(
+ getInputTokenCount(),
+ getParentForChildren(),
+ isClean());
+ inputTokenCount_ = null;
+ }
+ return inputTokenCountBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount outputTokenCount_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder> outputTokenCountBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ * @return Whether the outputTokenCount field is set.
+ */
+ public boolean hasOutputTokenCount() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ * @return The outputTokenCount.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount getOutputTokenCount() {
+ if (outputTokenCountBuilder_ == null) {
+ return outputTokenCount_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : outputTokenCount_;
+ } else {
+ return outputTokenCountBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ public Builder setOutputTokenCount(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount value) {
+ if (outputTokenCountBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ outputTokenCount_ = value;
+ } else {
+ outputTokenCountBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ public Builder setOutputTokenCount(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder builderForValue) {
+ if (outputTokenCountBuilder_ == null) {
+ outputTokenCount_ = builderForValue.build();
+ } else {
+ outputTokenCountBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ public Builder mergeOutputTokenCount(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount value) {
+ if (outputTokenCountBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ outputTokenCount_ != null &&
+ outputTokenCount_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance()) {
+ getOutputTokenCountBuilder().mergeFrom(value);
+ } else {
+ outputTokenCount_ = value;
+ }
+ } else {
+ outputTokenCountBuilder_.mergeFrom(value);
+ }
+ if (outputTokenCount_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ public Builder clearOutputTokenCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ outputTokenCount_ = null;
+ if (outputTokenCountBuilder_ != null) {
+ outputTokenCountBuilder_.dispose();
+ outputTokenCountBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder getOutputTokenCountBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getOutputTokenCountFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder getOutputTokenCountOrBuilder() {
+ if (outputTokenCountBuilder_ != null) {
+ return outputTokenCountBuilder_.getMessageOrBuilder();
+ } else {
+ return outputTokenCount_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.getDefaultInstance() : outputTokenCount_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenCount output_token_count = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder>
+ getOutputTokenCountFieldBuilder() {
+ if (outputTokenCountBuilder_ == null) {
+ outputTokenCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCount.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenCountOrBuilder>(
+ getOutputTokenCount(),
+ getParentForChildren(),
+ isClean());
+ outputTokenCount_ = null;
+ }
+ return outputTokenCountBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.TokenMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TokenMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.Metadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ * @return Whether the tokenMetadata field is set.
+ */
+ boolean hasTokenMetadata();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ * @return The tokenMetadata.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getTokenMetadata();
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder getTokenMetadataOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.Metadata}
+ */
+ public static final class Metadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.Metadata)
+ MetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Metadata.newBuilder() to construct.
+ private Metadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Metadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Metadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TOKEN_METADATA_FIELD_NUMBER = 1;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata tokenMetadata_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ * @return Whether the tokenMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasTokenMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ * @return The tokenMetadata.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getTokenMetadata() {
+ return tokenMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance() : tokenMetadata_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder getTokenMetadataOrBuilder() {
+ return tokenMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance() : tokenMetadata_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getTokenMetadata());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getTokenMetadata());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata) obj;
+
+ if (hasTokenMetadata() != other.hasTokenMetadata()) return false;
+ if (hasTokenMetadata()) {
+ if (!getTokenMetadata()
+ .equals(other.getTokenMetadata())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTokenMetadata()) {
+ hash = (37 * hash) + TOKEN_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getTokenMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.Metadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata.Metadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getTokenMetadataFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ tokenMetadata_ = null;
+ if (tokenMetadataBuilder_ != null) {
+ tokenMetadataBuilder_.dispose();
+ tokenMetadataBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.tokenMetadata_ = tokenMetadataBuilder_ == null
+ ? tokenMetadata_
+ : tokenMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance()) return this;
+ if (other.hasTokenMetadata()) {
+ mergeTokenMetadata(other.getTokenMetadata());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getTokenMetadataFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata tokenMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder> tokenMetadataBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ * @return Whether the tokenMetadata field is set.
+ */
+ public boolean hasTokenMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ * @return The tokenMetadata.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata getTokenMetadata() {
+ if (tokenMetadataBuilder_ == null) {
+ return tokenMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance() : tokenMetadata_;
+ } else {
+ return tokenMetadataBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ public Builder setTokenMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata value) {
+ if (tokenMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tokenMetadata_ = value;
+ } else {
+ tokenMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ public Builder setTokenMetadata(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder builderForValue) {
+ if (tokenMetadataBuilder_ == null) {
+ tokenMetadata_ = builderForValue.build();
+ } else {
+ tokenMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ public Builder mergeTokenMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata value) {
+ if (tokenMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ tokenMetadata_ != null &&
+ tokenMetadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance()) {
+ getTokenMetadataBuilder().mergeFrom(value);
+ } else {
+ tokenMetadata_ = value;
+ }
+ } else {
+ tokenMetadataBuilder_.mergeFrom(value);
+ }
+ if (tokenMetadata_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ public Builder clearTokenMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tokenMetadata_ = null;
+ if (tokenMetadataBuilder_ != null) {
+ tokenMetadataBuilder_.dispose();
+ tokenMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder getTokenMetadataBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTokenMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder getTokenMetadataOrBuilder() {
+ if (tokenMetadataBuilder_ != null) {
+ return tokenMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return tokenMetadata_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.getDefaultInstance() : tokenMetadata_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.TokenMetadata token_metadata = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder>
+ getTokenMetadataFieldBuilder() {
+ if (tokenMetadataBuilder_ == null) {
+ tokenMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.TokenMetadataOrBuilder>(
+ getTokenMetadata(),
+ getParentForChildren(),
+ isClean());
+ tokenMetadata_ = null;
+ }
+ return tokenMetadataBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.Metadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.Metadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Metadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface UsageMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int64 prompt_token_count = 1;
+ * @return Whether the promptTokenCount field is set.
+ */
+ boolean hasPromptTokenCount();
+ /**
+ * optional int64 prompt_token_count = 1;
+ * @return The promptTokenCount.
+ */
+ long getPromptTokenCount();
+
+ /**
+ * optional int64 candidates_token_count = 2;
+ * @return Whether the candidatesTokenCount field is set.
+ */
+ boolean hasCandidatesTokenCount();
+ /**
+ * optional int64 candidates_token_count = 2;
+ * @return The candidatesTokenCount.
+ */
+ long getCandidatesTokenCount();
+
+ /**
+ * optional int64 total_token_count = 3;
+ * @return Whether the totalTokenCount field is set.
+ */
+ boolean hasTotalTokenCount();
+ /**
+ * optional int64 total_token_count = 3;
+ * @return The totalTokenCount.
+ */
+ long getTotalTokenCount();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.UsageMetadata}
+ */
+ public static final class UsageMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata)
+ UsageMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use UsageMetadata.newBuilder() to construct.
+ private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private UsageMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new UsageMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1;
+ private long promptTokenCount_ = 0L;
+ /**
+ * optional int64 prompt_token_count = 1;
+ * @return Whether the promptTokenCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasPromptTokenCount() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 prompt_token_count = 1;
+ * @return The promptTokenCount.
+ */
+ @java.lang.Override
+ public long getPromptTokenCount() {
+ return promptTokenCount_;
+ }
+
+ public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2;
+ private long candidatesTokenCount_ = 0L;
+ /**
+ * optional int64 candidates_token_count = 2;
+ * @return Whether the candidatesTokenCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasCandidatesTokenCount() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 candidates_token_count = 2;
+ * @return The candidatesTokenCount.
+ */
+ @java.lang.Override
+ public long getCandidatesTokenCount() {
+ return candidatesTokenCount_;
+ }
+
+ public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3;
+ private long totalTokenCount_ = 0L;
+ /**
+ * optional int64 total_token_count = 3;
+ * @return Whether the totalTokenCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokenCount() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 total_token_count = 3;
+ * @return The totalTokenCount.
+ */
+ @java.lang.Override
+ public long getTotalTokenCount() {
+ return totalTokenCount_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(1, promptTokenCount_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, candidatesTokenCount_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt64(3, totalTokenCount_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, promptTokenCount_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, candidatesTokenCount_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(3, totalTokenCount_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata) obj;
+
+ if (hasPromptTokenCount() != other.hasPromptTokenCount()) return false;
+ if (hasPromptTokenCount()) {
+ if (getPromptTokenCount()
+ != other.getPromptTokenCount()) return false;
+ }
+ if (hasCandidatesTokenCount() != other.hasCandidatesTokenCount()) return false;
+ if (hasCandidatesTokenCount()) {
+ if (getCandidatesTokenCount()
+ != other.getCandidatesTokenCount()) return false;
+ }
+ if (hasTotalTokenCount() != other.hasTotalTokenCount()) return false;
+ if (hasTotalTokenCount()) {
+ if (getTotalTokenCount()
+ != other.getTotalTokenCount()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPromptTokenCount()) {
+ hash = (37 * hash) + PROMPT_TOKEN_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPromptTokenCount());
+ }
+ if (hasCandidatesTokenCount()) {
+ hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getCandidatesTokenCount());
+ }
+ if (hasTotalTokenCount()) {
+ hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTotalTokenCount());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata.UsageMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ promptTokenCount_ = 0L;
+ candidatesTokenCount_ = 0L;
+ totalTokenCount_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.promptTokenCount_ = promptTokenCount_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.candidatesTokenCount_ = candidatesTokenCount_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.totalTokenCount_ = totalTokenCount_;
+ to_bitField0_ |= 0x00000004;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance()) return this;
+ if (other.hasPromptTokenCount()) {
+ setPromptTokenCount(other.getPromptTokenCount());
+ }
+ if (other.hasCandidatesTokenCount()) {
+ setCandidatesTokenCount(other.getCandidatesTokenCount());
+ }
+ if (other.hasTotalTokenCount()) {
+ setTotalTokenCount(other.getTotalTokenCount());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ promptTokenCount_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ candidatesTokenCount_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ totalTokenCount_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long promptTokenCount_ ;
+ /**
+ * optional int64 prompt_token_count = 1;
+ * @return Whether the promptTokenCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasPromptTokenCount() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional int64 prompt_token_count = 1;
+ * @return The promptTokenCount.
+ */
+ @java.lang.Override
+ public long getPromptTokenCount() {
+ return promptTokenCount_;
+ }
+ /**
+ * optional int64 prompt_token_count = 1;
+ * @param value The promptTokenCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPromptTokenCount(long value) {
+
+ promptTokenCount_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 prompt_token_count = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearPromptTokenCount() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ promptTokenCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long candidatesTokenCount_ ;
+ /**
+ * optional int64 candidates_token_count = 2;
+ * @return Whether the candidatesTokenCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasCandidatesTokenCount() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional int64 candidates_token_count = 2;
+ * @return The candidatesTokenCount.
+ */
+ @java.lang.Override
+ public long getCandidatesTokenCount() {
+ return candidatesTokenCount_;
+ }
+ /**
+ * optional int64 candidates_token_count = 2;
+ * @param value The candidatesTokenCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCandidatesTokenCount(long value) {
+
+ candidatesTokenCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 candidates_token_count = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCandidatesTokenCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ candidatesTokenCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long totalTokenCount_ ;
+ /**
+ * optional int64 total_token_count = 3;
+ * @return Whether the totalTokenCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasTotalTokenCount() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional int64 total_token_count = 3;
+ * @return The totalTokenCount.
+ */
+ @java.lang.Override
+ public long getTotalTokenCount() {
+ return totalTokenCount_;
+ }
+ /**
+ * optional int64 total_token_count = 3;
+ * @param value The totalTokenCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalTokenCount(long value) {
+
+ totalTokenCount_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 total_token_count = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalTokenCount() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ totalTokenCount_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata.UsageMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public UsageMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int METADATA_FIELD_NUMBER = 1;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata metadata_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ * @return Whether the metadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ * @return The metadata.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getMetadata() {
+ return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance() : metadata_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder getMetadataOrBuilder() {
+ return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance() : metadata_;
+ }
+
+ public static final int USAGE_METADATA_FIELD_NUMBER = 2;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata usageMetadata_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ * @return Whether the usageMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasUsageMetadata() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ * @return The usageMetadata.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getUsageMetadata() {
+ return usageMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder getUsageMetadataOrBuilder() {
+ return usageMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getMetadata());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getUsageMetadata());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getMetadata());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getUsageMetadata());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) obj;
+
+ if (hasMetadata() != other.hasMetadata()) return false;
+ if (hasMetadata()) {
+ if (!getMetadata()
+ .equals(other.getMetadata())) return false;
+ }
+ if (hasUsageMetadata() != other.hasUsageMetadata()) return false;
+ if (hasUsageMetadata()) {
+ if (!getUsageMetadata()
+ .equals(other.getUsageMetadata())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasMetadata()) {
+ hash = (37 * hash) + METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getMetadata().hashCode();
+ }
+ if (hasUsageMetadata()) {
+ hash = (37 * hash) + USAGE_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getUsageMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeGoogleMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeGoogleMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getMetadataFieldBuilder();
+ getUsageMetadataFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
+ metadataBuilder_ = null;
+ }
+ usageMetadata_ = null;
+ if (usageMetadataBuilder_ != null) {
+ usageMetadataBuilder_.dispose();
+ usageMetadataBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.metadata_ = metadataBuilder_ == null
+ ? metadata_
+ : metadataBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.usageMetadata_ = usageMetadataBuilder_ == null
+ ? usageMetadata_
+ : usageMetadataBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance()) return this;
+ if (other.hasMetadata()) {
+ mergeMetadata(other.getMetadata());
+ }
+ if (other.hasUsageMetadata()) {
+ mergeUsageMetadata(other.getUsageMetadata());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getMetadataFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getUsageMetadataFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata metadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder> metadataBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ * @return Whether the metadata field is set.
+ */
+ public boolean hasMetadata() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ * @return The metadata.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata getMetadata() {
+ if (metadataBuilder_ == null) {
+ return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance() : metadata_;
+ } else {
+ return metadataBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ public Builder setMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata value) {
+ if (metadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metadata_ = value;
+ } else {
+ metadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ public Builder setMetadata(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder builderForValue) {
+ if (metadataBuilder_ == null) {
+ metadata_ = builderForValue.build();
+ } else {
+ metadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ public Builder mergeMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata value) {
+ if (metadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ metadata_ != null &&
+ metadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance()) {
+ getMetadataBuilder().mergeFrom(value);
+ } else {
+ metadata_ = value;
+ }
+ } else {
+ metadataBuilder_.mergeFrom(value);
+ }
+ if (metadata_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ public Builder clearMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
+ metadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder getMetadataBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder getMetadataOrBuilder() {
+ if (metadataBuilder_ != null) {
+ return metadataBuilder_.getMessageOrBuilder();
+ } else {
+ return metadata_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.getDefaultInstance() : metadata_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.Metadata metadata = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder>
+ getMetadataFieldBuilder() {
+ if (metadataBuilder_ == null) {
+ metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Metadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.MetadataOrBuilder>(
+ getMetadata(),
+ getParentForChildren(),
+ isClean());
+ metadata_ = null;
+ }
+ return metadataBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata usageMetadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder> usageMetadataBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ * @return Whether the usageMetadata field is set.
+ */
+ public boolean hasUsageMetadata() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ * @return The usageMetadata.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata getUsageMetadata() {
+ if (usageMetadataBuilder_ == null) {
+ return usageMetadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_;
+ } else {
+ return usageMetadataBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ public Builder setUsageMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata value) {
+ if (usageMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ usageMetadata_ = value;
+ } else {
+ usageMetadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ public Builder setUsageMetadata(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder builderForValue) {
+ if (usageMetadataBuilder_ == null) {
+ usageMetadata_ = builderForValue.build();
+ } else {
+ usageMetadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ public Builder mergeUsageMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata value) {
+ if (usageMetadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ usageMetadata_ != null &&
+ usageMetadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance()) {
+ getUsageMetadataBuilder().mergeFrom(value);
+ } else {
+ usageMetadata_ = value;
+ }
+ } else {
+ usageMetadataBuilder_.mergeFrom(value);
+ }
+ if (usageMetadata_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ public Builder clearUsageMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ usageMetadata_ = null;
+ if (usageMetadataBuilder_ != null) {
+ usageMetadataBuilder_.dispose();
+ usageMetadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder getUsageMetadataBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getUsageMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder getUsageMetadataOrBuilder() {
+ if (usageMetadataBuilder_ != null) {
+ return usageMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return usageMetadata_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.getDefaultInstance() : usageMetadata_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeGoogleMetadata.UsageMetadata usage_metadata = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder>
+ getUsageMetadataFieldBuilder() {
+ if (usageMetadataBuilder_ == null) {
+ usageMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.UsageMetadataOrBuilder>(
+ getUsageMetadata(),
+ getParentForChildren(),
+ isClean());
+ usageMetadata_ = null;
+ }
+ return usageMetadataBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeGoogleMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeGoogleMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeGoogleMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeMetadataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ * @return Whether the anthropic field is set.
+ */
+ boolean hasAnthropic();
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ * @return The anthropic.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getAnthropic();
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder getAnthropicOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ * @return Whether the anyscale field is set.
+ */
+ boolean hasAnyscale();
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ * @return The anyscale.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getAnyscale();
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder getAnyscaleOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ * @return Whether the aws field is set.
+ */
+ boolean hasAws();
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ * @return The aws.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getAws();
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder getAwsOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ * @return Whether the cohere field is set.
+ */
+ boolean hasCohere();
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ * @return The cohere.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getCohere();
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder getCohereOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ * @return Whether the dummy field is set.
+ */
+ boolean hasDummy();
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ * @return The dummy.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDummy();
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder getDummyOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ * @return Whether the mistral field is set.
+ */
+ boolean hasMistral();
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ * @return The mistral.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getMistral();
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder getMistralOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ * @return Whether the octoai field is set.
+ */
+ boolean hasOctoai();
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ * @return The octoai.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getOctoai();
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder getOctoaiOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ * @return Whether the ollama field is set.
+ */
+ boolean hasOllama();
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ * @return The ollama.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama();
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ * @return Whether the openai field is set.
+ */
+ boolean hasOpenai();
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ * @return The openai.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai();
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder();
+
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ * @return Whether the google field is set.
+ */
+ boolean hasGoogle();
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ * @return The google.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle();
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder();
+
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.KindCase getKindCase();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeMetadata}
+ */
+ public static final class GenerativeMetadata extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeMetadata)
+ GenerativeMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeMetadata.newBuilder() to construct.
+ private GenerativeMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeMetadata() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeMetadata();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder.class);
+ }
+
+ private int kindCase_ = 0;
+ @SuppressWarnings("serial")
+ private java.lang.Object kind_;
+ public enum KindCase
+ implements com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ ANTHROPIC(1),
+ ANYSCALE(2),
+ AWS(3),
+ COHERE(4),
+ DUMMY(5),
+ MISTRAL(6),
+ OCTOAI(7),
+ OLLAMA(8),
+ OPENAI(9),
+ GOOGLE(10),
+ KIND_NOT_SET(0);
+ private final int value;
+ private KindCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static KindCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static KindCase forNumber(int value) {
+ switch (value) {
+ case 1: return ANTHROPIC;
+ case 2: return ANYSCALE;
+ case 3: return AWS;
+ case 4: return COHERE;
+ case 5: return DUMMY;
+ case 6: return MISTRAL;
+ case 7: return OCTOAI;
+ case 8: return OLLAMA;
+ case 9: return OPENAI;
+ case 10: return GOOGLE;
+ case 0: return KIND_NOT_SET;
+ default: return null;
+ }
+ }
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public KindCase
+ getKindCase() {
+ return KindCase.forNumber(
+ kindCase_);
+ }
+
+ public static final int ANTHROPIC_FIELD_NUMBER = 1;
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ * @return Whether the anthropic field is set.
+ */
+ @java.lang.Override
+ public boolean hasAnthropic() {
+ return kindCase_ == 1;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ * @return The anthropic.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getAnthropic() {
+ if (kindCase_ == 1) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder getAnthropicOrBuilder() {
+ if (kindCase_ == 1) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance();
+ }
+
+ public static final int ANYSCALE_FIELD_NUMBER = 2;
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ * @return Whether the anyscale field is set.
+ */
+ @java.lang.Override
+ public boolean hasAnyscale() {
+ return kindCase_ == 2;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ * @return The anyscale.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getAnyscale() {
+ if (kindCase_ == 2) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder getAnyscaleOrBuilder() {
+ if (kindCase_ == 2) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance();
+ }
+
+ public static final int AWS_FIELD_NUMBER = 3;
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ * @return Whether the aws field is set.
+ */
+ @java.lang.Override
+ public boolean hasAws() {
+ return kindCase_ == 3;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ * @return The aws.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getAws() {
+ if (kindCase_ == 3) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder getAwsOrBuilder() {
+ if (kindCase_ == 3) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance();
+ }
+
+ public static final int COHERE_FIELD_NUMBER = 4;
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ * @return Whether the cohere field is set.
+ */
+ @java.lang.Override
+ public boolean hasCohere() {
+ return kindCase_ == 4;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ * @return The cohere.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getCohere() {
+ if (kindCase_ == 4) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder getCohereOrBuilder() {
+ if (kindCase_ == 4) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance();
+ }
+
+ public static final int DUMMY_FIELD_NUMBER = 5;
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ * @return Whether the dummy field is set.
+ */
+ @java.lang.Override
+ public boolean hasDummy() {
+ return kindCase_ == 5;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ * @return The dummy.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDummy() {
+ if (kindCase_ == 5) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder getDummyOrBuilder() {
+ if (kindCase_ == 5) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance();
+ }
+
+ public static final int MISTRAL_FIELD_NUMBER = 6;
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ * @return Whether the mistral field is set.
+ */
+ @java.lang.Override
+ public boolean hasMistral() {
+ return kindCase_ == 6;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ * @return The mistral.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getMistral() {
+ if (kindCase_ == 6) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder getMistralOrBuilder() {
+ if (kindCase_ == 6) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance();
+ }
+
+ public static final int OCTOAI_FIELD_NUMBER = 7;
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ * @return Whether the octoai field is set.
+ */
+ @java.lang.Override
+ public boolean hasOctoai() {
+ return kindCase_ == 7;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ * @return The octoai.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getOctoai() {
+ if (kindCase_ == 7) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder getOctoaiOrBuilder() {
+ if (kindCase_ == 7) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance();
+ }
+
+ public static final int OLLAMA_FIELD_NUMBER = 8;
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ * @return Whether the ollama field is set.
+ */
+ @java.lang.Override
+ public boolean hasOllama() {
+ return kindCase_ == 8;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ * @return The ollama.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama() {
+ if (kindCase_ == 8) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder() {
+ if (kindCase_ == 8) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance();
+ }
+
+ public static final int OPENAI_FIELD_NUMBER = 9;
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ * @return Whether the openai field is set.
+ */
+ @java.lang.Override
+ public boolean hasOpenai() {
+ return kindCase_ == 9;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ * @return The openai.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai() {
+ if (kindCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder() {
+ if (kindCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance();
+ }
+
+ public static final int GOOGLE_FIELD_NUMBER = 10;
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ * @return Whether the google field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogle() {
+ return kindCase_ == 10;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ * @return The google.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle() {
+ if (kindCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance();
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder() {
+ if (kindCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (kindCase_ == 1) {
+ output.writeMessage(1, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_);
+ }
+ if (kindCase_ == 2) {
+ output.writeMessage(2, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_);
+ }
+ if (kindCase_ == 3) {
+ output.writeMessage(3, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_);
+ }
+ if (kindCase_ == 4) {
+ output.writeMessage(4, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_);
+ }
+ if (kindCase_ == 5) {
+ output.writeMessage(5, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_);
+ }
+ if (kindCase_ == 6) {
+ output.writeMessage(6, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_);
+ }
+ if (kindCase_ == 7) {
+ output.writeMessage(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_);
+ }
+ if (kindCase_ == 8) {
+ output.writeMessage(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_);
+ }
+ if (kindCase_ == 9) {
+ output.writeMessage(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_);
+ }
+ if (kindCase_ == 10) {
+ output.writeMessage(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (kindCase_ == 1) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_);
+ }
+ if (kindCase_ == 2) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_);
+ }
+ if (kindCase_ == 3) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_);
+ }
+ if (kindCase_ == 4) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_);
+ }
+ if (kindCase_ == 5) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_);
+ }
+ if (kindCase_ == 6) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_);
+ }
+ if (kindCase_ == 7) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_);
+ }
+ if (kindCase_ == 8) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_);
+ }
+ if (kindCase_ == 9) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_);
+ }
+ if (kindCase_ == 10) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata) obj;
+
+ if (!getKindCase().equals(other.getKindCase())) return false;
+ switch (kindCase_) {
+ case 1:
+ if (!getAnthropic()
+ .equals(other.getAnthropic())) return false;
+ break;
+ case 2:
+ if (!getAnyscale()
+ .equals(other.getAnyscale())) return false;
+ break;
+ case 3:
+ if (!getAws()
+ .equals(other.getAws())) return false;
+ break;
+ case 4:
+ if (!getCohere()
+ .equals(other.getCohere())) return false;
+ break;
+ case 5:
+ if (!getDummy()
+ .equals(other.getDummy())) return false;
+ break;
+ case 6:
+ if (!getMistral()
+ .equals(other.getMistral())) return false;
+ break;
+ case 7:
+ if (!getOctoai()
+ .equals(other.getOctoai())) return false;
+ break;
+ case 8:
+ if (!getOllama()
+ .equals(other.getOllama())) return false;
+ break;
+ case 9:
+ if (!getOpenai()
+ .equals(other.getOpenai())) return false;
+ break;
+ case 10:
+ if (!getGoogle()
+ .equals(other.getGoogle())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (kindCase_) {
+ case 1:
+ hash = (37 * hash) + ANTHROPIC_FIELD_NUMBER;
+ hash = (53 * hash) + getAnthropic().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + ANYSCALE_FIELD_NUMBER;
+ hash = (53 * hash) + getAnyscale().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + AWS_FIELD_NUMBER;
+ hash = (53 * hash) + getAws().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + COHERE_FIELD_NUMBER;
+ hash = (53 * hash) + getCohere().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + DUMMY_FIELD_NUMBER;
+ hash = (53 * hash) + getDummy().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + MISTRAL_FIELD_NUMBER;
+ hash = (53 * hash) + getMistral().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + OCTOAI_FIELD_NUMBER;
+ hash = (53 * hash) + getOctoai().hashCode();
+ break;
+ case 8:
+ hash = (37 * hash) + OLLAMA_FIELD_NUMBER;
+ hash = (53 * hash) + getOllama().hashCode();
+ break;
+ case 9:
+ hash = (37 * hash) + OPENAI_FIELD_NUMBER;
+ hash = (53 * hash) + getOpenai().hashCode();
+ break;
+ case 10:
+ hash = (37 * hash) + GOOGLE_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogle().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeMetadata}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeMetadata)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (anthropicBuilder_ != null) {
+ anthropicBuilder_.clear();
+ }
+ if (anyscaleBuilder_ != null) {
+ anyscaleBuilder_.clear();
+ }
+ if (awsBuilder_ != null) {
+ awsBuilder_.clear();
+ }
+ if (cohereBuilder_ != null) {
+ cohereBuilder_.clear();
+ }
+ if (dummyBuilder_ != null) {
+ dummyBuilder_.clear();
+ }
+ if (mistralBuilder_ != null) {
+ mistralBuilder_.clear();
+ }
+ if (octoaiBuilder_ != null) {
+ octoaiBuilder_.clear();
+ }
+ if (ollamaBuilder_ != null) {
+ ollamaBuilder_.clear();
+ }
+ if (openaiBuilder_ != null) {
+ openaiBuilder_.clear();
+ }
+ if (googleBuilder_ != null) {
+ googleBuilder_.clear();
+ }
+ kindCase_ = 0;
+ kind_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ private void buildPartialOneofs(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata result) {
+ result.kindCase_ = kindCase_;
+ result.kind_ = this.kind_;
+ if (kindCase_ == 1 &&
+ anthropicBuilder_ != null) {
+ result.kind_ = anthropicBuilder_.build();
+ }
+ if (kindCase_ == 2 &&
+ anyscaleBuilder_ != null) {
+ result.kind_ = anyscaleBuilder_.build();
+ }
+ if (kindCase_ == 3 &&
+ awsBuilder_ != null) {
+ result.kind_ = awsBuilder_.build();
+ }
+ if (kindCase_ == 4 &&
+ cohereBuilder_ != null) {
+ result.kind_ = cohereBuilder_.build();
+ }
+ if (kindCase_ == 5 &&
+ dummyBuilder_ != null) {
+ result.kind_ = dummyBuilder_.build();
+ }
+ if (kindCase_ == 6 &&
+ mistralBuilder_ != null) {
+ result.kind_ = mistralBuilder_.build();
+ }
+ if (kindCase_ == 7 &&
+ octoaiBuilder_ != null) {
+ result.kind_ = octoaiBuilder_.build();
+ }
+ if (kindCase_ == 8 &&
+ ollamaBuilder_ != null) {
+ result.kind_ = ollamaBuilder_.build();
+ }
+ if (kindCase_ == 9 &&
+ openaiBuilder_ != null) {
+ result.kind_ = openaiBuilder_.build();
+ }
+ if (kindCase_ == 10 &&
+ googleBuilder_ != null) {
+ result.kind_ = googleBuilder_.build();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance()) return this;
+ switch (other.getKindCase()) {
+ case ANTHROPIC: {
+ mergeAnthropic(other.getAnthropic());
+ break;
+ }
+ case ANYSCALE: {
+ mergeAnyscale(other.getAnyscale());
+ break;
+ }
+ case AWS: {
+ mergeAws(other.getAws());
+ break;
+ }
+ case COHERE: {
+ mergeCohere(other.getCohere());
+ break;
+ }
+ case DUMMY: {
+ mergeDummy(other.getDummy());
+ break;
+ }
+ case MISTRAL: {
+ mergeMistral(other.getMistral());
+ break;
+ }
+ case OCTOAI: {
+ mergeOctoai(other.getOctoai());
+ break;
+ }
+ case OLLAMA: {
+ mergeOllama(other.getOllama());
+ break;
+ }
+ case OPENAI: {
+ mergeOpenai(other.getOpenai());
+ break;
+ }
+ case GOOGLE: {
+ mergeGoogle(other.getGoogle());
+ break;
+ }
+ case KIND_NOT_SET: {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getAnthropicFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 1;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getAnyscaleFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 2;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getAwsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 3;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getCohereFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 4;
+ break;
+ } // case 34
+ case 42: {
+ input.readMessage(
+ getDummyFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 5;
+ break;
+ } // case 42
+ case 50: {
+ input.readMessage(
+ getMistralFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 6;
+ break;
+ } // case 50
+ case 58: {
+ input.readMessage(
+ getOctoaiFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 7;
+ break;
+ } // case 58
+ case 66: {
+ input.readMessage(
+ getOllamaFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 8;
+ break;
+ } // case 66
+ case 74: {
+ input.readMessage(
+ getOpenaiFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 9;
+ break;
+ } // case 74
+ case 82: {
+ input.readMessage(
+ getGoogleFieldBuilder().getBuilder(),
+ extensionRegistry);
+ kindCase_ = 10;
+ break;
+ } // case 82
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int kindCase_ = 0;
+ private java.lang.Object kind_;
+ public KindCase
+ getKindCase() {
+ return KindCase.forNumber(
+ kindCase_);
+ }
+
+ public Builder clearKind() {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder> anthropicBuilder_;
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ * @return Whether the anthropic field is set.
+ */
+ @java.lang.Override
+ public boolean hasAnthropic() {
+ return kindCase_ == 1;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ * @return The anthropic.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata getAnthropic() {
+ if (anthropicBuilder_ == null) {
+ if (kindCase_ == 1) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 1) {
+ return anthropicBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ public Builder setAnthropic(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata value) {
+ if (anthropicBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ anthropicBuilder_.setMessage(value);
+ }
+ kindCase_ = 1;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ public Builder setAnthropic(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder builderForValue) {
+ if (anthropicBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ anthropicBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 1;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ public Builder mergeAnthropic(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata value) {
+ if (anthropicBuilder_ == null) {
+ if (kindCase_ == 1 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 1) {
+ anthropicBuilder_.mergeFrom(value);
+ } else {
+ anthropicBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 1;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ public Builder clearAnthropic() {
+ if (anthropicBuilder_ == null) {
+ if (kindCase_ == 1) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 1) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ anthropicBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder getAnthropicBuilder() {
+ return getAnthropicFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder getAnthropicOrBuilder() {
+ if ((kindCase_ == 1) && (anthropicBuilder_ != null)) {
+ return anthropicBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 1) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnthropicMetadata anthropic = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder>
+ getAnthropicFieldBuilder() {
+ if (anthropicBuilder_ == null) {
+ if (!(kindCase_ == 1)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.getDefaultInstance();
+ }
+ anthropicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnthropicMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 1;
+ onChanged();
+ return anthropicBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder> anyscaleBuilder_;
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ * @return Whether the anyscale field is set.
+ */
+ @java.lang.Override
+ public boolean hasAnyscale() {
+ return kindCase_ == 2;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ * @return The anyscale.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata getAnyscale() {
+ if (anyscaleBuilder_ == null) {
+ if (kindCase_ == 2) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 2) {
+ return anyscaleBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ public Builder setAnyscale(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata value) {
+ if (anyscaleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ anyscaleBuilder_.setMessage(value);
+ }
+ kindCase_ = 2;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ public Builder setAnyscale(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder builderForValue) {
+ if (anyscaleBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ anyscaleBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 2;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ public Builder mergeAnyscale(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata value) {
+ if (anyscaleBuilder_ == null) {
+ if (kindCase_ == 2 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 2) {
+ anyscaleBuilder_.mergeFrom(value);
+ } else {
+ anyscaleBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 2;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ public Builder clearAnyscale() {
+ if (anyscaleBuilder_ == null) {
+ if (kindCase_ == 2) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 2) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ anyscaleBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder getAnyscaleBuilder() {
+ return getAnyscaleFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder getAnyscaleOrBuilder() {
+ if ((kindCase_ == 2) && (anyscaleBuilder_ != null)) {
+ return anyscaleBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 2) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAnyscaleMetadata anyscale = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder>
+ getAnyscaleFieldBuilder() {
+ if (anyscaleBuilder_ == null) {
+ if (!(kindCase_ == 2)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.getDefaultInstance();
+ }
+ anyscaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAnyscaleMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 2;
+ onChanged();
+ return anyscaleBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder> awsBuilder_;
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ * @return Whether the aws field is set.
+ */
+ @java.lang.Override
+ public boolean hasAws() {
+ return kindCase_ == 3;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ * @return The aws.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata getAws() {
+ if (awsBuilder_ == null) {
+ if (kindCase_ == 3) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 3) {
+ return awsBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ public Builder setAws(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata value) {
+ if (awsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ awsBuilder_.setMessage(value);
+ }
+ kindCase_ = 3;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ public Builder setAws(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder builderForValue) {
+ if (awsBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ awsBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 3;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ public Builder mergeAws(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata value) {
+ if (awsBuilder_ == null) {
+ if (kindCase_ == 3 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 3) {
+ awsBuilder_.mergeFrom(value);
+ } else {
+ awsBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 3;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ public Builder clearAws() {
+ if (awsBuilder_ == null) {
+ if (kindCase_ == 3) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 3) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ awsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder getAwsBuilder() {
+ return getAwsFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder getAwsOrBuilder() {
+ if ((kindCase_ == 3) && (awsBuilder_ != null)) {
+ return awsBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 3) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeAWSMetadata aws = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder>
+ getAwsFieldBuilder() {
+ if (awsBuilder_ == null) {
+ if (!(kindCase_ == 3)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.getDefaultInstance();
+ }
+ awsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeAWSMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 3;
+ onChanged();
+ return awsBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder> cohereBuilder_;
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ * @return Whether the cohere field is set.
+ */
+ @java.lang.Override
+ public boolean hasCohere() {
+ return kindCase_ == 4;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ * @return The cohere.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata getCohere() {
+ if (cohereBuilder_ == null) {
+ if (kindCase_ == 4) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 4) {
+ return cohereBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ public Builder setCohere(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata value) {
+ if (cohereBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ cohereBuilder_.setMessage(value);
+ }
+ kindCase_ = 4;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ public Builder setCohere(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder builderForValue) {
+ if (cohereBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ cohereBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 4;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ public Builder mergeCohere(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata value) {
+ if (cohereBuilder_ == null) {
+ if (kindCase_ == 4 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 4) {
+ cohereBuilder_.mergeFrom(value);
+ } else {
+ cohereBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 4;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ public Builder clearCohere() {
+ if (cohereBuilder_ == null) {
+ if (kindCase_ == 4) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 4) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ cohereBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder getCohereBuilder() {
+ return getCohereFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder getCohereOrBuilder() {
+ if ((kindCase_ == 4) && (cohereBuilder_ != null)) {
+ return cohereBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 4) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeCohereMetadata cohere = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder>
+ getCohereFieldBuilder() {
+ if (cohereBuilder_ == null) {
+ if (!(kindCase_ == 4)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.getDefaultInstance();
+ }
+ cohereBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeCohereMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 4;
+ onChanged();
+ return cohereBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder> dummyBuilder_;
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ * @return Whether the dummy field is set.
+ */
+ @java.lang.Override
+ public boolean hasDummy() {
+ return kindCase_ == 5;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ * @return The dummy.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata getDummy() {
+ if (dummyBuilder_ == null) {
+ if (kindCase_ == 5) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 5) {
+ return dummyBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ public Builder setDummy(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata value) {
+ if (dummyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ dummyBuilder_.setMessage(value);
+ }
+ kindCase_ = 5;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ public Builder setDummy(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder builderForValue) {
+ if (dummyBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ dummyBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 5;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ public Builder mergeDummy(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata value) {
+ if (dummyBuilder_ == null) {
+ if (kindCase_ == 5 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 5) {
+ dummyBuilder_.mergeFrom(value);
+ } else {
+ dummyBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 5;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ public Builder clearDummy() {
+ if (dummyBuilder_ == null) {
+ if (kindCase_ == 5) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 5) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ dummyBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder getDummyBuilder() {
+ return getDummyFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder getDummyOrBuilder() {
+ if ((kindCase_ == 5) && (dummyBuilder_ != null)) {
+ return dummyBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 5) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeDummyMetadata dummy = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder>
+ getDummyFieldBuilder() {
+ if (dummyBuilder_ == null) {
+ if (!(kindCase_ == 5)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.getDefaultInstance();
+ }
+ dummyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDummyMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 5;
+ onChanged();
+ return dummyBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder> mistralBuilder_;
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ * @return Whether the mistral field is set.
+ */
+ @java.lang.Override
+ public boolean hasMistral() {
+ return kindCase_ == 6;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ * @return The mistral.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata getMistral() {
+ if (mistralBuilder_ == null) {
+ if (kindCase_ == 6) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 6) {
+ return mistralBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ public Builder setMistral(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata value) {
+ if (mistralBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ mistralBuilder_.setMessage(value);
+ }
+ kindCase_ = 6;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ public Builder setMistral(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder builderForValue) {
+ if (mistralBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ mistralBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 6;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ public Builder mergeMistral(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata value) {
+ if (mistralBuilder_ == null) {
+ if (kindCase_ == 6 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 6) {
+ mistralBuilder_.mergeFrom(value);
+ } else {
+ mistralBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 6;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ public Builder clearMistral() {
+ if (mistralBuilder_ == null) {
+ if (kindCase_ == 6) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 6) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ mistralBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder getMistralBuilder() {
+ return getMistralFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder getMistralOrBuilder() {
+ if ((kindCase_ == 6) && (mistralBuilder_ != null)) {
+ return mistralBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 6) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeMistralMetadata mistral = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder>
+ getMistralFieldBuilder() {
+ if (mistralBuilder_ == null) {
+ if (!(kindCase_ == 6)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.getDefaultInstance();
+ }
+ mistralBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMistralMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 6;
+ onChanged();
+ return mistralBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder> octoaiBuilder_;
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ * @return Whether the octoai field is set.
+ */
+ @java.lang.Override
+ public boolean hasOctoai() {
+ return kindCase_ == 7;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ * @return The octoai.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata getOctoai() {
+ if (octoaiBuilder_ == null) {
+ if (kindCase_ == 7) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 7) {
+ return octoaiBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ public Builder setOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata value) {
+ if (octoaiBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ octoaiBuilder_.setMessage(value);
+ }
+ kindCase_ = 7;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ public Builder setOctoai(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder builderForValue) {
+ if (octoaiBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ octoaiBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 7;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ public Builder mergeOctoai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata value) {
+ if (octoaiBuilder_ == null) {
+ if (kindCase_ == 7 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 7) {
+ octoaiBuilder_.mergeFrom(value);
+ } else {
+ octoaiBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 7;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ public Builder clearOctoai() {
+ if (octoaiBuilder_ == null) {
+ if (kindCase_ == 7) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 7) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ octoaiBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder getOctoaiBuilder() {
+ return getOctoaiFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder getOctoaiOrBuilder() {
+ if ((kindCase_ == 7) && (octoaiBuilder_ != null)) {
+ return octoaiBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 7) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOctoAIMetadata octoai = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder>
+ getOctoaiFieldBuilder() {
+ if (octoaiBuilder_ == null) {
+ if (!(kindCase_ == 7)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.getDefaultInstance();
+ }
+ octoaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOctoAIMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 7;
+ onChanged();
+ return octoaiBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder> ollamaBuilder_;
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ * @return Whether the ollama field is set.
+ */
+ @java.lang.Override
+ public boolean hasOllama() {
+ return kindCase_ == 8;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ * @return The ollama.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata getOllama() {
+ if (ollamaBuilder_ == null) {
+ if (kindCase_ == 8) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 8) {
+ return ollamaBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ public Builder setOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata value) {
+ if (ollamaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ ollamaBuilder_.setMessage(value);
+ }
+ kindCase_ = 8;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ public Builder setOllama(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder builderForValue) {
+ if (ollamaBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ ollamaBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 8;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ public Builder mergeOllama(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata value) {
+ if (ollamaBuilder_ == null) {
+ if (kindCase_ == 8 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 8) {
+ ollamaBuilder_.mergeFrom(value);
+ } else {
+ ollamaBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 8;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ public Builder clearOllama() {
+ if (ollamaBuilder_ == null) {
+ if (kindCase_ == 8) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 8) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ ollamaBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder getOllamaBuilder() {
+ return getOllamaFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder getOllamaOrBuilder() {
+ if ((kindCase_ == 8) && (ollamaBuilder_ != null)) {
+ return ollamaBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 8) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOllamaMetadata ollama = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder>
+ getOllamaFieldBuilder() {
+ if (ollamaBuilder_ == null) {
+ if (!(kindCase_ == 8)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.getDefaultInstance();
+ }
+ ollamaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOllamaMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 8;
+ onChanged();
+ return ollamaBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder> openaiBuilder_;
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ * @return Whether the openai field is set.
+ */
+ @java.lang.Override
+ public boolean hasOpenai() {
+ return kindCase_ == 9;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ * @return The openai.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata getOpenai() {
+ if (openaiBuilder_ == null) {
+ if (kindCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 9) {
+ return openaiBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ public Builder setOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata value) {
+ if (openaiBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ openaiBuilder_.setMessage(value);
+ }
+ kindCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ public Builder setOpenai(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder builderForValue) {
+ if (openaiBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ openaiBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ public Builder mergeOpenai(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata value) {
+ if (openaiBuilder_ == null) {
+ if (kindCase_ == 9 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 9) {
+ openaiBuilder_.mergeFrom(value);
+ } else {
+ openaiBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ public Builder clearOpenai() {
+ if (openaiBuilder_ == null) {
+ if (kindCase_ == 9) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 9) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ openaiBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder getOpenaiBuilder() {
+ return getOpenaiFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder getOpenaiOrBuilder() {
+ if ((kindCase_ == 9) && (openaiBuilder_ != null)) {
+ return openaiBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeOpenAIMetadata openai = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder>
+ getOpenaiFieldBuilder() {
+ if (openaiBuilder_ == null) {
+ if (!(kindCase_ == 9)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.getDefaultInstance();
+ }
+ openaiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeOpenAIMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 9;
+ onChanged();
+ return openaiBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder> googleBuilder_;
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ * @return Whether the google field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogle() {
+ return kindCase_ == 10;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ * @return The google.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata getGoogle() {
+ if (googleBuilder_ == null) {
+ if (kindCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance();
+ } else {
+ if (kindCase_ == 10) {
+ return googleBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ public Builder setGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata value) {
+ if (googleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kind_ = value;
+ onChanged();
+ } else {
+ googleBuilder_.setMessage(value);
+ }
+ kindCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ public Builder setGoogle(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder builderForValue) {
+ if (googleBuilder_ == null) {
+ kind_ = builderForValue.build();
+ onChanged();
+ } else {
+ googleBuilder_.setMessage(builderForValue.build());
+ }
+ kindCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ public Builder mergeGoogle(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata value) {
+ if (googleBuilder_ == null) {
+ if (kindCase_ == 10 &&
+ kind_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance()) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.newBuilder((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ kind_ = value;
+ }
+ onChanged();
+ } else {
+ if (kindCase_ == 10) {
+ googleBuilder_.mergeFrom(value);
+ } else {
+ googleBuilder_.setMessage(value);
+ }
+ }
+ kindCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ public Builder clearGoogle() {
+ if (googleBuilder_ == null) {
+ if (kindCase_ == 10) {
+ kindCase_ = 0;
+ kind_ = null;
+ onChanged();
+ }
+ } else {
+ if (kindCase_ == 10) {
+ kindCase_ = 0;
+ kind_ = null;
+ }
+ googleBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder getGoogleBuilder() {
+ return getGoogleFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder getGoogleOrBuilder() {
+ if ((kindCase_ == 10) && (googleBuilder_ != null)) {
+ return googleBuilder_.getMessageOrBuilder();
+ } else {
+ if (kindCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_;
+ }
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviate.v1.GenerativeGoogleMetadata google = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder>
+ getGoogleFieldBuilder() {
+ if (googleBuilder_ == null) {
+ if (!(kindCase_ == 10)) {
+ kind_ = io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.getDefaultInstance();
+ }
+ googleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadataOrBuilder>(
+ (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeGoogleMetadata) kind_,
+ getParentForChildren(),
+ isClean());
+ kind_ = null;
+ }
+ kindCase_ = 10;
+ onChanged();
+ return googleBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeMetadata)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeReplyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeReply)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string result = 1;
+ * @return The result.
+ */
+ java.lang.String getResult();
+ /**
+ * string result = 1;
+ * @return The bytes for result.
+ */
+ com.google.protobuf.ByteString
+ getResultBytes();
+
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ * @return Whether the debug field is set.
+ */
+ boolean hasDebug();
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ * @return The debug.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDebug();
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder getDebugOrBuilder();
+
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ * @return Whether the metadata field is set.
+ */
+ boolean hasMetadata();
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ * @return The metadata.
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getMetadata();
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder getMetadataOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeReply}
+ */
+ public static final class GenerativeReply extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeReply)
+ GenerativeReplyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeReply.newBuilder() to construct.
+ private GenerativeReply(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeReply() {
+ result_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeReply();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int RESULT_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object result_ = "";
+ /**
+ * string result = 1;
+ * @return The result.
+ */
+ @java.lang.Override
+ public java.lang.String getResult() {
+ java.lang.Object ref = result_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ result_ = s;
+ return s;
+ }
+ }
+ /**
+ * string result = 1;
+ * @return The bytes for result.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getResultBytes() {
+ java.lang.Object ref = result_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ result_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DEBUG_FIELD_NUMBER = 2;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug debug_;
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ * @return Whether the debug field is set.
+ */
+ @java.lang.Override
+ public boolean hasDebug() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ * @return The debug.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDebug() {
+ return debug_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance() : debug_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder getDebugOrBuilder() {
+ return debug_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance() : debug_;
+ }
+
+ public static final int METADATA_FIELD_NUMBER = 3;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata metadata_;
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ * @return Whether the metadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasMetadata() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ * @return The metadata.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getMetadata() {
+ return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance() : metadata_;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder getMetadataOrBuilder() {
+ return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance() : metadata_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(result_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, result_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getDebug());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(3, getMetadata());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(result_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, result_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getDebug());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getMetadata());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply) obj;
+
+ if (!getResult()
+ .equals(other.getResult())) return false;
+ if (hasDebug() != other.hasDebug()) return false;
+ if (hasDebug()) {
+ if (!getDebug()
+ .equals(other.getDebug())) return false;
+ }
+ if (hasMetadata() != other.hasMetadata()) return false;
+ if (hasMetadata()) {
+ if (!getMetadata()
+ .equals(other.getMetadata())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getResult().hashCode();
+ if (hasDebug()) {
+ hash = (37 * hash) + DEBUG_FIELD_NUMBER;
+ hash = (53 * hash) + getDebug().hashCode();
+ }
+ if (hasMetadata()) {
+ hash = (37 * hash) + METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getMetadata().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeReply}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeReply)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getDebugFieldBuilder();
+ getMetadataFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ result_ = "";
+ debug_ = null;
+ if (debugBuilder_ != null) {
+ debugBuilder_.dispose();
+ debugBuilder_ = null;
+ }
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
+ metadataBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeReply_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.result_ = result_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.debug_ = debugBuilder_ == null
+ ? debug_
+ : debugBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.metadata_ = metadataBuilder_ == null
+ ? metadata_
+ : metadataBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance()) return this;
+ if (!other.getResult().isEmpty()) {
+ result_ = other.result_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasDebug()) {
+ mergeDebug(other.getDebug());
+ }
+ if (other.hasMetadata()) {
+ mergeMetadata(other.getMetadata());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ result_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getDebugFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getMetadataFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object result_ = "";
+ /**
+ * string result = 1;
+ * @return The result.
+ */
+ public java.lang.String getResult() {
+ java.lang.Object ref = result_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ result_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string result = 1;
+ * @return The bytes for result.
+ */
+ public com.google.protobuf.ByteString
+ getResultBytes() {
+ java.lang.Object ref = result_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ result_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string result = 1;
+ * @param value The result to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResult(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ result_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string result = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearResult() {
+ result_ = getDefaultInstance().getResult();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string result = 1;
+ * @param value The bytes for result to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResultBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ result_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug debug_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder> debugBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ * @return Whether the debug field is set.
+ */
+ public boolean hasDebug() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ * @return The debug.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDebug() {
+ if (debugBuilder_ == null) {
+ return debug_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance() : debug_;
+ } else {
+ return debugBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ public Builder setDebug(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug value) {
+ if (debugBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ debug_ = value;
+ } else {
+ debugBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ public Builder setDebug(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder builderForValue) {
+ if (debugBuilder_ == null) {
+ debug_ = builderForValue.build();
+ } else {
+ debugBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ public Builder mergeDebug(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug value) {
+ if (debugBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) &&
+ debug_ != null &&
+ debug_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance()) {
+ getDebugBuilder().mergeFrom(value);
+ } else {
+ debug_ = value;
+ }
+ } else {
+ debugBuilder_.mergeFrom(value);
+ }
+ if (debug_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ public Builder clearDebug() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ debug_ = null;
+ if (debugBuilder_ != null) {
+ debugBuilder_.dispose();
+ debugBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder getDebugBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getDebugFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder getDebugOrBuilder() {
+ if (debugBuilder_ != null) {
+ return debugBuilder_.getMessageOrBuilder();
+ } else {
+ return debug_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance() : debug_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeDebug debug = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder>
+ getDebugFieldBuilder() {
+ if (debugBuilder_ == null) {
+ debugBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder>(
+ getDebug(),
+ getParentForChildren(),
+ isClean());
+ debug_ = null;
+ }
+ return debugBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata metadata_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder> metadataBuilder_;
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ * @return Whether the metadata field is set.
+ */
+ public boolean hasMetadata() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ * @return The metadata.
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata getMetadata() {
+ if (metadataBuilder_ == null) {
+ return metadata_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance() : metadata_;
+ } else {
+ return metadataBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ public Builder setMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata value) {
+ if (metadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metadata_ = value;
+ } else {
+ metadataBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ public Builder setMetadata(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder builderForValue) {
+ if (metadataBuilder_ == null) {
+ metadata_ = builderForValue.build();
+ } else {
+ metadataBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ public Builder mergeMetadata(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata value) {
+ if (metadataBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ metadata_ != null &&
+ metadata_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance()) {
+ getMetadataBuilder().mergeFrom(value);
+ } else {
+ metadata_ = value;
+ }
+ } else {
+ metadataBuilder_.mergeFrom(value);
+ }
+ if (metadata_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ public Builder clearMetadata() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ metadata_ = null;
+ if (metadataBuilder_ != null) {
+ metadataBuilder_.dispose();
+ metadataBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder getMetadataBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder getMetadataOrBuilder() {
+ if (metadataBuilder_ != null) {
+ return metadataBuilder_.getMessageOrBuilder();
+ } else {
+ return metadata_ == null ?
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.getDefaultInstance() : metadata_;
+ }
+ }
+ /**
+ * optional .weaviate.v1.GenerativeMetadata metadata = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder>
+ getMetadataFieldBuilder() {
+ if (metadataBuilder_ == null) {
+ metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadata.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeMetadataOrBuilder>(
+ getMetadata(),
+ getParentForChildren(),
+ isClean());
+ metadata_ = null;
+ }
+ return metadataBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeReply)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeReply)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeReply parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeResult)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ java.util.List
+ getValuesList();
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getValues(int index);
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ int getValuesCount();
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder>
+ getValuesOrBuilderList();
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getValuesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeResult}
+ */
+ public static final class GenerativeResult extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeResult)
+ GenerativeResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeResult.newBuilder() to construct.
+ private GenerativeResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeResult() {
+ values_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeResult();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder.class);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List values_;
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ @java.lang.Override
+ public java.util.List getValuesList() {
+ return values_;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder>
+ getValuesOrBuilderList() {
+ return values_;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ @java.lang.Override
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getValuesOrBuilder(
+ int index) {
+ return values_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < values_.size(); i++) {
+ output.writeMessage(1, values_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, values_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult) obj;
+
+ if (!getValuesList()
+ .equals(other.getValuesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeResult}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeResult)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valuesBuilder_ == null) {
+ values_ = java.util.Collections.emptyList();
+ } else {
+ values_ = null;
+ valuesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeResult_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult result) {
+ if (valuesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ values_ = java.util.Collections.unmodifiableList(values_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.values_ = values_;
+ } else {
+ result.values_ = valuesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult.getDefaultInstance()) return this;
+ if (valuesBuilder_ == null) {
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.values_.isEmpty()) {
+ if (valuesBuilder_.isEmpty()) {
+ valuesBuilder_.dispose();
+ valuesBuilder_ = null;
+ values_ = other.values_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valuesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getValuesFieldBuilder() : null;
+ } else {
+ valuesBuilder_.addAllMessages(other.values_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply m =
+ input.readMessage(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.parser(),
+ extensionRegistry);
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(m);
+ } else {
+ valuesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List values_ =
+ java.util.Collections.emptyList();
+ private void ensureValuesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ values_ = new java.util.ArrayList(values_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder> valuesBuilder_;
+
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public java.util.List getValuesList() {
+ if (valuesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(values_);
+ } else {
+ return valuesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public int getValuesCount() {
+ if (valuesBuilder_ == null) {
+ return values_.size();
+ } else {
+ return valuesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply getValues(int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index);
+ } else {
+ return valuesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder setValues(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder setValues(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder addValues(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder addValues(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder addValues(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder addValues(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder addAllValues(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply> values) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, values_);
+ onChanged();
+ } else {
+ valuesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder clearValues() {
+ if (valuesBuilder_ == null) {
+ values_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valuesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public Builder removeValues(int index) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.remove(index);
+ onChanged();
+ } else {
+ valuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder getValuesBuilder(
+ int index) {
+ return getValuesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder getValuesOrBuilder(
+ int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index); } else {
+ return valuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder>
+ getValuesOrBuilderList() {
+ if (valuesBuilder_ != null) {
+ return valuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(values_);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder addValuesBuilder() {
+ return getValuesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder addValuesBuilder(
+ int index) {
+ return getValuesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.GenerativeReply values = 1;
+ */
+ public java.util.List
+ getValuesBuilderList() {
+ return getValuesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder>
+ getValuesFieldBuilder() {
+ if (valuesBuilder_ == null) {
+ valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReply.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeReplyOrBuilder>(
+ values_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ values_ = null;
+ }
+ return valuesBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeResult)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeResult parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeResult getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeDebugOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeDebug)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string full_prompt = 1;
+ * @return Whether the fullPrompt field is set.
+ */
+ boolean hasFullPrompt();
+ /**
+ * optional string full_prompt = 1;
+ * @return The fullPrompt.
+ */
+ java.lang.String getFullPrompt();
+ /**
+ * optional string full_prompt = 1;
+ * @return The bytes for fullPrompt.
+ */
+ com.google.protobuf.ByteString
+ getFullPromptBytes();
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeDebug}
+ */
+ public static final class GenerativeDebug extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeDebug)
+ GenerativeDebugOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeDebug.newBuilder() to construct.
+ private GenerativeDebug(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeDebug() {
+ fullPrompt_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeDebug();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int FULL_PROMPT_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object fullPrompt_ = "";
+ /**
+ * optional string full_prompt = 1;
+ * @return Whether the fullPrompt field is set.
+ */
+ @java.lang.Override
+ public boolean hasFullPrompt() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string full_prompt = 1;
+ * @return The fullPrompt.
+ */
+ @java.lang.Override
+ public java.lang.String getFullPrompt() {
+ java.lang.Object ref = fullPrompt_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fullPrompt_ = s;
+ return s;
+ }
+ }
+ /**
+ * optional string full_prompt = 1;
+ * @return The bytes for fullPrompt.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getFullPromptBytes() {
+ java.lang.Object ref = fullPrompt_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fullPrompt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullPrompt_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullPrompt_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug) obj;
+
+ if (hasFullPrompt() != other.hasFullPrompt()) return false;
+ if (hasFullPrompt()) {
+ if (!getFullPrompt()
+ .equals(other.getFullPrompt())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasFullPrompt()) {
+ hash = (37 * hash) + FULL_PROMPT_FIELD_NUMBER;
+ hash = (53 * hash) + getFullPrompt().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code weaviate.v1.GenerativeDebug}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeDebug)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebugOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ fullPrompt_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.internal_static_weaviate_v1_GenerativeDebug_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.fullPrompt_ = fullPrompt_;
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug.getDefaultInstance()) return this;
+ if (other.hasFullPrompt()) {
+ fullPrompt_ = other.fullPrompt_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ fullPrompt_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object fullPrompt_ = "";
+ /**
+ * optional string full_prompt = 1;
+ * @return Whether the fullPrompt field is set.
+ */
+ public boolean hasFullPrompt() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string full_prompt = 1;
+ * @return The fullPrompt.
+ */
+ public java.lang.String getFullPrompt() {
+ java.lang.Object ref = fullPrompt_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fullPrompt_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string full_prompt = 1;
+ * @return The bytes for fullPrompt.
+ */
+ public com.google.protobuf.ByteString
+ getFullPromptBytes() {
+ java.lang.Object ref = fullPrompt_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fullPrompt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string full_prompt = 1;
+ * @param value The fullPrompt to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFullPrompt(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ fullPrompt_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string full_prompt = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearFullPrompt() {
+ fullPrompt_ = getDefaultInstance().getFullPrompt();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string full_prompt = 1;
+ * @param value The bytes for fullPrompt to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFullPromptBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ fullPrompt_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeDebug)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeDebug)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug();
+ }
+
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GenerativeDebug parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeDebug getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeSearch_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeSearch_Single_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeSearch_Single_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeSearch_Grouped_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeProvider_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeProvider_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeAnthropic_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeAnyscale_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeAnyscale_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeAWS_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeAWS_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeCohere_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeDummy_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeDummy_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeMistral_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeMistral_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeOctoAI_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeOctoAI_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeOllama_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeOpenAI_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeGoogle_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeDummyMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeOllamaMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeMetadata_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeMetadata_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeReply_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeResult_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeResult_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_weaviate_v1_GenerativeDebug_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\023v1/generative.proto\022\013weaviate.v1\032\rv1/b" +
+ "ase.proto\"\233\003\n\020GenerativeSearch\022\"\n\026single" +
+ "_response_prompt\030\001 \001(\tB\002\030\001\022!\n\025grouped_re" +
+ "sponse_task\030\002 \001(\tB\002\030\001\022\036\n\022grouped_propert" +
+ "ies\030\003 \003(\tB\002\030\001\0224\n\006single\030\004 \001(\0132$.weaviate" +
+ ".v1.GenerativeSearch.Single\0226\n\007grouped\030\005" +
+ " \001(\0132%.weaviate.v1.GenerativeSearch.Grou" +
+ "ped\032Y\n\006Single\022\016\n\006prompt\030\001 \001(\t\022\r\n\005debug\030\002" +
+ " \001(\010\0220\n\007queries\030\003 \003(\0132\037.weaviate.v1.Gene" +
+ "rativeProvider\032W\n\007Grouped\022\014\n\004task\030\001 \001(\t\022" +
+ "/\n\nproperties\030\002 \001(\0132\026.weaviate.v1.TextAr" +
+ "rayH\000\210\001\001B\r\n\013_properties\"\243\004\n\022GenerativePr" +
+ "ovider\022\027\n\017return_metadata\030\001 \001(\010\0225\n\tanthr" +
+ "opic\030\002 \001(\0132 .weaviate.v1.GenerativeAnthr" +
+ "opicH\000\0223\n\010anyscale\030\003 \001(\0132\037.weaviate.v1.G" +
+ "enerativeAnyscaleH\000\022)\n\003aws\030\004 \001(\0132\032.weavi" +
+ "ate.v1.GenerativeAWSH\000\022/\n\006cohere\030\005 \001(\0132\035" +
+ ".weaviate.v1.GenerativeCohereH\000\022-\n\005dummy" +
+ "\030\006 \001(\0132\034.weaviate.v1.GenerativeDummyH\000\0221" +
+ "\n\007mistral\030\007 \001(\0132\036.weaviate.v1.Generative" +
+ "MistralH\000\022/\n\006octoai\030\010 \001(\0132\035.weaviate.v1." +
+ "GenerativeOctoAIH\000\022/\n\006ollama\030\t \001(\0132\035.wea" +
+ "viate.v1.GenerativeOllamaH\000\022/\n\006openai\030\n " +
+ "\001(\0132\035.weaviate.v1.GenerativeOpenAIH\000\022/\n\006" +
+ "google\030\013 \001(\0132\035.weaviate.v1.GenerativeGoo" +
+ "gleH\000B\006\n\004kind\"\255\002\n\023GenerativeAnthropic\022\025\n" +
+ "\010base_url\030\001 \001(\tH\000\210\001\001\022\027\n\nmax_tokens\030\002 \001(\003" +
+ "H\001\210\001\001\022\022\n\005model\030\003 \001(\tH\002\210\001\001\022\030\n\013temperature" +
+ "\030\004 \001(\001H\003\210\001\001\022\022\n\005top_k\030\005 \001(\003H\004\210\001\001\022\022\n\005top_p" +
+ "\030\006 \001(\001H\005\210\001\001\0223\n\016stop_sequences\030\007 \001(\0132\026.we" +
+ "aviate.v1.TextArrayH\006\210\001\001B\013\n\t_base_urlB\r\n" +
+ "\013_max_tokensB\010\n\006_modelB\016\n\014_temperatureB\010" +
+ "\n\006_top_kB\010\n\006_top_pB\021\n\017_stop_sequences\"\200\001" +
+ "\n\022GenerativeAnyscale\022\025\n\010base_url\030\001 \001(\tH\000" +
+ "\210\001\001\022\022\n\005model\030\002 \001(\tH\001\210\001\001\022\030\n\013temperature\030\003" +
+ " \001(\001H\002\210\001\001B\013\n\t_base_urlB\010\n\006_modelB\016\n\014_tem" +
+ "perature\"W\n\rGenerativeAWS\022\022\n\005model\030\003 \001(\t" +
+ "H\000\210\001\001\022\030\n\013temperature\030\010 \001(\001H\001\210\001\001B\010\n\006_mode" +
+ "lB\016\n\014_temperature\"\204\003\n\020GenerativeCohere\022\025" +
+ "\n\010base_url\030\001 \001(\tH\000\210\001\001\022\036\n\021frequency_penal" +
+ "ty\030\002 \001(\001H\001\210\001\001\022\027\n\nmax_tokens\030\003 \001(\003H\002\210\001\001\022\022" +
+ "\n\005model\030\004 \001(\tH\003\210\001\001\022\016\n\001k\030\005 \001(\003H\004\210\001\001\022\016\n\001p\030" +
+ "\006 \001(\001H\005\210\001\001\022\035\n\020presence_penalty\030\007 \001(\001H\006\210\001" +
+ "\001\0223\n\016stop_sequences\030\010 \001(\0132\026.weaviate.v1." +
+ "TextArrayH\007\210\001\001\022\030\n\013temperature\030\t \001(\001H\010\210\001\001" +
+ "B\013\n\t_base_urlB\024\n\022_frequency_penaltyB\r\n\013_" +
+ "max_tokensB\010\n\006_modelB\004\n\002_kB\004\n\002_pB\023\n\021_pre" +
+ "sence_penaltyB\021\n\017_stop_sequencesB\016\n\014_tem" +
+ "perature\"\021\n\017GenerativeDummy\"\305\001\n\021Generati" +
+ "veMistral\022\025\n\010base_url\030\001 \001(\tH\000\210\001\001\022\027\n\nmax_" +
+ "tokens\030\002 \001(\003H\001\210\001\001\022\022\n\005model\030\003 \001(\tH\002\210\001\001\022\030\n" +
+ "\013temperature\030\004 \001(\001H\003\210\001\001\022\022\n\005top_p\030\005 \001(\001H\004" +
+ "\210\001\001B\013\n\t_base_urlB\r\n\013_max_tokensB\010\n\006_mode" +
+ "lB\016\n\014_temperatureB\010\n\006_top_p\"\332\001\n\020Generati" +
+ "veOctoAI\022\025\n\010base_url\030\001 \001(\tH\000\210\001\001\022\027\n\nmax_t" +
+ "okens\030\002 \001(\003H\001\210\001\001\022\022\n\005model\030\003 \001(\tH\002\210\001\001\022\016\n\001" +
+ "n\030\004 \001(\003H\003\210\001\001\022\030\n\013temperature\030\005 \001(\001H\004\210\001\001\022\022" +
+ "\n\005top_p\030\006 \001(\001H\005\210\001\001B\013\n\t_base_urlB\r\n\013_max_" +
+ "tokensB\010\n\006_modelB\004\n\002_nB\016\n\014_temperatureB\010" +
+ "\n\006_top_p\"\206\001\n\020GenerativeOllama\022\031\n\014api_end" +
+ "point\030\001 \001(\tH\000\210\001\001\022\022\n\005model\030\002 \001(\tH\001\210\001\001\022\030\n\013" +
+ "temperature\030\003 \001(\001H\002\210\001\001B\017\n\r_api_endpointB" +
+ "\010\n\006_modelB\016\n\014_temperature\"\231\003\n\020Generative" +
+ "OpenAI\022\036\n\021frequency_penalty\030\001 \001(\001H\000\210\001\001\022\026" +
+ "\n\tlog_probs\030\002 \001(\010H\001\210\001\001\022\027\n\nmax_tokens\030\003 \001" +
+ "(\003H\002\210\001\001\022\r\n\005model\030\004 \001(\t\022\016\n\001n\030\005 \001(\003H\003\210\001\001\022\035" +
+ "\n\020presence_penalty\030\006 \001(\001H\004\210\001\001\022)\n\004stop\030\007 " +
+ "\001(\0132\026.weaviate.v1.TextArrayH\005\210\001\001\022\030\n\013temp" +
+ "erature\030\010 \001(\001H\006\210\001\001\022\022\n\005top_p\030\t \001(\001H\007\210\001\001\022\032" +
+ "\n\rtop_log_probs\030\n \001(\003H\010\210\001\001B\024\n\022_frequency" +
+ "_penaltyB\014\n\n_log_probsB\r\n\013_max_tokensB\004\n" +
+ "\002_nB\023\n\021_presence_penaltyB\007\n\005_stopB\016\n\014_te" +
+ "mperatureB\010\n\006_top_pB\020\n\016_top_log_probs\"\360\002" +
+ "\n\020GenerativeGoogle\022\036\n\021frequency_penalty\030" +
+ "\001 \001(\001H\000\210\001\001\022\027\n\nmax_tokens\030\002 \001(\003H\001\210\001\001\022\022\n\005m" +
+ "odel\030\003 \001(\tH\002\210\001\001\022\035\n\020presence_penalty\030\004 \001(" +
+ "\001H\003\210\001\001\022\030\n\013temperature\030\005 \001(\001H\004\210\001\001\022\022\n\005top_" +
+ "k\030\006 \001(\003H\005\210\001\001\022\022\n\005top_p\030\007 \001(\001H\006\210\001\001\0223\n\016stop" +
+ "_sequences\030\010 \001(\0132\026.weaviate.v1.TextArray" +
+ "H\007\210\001\001B\024\n\022_frequency_penaltyB\r\n\013_max_toke" +
+ "nsB\010\n\006_modelB\023\n\021_presence_penaltyB\016\n\014_te" +
+ "mperatureB\010\n\006_top_kB\010\n\006_top_pB\021\n\017_stop_s" +
+ "equences\"\222\001\n\033GenerativeAnthropicMetadata" +
+ "\022=\n\005usage\030\001 \001(\0132..weaviate.v1.Generative" +
+ "AnthropicMetadata.Usage\0324\n\005Usage\022\024\n\014inpu" +
+ "t_tokens\030\001 \001(\003\022\025\n\routput_tokens\030\002 \001(\003\"\034\n" +
+ "\032GenerativeAnyscaleMetadata\"\027\n\025Generativ" +
+ "eAWSMetadata\"\234\006\n\030GenerativeCohereMetadat" +
+ "a\022J\n\013api_version\030\001 \001(\01320.weaviate.v1.Gen" +
+ "erativeCohereMetadata.ApiVersionH\000\210\001\001\022L\n" +
+ "\014billed_units\030\002 \001(\01321.weaviate.v1.Genera" +
+ "tiveCohereMetadata.BilledUnitsH\001\210\001\001\022A\n\006t" +
+ "okens\030\003 \001(\0132,.weaviate.v1.GenerativeCohe" +
+ "reMetadata.TokensH\002\210\001\001\022-\n\010warnings\030\004 \001(\013" +
+ "2\026.weaviate.v1.TextArrayH\003\210\001\001\032\216\001\n\nApiVer" +
+ "sion\022\024\n\007version\030\001 \001(\tH\000\210\001\001\022\032\n\ris_depreca" +
+ "ted\030\002 \001(\010H\001\210\001\001\022\034\n\017is_experimental\030\003 \001(\010H" +
+ "\002\210\001\001B\n\n\010_versionB\020\n\016_is_deprecatedB\022\n\020_i" +
+ "s_experimental\032\305\001\n\013BilledUnits\022\031\n\014input_" +
+ "tokens\030\001 \001(\001H\000\210\001\001\022\032\n\routput_tokens\030\002 \001(\001" +
+ "H\001\210\001\001\022\031\n\014search_units\030\003 \001(\001H\002\210\001\001\022\034\n\017clas" +
+ "sifications\030\004 \001(\001H\003\210\001\001B\017\n\r_input_tokensB" +
+ "\020\n\016_output_tokensB\017\n\r_search_unitsB\022\n\020_c" +
+ "lassifications\032b\n\006Tokens\022\031\n\014input_tokens" +
+ "\030\001 \001(\001H\000\210\001\001\022\032\n\routput_tokens\030\002 \001(\001H\001\210\001\001B" +
+ "\017\n\r_input_tokensB\020\n\016_output_tokensB\016\n\014_a" +
+ "pi_versionB\017\n\r_billed_unitsB\t\n\007_tokensB\013" +
+ "\n\t_warnings\"\031\n\027GenerativeDummyMetadata\"\201" +
+ "\002\n\031GenerativeMistralMetadata\022@\n\005usage\030\001 " +
+ "\001(\0132,.weaviate.v1.GenerativeMistralMetad" +
+ "ata.UsageH\000\210\001\001\032\227\001\n\005Usage\022\032\n\rprompt_token" +
+ "s\030\001 \001(\003H\000\210\001\001\022\036\n\021completion_tokens\030\002 \001(\003H" +
+ "\001\210\001\001\022\031\n\014total_tokens\030\003 \001(\003H\002\210\001\001B\020\n\016_prom" +
+ "pt_tokensB\024\n\022_completion_tokensB\017\n\r_tota" +
+ "l_tokensB\010\n\006_usage\"\377\001\n\030GenerativeOctoAIM" +
+ "etadata\022?\n\005usage\030\001 \001(\0132+.weaviate.v1.Gen" +
+ "erativeOctoAIMetadata.UsageH\000\210\001\001\032\227\001\n\005Usa" +
+ "ge\022\032\n\rprompt_tokens\030\001 \001(\003H\000\210\001\001\022\036\n\021comple" +
+ "tion_tokens\030\002 \001(\003H\001\210\001\001\022\031\n\014total_tokens\030\003" +
+ " \001(\003H\002\210\001\001B\020\n\016_prompt_tokensB\024\n\022_completi" +
+ "on_tokensB\017\n\r_total_tokensB\010\n\006_usage\"\032\n\030" +
+ "GenerativeOllamaMetadata\"\377\001\n\030GenerativeO" +
+ "penAIMetadata\022?\n\005usage\030\001 \001(\0132+.weaviate." +
+ "v1.GenerativeOpenAIMetadata.UsageH\000\210\001\001\032\227" +
+ "\001\n\005Usage\022\032\n\rprompt_tokens\030\001 \001(\003H\000\210\001\001\022\036\n\021" +
+ "completion_tokens\030\002 \001(\003H\001\210\001\001\022\031\n\014total_to" +
+ "kens\030\003 \001(\003H\002\210\001\001B\020\n\016_prompt_tokensB\024\n\022_co" +
+ "mpletion_tokensB\017\n\r_total_tokensB\010\n\006_usa" +
+ "ge\"\350\006\n\030GenerativeGoogleMetadata\022E\n\010metad" +
+ "ata\030\001 \001(\0132..weaviate.v1.GenerativeGoogle" +
+ "Metadata.MetadataH\000\210\001\001\022P\n\016usage_metadata" +
+ "\030\002 \001(\01323.weaviate.v1.GenerativeGoogleMet" +
+ "adata.UsageMetadataH\001\210\001\001\032~\n\nTokenCount\022&" +
+ "\n\031total_billable_characters\030\001 \001(\003H\000\210\001\001\022\031" +
+ "\n\014total_tokens\030\002 \001(\003H\001\210\001\001B\034\n\032_total_bill" +
+ "able_charactersB\017\n\r_total_tokens\032\341\001\n\rTok" +
+ "enMetadata\022P\n\021input_token_count\030\001 \001(\01320." +
+ "weaviate.v1.GenerativeGoogleMetadata.Tok" +
+ "enCountH\000\210\001\001\022Q\n\022output_token_count\030\002 \001(\013" +
+ "20.weaviate.v1.GenerativeGoogleMetadata." +
+ "TokenCountH\001\210\001\001B\024\n\022_input_token_countB\025\n" +
+ "\023_output_token_count\032o\n\010Metadata\022P\n\016toke" +
+ "n_metadata\030\001 \001(\01323.weaviate.v1.Generativ" +
+ "eGoogleMetadata.TokenMetadataH\000\210\001\001B\021\n\017_t" +
+ "oken_metadata\032\275\001\n\rUsageMetadata\022\037\n\022promp" +
+ "t_token_count\030\001 \001(\003H\000\210\001\001\022#\n\026candidates_t" +
+ "oken_count\030\002 \001(\003H\001\210\001\001\022\036\n\021total_token_cou" +
+ "nt\030\003 \001(\003H\002\210\001\001B\025\n\023_prompt_token_countB\031\n\027" +
+ "_candidates_token_countB\024\n\022_total_token_" +
+ "countB\013\n\t_metadataB\021\n\017_usage_metadata\"\332\004" +
+ "\n\022GenerativeMetadata\022=\n\tanthropic\030\001 \001(\0132" +
+ "(.weaviate.v1.GenerativeAnthropicMetadat" +
+ "aH\000\022;\n\010anyscale\030\002 \001(\0132\'.weaviate.v1.Gene" +
+ "rativeAnyscaleMetadataH\000\0221\n\003aws\030\003 \001(\0132\"." +
+ "weaviate.v1.GenerativeAWSMetadataH\000\0227\n\006c" +
+ "ohere\030\004 \001(\0132%.weaviate.v1.GenerativeCohe" +
+ "reMetadataH\000\0225\n\005dummy\030\005 \001(\0132$.weaviate.v" +
+ "1.GenerativeDummyMetadataH\000\0229\n\007mistral\030\006" +
+ " \001(\0132&.weaviate.v1.GenerativeMistralMeta" +
+ "dataH\000\0227\n\006octoai\030\007 \001(\0132%.weaviate.v1.Gen" +
+ "erativeOctoAIMetadataH\000\0227\n\006ollama\030\010 \001(\0132" +
+ "%.weaviate.v1.GenerativeOllamaMetadataH\000" +
+ "\0227\n\006openai\030\t \001(\0132%.weaviate.v1.Generativ" +
+ "eOpenAIMetadataH\000\0227\n\006google\030\n \001(\0132%.weav" +
+ "iate.v1.GenerativeGoogleMetadataH\000B\006\n\004ki" +
+ "nd\"\242\001\n\017GenerativeReply\022\016\n\006result\030\001 \001(\t\0220" +
+ "\n\005debug\030\002 \001(\0132\034.weaviate.v1.GenerativeDe" +
+ "bugH\000\210\001\001\0226\n\010metadata\030\003 \001(\0132\037.weaviate.v1" +
+ ".GenerativeMetadataH\001\210\001\001B\010\n\006_debugB\013\n\t_m" +
+ "etadata\"@\n\020GenerativeResult\022,\n\006values\030\001 " +
+ "\003(\0132\034.weaviate.v1.GenerativeReply\";\n\017Gen" +
+ "erativeDebug\022\030\n\013full_prompt\030\001 \001(\tH\000\210\001\001B\016" +
+ "\n\014_full_promptBt\n#io.weaviate.client.grp" +
+ "c.protocol.v1B\027WeaviateProtoGenerativeZ4" +
+ "github.com/weaviate/weaviate/grpc/genera" +
+ "ted;protocolb\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.getDescriptor(),
+ });
+ internal_static_weaviate_v1_GenerativeSearch_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeSearch_descriptor,
+ new java.lang.String[] { "SingleResponsePrompt", "GroupedResponseTask", "GroupedProperties", "Single", "Grouped", });
+ internal_static_weaviate_v1_GenerativeSearch_Single_descriptor =
+ internal_static_weaviate_v1_GenerativeSearch_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_GenerativeSearch_Single_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeSearch_Single_descriptor,
+ new java.lang.String[] { "Prompt", "Debug", "Queries", });
+ internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor =
+ internal_static_weaviate_v1_GenerativeSearch_descriptor.getNestedTypes().get(1);
+ internal_static_weaviate_v1_GenerativeSearch_Grouped_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeSearch_Grouped_descriptor,
+ new java.lang.String[] { "Task", "Properties", "Properties", });
+ internal_static_weaviate_v1_GenerativeProvider_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_weaviate_v1_GenerativeProvider_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeProvider_descriptor,
+ new java.lang.String[] { "ReturnMetadata", "Anthropic", "Anyscale", "Aws", "Cohere", "Dummy", "Mistral", "Octoai", "Ollama", "Openai", "Google", "Kind", });
+ internal_static_weaviate_v1_GenerativeAnthropic_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_weaviate_v1_GenerativeAnthropic_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeAnthropic_descriptor,
+ new java.lang.String[] { "BaseUrl", "MaxTokens", "Model", "Temperature", "TopK", "TopP", "StopSequences", "BaseUrl", "MaxTokens", "Model", "Temperature", "TopK", "TopP", "StopSequences", });
+ internal_static_weaviate_v1_GenerativeAnyscale_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_weaviate_v1_GenerativeAnyscale_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeAnyscale_descriptor,
+ new java.lang.String[] { "BaseUrl", "Model", "Temperature", "BaseUrl", "Model", "Temperature", });
+ internal_static_weaviate_v1_GenerativeAWS_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_weaviate_v1_GenerativeAWS_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeAWS_descriptor,
+ new java.lang.String[] { "Model", "Temperature", "Model", "Temperature", });
+ internal_static_weaviate_v1_GenerativeCohere_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_weaviate_v1_GenerativeCohere_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeCohere_descriptor,
+ new java.lang.String[] { "BaseUrl", "FrequencyPenalty", "MaxTokens", "Model", "K", "P", "PresencePenalty", "StopSequences", "Temperature", "BaseUrl", "FrequencyPenalty", "MaxTokens", "Model", "K", "P", "PresencePenalty", "StopSequences", "Temperature", });
+ internal_static_weaviate_v1_GenerativeDummy_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_weaviate_v1_GenerativeDummy_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeDummy_descriptor,
+ new java.lang.String[] { });
+ internal_static_weaviate_v1_GenerativeMistral_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_weaviate_v1_GenerativeMistral_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeMistral_descriptor,
+ new java.lang.String[] { "BaseUrl", "MaxTokens", "Model", "Temperature", "TopP", "BaseUrl", "MaxTokens", "Model", "Temperature", "TopP", });
+ internal_static_weaviate_v1_GenerativeOctoAI_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_weaviate_v1_GenerativeOctoAI_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeOctoAI_descriptor,
+ new java.lang.String[] { "BaseUrl", "MaxTokens", "Model", "N", "Temperature", "TopP", "BaseUrl", "MaxTokens", "Model", "N", "Temperature", "TopP", });
+ internal_static_weaviate_v1_GenerativeOllama_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_weaviate_v1_GenerativeOllama_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeOllama_descriptor,
+ new java.lang.String[] { "ApiEndpoint", "Model", "Temperature", "ApiEndpoint", "Model", "Temperature", });
+ internal_static_weaviate_v1_GenerativeOpenAI_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_weaviate_v1_GenerativeOpenAI_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeOpenAI_descriptor,
+ new java.lang.String[] { "FrequencyPenalty", "LogProbs", "MaxTokens", "Model", "N", "PresencePenalty", "Stop", "Temperature", "TopP", "TopLogProbs", "FrequencyPenalty", "LogProbs", "MaxTokens", "N", "PresencePenalty", "Stop", "Temperature", "TopP", "TopLogProbs", });
+ internal_static_weaviate_v1_GenerativeGoogle_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_weaviate_v1_GenerativeGoogle_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeGoogle_descriptor,
+ new java.lang.String[] { "FrequencyPenalty", "MaxTokens", "Model", "PresencePenalty", "Temperature", "TopK", "TopP", "StopSequences", "FrequencyPenalty", "MaxTokens", "Model", "PresencePenalty", "Temperature", "TopK", "TopP", "StopSequences", });
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor,
+ new java.lang.String[] { "Usage", });
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor =
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeAnthropicMetadata_Usage_descriptor,
+ new java.lang.String[] { "InputTokens", "OutputTokens", });
+ internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_weaviate_v1_GenerativeAnyscaleMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeAnyscaleMetadata_descriptor,
+ new java.lang.String[] { });
+ internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_weaviate_v1_GenerativeAWSMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeAWSMetadata_descriptor,
+ new java.lang.String[] { });
+ internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_weaviate_v1_GenerativeCohereMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor,
+ new java.lang.String[] { "ApiVersion", "BilledUnits", "Tokens", "Warnings", "ApiVersion", "BilledUnits", "Tokens", "Warnings", });
+ internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor =
+ internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeCohereMetadata_ApiVersion_descriptor,
+ new java.lang.String[] { "Version", "IsDeprecated", "IsExperimental", "Version", "IsDeprecated", "IsExperimental", });
+ internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor =
+ internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor.getNestedTypes().get(1);
+ internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeCohereMetadata_BilledUnits_descriptor,
+ new java.lang.String[] { "InputTokens", "OutputTokens", "SearchUnits", "Classifications", "InputTokens", "OutputTokens", "SearchUnits", "Classifications", });
+ internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor =
+ internal_static_weaviate_v1_GenerativeCohereMetadata_descriptor.getNestedTypes().get(2);
+ internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeCohereMetadata_Tokens_descriptor,
+ new java.lang.String[] { "InputTokens", "OutputTokens", "InputTokens", "OutputTokens", });
+ internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_weaviate_v1_GenerativeDummyMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeDummyMetadata_descriptor,
+ new java.lang.String[] { });
+ internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_weaviate_v1_GenerativeMistralMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor,
+ new java.lang.String[] { "Usage", "Usage", });
+ internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor =
+ internal_static_weaviate_v1_GenerativeMistralMetadata_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeMistralMetadata_Usage_descriptor,
+ new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", "PromptTokens", "CompletionTokens", "TotalTokens", });
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor,
+ new java.lang.String[] { "Usage", "Usage", });
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor =
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeOctoAIMetadata_Usage_descriptor,
+ new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", "PromptTokens", "CompletionTokens", "TotalTokens", });
+ internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_weaviate_v1_GenerativeOllamaMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeOllamaMetadata_descriptor,
+ new java.lang.String[] { });
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(20);
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor,
+ new java.lang.String[] { "Usage", "Usage", });
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor =
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeOpenAIMetadata_Usage_descriptor,
+ new java.lang.String[] { "PromptTokens", "CompletionTokens", "TotalTokens", "PromptTokens", "CompletionTokens", "TotalTokens", });
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(21);
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor,
+ new java.lang.String[] { "Metadata", "UsageMetadata", "Metadata", "UsageMetadata", });
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor =
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor.getNestedTypes().get(0);
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenCount_descriptor,
+ new java.lang.String[] { "TotalBillableCharacters", "TotalTokens", "TotalBillableCharacters", "TotalTokens", });
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor =
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor.getNestedTypes().get(1);
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_TokenMetadata_descriptor,
+ new java.lang.String[] { "InputTokenCount", "OutputTokenCount", "InputTokenCount", "OutputTokenCount", });
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor =
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor.getNestedTypes().get(2);
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_Metadata_descriptor,
+ new java.lang.String[] { "TokenMetadata", "TokenMetadata", });
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor =
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_descriptor.getNestedTypes().get(3);
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeGoogleMetadata_UsageMetadata_descriptor,
+ new java.lang.String[] { "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", });
+ internal_static_weaviate_v1_GenerativeMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(22);
+ internal_static_weaviate_v1_GenerativeMetadata_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeMetadata_descriptor,
+ new java.lang.String[] { "Anthropic", "Anyscale", "Aws", "Cohere", "Dummy", "Mistral", "Octoai", "Ollama", "Openai", "Google", "Kind", });
+ internal_static_weaviate_v1_GenerativeReply_descriptor =
+ getDescriptor().getMessageTypes().get(23);
+ internal_static_weaviate_v1_GenerativeReply_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeReply_descriptor,
+ new java.lang.String[] { "Result", "Debug", "Metadata", "Debug", "Metadata", });
+ internal_static_weaviate_v1_GenerativeResult_descriptor =
+ getDescriptor().getMessageTypes().get(24);
+ internal_static_weaviate_v1_GenerativeResult_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeResult_descriptor,
+ new java.lang.String[] { "Values", });
+ internal_static_weaviate_v1_GenerativeDebug_descriptor =
+ getDescriptor().getMessageTypes().get(25);
+ internal_static_weaviate_v1_GenerativeDebug_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_weaviate_v1_GenerativeDebug_descriptor,
+ new java.lang.String[] { "FullPrompt", "FullPrompt", });
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoBase.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoSearchGet.java b/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoSearchGet.java
index 1394a6cf..516d0669 100644
--- a/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoSearchGet.java
+++ b/src/main/java/io/weaviate/client/grpc/protocol/v1/WeaviateProtoSearchGet.java
@@ -554,11 +554,11 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SortByOrBuilder getSo
* optional .weaviate.v1.GenerativeSearch generative = 60;
* @return The generative.
*/
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getGenerative();
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getGenerative();
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
*/
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder getGenerativeOrBuilder();
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder getGenerativeOrBuilder();
/**
* optional .weaviate.v1.Rerank rerank = 61;
@@ -578,16 +578,24 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SortByOrBuilder getSo
/**
* bool uses_123_api = 100 [deprecated = true];
* @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated.
- * See v1/search_get.proto;l=50
+ * See v1/search_get.proto;l=51
* @return The uses123Api.
*/
@java.lang.Deprecated boolean getUses123Api();
/**
- * bool uses_125_api = 101;
+ * bool uses_125_api = 101 [deprecated = true];
+ * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated.
+ * See v1/search_get.proto;l=52
* @return The uses125Api.
*/
- boolean getUses125Api();
+ @java.lang.Deprecated boolean getUses125Api();
+
+ /**
+ * bool uses_127_api = 102;
+ * @return The uses127Api.
+ */
+ boolean getUses127Api();
}
/**
* Protobuf type {@code weaviate.v1.SearchRequest}
@@ -1301,7 +1309,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearchO
}
public static final int GENERATIVE_FIELD_NUMBER = 60;
- private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch generative_;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch generative_;
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
* @return Whether the generative field is set.
@@ -1315,15 +1323,15 @@ public boolean hasGenerative() {
* @return The generative.
*/
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getGenerative() {
- return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance() : generative_;
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getGenerative() {
+ return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance() : generative_;
}
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
*/
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder getGenerativeOrBuilder() {
- return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance() : generative_;
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder getGenerativeOrBuilder() {
+ return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance() : generative_;
}
public static final int RERANK_FIELD_NUMBER = 61;
@@ -1357,7 +1365,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde
/**
* bool uses_123_api = 100 [deprecated = true];
* @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated.
- * See v1/search_get.proto;l=50
+ * See v1/search_get.proto;l=51
* @return The uses123Api.
*/
@java.lang.Override
@@ -1368,14 +1376,27 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde
public static final int USES_125_API_FIELD_NUMBER = 101;
private boolean uses125Api_ = false;
/**
- * bool uses_125_api = 101;
+ * bool uses_125_api = 101 [deprecated = true];
+ * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated.
+ * See v1/search_get.proto;l=52
* @return The uses125Api.
*/
@java.lang.Override
- public boolean getUses125Api() {
+ @java.lang.Deprecated public boolean getUses125Api() {
return uses125Api_;
}
+ public static final int USES_127_API_FIELD_NUMBER = 102;
+ private boolean uses127Api_ = false;
+ /**
+ * bool uses_127_api = 102;
+ * @return The uses127Api.
+ */
+ @java.lang.Override
+ public boolean getUses127Api() {
+ return uses127Api_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -1471,6 +1492,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (uses125Api_ != false) {
output.writeBool(101, uses125Api_);
}
+ if (uses127Api_ != false) {
+ output.writeBool(102, uses127Api_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1585,6 +1609,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(101, uses125Api_);
}
+ if (uses127Api_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(102, uses127Api_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1707,6 +1735,8 @@ public boolean equals(final java.lang.Object obj) {
!= other.getUses123Api()) return false;
if (getUses125Api()
!= other.getUses125Api()) return false;
+ if (getUses127Api()
+ != other.getUses127Api()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1812,6 +1842,9 @@ public int hashCode() {
hash = (37 * hash) + USES_125_API_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUses125Api());
+ hash = (37 * hash) + USES_127_API_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getUses127Api());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2067,6 +2100,7 @@ public Builder clear() {
}
uses123Api_ = false;
uses125Api_ = false;
+ uses127Api_ = false;
return this;
}
@@ -2244,6 +2278,9 @@ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSear
if (((from_bitField0_ & 0x04000000) != 0)) {
result.uses125Api_ = uses125Api_;
}
+ if (((from_bitField0_ & 0x08000000) != 0)) {
+ result.uses127Api_ = uses127Api_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -2401,6 +2438,9 @@ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearch
if (other.getUses125Api() != false) {
setUses125Api(other.getUses125Api());
}
+ if (other.getUses127Api() != false) {
+ setUses127Api(other.getUses127Api());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2604,6 +2644,11 @@ public Builder mergeFrom(
bitField0_ |= 0x04000000;
break;
} // case 808
+ case 816: {
+ uses127Api_ = input.readBool();
+ bitField0_ |= 0x08000000;
+ break;
+ } // case 816
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -5244,9 +5289,9 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.NearIMUSearchO
return nearImuBuilder_;
}
- private io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch generative_;
+ private io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch generative_;
private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder> generativeBuilder_;
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder> generativeBuilder_;
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
* @return Whether the generative field is set.
@@ -5258,9 +5303,9 @@ public boolean hasGenerative() {
* optional .weaviate.v1.GenerativeSearch generative = 60;
* @return The generative.
*/
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getGenerative() {
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch getGenerative() {
if (generativeBuilder_ == null) {
- return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance() : generative_;
+ return generative_ == null ? io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance() : generative_;
} else {
return generativeBuilder_.getMessage();
}
@@ -5268,7 +5313,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSear
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
*/
- public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch value) {
+ public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch value) {
if (generativeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -5285,7 +5330,7 @@ public Builder setGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSe
* optional .weaviate.v1.GenerativeSearch generative = 60;
*/
public Builder setGenerative(
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder builderForValue) {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder builderForValue) {
if (generativeBuilder_ == null) {
generative_ = builderForValue.build();
} else {
@@ -5298,11 +5343,11 @@ public Builder setGenerative(
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
*/
- public Builder mergeGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch value) {
+ public Builder mergeGenerative(io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch value) {
if (generativeBuilder_ == null) {
if (((bitField0_ & 0x00800000) != 0) &&
generative_ != null &&
- generative_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance()) {
+ generative_ != io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance()) {
getGenerativeBuilder().mergeFrom(value);
} else {
generative_ = value;
@@ -5332,7 +5377,7 @@ public Builder clearGenerative() {
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
*/
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder getGenerativeBuilder() {
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder getGenerativeBuilder() {
bitField0_ |= 0x00800000;
onChanged();
return getGenerativeFieldBuilder().getBuilder();
@@ -5340,23 +5385,23 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSear
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
*/
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder getGenerativeOrBuilder() {
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder getGenerativeOrBuilder() {
if (generativeBuilder_ != null) {
return generativeBuilder_.getMessageOrBuilder();
} else {
return generative_ == null ?
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance() : generative_;
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.getDefaultInstance() : generative_;
}
}
/**
* optional .weaviate.v1.GenerativeSearch generative = 60;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder>
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder>
getGenerativeFieldBuilder() {
if (generativeBuilder_ == null) {
generativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder>(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoGenerative.GenerativeSearchOrBuilder>(
getGenerative(),
getParentForChildren(),
isClean());
@@ -5490,7 +5535,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde
/**
* bool uses_123_api = 100 [deprecated = true];
* @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated.
- * See v1/search_get.proto;l=50
+ * See v1/search_get.proto;l=51
* @return The uses123Api.
*/
@java.lang.Override
@@ -5500,7 +5545,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde
/**
* bool uses_123_api = 100 [deprecated = true];
* @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated.
- * See v1/search_get.proto;l=50
+ * See v1/search_get.proto;l=51
* @param value The uses123Api to set.
* @return This builder for chaining.
*/
@@ -5514,7 +5559,7 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde
/**
* bool uses_123_api = 100 [deprecated = true];
* @deprecated weaviate.v1.SearchRequest.uses_123_api is deprecated.
- * See v1/search_get.proto;l=50
+ * See v1/search_get.proto;l=51
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearUses123Api() {
@@ -5526,19 +5571,23 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RerankOrBuilde
private boolean uses125Api_ ;
/**
- * bool uses_125_api = 101;
+ * bool uses_125_api = 101 [deprecated = true];
+ * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated.
+ * See v1/search_get.proto;l=52
* @return The uses125Api.
*/
@java.lang.Override
- public boolean getUses125Api() {
+ @java.lang.Deprecated public boolean getUses125Api() {
return uses125Api_;
}
/**
- * bool uses_125_api = 101;
+ * bool uses_125_api = 101 [deprecated = true];
+ * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated.
+ * See v1/search_get.proto;l=52
* @param value The uses125Api to set.
* @return This builder for chaining.
*/
- public Builder setUses125Api(boolean value) {
+ @java.lang.Deprecated public Builder setUses125Api(boolean value) {
uses125Api_ = value;
bitField0_ |= 0x04000000;
@@ -5546,15 +5595,49 @@ public Builder setUses125Api(boolean value) {
return this;
}
/**
- * bool uses_125_api = 101;
+ * bool uses_125_api = 101 [deprecated = true];
+ * @deprecated weaviate.v1.SearchRequest.uses_125_api is deprecated.
+ * See v1/search_get.proto;l=52
* @return This builder for chaining.
*/
- public Builder clearUses125Api() {
+ @java.lang.Deprecated public Builder clearUses125Api() {
bitField0_ = (bitField0_ & ~0x04000000);
uses125Api_ = false;
onChanged();
return this;
}
+
+ private boolean uses127Api_ ;
+ /**
+ * bool uses_127_api = 102;
+ * @return The uses127Api.
+ */
+ @java.lang.Override
+ public boolean getUses127Api() {
+ return uses127Api_;
+ }
+ /**
+ * bool uses_127_api = 102;
+ * @param value The uses127Api to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUses127Api(boolean value) {
+
+ uses127Api_ = value;
+ bitField0_ |= 0x08000000;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool uses_127_api = 102;
+ * @return This builder for chaining.
+ */
+ public Builder clearUses127Api() {
+ bitField0_ = (bitField0_ & ~0x08000000);
+ uses127Api_ = false;
+ onChanged();
+ return this;
+ }
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -7293,75 +7376,103 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.SortBy getDefa
}
- public interface GenerativeSearchOrBuilder extends
- // @@protoc_insertion_point(interface_extends:weaviate.v1.GenerativeSearch)
+ public interface MetadataRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.MetadataRequest)
com.google.protobuf.MessageOrBuilder {
/**
- * string single_response_prompt = 1;
- * @return The singleResponsePrompt.
+ * bool uuid = 1;
+ * @return The uuid.
*/
- java.lang.String getSingleResponsePrompt();
+ boolean getUuid();
+
/**
- * string single_response_prompt = 1;
- * @return The bytes for singleResponsePrompt.
+ * bool vector = 2;
+ * @return The vector.
*/
- com.google.protobuf.ByteString
- getSingleResponsePromptBytes();
+ boolean getVector();
/**
- * string grouped_response_task = 2;
- * @return The groupedResponseTask.
+ * bool creation_time_unix = 3;
+ * @return The creationTimeUnix.
*/
- java.lang.String getGroupedResponseTask();
+ boolean getCreationTimeUnix();
+
/**
- * string grouped_response_task = 2;
- * @return The bytes for groupedResponseTask.
+ * bool last_update_time_unix = 4;
+ * @return The lastUpdateTimeUnix.
*/
- com.google.protobuf.ByteString
- getGroupedResponseTaskBytes();
+ boolean getLastUpdateTimeUnix();
/**
- * repeated string grouped_properties = 3;
- * @return A list containing the groupedProperties.
+ * bool distance = 5;
+ * @return The distance.
+ */
+ boolean getDistance();
+
+ /**
+ * bool certainty = 6;
+ * @return The certainty.
+ */
+ boolean getCertainty();
+
+ /**
+ * bool score = 7;
+ * @return The score.
+ */
+ boolean getScore();
+
+ /**
+ * bool explain_score = 8;
+ * @return The explainScore.
+ */
+ boolean getExplainScore();
+
+ /**
+ * bool is_consistent = 9;
+ * @return The isConsistent.
+ */
+ boolean getIsConsistent();
+
+ /**
+ * repeated string vectors = 10;
+ * @return A list containing the vectors.
*/
java.util.List
- getGroupedPropertiesList();
+ getVectorsList();
/**
- * repeated string grouped_properties = 3;
- * @return The count of groupedProperties.
+ * repeated string vectors = 10;
+ * @return The count of vectors.
*/
- int getGroupedPropertiesCount();
+ int getVectorsCount();
/**
- * repeated string grouped_properties = 3;
+ * repeated string vectors = 10;
* @param index The index of the element to return.
- * @return The groupedProperties at the given index.
+ * @return The vectors at the given index.
*/
- java.lang.String getGroupedProperties(int index);
+ java.lang.String getVectors(int index);
/**
- * repeated string grouped_properties = 3;
+ * repeated string vectors = 10;
* @param index The index of the value to return.
- * @return The bytes of the groupedProperties at the given index.
+ * @return The bytes of the vectors at the given index.
*/
com.google.protobuf.ByteString
- getGroupedPropertiesBytes(int index);
+ getVectorsBytes(int index);
}
/**
- * Protobuf type {@code weaviate.v1.GenerativeSearch}
+ * Protobuf type {@code weaviate.v1.MetadataRequest}
*/
- public static final class GenerativeSearch extends
+ public static final class MetadataRequest extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:weaviate.v1.GenerativeSearch)
- GenerativeSearchOrBuilder {
+ // @@protoc_insertion_point(message_implements:weaviate.v1.MetadataRequest)
+ MetadataRequestOrBuilder {
private static final long serialVersionUID = 0L;
- // Use GenerativeSearch.newBuilder() to construct.
- private GenerativeSearch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use MetadataRequest.newBuilder() to construct.
+ private MetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private GenerativeSearch() {
- singleResponsePrompt_ = "";
- groupedResponseTask_ = "";
- groupedProperties_ =
+ private MetadataRequest() {
+ vectors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@@ -7369,135 +7480,156 @@ private GenerativeSearch() {
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new GenerativeSearch();
+ return new MetadataRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_descriptor;
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder.class);
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder.class);
}
- public static final int SINGLE_RESPONSE_PROMPT_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object singleResponsePrompt_ = "";
+ public static final int UUID_FIELD_NUMBER = 1;
+ private boolean uuid_ = false;
/**
- * string single_response_prompt = 1;
- * @return The singleResponsePrompt.
+ * bool uuid = 1;
+ * @return The uuid.
*/
@java.lang.Override
- public java.lang.String getSingleResponsePrompt() {
- java.lang.Object ref = singleResponsePrompt_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- singleResponsePrompt_ = s;
- return s;
- }
+ public boolean getUuid() {
+ return uuid_;
}
+
+ public static final int VECTOR_FIELD_NUMBER = 2;
+ private boolean vector_ = false;
/**
- * string single_response_prompt = 1;
- * @return The bytes for singleResponsePrompt.
+ * bool vector = 2;
+ * @return The vector.
*/
@java.lang.Override
- public com.google.protobuf.ByteString
- getSingleResponsePromptBytes() {
- java.lang.Object ref = singleResponsePrompt_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- singleResponsePrompt_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public boolean getVector() {
+ return vector_;
}
- public static final int GROUPED_RESPONSE_TASK_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object groupedResponseTask_ = "";
+ public static final int CREATION_TIME_UNIX_FIELD_NUMBER = 3;
+ private boolean creationTimeUnix_ = false;
/**
- * string grouped_response_task = 2;
- * @return The groupedResponseTask.
+ * bool creation_time_unix = 3;
+ * @return The creationTimeUnix.
*/
@java.lang.Override
- public java.lang.String getGroupedResponseTask() {
- java.lang.Object ref = groupedResponseTask_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- groupedResponseTask_ = s;
- return s;
- }
+ public boolean getCreationTimeUnix() {
+ return creationTimeUnix_;
}
+
+ public static final int LAST_UPDATE_TIME_UNIX_FIELD_NUMBER = 4;
+ private boolean lastUpdateTimeUnix_ = false;
/**
- * string grouped_response_task = 2;
- * @return The bytes for groupedResponseTask.
+ * bool last_update_time_unix = 4;
+ * @return The lastUpdateTimeUnix.
*/
@java.lang.Override
- public com.google.protobuf.ByteString
- getGroupedResponseTaskBytes() {
- java.lang.Object ref = groupedResponseTask_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- groupedResponseTask_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public boolean getLastUpdateTimeUnix() {
+ return lastUpdateTimeUnix_;
+ }
+
+ public static final int DISTANCE_FIELD_NUMBER = 5;
+ private boolean distance_ = false;
+ /**
+ * bool distance = 5;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public boolean getDistance() {
+ return distance_;
+ }
+
+ public static final int CERTAINTY_FIELD_NUMBER = 6;
+ private boolean certainty_ = false;
+ /**
+ * bool certainty = 6;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public boolean getCertainty() {
+ return certainty_;
+ }
+
+ public static final int SCORE_FIELD_NUMBER = 7;
+ private boolean score_ = false;
+ /**
+ * bool score = 7;
+ * @return The score.
+ */
+ @java.lang.Override
+ public boolean getScore() {
+ return score_;
}
- public static final int GROUPED_PROPERTIES_FIELD_NUMBER = 3;
+ public static final int EXPLAIN_SCORE_FIELD_NUMBER = 8;
+ private boolean explainScore_ = false;
+ /**
+ * bool explain_score = 8;
+ * @return The explainScore.
+ */
+ @java.lang.Override
+ public boolean getExplainScore() {
+ return explainScore_;
+ }
+
+ public static final int IS_CONSISTENT_FIELD_NUMBER = 9;
+ private boolean isConsistent_ = false;
+ /**
+ * bool is_consistent = 9;
+ * @return The isConsistent.
+ */
+ @java.lang.Override
+ public boolean getIsConsistent() {
+ return isConsistent_;
+ }
+
+ public static final int VECTORS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList groupedProperties_ =
+ private com.google.protobuf.LazyStringArrayList vectors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
- * repeated string grouped_properties = 3;
- * @return A list containing the groupedProperties.
+ * repeated string vectors = 10;
+ * @return A list containing the vectors.
*/
public com.google.protobuf.ProtocolStringList
- getGroupedPropertiesList() {
- return groupedProperties_;
+ getVectorsList() {
+ return vectors_;
}
/**
- * repeated string grouped_properties = 3;
- * @return The count of groupedProperties.
+ * repeated string vectors = 10;
+ * @return The count of vectors.
*/
- public int getGroupedPropertiesCount() {
- return groupedProperties_.size();
+ public int getVectorsCount() {
+ return vectors_.size();
}
/**
- * repeated string grouped_properties = 3;
+ * repeated string vectors = 10;
* @param index The index of the element to return.
- * @return The groupedProperties at the given index.
+ * @return The vectors at the given index.
*/
- public java.lang.String getGroupedProperties(int index) {
- return groupedProperties_.get(index);
+ public java.lang.String getVectors(int index) {
+ return vectors_.get(index);
}
/**
- * repeated string grouped_properties = 3;
+ * repeated string vectors = 10;
* @param index The index of the value to return.
- * @return The bytes of the groupedProperties at the given index.
+ * @return The bytes of the vectors at the given index.
*/
public com.google.protobuf.ByteString
- getGroupedPropertiesBytes(int index) {
- return groupedProperties_.getByteString(index);
+ getVectorsBytes(int index) {
+ return vectors_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@@ -7514,14 +7646,35 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleResponsePrompt_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, singleResponsePrompt_);
+ if (uuid_ != false) {
+ output.writeBool(1, uuid_);
+ }
+ if (vector_ != false) {
+ output.writeBool(2, vector_);
+ }
+ if (creationTimeUnix_ != false) {
+ output.writeBool(3, creationTimeUnix_);
+ }
+ if (lastUpdateTimeUnix_ != false) {
+ output.writeBool(4, lastUpdateTimeUnix_);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupedResponseTask_);
+ if (distance_ != false) {
+ output.writeBool(5, distance_);
}
- for (int i = 0; i < groupedProperties_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupedProperties_.getRaw(i));
+ if (certainty_ != false) {
+ output.writeBool(6, certainty_);
+ }
+ if (score_ != false) {
+ output.writeBool(7, score_);
+ }
+ if (explainScore_ != false) {
+ output.writeBool(8, explainScore_);
+ }
+ if (isConsistent_ != false) {
+ output.writeBool(9, isConsistent_);
+ }
+ for (int i = 0; i < vectors_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, vectors_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@@ -7532,19 +7685,49 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(singleResponsePrompt_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, singleResponsePrompt_);
+ if (uuid_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, uuid_);
+ }
+ if (vector_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, vector_);
+ }
+ if (creationTimeUnix_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, creationTimeUnix_);
+ }
+ if (lastUpdateTimeUnix_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(4, lastUpdateTimeUnix_);
+ }
+ if (distance_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, distance_);
+ }
+ if (certainty_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, certainty_);
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupedResponseTask_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupedResponseTask_);
+ if (score_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(7, score_);
+ }
+ if (explainScore_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(8, explainScore_);
+ }
+ if (isConsistent_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(9, isConsistent_);
}
{
int dataSize = 0;
- for (int i = 0; i < groupedProperties_.size(); i++) {
- dataSize += computeStringSizeNoTag(groupedProperties_.getRaw(i));
+ for (int i = 0; i < vectors_.size(); i++) {
+ dataSize += computeStringSizeNoTag(vectors_.getRaw(i));
}
size += dataSize;
- size += 1 * getGroupedPropertiesList().size();
+ size += 1 * getVectorsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -7556,17 +7739,31 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch)) {
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest)) {
return super.equals(obj);
}
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch) obj;
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest) obj;
- if (!getSingleResponsePrompt()
- .equals(other.getSingleResponsePrompt())) return false;
- if (!getGroupedResponseTask()
- .equals(other.getGroupedResponseTask())) return false;
- if (!getGroupedPropertiesList()
- .equals(other.getGroupedPropertiesList())) return false;
+ if (getUuid()
+ != other.getUuid()) return false;
+ if (getVector()
+ != other.getVector()) return false;
+ if (getCreationTimeUnix()
+ != other.getCreationTimeUnix()) return false;
+ if (getLastUpdateTimeUnix()
+ != other.getLastUpdateTimeUnix()) return false;
+ if (getDistance()
+ != other.getDistance()) return false;
+ if (getCertainty()
+ != other.getCertainty()) return false;
+ if (getScore()
+ != other.getScore()) return false;
+ if (getExplainScore()
+ != other.getExplainScore()) return false;
+ if (getIsConsistent()
+ != other.getIsConsistent()) return false;
+ if (!getVectorsList()
+ .equals(other.getVectorsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -7578,57 +7775,80 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + SINGLE_RESPONSE_PROMPT_FIELD_NUMBER;
- hash = (53 * hash) + getSingleResponsePrompt().hashCode();
- hash = (37 * hash) + GROUPED_RESPONSE_TASK_FIELD_NUMBER;
- hash = (53 * hash) + getGroupedResponseTask().hashCode();
- if (getGroupedPropertiesCount() > 0) {
- hash = (37 * hash) + GROUPED_PROPERTIES_FIELD_NUMBER;
- hash = (53 * hash) + getGroupedPropertiesList().hashCode();
+ hash = (37 * hash) + UUID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getUuid());
+ hash = (37 * hash) + VECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getVector());
+ hash = (37 * hash) + CREATION_TIME_UNIX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCreationTimeUnix());
+ hash = (37 * hash) + LAST_UPDATE_TIME_UNIX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLastUpdateTimeUnix());
+ hash = (37 * hash) + DISTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getDistance());
+ hash = (37 * hash) + CERTAINTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCertainty());
+ hash = (37 * hash) + SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getScore());
+ hash = (37 * hash) + EXPLAIN_SCORE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getExplainScore());
+ hash = (37 * hash) + IS_CONSISTENT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsConsistent());
+ if (getVectorsCount() > 0) {
+ hash = (37 * hash) + VECTORS_FIELD_NUMBER;
+ hash = (53 * hash) + getVectorsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(byte[] data)
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(java.io.InputStream input)
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -7636,26 +7856,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Generat
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseDelimitedFrom(java.io.InputStream input)
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseDelimitedFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -7668,7 +7888,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Generat
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch prototype) {
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -7684,26 +7904,26 @@ protected Builder newBuilderForType(
return builder;
}
/**
- * Protobuf type {@code weaviate.v1.GenerativeSearch}
+ * Protobuf type {@code weaviate.v1.MetadataRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:weaviate.v1.GenerativeSearch)
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearchOrBuilder {
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.MetadataRequest)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_descriptor;
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_fieldAccessorTable
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.Builder.class);
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder.class);
}
- // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.newBuilder()
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.newBuilder()
private Builder() {
}
@@ -7717,9 +7937,16 @@ private Builder(
public Builder clear() {
super.clear();
bitField0_ = 0;
- singleResponsePrompt_ = "";
- groupedResponseTask_ = "";
- groupedProperties_ =
+ uuid_ = false;
+ vector_ = false;
+ creationTimeUnix_ = false;
+ lastUpdateTimeUnix_ = false;
+ distance_ = false;
+ certainty_ = false;
+ score_ = false;
+ explainScore_ = false;
+ isConsistent_ = false;
+ vectors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -7727,17 +7954,17 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_GenerativeSearch_descriptor;
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor;
}
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getDefaultInstanceForType() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance();
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance();
}
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch build() {
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch result = buildPartial();
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@@ -7745,24 +7972,45 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSear
}
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch buildPartial() {
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch(this);
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
- private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch result) {
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
- result.singleResponsePrompt_ = singleResponsePrompt_;
+ result.uuid_ = uuid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
- result.groupedResponseTask_ = groupedResponseTask_;
+ result.vector_ = vector_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
- groupedProperties_.makeImmutable();
- result.groupedProperties_ = groupedProperties_;
+ result.creationTimeUnix_ = creationTimeUnix_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.lastUpdateTimeUnix_ = lastUpdateTimeUnix_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.distance_ = distance_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.certainty_ = certainty_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.score_ = score_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.explainScore_ = explainScore_;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.isConsistent_ = isConsistent_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ vectors_.makeImmutable();
+ result.vectors_ = vectors_;
}
}
@@ -7800,33 +8048,50 @@ public Builder addRepeatedField(
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch) {
- return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch)other);
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch other) {
- if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch.getDefaultInstance()) return this;
- if (!other.getSingleResponsePrompt().isEmpty()) {
- singleResponsePrompt_ = other.singleResponsePrompt_;
- bitField0_ |= 0x00000001;
- onChanged();
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance()) return this;
+ if (other.getUuid() != false) {
+ setUuid(other.getUuid());
}
- if (!other.getGroupedResponseTask().isEmpty()) {
- groupedResponseTask_ = other.groupedResponseTask_;
- bitField0_ |= 0x00000002;
- onChanged();
+ if (other.getVector() != false) {
+ setVector(other.getVector());
}
- if (!other.groupedProperties_.isEmpty()) {
- if (groupedProperties_.isEmpty()) {
- groupedProperties_ = other.groupedProperties_;
- bitField0_ |= 0x00000004;
+ if (other.getCreationTimeUnix() != false) {
+ setCreationTimeUnix(other.getCreationTimeUnix());
+ }
+ if (other.getLastUpdateTimeUnix() != false) {
+ setLastUpdateTimeUnix(other.getLastUpdateTimeUnix());
+ }
+ if (other.getDistance() != false) {
+ setDistance(other.getDistance());
+ }
+ if (other.getCertainty() != false) {
+ setCertainty(other.getCertainty());
+ }
+ if (other.getScore() != false) {
+ setScore(other.getScore());
+ }
+ if (other.getExplainScore() != false) {
+ setExplainScore(other.getExplainScore());
+ }
+ if (other.getIsConsistent() != false) {
+ setIsConsistent(other.getIsConsistent());
+ }
+ if (!other.vectors_.isEmpty()) {
+ if (vectors_.isEmpty()) {
+ vectors_ = other.vectors_;
+ bitField0_ |= 0x00000200;
} else {
- ensureGroupedPropertiesIsMutable();
- groupedProperties_.addAll(other.groupedProperties_);
+ ensureVectorsIsMutable();
+ vectors_.addAll(other.vectors_);
}
onChanged();
}
@@ -7856,22 +8121,57 @@ public Builder mergeFrom(
case 0:
done = true;
break;
- case 10: {
- singleResponsePrompt_ = input.readStringRequireUtf8();
+ case 8: {
+ uuid_ = input.readBool();
bitField0_ |= 0x00000001;
break;
- } // case 10
- case 18: {
- groupedResponseTask_ = input.readStringRequireUtf8();
+ } // case 8
+ case 16: {
+ vector_ = input.readBool();
bitField0_ |= 0x00000002;
break;
- } // case 18
- case 26: {
+ } // case 16
+ case 24: {
+ creationTimeUnix_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 32: {
+ lastUpdateTimeUnix_ = input.readBool();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ case 40: {
+ distance_ = input.readBool();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 48: {
+ certainty_ = input.readBool();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 48
+ case 56: {
+ score_ = input.readBool();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 56
+ case 64: {
+ explainScore_ = input.readBool();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 64
+ case 72: {
+ isConsistent_ = input.readBool();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 72
+ case 82: {
java.lang.String s = input.readStringRequireUtf8();
- ensureGroupedPropertiesIsMutable();
- groupedProperties_.add(s);
+ ensureVectorsIsMutable();
+ vectors_.add(s);
break;
- } // case 26
+ } // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -7889,257 +8189,401 @@ public Builder mergeFrom(
}
private int bitField0_;
- private java.lang.Object singleResponsePrompt_ = "";
+ private boolean uuid_ ;
/**
- * string single_response_prompt = 1;
- * @return The singleResponsePrompt.
+ * bool uuid = 1;
+ * @return The uuid.
*/
- public java.lang.String getSingleResponsePrompt() {
- java.lang.Object ref = singleResponsePrompt_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- singleResponsePrompt_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ @java.lang.Override
+ public boolean getUuid() {
+ return uuid_;
}
/**
- * string single_response_prompt = 1;
- * @return The bytes for singleResponsePrompt.
+ * bool uuid = 1;
+ * @param value The uuid to set.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.ByteString
- getSingleResponsePromptBytes() {
- java.lang.Object ref = singleResponsePrompt_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- singleResponsePrompt_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public Builder setUuid(boolean value) {
+
+ uuid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
/**
- * string single_response_prompt = 1;
- * @param value The singleResponsePrompt to set.
+ * bool uuid = 1;
* @return This builder for chaining.
*/
- public Builder setSingleResponsePrompt(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- singleResponsePrompt_ = value;
- bitField0_ |= 0x00000001;
+ public Builder clearUuid() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ uuid_ = false;
onChanged();
return this;
}
+
+ private boolean vector_ ;
+ /**
+ * bool vector = 2;
+ * @return The vector.
+ */
+ @java.lang.Override
+ public boolean getVector() {
+ return vector_;
+ }
/**
- * string single_response_prompt = 1;
+ * bool vector = 2;
+ * @param value The vector to set.
* @return This builder for chaining.
*/
- public Builder clearSingleResponsePrompt() {
- singleResponsePrompt_ = getDefaultInstance().getSingleResponsePrompt();
- bitField0_ = (bitField0_ & ~0x00000001);
+ public Builder setVector(boolean value) {
+
+ vector_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
- * string single_response_prompt = 1;
- * @param value The bytes for singleResponsePrompt to set.
+ * bool vector = 2;
* @return This builder for chaining.
*/
- public Builder setSingleResponsePromptBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
- singleResponsePrompt_ = value;
- bitField0_ |= 0x00000001;
+ public Builder clearVector() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ vector_ = false;
onChanged();
return this;
}
- private java.lang.Object groupedResponseTask_ = "";
+ private boolean creationTimeUnix_ ;
/**
- * string grouped_response_task = 2;
- * @return The groupedResponseTask.
+ * bool creation_time_unix = 3;
+ * @return The creationTimeUnix.
*/
- public java.lang.String getGroupedResponseTask() {
- java.lang.Object ref = groupedResponseTask_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- groupedResponseTask_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ @java.lang.Override
+ public boolean getCreationTimeUnix() {
+ return creationTimeUnix_;
}
/**
- * string grouped_response_task = 2;
- * @return The bytes for groupedResponseTask.
+ * bool creation_time_unix = 3;
+ * @param value The creationTimeUnix to set.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.ByteString
- getGroupedResponseTaskBytes() {
- java.lang.Object ref = groupedResponseTask_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- groupedResponseTask_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public Builder setCreationTimeUnix(boolean value) {
+
+ creationTimeUnix_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
}
/**
- * string grouped_response_task = 2;
- * @param value The groupedResponseTask to set.
+ * bool creation_time_unix = 3;
* @return This builder for chaining.
*/
- public Builder setGroupedResponseTask(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- groupedResponseTask_ = value;
- bitField0_ |= 0x00000002;
+ public Builder clearCreationTimeUnix() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ creationTimeUnix_ = false;
onChanged();
return this;
}
+
+ private boolean lastUpdateTimeUnix_ ;
+ /**
+ * bool last_update_time_unix = 4;
+ * @return The lastUpdateTimeUnix.
+ */
+ @java.lang.Override
+ public boolean getLastUpdateTimeUnix() {
+ return lastUpdateTimeUnix_;
+ }
/**
- * string grouped_response_task = 2;
+ * bool last_update_time_unix = 4;
+ * @param value The lastUpdateTimeUnix to set.
* @return This builder for chaining.
*/
- public Builder clearGroupedResponseTask() {
- groupedResponseTask_ = getDefaultInstance().getGroupedResponseTask();
- bitField0_ = (bitField0_ & ~0x00000002);
+ public Builder setLastUpdateTimeUnix(boolean value) {
+
+ lastUpdateTimeUnix_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
- * string grouped_response_task = 2;
- * @param value The bytes for groupedResponseTask to set.
+ * bool last_update_time_unix = 4;
* @return This builder for chaining.
*/
- public Builder setGroupedResponseTaskBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
- groupedResponseTask_ = value;
- bitField0_ |= 0x00000002;
+ public Builder clearLastUpdateTimeUnix() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ lastUpdateTimeUnix_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean distance_ ;
+ /**
+ * bool distance = 5;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public boolean getDistance() {
+ return distance_;
+ }
+ /**
+ * bool distance = 5;
+ * @param value The distance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDistance(boolean value) {
+
+ distance_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool distance = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearDistance() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ distance_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean certainty_ ;
+ /**
+ * bool certainty = 6;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public boolean getCertainty() {
+ return certainty_;
+ }
+ /**
+ * bool certainty = 6;
+ * @param value The certainty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCertainty(boolean value) {
+
+ certainty_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool certainty = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearCertainty() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ certainty_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean score_ ;
+ /**
+ * bool score = 7;
+ * @return The score.
+ */
+ @java.lang.Override
+ public boolean getScore() {
+ return score_;
+ }
+ /**
+ * bool score = 7;
+ * @param value The score to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScore(boolean value) {
+
+ score_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool score = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearScore() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ score_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean explainScore_ ;
+ /**
+ * bool explain_score = 8;
+ * @return The explainScore.
+ */
+ @java.lang.Override
+ public boolean getExplainScore() {
+ return explainScore_;
+ }
+ /**
+ * bool explain_score = 8;
+ * @param value The explainScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExplainScore(boolean value) {
+
+ explainScore_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool explain_score = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearExplainScore() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ explainScore_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean isConsistent_ ;
+ /**
+ * bool is_consistent = 9;
+ * @return The isConsistent.
+ */
+ @java.lang.Override
+ public boolean getIsConsistent() {
+ return isConsistent_;
+ }
+ /**
+ * bool is_consistent = 9;
+ * @param value The isConsistent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsConsistent(boolean value) {
+
+ isConsistent_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool is_consistent = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsConsistent() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ isConsistent_ = false;
onChanged();
return this;
}
- private com.google.protobuf.LazyStringArrayList groupedProperties_ =
+ private com.google.protobuf.LazyStringArrayList vectors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
- private void ensureGroupedPropertiesIsMutable() {
- if (!groupedProperties_.isModifiable()) {
- groupedProperties_ = new com.google.protobuf.LazyStringArrayList(groupedProperties_);
+ private void ensureVectorsIsMutable() {
+ if (!vectors_.isModifiable()) {
+ vectors_ = new com.google.protobuf.LazyStringArrayList(vectors_);
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000200;
}
/**
- * repeated string grouped_properties = 3;
- * @return A list containing the groupedProperties.
+ * repeated string vectors = 10;
+ * @return A list containing the vectors.
*/
public com.google.protobuf.ProtocolStringList
- getGroupedPropertiesList() {
- groupedProperties_.makeImmutable();
- return groupedProperties_;
+ getVectorsList() {
+ vectors_.makeImmutable();
+ return vectors_;
}
/**
- * repeated string grouped_properties = 3;
- * @return The count of groupedProperties.
+ * repeated string vectors = 10;
+ * @return The count of vectors.
*/
- public int getGroupedPropertiesCount() {
- return groupedProperties_.size();
+ public int getVectorsCount() {
+ return vectors_.size();
}
/**
- * repeated string grouped_properties = 3;
+ * repeated string vectors = 10;
* @param index The index of the element to return.
- * @return The groupedProperties at the given index.
+ * @return The vectors at the given index.
*/
- public java.lang.String getGroupedProperties(int index) {
- return groupedProperties_.get(index);
+ public java.lang.String getVectors(int index) {
+ return vectors_.get(index);
}
/**
- * repeated string grouped_properties = 3;
+ * repeated string vectors = 10;
* @param index The index of the value to return.
- * @return The bytes of the groupedProperties at the given index.
+ * @return The bytes of the vectors at the given index.
*/
public com.google.protobuf.ByteString
- getGroupedPropertiesBytes(int index) {
- return groupedProperties_.getByteString(index);
+ getVectorsBytes(int index) {
+ return vectors_.getByteString(index);
}
/**
- * repeated string grouped_properties = 3;
+ * repeated string vectors = 10;
* @param index The index to set the value at.
- * @param value The groupedProperties to set.
+ * @param value The vectors to set.
* @return This builder for chaining.
*/
- public Builder setGroupedProperties(
+ public Builder setVectors(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
- ensureGroupedPropertiesIsMutable();
- groupedProperties_.set(index, value);
- bitField0_ |= 0x00000004;
+ ensureVectorsIsMutable();
+ vectors_.set(index, value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
- * repeated string grouped_properties = 3;
- * @param value The groupedProperties to add.
+ * repeated string vectors = 10;
+ * @param value The vectors to add.
* @return This builder for chaining.
*/
- public Builder addGroupedProperties(
+ public Builder addVectors(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
- ensureGroupedPropertiesIsMutable();
- groupedProperties_.add(value);
- bitField0_ |= 0x00000004;
+ ensureVectorsIsMutable();
+ vectors_.add(value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
- * repeated string grouped_properties = 3;
- * @param values The groupedProperties to add.
+ * repeated string vectors = 10;
+ * @param values The vectors to add.
* @return This builder for chaining.
*/
- public Builder addAllGroupedProperties(
+ public Builder addAllVectors(
java.lang.Iterable values) {
- ensureGroupedPropertiesIsMutable();
+ ensureVectorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, groupedProperties_);
- bitField0_ |= 0x00000004;
+ values, vectors_);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
- * repeated string grouped_properties = 3;
+ * repeated string vectors = 10;
* @return This builder for chaining.
*/
- public Builder clearGroupedProperties() {
- groupedProperties_ =
+ public Builder clearVectors() {
+ vectors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);;
+ bitField0_ = (bitField0_ & ~0x00000200);;
onChanged();
return this;
}
/**
- * repeated string grouped_properties = 3;
- * @param value The bytes of the groupedProperties to add.
+ * repeated string vectors = 10;
+ * @param value The bytes of the vectors to add.
* @return This builder for chaining.
*/
- public Builder addGroupedPropertiesBytes(
+ public Builder addVectorsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
- ensureGroupedPropertiesIsMutable();
- groupedProperties_.add(value);
- bitField0_ |= 0x00000004;
+ ensureVectorsIsMutable();
+ vectors_.add(value);
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -8156,23 +8600,23 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:weaviate.v1.GenerativeSearch)
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.MetadataRequest)
}
- // @@protoc_insertion_point(class_scope:weaviate.v1.GenerativeSearch)
- private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:weaviate.v1.MetadataRequest)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch();
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest();
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getDefaultInstance() {
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
- public GenerativeSearch parsePartialFrom(
+ public MetadataRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -8191,276 +8635,272 @@ public GenerativeSearch parsePartialFrom(
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.GenerativeSearch getDefaultInstanceForType() {
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
- public interface MetadataRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:weaviate.v1.MetadataRequest)
+ public interface PropertiesRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.PropertiesRequest)
com.google.protobuf.MessageOrBuilder {
/**
- * bool uuid = 1;
- * @return The uuid.
+ * repeated string non_ref_properties = 1;
+ * @return A list containing the nonRefProperties.
*/
- boolean getUuid();
-
+ java.util.List
+ getNonRefPropertiesList();
/**
- * bool vector = 2;
- * @return The vector.
+ * repeated string non_ref_properties = 1;
+ * @return The count of nonRefProperties.
*/
- boolean getVector();
-
+ int getNonRefPropertiesCount();
/**
- * bool creation_time_unix = 3;
- * @return The creationTimeUnix.
+ * repeated string non_ref_properties = 1;
+ * @param index The index of the element to return.
+ * @return The nonRefProperties at the given index.
*/
- boolean getCreationTimeUnix();
-
+ java.lang.String getNonRefProperties(int index);
/**
- * bool last_update_time_unix = 4;
- * @return The lastUpdateTimeUnix.
+ * repeated string non_ref_properties = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the nonRefProperties at the given index.
*/
- boolean getLastUpdateTimeUnix();
+ com.google.protobuf.ByteString
+ getNonRefPropertiesBytes(int index);
/**
- * bool distance = 5;
- * @return The distance.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- boolean getDistance();
-
+ java.util.List
+ getRefPropertiesList();
/**
- * bool certainty = 6;
- * @return The certainty.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- boolean getCertainty();
-
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index);
/**
- * bool score = 7;
- * @return The score.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- boolean getScore();
-
+ int getRefPropertiesCount();
/**
- * bool explain_score = 8;
- * @return The explainScore.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- boolean getExplainScore();
-
+ java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder>
+ getRefPropertiesOrBuilderList();
/**
- * bool is_consistent = 9;
- * @return The isConsistent.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- boolean getIsConsistent();
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder(
+ int index);
/**
- * repeated string vectors = 10;
- * @return A list containing the vectors.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- java.util.List
- getVectorsList();
+ java.util.List
+ getObjectPropertiesList();
/**
- * repeated string vectors = 10;
- * @return The count of vectors.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- int getVectorsCount();
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index);
/**
- * repeated string vectors = 10;
- * @param index The index of the element to return.
- * @return The vectors at the given index.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- java.lang.String getVectors(int index);
+ int getObjectPropertiesCount();
/**
- * repeated string vectors = 10;
- * @param index The index of the value to return.
- * @return The bytes of the vectors at the given index.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- com.google.protobuf.ByteString
- getVectorsBytes(int index);
+ java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder>
+ getObjectPropertiesOrBuilderList();
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder(
+ int index);
+
+ /**
+ * bool return_all_nonref_properties = 11;
+ * @return The returnAllNonrefProperties.
+ */
+ boolean getReturnAllNonrefProperties();
}
/**
- * Protobuf type {@code weaviate.v1.MetadataRequest}
+ * Protobuf type {@code weaviate.v1.PropertiesRequest}
*/
- public static final class MetadataRequest extends
+ public static final class PropertiesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:weaviate.v1.MetadataRequest)
- MetadataRequestOrBuilder {
+ // @@protoc_insertion_point(message_implements:weaviate.v1.PropertiesRequest)
+ PropertiesRequestOrBuilder {
private static final long serialVersionUID = 0L;
- // Use MetadataRequest.newBuilder() to construct.
- private MetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use PropertiesRequest.newBuilder() to construct.
+ private PropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private MetadataRequest() {
- vectors_ =
+ private PropertiesRequest() {
+ nonRefProperties_ =
com.google.protobuf.LazyStringArrayList.emptyList();
+ refProperties_ = java.util.Collections.emptyList();
+ objectProperties_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new MetadataRequest();
+ return new PropertiesRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor;
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder.class);
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder.class);
}
- public static final int UUID_FIELD_NUMBER = 1;
- private boolean uuid_ = false;
+ public static final int NON_REF_PROPERTIES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList nonRefProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
- * bool uuid = 1;
- * @return The uuid.
+ * repeated string non_ref_properties = 1;
+ * @return A list containing the nonRefProperties.
*/
- @java.lang.Override
- public boolean getUuid() {
- return uuid_;
+ public com.google.protobuf.ProtocolStringList
+ getNonRefPropertiesList() {
+ return nonRefProperties_;
}
-
- public static final int VECTOR_FIELD_NUMBER = 2;
- private boolean vector_ = false;
/**
- * bool vector = 2;
- * @return The vector.
+ * repeated string non_ref_properties = 1;
+ * @return The count of nonRefProperties.
*/
- @java.lang.Override
- public boolean getVector() {
- return vector_;
+ public int getNonRefPropertiesCount() {
+ return nonRefProperties_.size();
+ }
+ /**
+ * repeated string non_ref_properties = 1;
+ * @param index The index of the element to return.
+ * @return The nonRefProperties at the given index.
+ */
+ public java.lang.String getNonRefProperties(int index) {
+ return nonRefProperties_.get(index);
+ }
+ /**
+ * repeated string non_ref_properties = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the nonRefProperties at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getNonRefPropertiesBytes(int index) {
+ return nonRefProperties_.getByteString(index);
}
- public static final int CREATION_TIME_UNIX_FIELD_NUMBER = 3;
- private boolean creationTimeUnix_ = false;
+ public static final int REF_PROPERTIES_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private java.util.List refProperties_;
/**
- * bool creation_time_unix = 3;
- * @return The creationTimeUnix.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
@java.lang.Override
- public boolean getCreationTimeUnix() {
- return creationTimeUnix_;
+ public java.util.List getRefPropertiesList() {
+ return refProperties_;
}
-
- public static final int LAST_UPDATE_TIME_UNIX_FIELD_NUMBER = 4;
- private boolean lastUpdateTimeUnix_ = false;
/**
- * bool last_update_time_unix = 4;
- * @return The lastUpdateTimeUnix.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
@java.lang.Override
- public boolean getLastUpdateTimeUnix() {
- return lastUpdateTimeUnix_;
+ public java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder>
+ getRefPropertiesOrBuilderList() {
+ return refProperties_;
}
-
- public static final int DISTANCE_FIELD_NUMBER = 5;
- private boolean distance_ = false;
/**
- * bool distance = 5;
- * @return The distance.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
@java.lang.Override
- public boolean getDistance() {
- return distance_;
+ public int getRefPropertiesCount() {
+ return refProperties_.size();
}
-
- public static final int CERTAINTY_FIELD_NUMBER = 6;
- private boolean certainty_ = false;
/**
- * bool certainty = 6;
- * @return The certainty.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
@java.lang.Override
- public boolean getCertainty() {
- return certainty_;
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index) {
+ return refProperties_.get(index);
}
-
- public static final int SCORE_FIELD_NUMBER = 7;
- private boolean score_ = false;
/**
- * bool score = 7;
- * @return The score.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
@java.lang.Override
- public boolean getScore() {
- return score_;
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder(
+ int index) {
+ return refProperties_.get(index);
}
- public static final int EXPLAIN_SCORE_FIELD_NUMBER = 8;
- private boolean explainScore_ = false;
+ public static final int OBJECT_PROPERTIES_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List objectProperties_;
/**
- * bool explain_score = 8;
- * @return The explainScore.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
@java.lang.Override
- public boolean getExplainScore() {
- return explainScore_;
+ public java.util.List getObjectPropertiesList() {
+ return objectProperties_;
}
-
- public static final int IS_CONSISTENT_FIELD_NUMBER = 9;
- private boolean isConsistent_ = false;
/**
- * bool is_consistent = 9;
- * @return The isConsistent.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
@java.lang.Override
- public boolean getIsConsistent() {
- return isConsistent_;
+ public java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder>
+ getObjectPropertiesOrBuilderList() {
+ return objectProperties_;
}
-
- public static final int VECTORS_FIELD_NUMBER = 10;
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList vectors_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
/**
- * repeated string vectors = 10;
- * @return A list containing the vectors.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public com.google.protobuf.ProtocolStringList
- getVectorsList() {
- return vectors_;
+ @java.lang.Override
+ public int getObjectPropertiesCount() {
+ return objectProperties_.size();
}
/**
- * repeated string vectors = 10;
- * @return The count of vectors.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public int getVectorsCount() {
- return vectors_.size();
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index) {
+ return objectProperties_.get(index);
}
/**
- * repeated string vectors = 10;
- * @param index The index of the element to return.
- * @return The vectors at the given index.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public java.lang.String getVectors(int index) {
- return vectors_.get(index);
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder(
+ int index) {
+ return objectProperties_.get(index);
}
+
+ public static final int RETURN_ALL_NONREF_PROPERTIES_FIELD_NUMBER = 11;
+ private boolean returnAllNonrefProperties_ = false;
/**
- * repeated string vectors = 10;
- * @param index The index of the value to return.
- * @return The bytes of the vectors at the given index.
+ * bool return_all_nonref_properties = 11;
+ * @return The returnAllNonrefProperties.
*/
- public com.google.protobuf.ByteString
- getVectorsBytes(int index) {
- return vectors_.getByteString(index);
+ @java.lang.Override
+ public boolean getReturnAllNonrefProperties() {
+ return returnAllNonrefProperties_;
}
private byte memoizedIsInitialized = -1;
@@ -8477,35 +8917,17 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (uuid_ != false) {
- output.writeBool(1, uuid_);
- }
- if (vector_ != false) {
- output.writeBool(2, vector_);
- }
- if (creationTimeUnix_ != false) {
- output.writeBool(3, creationTimeUnix_);
- }
- if (lastUpdateTimeUnix_ != false) {
- output.writeBool(4, lastUpdateTimeUnix_);
- }
- if (distance_ != false) {
- output.writeBool(5, distance_);
- }
- if (certainty_ != false) {
- output.writeBool(6, certainty_);
- }
- if (score_ != false) {
- output.writeBool(7, score_);
+ for (int i = 0; i < nonRefProperties_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nonRefProperties_.getRaw(i));
}
- if (explainScore_ != false) {
- output.writeBool(8, explainScore_);
+ for (int i = 0; i < refProperties_.size(); i++) {
+ output.writeMessage(2, refProperties_.get(i));
}
- if (isConsistent_ != false) {
- output.writeBool(9, isConsistent_);
+ for (int i = 0; i < objectProperties_.size(); i++) {
+ output.writeMessage(3, objectProperties_.get(i));
}
- for (int i = 0; i < vectors_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 10, vectors_.getRaw(i));
+ if (returnAllNonrefProperties_ != false) {
+ output.writeBool(11, returnAllNonrefProperties_);
}
getUnknownFields().writeTo(output);
}
@@ -8516,49 +8938,25 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (uuid_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(1, uuid_);
- }
- if (vector_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(2, vector_);
- }
- if (creationTimeUnix_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(3, creationTimeUnix_);
- }
- if (lastUpdateTimeUnix_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(4, lastUpdateTimeUnix_);
- }
- if (distance_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(5, distance_);
- }
- if (certainty_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(6, certainty_);
+ {
+ int dataSize = 0;
+ for (int i = 0; i < nonRefProperties_.size(); i++) {
+ dataSize += computeStringSizeNoTag(nonRefProperties_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getNonRefPropertiesList().size();
}
- if (score_ != false) {
+ for (int i = 0; i < refProperties_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(7, score_);
+ .computeMessageSize(2, refProperties_.get(i));
}
- if (explainScore_ != false) {
+ for (int i = 0; i < objectProperties_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(8, explainScore_);
+ .computeMessageSize(3, objectProperties_.get(i));
}
- if (isConsistent_ != false) {
+ if (returnAllNonrefProperties_ != false) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(9, isConsistent_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < vectors_.size(); i++) {
- dataSize += computeStringSizeNoTag(vectors_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getVectorsList().size();
+ .computeBoolSize(11, returnAllNonrefProperties_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -8570,31 +8968,19 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest)) {
+ if (!(obj instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest)) {
return super.equals(obj);
}
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest) obj;
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest other = (io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest) obj;
- if (getUuid()
- != other.getUuid()) return false;
- if (getVector()
- != other.getVector()) return false;
- if (getCreationTimeUnix()
- != other.getCreationTimeUnix()) return false;
- if (getLastUpdateTimeUnix()
- != other.getLastUpdateTimeUnix()) return false;
- if (getDistance()
- != other.getDistance()) return false;
- if (getCertainty()
- != other.getCertainty()) return false;
- if (getScore()
- != other.getScore()) return false;
- if (getExplainScore()
- != other.getExplainScore()) return false;
- if (getIsConsistent()
- != other.getIsConsistent()) return false;
- if (!getVectorsList()
- .equals(other.getVectorsList())) return false;
+ if (!getNonRefPropertiesList()
+ .equals(other.getNonRefPropertiesList())) return false;
+ if (!getRefPropertiesList()
+ .equals(other.getRefPropertiesList())) return false;
+ if (!getObjectPropertiesList()
+ .equals(other.getObjectPropertiesList())) return false;
+ if (getReturnAllNonrefProperties()
+ != other.getReturnAllNonrefProperties()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -8606,80 +8992,64 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + UUID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getUuid());
- hash = (37 * hash) + VECTOR_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getVector());
- hash = (37 * hash) + CREATION_TIME_UNIX_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getCreationTimeUnix());
- hash = (37 * hash) + LAST_UPDATE_TIME_UNIX_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getLastUpdateTimeUnix());
- hash = (37 * hash) + DISTANCE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getDistance());
- hash = (37 * hash) + CERTAINTY_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getCertainty());
- hash = (37 * hash) + SCORE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getScore());
- hash = (37 * hash) + EXPLAIN_SCORE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getExplainScore());
- hash = (37 * hash) + IS_CONSISTENT_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getIsConsistent());
- if (getVectorsCount() > 0) {
- hash = (37 * hash) + VECTORS_FIELD_NUMBER;
- hash = (53 * hash) + getVectorsList().hashCode();
+ if (getNonRefPropertiesCount() > 0) {
+ hash = (37 * hash) + NON_REF_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getNonRefPropertiesList().hashCode();
+ }
+ if (getRefPropertiesCount() > 0) {
+ hash = (37 * hash) + REF_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getRefPropertiesList().hashCode();
}
+ if (getObjectPropertiesCount() > 0) {
+ hash = (37 * hash) + OBJECT_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getObjectPropertiesList().hashCode();
+ }
+ hash = (37 * hash) + RETURN_ALL_NONREF_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getReturnAllNonrefProperties());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(byte[] data)
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(java.io.InputStream input)
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -8687,26 +9057,26 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Metadat
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseDelimitedFrom(java.io.InputStream input)
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseDelimitedFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest parseFrom(
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -8719,7 +9089,7 @@ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.Metadat
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest prototype) {
+ public static Builder newBuilder(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
@@ -8735,26 +9105,26 @@ protected Builder newBuilderForType(
return builder;
}
/**
- * Protobuf type {@code weaviate.v1.MetadataRequest}
+ * Protobuf type {@code weaviate.v1.PropertiesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:weaviate.v1.MetadataRequest)
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequestOrBuilder {
+ // @@protoc_insertion_point(builder_implements:weaviate.v1.PropertiesRequest)
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor;
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_fieldAccessorTable
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.Builder.class);
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder.class);
}
- // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.newBuilder()
+ // Construct using io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.newBuilder()
private Builder() {
}
@@ -8768,34 +9138,40 @@ private Builder(
public Builder clear() {
super.clear();
bitField0_ = 0;
- uuid_ = false;
- vector_ = false;
- creationTimeUnix_ = false;
- lastUpdateTimeUnix_ = false;
- distance_ = false;
- certainty_ = false;
- score_ = false;
- explainScore_ = false;
- isConsistent_ = false;
- vectors_ =
+ nonRefProperties_ =
com.google.protobuf.LazyStringArrayList.emptyList();
+ if (refPropertiesBuilder_ == null) {
+ refProperties_ = java.util.Collections.emptyList();
+ } else {
+ refProperties_ = null;
+ refPropertiesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ if (objectPropertiesBuilder_ == null) {
+ objectProperties_ = java.util.Collections.emptyList();
+ } else {
+ objectProperties_ = null;
+ objectPropertiesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ returnAllNonrefProperties_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_MetadataRequest_descriptor;
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor;
}
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstanceForType() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance();
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance();
}
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest build() {
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result = buildPartial();
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest build() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
@@ -8803,45 +9179,43 @@ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataReques
}
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest buildPartial() {
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest(this);
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest buildPartial() {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
- private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.uuid_ = uuid_;
+ private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result) {
+ if (refPropertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ refProperties_ = java.util.Collections.unmodifiableList(refProperties_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.refProperties_ = refProperties_;
+ } else {
+ result.refProperties_ = refPropertiesBuilder_.build();
}
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.vector_ = vector_;
+ if (objectPropertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ objectProperties_ = java.util.Collections.unmodifiableList(objectProperties_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.objectProperties_ = objectProperties_;
+ } else {
+ result.objectProperties_ = objectPropertiesBuilder_.build();
}
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.creationTimeUnix_ = creationTimeUnix_;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ nonRefProperties_.makeImmutable();
+ result.nonRefProperties_ = nonRefProperties_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
- result.lastUpdateTimeUnix_ = lastUpdateTimeUnix_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.distance_ = distance_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.certainty_ = certainty_;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.score_ = score_;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.explainScore_ = explainScore_;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.isConsistent_ = isConsistent_;
- }
- if (((from_bitField0_ & 0x00000200) != 0)) {
- vectors_.makeImmutable();
- result.vectors_ = vectors_;
+ result.returnAllNonrefProperties_ = returnAllNonrefProperties_;
}
}
@@ -8879,53 +9253,81 @@ public Builder addRepeatedField(
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest) {
- return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest)other);
+ if (other instanceof io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest other) {
- if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest.getDefaultInstance()) return this;
- if (other.getUuid() != false) {
- setUuid(other.getUuid());
- }
- if (other.getVector() != false) {
- setVector(other.getVector());
- }
- if (other.getCreationTimeUnix() != false) {
- setCreationTimeUnix(other.getCreationTimeUnix());
- }
- if (other.getLastUpdateTimeUnix() != false) {
- setLastUpdateTimeUnix(other.getLastUpdateTimeUnix());
- }
- if (other.getDistance() != false) {
- setDistance(other.getDistance());
- }
- if (other.getCertainty() != false) {
- setCertainty(other.getCertainty());
- }
- if (other.getScore() != false) {
- setScore(other.getScore());
- }
- if (other.getExplainScore() != false) {
- setExplainScore(other.getExplainScore());
- }
- if (other.getIsConsistent() != false) {
- setIsConsistent(other.getIsConsistent());
- }
- if (!other.vectors_.isEmpty()) {
- if (vectors_.isEmpty()) {
- vectors_ = other.vectors_;
- bitField0_ |= 0x00000200;
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest other) {
+ if (other == io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.getDefaultInstance()) return this;
+ if (!other.nonRefProperties_.isEmpty()) {
+ if (nonRefProperties_.isEmpty()) {
+ nonRefProperties_ = other.nonRefProperties_;
+ bitField0_ |= 0x00000001;
} else {
- ensureVectorsIsMutable();
- vectors_.addAll(other.vectors_);
+ ensureNonRefPropertiesIsMutable();
+ nonRefProperties_.addAll(other.nonRefProperties_);
}
onChanged();
}
+ if (refPropertiesBuilder_ == null) {
+ if (!other.refProperties_.isEmpty()) {
+ if (refProperties_.isEmpty()) {
+ refProperties_ = other.refProperties_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureRefPropertiesIsMutable();
+ refProperties_.addAll(other.refProperties_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.refProperties_.isEmpty()) {
+ if (refPropertiesBuilder_.isEmpty()) {
+ refPropertiesBuilder_.dispose();
+ refPropertiesBuilder_ = null;
+ refProperties_ = other.refProperties_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ refPropertiesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getRefPropertiesFieldBuilder() : null;
+ } else {
+ refPropertiesBuilder_.addAllMessages(other.refProperties_);
+ }
+ }
+ }
+ if (objectPropertiesBuilder_ == null) {
+ if (!other.objectProperties_.isEmpty()) {
+ if (objectProperties_.isEmpty()) {
+ objectProperties_ = other.objectProperties_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.addAll(other.objectProperties_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.objectProperties_.isEmpty()) {
+ if (objectPropertiesBuilder_.isEmpty()) {
+ objectPropertiesBuilder_.dispose();
+ objectPropertiesBuilder_ = null;
+ objectProperties_ = other.objectProperties_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ objectPropertiesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getObjectPropertiesFieldBuilder() : null;
+ } else {
+ objectPropertiesBuilder_.addAllMessages(other.objectProperties_);
+ }
+ }
+ }
+ if (other.getReturnAllNonrefProperties() != false) {
+ setReturnAllNonrefProperties(other.getReturnAllNonrefProperties());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -8952,57 +9354,43 @@ public Builder mergeFrom(
case 0:
done = true;
break;
- case 8: {
- uuid_ = input.readBool();
- bitField0_ |= 0x00000001;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureNonRefPropertiesIsMutable();
+ nonRefProperties_.add(s);
break;
- } // case 8
- case 16: {
- vector_ = input.readBool();
- bitField0_ |= 0x00000002;
+ } // case 10
+ case 18: {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest m =
+ input.readMessage(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.parser(),
+ extensionRegistry);
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(m);
+ } else {
+ refPropertiesBuilder_.addMessage(m);
+ }
break;
- } // case 16
- case 24: {
- creationTimeUnix_ = input.readBool();
- bitField0_ |= 0x00000004;
+ } // case 18
+ case 26: {
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest m =
+ input.readMessage(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.parser(),
+ extensionRegistry);
+ if (objectPropertiesBuilder_ == null) {
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.add(m);
+ } else {
+ objectPropertiesBuilder_.addMessage(m);
+ }
break;
- } // case 24
- case 32: {
- lastUpdateTimeUnix_ = input.readBool();
+ } // case 26
+ case 88: {
+ returnAllNonrefProperties_ = input.readBool();
bitField0_ |= 0x00000008;
break;
- } // case 32
- case 40: {
- distance_ = input.readBool();
- bitField0_ |= 0x00000010;
- break;
- } // case 40
- case 48: {
- certainty_ = input.readBool();
- bitField0_ |= 0x00000020;
- break;
- } // case 48
- case 56: {
- score_ = input.readBool();
- bitField0_ |= 0x00000040;
- break;
- } // case 56
- case 64: {
- explainScore_ = input.readBool();
- bitField0_ |= 0x00000080;
- break;
- } // case 64
- case 72: {
- isConsistent_ = input.readBool();
- bitField0_ |= 0x00000100;
- break;
- } // case 72
- case 82: {
- java.lang.String s = input.readStringRequireUtf8();
- ensureVectorsIsMutable();
- vectors_.add(s);
- break;
- } // case 82
+ } // case 88
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
@@ -9020,401 +9408,625 @@ public Builder mergeFrom(
}
private int bitField0_;
- private boolean uuid_ ;
+ private com.google.protobuf.LazyStringArrayList nonRefProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureNonRefPropertiesIsMutable() {
+ if (!nonRefProperties_.isModifiable()) {
+ nonRefProperties_ = new com.google.protobuf.LazyStringArrayList(nonRefProperties_);
+ }
+ bitField0_ |= 0x00000001;
+ }
/**
- * bool uuid = 1;
- * @return The uuid.
+ * repeated string non_ref_properties = 1;
+ * @return A list containing the nonRefProperties.
*/
- @java.lang.Override
- public boolean getUuid() {
- return uuid_;
+ public com.google.protobuf.ProtocolStringList
+ getNonRefPropertiesList() {
+ nonRefProperties_.makeImmutable();
+ return nonRefProperties_;
}
/**
- * bool uuid = 1;
- * @param value The uuid to set.
- * @return This builder for chaining.
+ * repeated string non_ref_properties = 1;
+ * @return The count of nonRefProperties.
*/
- public Builder setUuid(boolean value) {
-
- uuid_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
+ public int getNonRefPropertiesCount() {
+ return nonRefProperties_.size();
}
/**
- * bool uuid = 1;
- * @return This builder for chaining.
+ * repeated string non_ref_properties = 1;
+ * @param index The index of the element to return.
+ * @return The nonRefProperties at the given index.
*/
- public Builder clearUuid() {
- bitField0_ = (bitField0_ & ~0x00000001);
- uuid_ = false;
- onChanged();
- return this;
+ public java.lang.String getNonRefProperties(int index) {
+ return nonRefProperties_.get(index);
}
-
- private boolean vector_ ;
/**
- * bool vector = 2;
- * @return The vector.
+ * repeated string non_ref_properties = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the nonRefProperties at the given index.
*/
- @java.lang.Override
- public boolean getVector() {
- return vector_;
+ public com.google.protobuf.ByteString
+ getNonRefPropertiesBytes(int index) {
+ return nonRefProperties_.getByteString(index);
}
/**
- * bool vector = 2;
- * @param value The vector to set.
+ * repeated string non_ref_properties = 1;
+ * @param index The index to set the value at.
+ * @param value The nonRefProperties to set.
* @return This builder for chaining.
*/
- public Builder setVector(boolean value) {
-
- vector_ = value;
- bitField0_ |= 0x00000002;
+ public Builder setNonRefProperties(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureNonRefPropertiesIsMutable();
+ nonRefProperties_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- * bool vector = 2;
+ * repeated string non_ref_properties = 1;
+ * @param value The nonRefProperties to add.
* @return This builder for chaining.
*/
- public Builder clearVector() {
- bitField0_ = (bitField0_ & ~0x00000002);
- vector_ = false;
+ public Builder addNonRefProperties(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureNonRefPropertiesIsMutable();
+ nonRefProperties_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
-
- private boolean creationTimeUnix_ ;
/**
- * bool creation_time_unix = 3;
- * @return The creationTimeUnix.
+ * repeated string non_ref_properties = 1;
+ * @param values The nonRefProperties to add.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public boolean getCreationTimeUnix() {
- return creationTimeUnix_;
+ public Builder addAllNonRefProperties(
+ java.lang.Iterable values) {
+ ensureNonRefPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, nonRefProperties_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
}
/**
- * bool creation_time_unix = 3;
- * @param value The creationTimeUnix to set.
+ * repeated string non_ref_properties = 1;
* @return This builder for chaining.
*/
- public Builder setCreationTimeUnix(boolean value) {
-
- creationTimeUnix_ = value;
- bitField0_ |= 0x00000004;
+ public Builder clearNonRefProperties() {
+ nonRefProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
- * bool creation_time_unix = 3;
+ * repeated string non_ref_properties = 1;
+ * @param value The bytes of the nonRefProperties to add.
* @return This builder for chaining.
*/
- public Builder clearCreationTimeUnix() {
- bitField0_ = (bitField0_ & ~0x00000004);
- creationTimeUnix_ = false;
+ public Builder addNonRefPropertiesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureNonRefPropertiesIsMutable();
+ nonRefProperties_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private boolean lastUpdateTimeUnix_ ;
+ private java.util.List refProperties_ =
+ java.util.Collections.emptyList();
+ private void ensureRefPropertiesIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ refProperties_ = new java.util.ArrayList(refProperties_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder> refPropertiesBuilder_;
+
/**
- * bool last_update_time_unix = 4;
- * @return The lastUpdateTimeUnix.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- @java.lang.Override
- public boolean getLastUpdateTimeUnix() {
- return lastUpdateTimeUnix_;
+ public java.util.List getRefPropertiesList() {
+ if (refPropertiesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(refProperties_);
+ } else {
+ return refPropertiesBuilder_.getMessageList();
+ }
}
/**
- * bool last_update_time_unix = 4;
- * @param value The lastUpdateTimeUnix to set.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder setLastUpdateTimeUnix(boolean value) {
-
- lastUpdateTimeUnix_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
+ public int getRefPropertiesCount() {
+ if (refPropertiesBuilder_ == null) {
+ return refProperties_.size();
+ } else {
+ return refPropertiesBuilder_.getCount();
+ }
}
/**
- * bool last_update_time_unix = 4;
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder clearLastUpdateTimeUnix() {
- bitField0_ = (bitField0_ & ~0x00000008);
- lastUpdateTimeUnix_ = false;
- onChanged();
- return this;
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index) {
+ if (refPropertiesBuilder_ == null) {
+ return refProperties_.get(index);
+ } else {
+ return refPropertiesBuilder_.getMessage(index);
+ }
}
-
- private boolean distance_ ;
/**
- * bool distance = 5;
- * @return The distance.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- @java.lang.Override
- public boolean getDistance() {
- return distance_;
+ public Builder setRefProperties(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) {
+ if (refPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropertiesIsMutable();
+ refProperties_.set(index, value);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.setMessage(index, value);
+ }
+ return this;
}
/**
- * bool distance = 5;
- * @param value The distance to set.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder setDistance(boolean value) {
-
- distance_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
+ public Builder setRefProperties(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ refPropertiesBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
/**
- * bool distance = 5;
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder clearDistance() {
- bitField0_ = (bitField0_ & ~0x00000010);
- distance_ = false;
- onChanged();
+ public Builder addRefProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) {
+ if (refPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(value);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addMessage(value);
+ }
return this;
}
-
- private boolean certainty_ ;
/**
- * bool certainty = 6;
- * @return The certainty.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- @java.lang.Override
- public boolean getCertainty() {
- return certainty_;
+ public Builder addRefProperties(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest value) {
+ if (refPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(index, value);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addMessage(index, value);
+ }
+ return this;
}
/**
- * bool certainty = 6;
- * @param value The certainty to set.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder setCertainty(boolean value) {
-
- certainty_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
+ public Builder addRefProperties(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(builderForValue.build());
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addMessage(builderForValue.build());
+ }
return this;
}
/**
- * bool certainty = 6;
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder clearCertainty() {
- bitField0_ = (bitField0_ & ~0x00000020);
- certainty_ = false;
- onChanged();
+ public Builder addRefProperties(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder builderForValue) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addMessage(index, builderForValue.build());
+ }
return this;
}
-
- private boolean score_ ;
/**
- * bool score = 7;
- * @return The score.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- @java.lang.Override
- public boolean getScore() {
- return score_;
+ public Builder addAllRefProperties(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest> values) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, refProperties_);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addAllMessages(values);
+ }
+ return this;
}
/**
- * bool score = 7;
- * @param value The score to set.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder setScore(boolean value) {
-
- score_ = value;
- bitField0_ |= 0x00000040;
- onChanged();
+ public Builder clearRefProperties() {
+ if (refPropertiesBuilder_ == null) {
+ refProperties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.clear();
+ }
return this;
}
/**
- * bool score = 7;
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder clearScore() {
- bitField0_ = (bitField0_ & ~0x00000040);
- score_ = false;
- onChanged();
+ public Builder removeRefProperties(int index) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.remove(index);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.remove(index);
+ }
return this;
}
-
- private boolean explainScore_ ;
/**
- * bool explain_score = 8;
- * @return The explainScore.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- @java.lang.Override
- public boolean getExplainScore() {
- return explainScore_;
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder getRefPropertiesBuilder(
+ int index) {
+ return getRefPropertiesFieldBuilder().getBuilder(index);
}
/**
- * bool explain_score = 8;
- * @param value The explainScore to set.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder setExplainScore(boolean value) {
-
- explainScore_ = value;
- bitField0_ |= 0x00000080;
- onChanged();
- return this;
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder(
+ int index) {
+ if (refPropertiesBuilder_ == null) {
+ return refProperties_.get(index); } else {
+ return refPropertiesBuilder_.getMessageOrBuilder(index);
+ }
}
/**
- * bool explain_score = 8;
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder clearExplainScore() {
- bitField0_ = (bitField0_ & ~0x00000080);
- explainScore_ = false;
- onChanged();
- return this;
+ public java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder>
+ getRefPropertiesOrBuilderList() {
+ if (refPropertiesBuilder_ != null) {
+ return refPropertiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(refProperties_);
+ }
}
-
- private boolean isConsistent_ ;
/**
- * bool is_consistent = 9;
- * @return The isConsistent.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- @java.lang.Override
- public boolean getIsConsistent() {
- return isConsistent_;
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder addRefPropertiesBuilder() {
+ return getRefPropertiesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance());
}
/**
- * bool is_consistent = 9;
- * @param value The isConsistent to set.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
*/
- public Builder setIsConsistent(boolean value) {
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder addRefPropertiesBuilder(
+ int index) {
+ return getRefPropertiesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
+ */
+ public java.util.List
+ getRefPropertiesBuilderList() {
+ return getRefPropertiesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder>
+ getRefPropertiesFieldBuilder() {
+ if (refPropertiesBuilder_ == null) {
+ refPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder>(
+ refProperties_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ refProperties_ = null;
+ }
+ return refPropertiesBuilder_;
+ }
- isConsistent_ = value;
- bitField0_ |= 0x00000100;
- onChanged();
- return this;
+ private java.util.List objectProperties_ =
+ java.util.Collections.emptyList();
+ private void ensureObjectPropertiesIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ objectProperties_ = new java.util.ArrayList(objectProperties_);
+ bitField0_ |= 0x00000004;
+ }
}
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder> objectPropertiesBuilder_;
+
/**
- * bool is_consistent = 9;
- * @return This builder for chaining.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public Builder clearIsConsistent() {
- bitField0_ = (bitField0_ & ~0x00000100);
- isConsistent_ = false;
- onChanged();
+ public java.util.List getObjectPropertiesList() {
+ if (objectPropertiesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(objectProperties_);
+ } else {
+ return objectPropertiesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public int getObjectPropertiesCount() {
+ if (objectPropertiesBuilder_ == null) {
+ return objectProperties_.size();
+ } else {
+ return objectPropertiesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest getObjectProperties(int index) {
+ if (objectPropertiesBuilder_ == null) {
+ return objectProperties_.get(index);
+ } else {
+ return objectPropertiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public Builder setObjectProperties(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) {
+ if (objectPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.set(index, value);
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.setMessage(index, value);
+ }
return this;
}
-
- private com.google.protobuf.LazyStringArrayList vectors_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- private void ensureVectorsIsMutable() {
- if (!vectors_.isModifiable()) {
- vectors_ = new com.google.protobuf.LazyStringArrayList(vectors_);
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public Builder setObjectProperties(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) {
+ if (objectPropertiesBuilder_ == null) {
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.setMessage(index, builderForValue.build());
}
- bitField0_ |= 0x00000200;
+ return this;
}
/**
- * repeated string vectors = 10;
- * @return A list containing the vectors.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public com.google.protobuf.ProtocolStringList
- getVectorsList() {
- vectors_.makeImmutable();
- return vectors_;
+ public Builder addObjectProperties(io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) {
+ if (objectPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.add(value);
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.addMessage(value);
+ }
+ return this;
}
/**
- * repeated string vectors = 10;
- * @return The count of vectors.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public int getVectorsCount() {
- return vectors_.size();
+ public Builder addObjectProperties(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest value) {
+ if (objectPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.add(index, value);
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.addMessage(index, value);
+ }
+ return this;
}
/**
- * repeated string vectors = 10;
- * @param index The index of the element to return.
- * @return The vectors at the given index.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public java.lang.String getVectors(int index) {
- return vectors_.get(index);
+ public Builder addObjectProperties(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) {
+ if (objectPropertiesBuilder_ == null) {
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.add(builderForValue.build());
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
}
/**
- * repeated string vectors = 10;
- * @param index The index of the value to return.
- * @return The bytes of the vectors at the given index.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public com.google.protobuf.ByteString
- getVectorsBytes(int index) {
- return vectors_.getByteString(index);
+ public Builder addObjectProperties(
+ int index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder builderForValue) {
+ if (objectPropertiesBuilder_ == null) {
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
}
/**
- * repeated string vectors = 10;
- * @param index The index to set the value at.
- * @param value The vectors to set.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public Builder setVectors(
- int index, java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureVectorsIsMutable();
- vectors_.set(index, value);
- bitField0_ |= 0x00000200;
- onChanged();
+ public Builder addAllObjectProperties(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest> values) {
+ if (objectPropertiesBuilder_ == null) {
+ ensureObjectPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, objectProperties_);
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.addAllMessages(values);
+ }
return this;
}
/**
- * repeated string vectors = 10;
- * @param value The vectors to add.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public Builder addVectors(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureVectorsIsMutable();
- vectors_.add(value);
- bitField0_ |= 0x00000200;
- onChanged();
+ public Builder clearObjectProperties() {
+ if (objectPropertiesBuilder_ == null) {
+ objectProperties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.clear();
+ }
return this;
}
/**
- * repeated string vectors = 10;
- * @param values The vectors to add.
- * @return This builder for chaining.
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
*/
- public Builder addAllVectors(
- java.lang.Iterable values) {
- ensureVectorsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, vectors_);
- bitField0_ |= 0x00000200;
- onChanged();
+ public Builder removeObjectProperties(int index) {
+ if (objectPropertiesBuilder_ == null) {
+ ensureObjectPropertiesIsMutable();
+ objectProperties_.remove(index);
+ onChanged();
+ } else {
+ objectPropertiesBuilder_.remove(index);
+ }
return this;
}
/**
- * repeated string vectors = 10;
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder getObjectPropertiesBuilder(
+ int index) {
+ return getObjectPropertiesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder(
+ int index) {
+ if (objectPropertiesBuilder_ == null) {
+ return objectProperties_.get(index); } else {
+ return objectPropertiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder>
+ getObjectPropertiesOrBuilderList() {
+ if (objectPropertiesBuilder_ != null) {
+ return objectPropertiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(objectProperties_);
+ }
+ }
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder addObjectPropertiesBuilder() {
+ return getObjectPropertiesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder addObjectPropertiesBuilder(
+ int index) {
+ return getObjectPropertiesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
+ */
+ public java.util.List
+ getObjectPropertiesBuilderList() {
+ return getObjectPropertiesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder>
+ getObjectPropertiesFieldBuilder() {
+ if (objectPropertiesBuilder_ == null) {
+ objectPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder>(
+ objectProperties_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ objectProperties_ = null;
+ }
+ return objectPropertiesBuilder_;
+ }
+
+ private boolean returnAllNonrefProperties_ ;
+ /**
+ * bool return_all_nonref_properties = 11;
+ * @return The returnAllNonrefProperties.
+ */
+ @java.lang.Override
+ public boolean getReturnAllNonrefProperties() {
+ return returnAllNonrefProperties_;
+ }
+ /**
+ * bool return_all_nonref_properties = 11;
+ * @param value The returnAllNonrefProperties to set.
* @return This builder for chaining.
*/
- public Builder clearVectors() {
- vectors_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);;
+ public Builder setReturnAllNonrefProperties(boolean value) {
+
+ returnAllNonrefProperties_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
- * repeated string vectors = 10;
- * @param value The bytes of the vectors to add.
+ * bool return_all_nonref_properties = 11;
* @return This builder for chaining.
*/
- public Builder addVectorsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- checkByteStringIsUtf8(value);
- ensureVectorsIsMutable();
- vectors_.add(value);
- bitField0_ |= 0x00000200;
+ public Builder clearReturnAllNonrefProperties() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ returnAllNonrefProperties_ = false;
onChanged();
return this;
}
@@ -9431,23 +10043,23 @@ public final Builder mergeUnknownFields(
}
- // @@protoc_insertion_point(builder_scope:weaviate.v1.MetadataRequest)
+ // @@protoc_insertion_point(builder_scope:weaviate.v1.PropertiesRequest)
}
- // @@protoc_insertion_point(class_scope:weaviate.v1.MetadataRequest)
- private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:weaviate.v1.PropertiesRequest)
+ private static final io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest();
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest();
}
- public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstance() {
+ public static io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
- public MetadataRequest parsePartialFrom(
+ public PropertiesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -9466,74 +10078,62 @@ public MetadataRequest parsePartialFrom(
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
- public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.MetadataRequest getDefaultInstanceForType() {
+ public io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
- public interface PropertiesRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:weaviate.v1.PropertiesRequest)
+ public interface ObjectPropertiesRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviate.v1.ObjectPropertiesRequest)
com.google.protobuf.MessageOrBuilder {
/**
- * repeated string non_ref_properties = 1;
- * @return A list containing the nonRefProperties.
- */
- java.util.List
- getNonRefPropertiesList();
- /**
- * repeated string non_ref_properties = 1;
- * @return The count of nonRefProperties.
- */
- int getNonRefPropertiesCount();
- /**
- * repeated string non_ref_properties = 1;
- * @param index The index of the element to return.
- * @return The nonRefProperties at the given index.
+ * string prop_name = 1;
+ * @return The propName.
*/
- java.lang.String getNonRefProperties(int index);
+ java.lang.String getPropName();
/**
- * repeated string non_ref_properties = 1;
- * @param index The index of the value to return.
- * @return The bytes of the nonRefProperties at the given index.
+ * string prop_name = 1;
+ * @return The bytes for propName.
*/
com.google.protobuf.ByteString
- getNonRefPropertiesBytes(int index);
+ getPropNameBytes();
/**
- * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
- */
- java.util.List
- getRefPropertiesList();
- /**
- * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
+ * repeated string primitive_properties = 2;
+ * @return A list containing the primitiveProperties.
*/
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequest getRefProperties(int index);
+ java.util.List
+ getPrimitivePropertiesList();
/**
- * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
+ * repeated string primitive_properties = 2;
+ * @return The count of primitiveProperties.
*/
- int getRefPropertiesCount();
+ int getPrimitivePropertiesCount();
/**
- * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
+ * repeated string primitive_properties = 2;
+ * @param index The index of the element to return.
+ * @return The primitiveProperties at the given index.
*/
- java.util.List extends io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder>
- getRefPropertiesOrBuilderList();
+ java.lang.String getPrimitiveProperties(int index);
/**
- * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
+ * repeated string primitive_properties = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the primitiveProperties at the given index.
*/
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestOrBuilder getRefPropertiesOrBuilder(
- int index);
+ com.google.protobuf.ByteString
+ getPrimitivePropertiesBytes(int index);
/**
* repeated .weaviate.v1.ObjectPropertiesRequest object_properties = 3;
@@ -9558,29 +10158,23 @@ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.RefPropertiesRequestO
*/
io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequestOrBuilder getObjectPropertiesOrBuilder(
int index);
-
- /**
- * bool return_all_nonref_properties = 11;
- * @return The returnAllNonrefProperties.
- */
- boolean getReturnAllNonrefProperties();
}
/**
- * Protobuf type {@code weaviate.v1.PropertiesRequest}
+ * Protobuf type {@code weaviate.v1.ObjectPropertiesRequest}
*/
- public static final class PropertiesRequest extends
+ public static final class ObjectPropertiesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:weaviate.v1.PropertiesRequest)
- PropertiesRequestOrBuilder {
+ // @@protoc_insertion_point(message_implements:weaviate.v1.ObjectPropertiesRequest)
+ ObjectPropertiesRequestOrBuilder {
private static final long serialVersionUID = 0L;
- // Use PropertiesRequest.newBuilder() to construct.
- private PropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use ObjectPropertiesRequest.newBuilder() to construct.
+ private ObjectPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private PropertiesRequest() {
- nonRefProperties_ =
+ private ObjectPropertiesRequest() {
+ propName_ = "";
+ primitiveProperties_ =
com.google.protobuf.LazyStringArrayList.emptyList();
- refProperties_ = java.util.Collections.emptyList();
objectProperties_ = java.util.Collections.emptyList();
}
@@ -9588,98 +10182,96 @@ private PropertiesRequest() {
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
- return new PropertiesRequest();
+ return new ObjectPropertiesRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_descriptor;
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_PropertiesRequest_fieldAccessorTable
+ return io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.internal_static_weaviate_v1_ObjectPropertiesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.PropertiesRequest.Builder.class);
+ io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.class, io.weaviate.client.grpc.protocol.v1.WeaviateProtoSearchGet.ObjectPropertiesRequest.Builder.class);
}
- public static final int NON_REF_PROPERTIES_FIELD_NUMBER = 1;
+ public static final int PROP_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList nonRefProperties_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- /**
- * repeated string non_ref_properties = 1;
- * @return A list containing the nonRefProperties.
- */
- public com.google.protobuf.ProtocolStringList
- getNonRefPropertiesList() {
- return nonRefProperties_;
- }
- /**
- * repeated string non_ref_properties = 1;
- * @return The count of nonRefProperties.
- */
- public int getNonRefPropertiesCount() {
- return nonRefProperties_.size();
- }
+ private volatile java.lang.Object propName_ = "";
/**
- * repeated string non_ref_properties = 1;
- * @param index The index of the element to return.
- * @return The nonRefProperties at the given index.
+ * string prop_name = 1;
+ * @return The propName.
*/
- public java.lang.String getNonRefProperties(int index) {
- return nonRefProperties_.get(index);
+ @java.lang.Override
+ public java.lang.String getPropName() {
+ java.lang.Object ref = propName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ propName_ = s;
+ return s;
+ }
}
/**
- * repeated string non_ref_properties = 1;
- * @param index The index of the value to return.
- * @return The bytes of the nonRefProperties at the given index.
+ * string prop_name = 1;
+ * @return The bytes for propName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
- getNonRefPropertiesBytes(int index) {
- return nonRefProperties_.getByteString(index);
+ getPropNameBytes() {
+ java.lang.Object ref = propName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ propName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
- public static final int REF_PROPERTIES_FIELD_NUMBER = 2;
+ public static final int PRIMITIVE_PROPERTIES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
- private java.util.List refProperties_;
- /**
- * repeated .weaviate.v1.RefPropertiesRequest ref_properties = 2;
- */
- @java.lang.Override
- public java.util.List getRefPropertiesList() {
- return refProperties_;
- }
+ private com.google.protobuf.LazyStringArrayList primitiveProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
- *