getRefPropsSingleList() {
+ if (refPropsSingleBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(refPropsSingle_);
+ } else {
+ return refPropsSingleBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public int getRefPropsSingleCount() {
+ if (refPropsSingleBuilder_ == null) {
+ return refPropsSingle_.size();
+ } else {
+ return refPropsSingleBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getRefPropsSingle(int index) {
+ if (refPropsSingleBuilder_ == null) {
+ return refPropsSingle_.get(index);
+ } else {
+ return refPropsSingleBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder setRefPropsSingle(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget value) {
+ if (refPropsSingleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropsSingleIsMutable();
+ refPropsSingle_.set(index, value);
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder setRefPropsSingle(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder builderForValue) {
+ if (refPropsSingleBuilder_ == null) {
+ ensureRefPropsSingleIsMutable();
+ refPropsSingle_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder addRefPropsSingle(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget value) {
+ if (refPropsSingleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropsSingleIsMutable();
+ refPropsSingle_.add(value);
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder addRefPropsSingle(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget value) {
+ if (refPropsSingleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropsSingleIsMutable();
+ refPropsSingle_.add(index, value);
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder addRefPropsSingle(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder builderForValue) {
+ if (refPropsSingleBuilder_ == null) {
+ ensureRefPropsSingleIsMutable();
+ refPropsSingle_.add(builderForValue.build());
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder addRefPropsSingle(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder builderForValue) {
+ if (refPropsSingleBuilder_ == null) {
+ ensureRefPropsSingleIsMutable();
+ refPropsSingle_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder addAllRefPropsSingle(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget> values) {
+ if (refPropsSingleBuilder_ == null) {
+ ensureRefPropsSingleIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, refPropsSingle_);
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder clearRefPropsSingle() {
+ if (refPropsSingleBuilder_ == null) {
+ refPropsSingle_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public Builder removeRefPropsSingle(int index) {
+ if (refPropsSingleBuilder_ == null) {
+ ensureRefPropsSingleIsMutable();
+ refPropsSingle_.remove(index);
+ onChanged();
+ } else {
+ refPropsSingleBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder getRefPropsSingleBuilder(
+ int index) {
+ return getRefPropsSingleFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder getRefPropsSingleOrBuilder(
+ int index) {
+ if (refPropsSingleBuilder_ == null) {
+ return refPropsSingle_.get(index); } else {
+ return refPropsSingleBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder>
+ getRefPropsSingleOrBuilderList() {
+ if (refPropsSingleBuilder_ != null) {
+ return refPropsSingleBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(refPropsSingle_);
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder addRefPropsSingleBuilder() {
+ return getRefPropsSingleFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.getDefaultInstance());
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder addRefPropsSingleBuilder(
+ int index) {
+ return getRefPropsSingleFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.getDefaultInstance());
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesSingleTarget ref_props_single = 2;
+ */
+ public java.util.List
+ getRefPropsSingleBuilderList() {
+ return getRefPropsSingleFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder>
+ getRefPropsSingleFieldBuilder() {
+ if (refPropsSingleBuilder_ == null) {
+ refPropsSingleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder>(
+ refPropsSingle_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ refPropsSingle_ = null;
+ }
+ return refPropsSingleBuilder_;
+ }
+
+ private java.util.List refPropsMulti_ =
+ java.util.Collections.emptyList();
+ private void ensureRefPropsMultiIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ refPropsMulti_ = new java.util.ArrayList(refPropsMulti_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder> refPropsMultiBuilder_;
+
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public java.util.List getRefPropsMultiList() {
+ if (refPropsMultiBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(refPropsMulti_);
+ } else {
+ return refPropsMultiBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public int getRefPropsMultiCount() {
+ if (refPropsMultiBuilder_ == null) {
+ return refPropsMulti_.size();
+ } else {
+ return refPropsMultiBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getRefPropsMulti(int index) {
+ if (refPropsMultiBuilder_ == null) {
+ return refPropsMulti_.get(index);
+ } else {
+ return refPropsMultiBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder setRefPropsMulti(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget value) {
+ if (refPropsMultiBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropsMultiIsMutable();
+ refPropsMulti_.set(index, value);
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder setRefPropsMulti(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder builderForValue) {
+ if (refPropsMultiBuilder_ == null) {
+ ensureRefPropsMultiIsMutable();
+ refPropsMulti_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder addRefPropsMulti(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget value) {
+ if (refPropsMultiBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropsMultiIsMutable();
+ refPropsMulti_.add(value);
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder addRefPropsMulti(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget value) {
+ if (refPropsMultiBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropsMultiIsMutable();
+ refPropsMulti_.add(index, value);
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder addRefPropsMulti(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder builderForValue) {
+ if (refPropsMultiBuilder_ == null) {
+ ensureRefPropsMultiIsMutable();
+ refPropsMulti_.add(builderForValue.build());
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder addRefPropsMulti(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder builderForValue) {
+ if (refPropsMultiBuilder_ == null) {
+ ensureRefPropsMultiIsMutable();
+ refPropsMulti_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder addAllRefPropsMulti(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget> values) {
+ if (refPropsMultiBuilder_ == null) {
+ ensureRefPropsMultiIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, refPropsMulti_);
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder clearRefPropsMulti() {
+ if (refPropsMultiBuilder_ == null) {
+ refPropsMulti_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public Builder removeRefPropsMulti(int index) {
+ if (refPropsMultiBuilder_ == null) {
+ ensureRefPropsMultiIsMutable();
+ refPropsMulti_.remove(index);
+ onChanged();
+ } else {
+ refPropsMultiBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder getRefPropsMultiBuilder(
+ int index) {
+ return getRefPropsMultiFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder getRefPropsMultiOrBuilder(
+ int index) {
+ if (refPropsMultiBuilder_ == null) {
+ return refPropsMulti_.get(index); } else {
+ return refPropsMultiBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder>
+ getRefPropsMultiOrBuilderList() {
+ if (refPropsMultiBuilder_ != null) {
+ return refPropsMultiBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(refPropsMulti_);
+ }
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder addRefPropsMultiBuilder() {
+ return getRefPropsMultiFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.getDefaultInstance());
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder addRefPropsMultiBuilder(
+ int index) {
+ return getRefPropsMultiFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.getDefaultInstance());
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated .weaviategrpc.BatchObject.RefPropertiesMultiTarget ref_props_multi = 3;
+ */
+ public java.util.List
+ getRefPropsMultiBuilderList() {
+ return getRefPropsMultiFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder>
+ getRefPropsMultiFieldBuilder() {
+ if (refPropsMultiBuilder_ == null) {
+ refPropsMultiBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder>(
+ refPropsMulti_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ refPropsMulti_ = null;
+ }
+ return refPropsMultiBuilder_;
+ }
+
+ private java.util.List numberArrayProperties_ =
+ java.util.Collections.emptyList();
+ private void ensureNumberArrayPropertiesIsMutable() {
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ numberArrayProperties_ = new java.util.ArrayList(numberArrayProperties_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder> numberArrayPropertiesBuilder_;
+
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public java.util.List getNumberArrayPropertiesList() {
+ if (numberArrayPropertiesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(numberArrayProperties_);
+ } else {
+ return numberArrayPropertiesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public int getNumberArrayPropertiesCount() {
+ if (numberArrayPropertiesBuilder_ == null) {
+ return numberArrayProperties_.size();
+ } else {
+ return numberArrayPropertiesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties getNumberArrayProperties(int index) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ return numberArrayProperties_.get(index);
+ } else {
+ return numberArrayPropertiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder setNumberArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNumberArrayPropertiesIsMutable();
+ numberArrayProperties_.set(index, value);
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder setNumberArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ ensureNumberArrayPropertiesIsMutable();
+ numberArrayProperties_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder addNumberArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNumberArrayPropertiesIsMutable();
+ numberArrayProperties_.add(value);
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder addNumberArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties value) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNumberArrayPropertiesIsMutable();
+ numberArrayProperties_.add(index, value);
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder addNumberArrayProperties(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ ensureNumberArrayPropertiesIsMutable();
+ numberArrayProperties_.add(builderForValue.build());
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder addNumberArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder builderForValue) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ ensureNumberArrayPropertiesIsMutable();
+ numberArrayProperties_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder addAllNumberArrayProperties(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties> values) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ ensureNumberArrayPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, numberArrayProperties_);
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder clearNumberArrayProperties() {
+ if (numberArrayPropertiesBuilder_ == null) {
+ numberArrayProperties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public Builder removeNumberArrayProperties(int index) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ ensureNumberArrayPropertiesIsMutable();
+ numberArrayProperties_.remove(index);
+ onChanged();
+ } else {
+ numberArrayPropertiesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder getNumberArrayPropertiesBuilder(
+ int index) {
+ return getNumberArrayPropertiesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder getNumberArrayPropertiesOrBuilder(
+ int index) {
+ if (numberArrayPropertiesBuilder_ == null) {
+ return numberArrayProperties_.get(index); } else {
+ return numberArrayPropertiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder>
+ getNumberArrayPropertiesOrBuilderList() {
+ if (numberArrayPropertiesBuilder_ != null) {
+ return numberArrayPropertiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(numberArrayProperties_);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder addNumberArrayPropertiesBuilder() {
+ return getNumberArrayPropertiesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder addNumberArrayPropertiesBuilder(
+ int index) {
+ return getNumberArrayPropertiesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.NumberArrayProperties number_array_properties = 4;
+ */
+ public java.util.List
+ getNumberArrayPropertiesBuilderList() {
+ return getNumberArrayPropertiesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder>
+ getNumberArrayPropertiesFieldBuilder() {
+ if (numberArrayPropertiesBuilder_ == null) {
+ numberArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayPropertiesOrBuilder>(
+ numberArrayProperties_,
+ ((bitField0_ & 0x00000008) != 0),
+ getParentForChildren(),
+ isClean());
+ numberArrayProperties_ = null;
+ }
+ return numberArrayPropertiesBuilder_;
+ }
+
+ private java.util.List intArrayProperties_ =
+ java.util.Collections.emptyList();
+ private void ensureIntArrayPropertiesIsMutable() {
+ if (!((bitField0_ & 0x00000010) != 0)) {
+ intArrayProperties_ = new java.util.ArrayList(intArrayProperties_);
+ bitField0_ |= 0x00000010;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder> intArrayPropertiesBuilder_;
+
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public java.util.List getIntArrayPropertiesList() {
+ if (intArrayPropertiesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(intArrayProperties_);
+ } else {
+ return intArrayPropertiesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public int getIntArrayPropertiesCount() {
+ if (intArrayPropertiesBuilder_ == null) {
+ return intArrayProperties_.size();
+ } else {
+ return intArrayPropertiesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties getIntArrayProperties(int index) {
+ if (intArrayPropertiesBuilder_ == null) {
+ return intArrayProperties_.get(index);
+ } else {
+ return intArrayPropertiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder setIntArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) {
+ if (intArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntArrayPropertiesIsMutable();
+ intArrayProperties_.set(index, value);
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder setIntArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) {
+ if (intArrayPropertiesBuilder_ == null) {
+ ensureIntArrayPropertiesIsMutable();
+ intArrayProperties_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder addIntArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) {
+ if (intArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntArrayPropertiesIsMutable();
+ intArrayProperties_.add(value);
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder addIntArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties value) {
+ if (intArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureIntArrayPropertiesIsMutable();
+ intArrayProperties_.add(index, value);
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder addIntArrayProperties(
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) {
+ if (intArrayPropertiesBuilder_ == null) {
+ ensureIntArrayPropertiesIsMutable();
+ intArrayProperties_.add(builderForValue.build());
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder addIntArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder builderForValue) {
+ if (intArrayPropertiesBuilder_ == null) {
+ ensureIntArrayPropertiesIsMutable();
+ intArrayProperties_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder addAllIntArrayProperties(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties> values) {
+ if (intArrayPropertiesBuilder_ == null) {
+ ensureIntArrayPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, intArrayProperties_);
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder clearIntArrayProperties() {
+ if (intArrayPropertiesBuilder_ == null) {
+ intArrayProperties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public Builder removeIntArrayProperties(int index) {
+ if (intArrayPropertiesBuilder_ == null) {
+ ensureIntArrayPropertiesIsMutable();
+ intArrayProperties_.remove(index);
+ onChanged();
+ } else {
+ intArrayPropertiesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder getIntArrayPropertiesBuilder(
+ int index) {
+ return getIntArrayPropertiesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder getIntArrayPropertiesOrBuilder(
+ int index) {
+ if (intArrayPropertiesBuilder_ == null) {
+ return intArrayProperties_.get(index); } else {
+ return intArrayPropertiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder>
+ getIntArrayPropertiesOrBuilderList() {
+ if (intArrayPropertiesBuilder_ != null) {
+ return intArrayPropertiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(intArrayProperties_);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder addIntArrayPropertiesBuilder() {
+ return getIntArrayPropertiesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder addIntArrayPropertiesBuilder(
+ int index) {
+ return getIntArrayPropertiesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.IntArrayProperties int_array_properties = 5;
+ */
+ public java.util.List
+ getIntArrayPropertiesBuilderList() {
+ return getIntArrayPropertiesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder>
+ getIntArrayPropertiesFieldBuilder() {
+ if (intArrayPropertiesBuilder_ == null) {
+ intArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayPropertiesOrBuilder>(
+ intArrayProperties_,
+ ((bitField0_ & 0x00000010) != 0),
+ getParentForChildren(),
+ isClean());
+ intArrayProperties_ = null;
+ }
+ return intArrayPropertiesBuilder_;
+ }
+
+ private java.util.List textArrayProperties_ =
+ java.util.Collections.emptyList();
+ private void ensureTextArrayPropertiesIsMutable() {
+ if (!((bitField0_ & 0x00000020) != 0)) {
+ textArrayProperties_ = new java.util.ArrayList(textArrayProperties_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder> textArrayPropertiesBuilder_;
+
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public java.util.List getTextArrayPropertiesList() {
+ if (textArrayPropertiesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(textArrayProperties_);
+ } else {
+ return textArrayPropertiesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public int getTextArrayPropertiesCount() {
+ if (textArrayPropertiesBuilder_ == null) {
+ return textArrayProperties_.size();
+ } else {
+ return textArrayPropertiesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties getTextArrayProperties(int index) {
+ if (textArrayPropertiesBuilder_ == null) {
+ return textArrayProperties_.get(index);
+ } else {
+ return textArrayPropertiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder setTextArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) {
+ if (textArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTextArrayPropertiesIsMutable();
+ textArrayProperties_.set(index, value);
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder setTextArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) {
+ if (textArrayPropertiesBuilder_ == null) {
+ ensureTextArrayPropertiesIsMutable();
+ textArrayProperties_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder addTextArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) {
+ if (textArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTextArrayPropertiesIsMutable();
+ textArrayProperties_.add(value);
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder addTextArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties value) {
+ if (textArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTextArrayPropertiesIsMutable();
+ textArrayProperties_.add(index, value);
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder addTextArrayProperties(
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) {
+ if (textArrayPropertiesBuilder_ == null) {
+ ensureTextArrayPropertiesIsMutable();
+ textArrayProperties_.add(builderForValue.build());
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder addTextArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder builderForValue) {
+ if (textArrayPropertiesBuilder_ == null) {
+ ensureTextArrayPropertiesIsMutable();
+ textArrayProperties_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder addAllTextArrayProperties(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties> values) {
+ if (textArrayPropertiesBuilder_ == null) {
+ ensureTextArrayPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, textArrayProperties_);
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder clearTextArrayProperties() {
+ if (textArrayPropertiesBuilder_ == null) {
+ textArrayProperties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public Builder removeTextArrayProperties(int index) {
+ if (textArrayPropertiesBuilder_ == null) {
+ ensureTextArrayPropertiesIsMutable();
+ textArrayProperties_.remove(index);
+ onChanged();
+ } else {
+ textArrayPropertiesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder getTextArrayPropertiesBuilder(
+ int index) {
+ return getTextArrayPropertiesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder getTextArrayPropertiesOrBuilder(
+ int index) {
+ if (textArrayPropertiesBuilder_ == null) {
+ return textArrayProperties_.get(index); } else {
+ return textArrayPropertiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder>
+ getTextArrayPropertiesOrBuilderList() {
+ if (textArrayPropertiesBuilder_ != null) {
+ return textArrayPropertiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(textArrayProperties_);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder addTextArrayPropertiesBuilder() {
+ return getTextArrayPropertiesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder addTextArrayPropertiesBuilder(
+ int index) {
+ return getTextArrayPropertiesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.TextArrayProperties text_array_properties = 6;
+ */
+ public java.util.List
+ getTextArrayPropertiesBuilderList() {
+ return getTextArrayPropertiesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder>
+ getTextArrayPropertiesFieldBuilder() {
+ if (textArrayPropertiesBuilder_ == null) {
+ textArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayPropertiesOrBuilder>(
+ textArrayProperties_,
+ ((bitField0_ & 0x00000020) != 0),
+ getParentForChildren(),
+ isClean());
+ textArrayProperties_ = null;
+ }
+ return textArrayPropertiesBuilder_;
+ }
+
+ private java.util.List booleanArrayProperties_ =
+ java.util.Collections.emptyList();
+ private void ensureBooleanArrayPropertiesIsMutable() {
+ if (!((bitField0_ & 0x00000040) != 0)) {
+ booleanArrayProperties_ = new java.util.ArrayList(booleanArrayProperties_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder> booleanArrayPropertiesBuilder_;
+
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public java.util.List getBooleanArrayPropertiesList() {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(booleanArrayProperties_);
+ } else {
+ return booleanArrayPropertiesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public int getBooleanArrayPropertiesCount() {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ return booleanArrayProperties_.size();
+ } else {
+ return booleanArrayPropertiesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties getBooleanArrayProperties(int index) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ return booleanArrayProperties_.get(index);
+ } else {
+ return booleanArrayPropertiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder setBooleanArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBooleanArrayPropertiesIsMutable();
+ booleanArrayProperties_.set(index, value);
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder setBooleanArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ ensureBooleanArrayPropertiesIsMutable();
+ booleanArrayProperties_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder addBooleanArrayProperties(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBooleanArrayPropertiesIsMutable();
+ booleanArrayProperties_.add(value);
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder addBooleanArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties value) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBooleanArrayPropertiesIsMutable();
+ booleanArrayProperties_.add(index, value);
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder addBooleanArrayProperties(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ ensureBooleanArrayPropertiesIsMutable();
+ booleanArrayProperties_.add(builderForValue.build());
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder addBooleanArrayProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder builderForValue) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ ensureBooleanArrayPropertiesIsMutable();
+ booleanArrayProperties_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder addAllBooleanArrayProperties(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties> values) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ ensureBooleanArrayPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, booleanArrayProperties_);
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder clearBooleanArrayProperties() {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ booleanArrayProperties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public Builder removeBooleanArrayProperties(int index) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ ensureBooleanArrayPropertiesIsMutable();
+ booleanArrayProperties_.remove(index);
+ onChanged();
+ } else {
+ booleanArrayPropertiesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder getBooleanArrayPropertiesBuilder(
+ int index) {
+ return getBooleanArrayPropertiesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder getBooleanArrayPropertiesOrBuilder(
+ int index) {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ return booleanArrayProperties_.get(index); } else {
+ return booleanArrayPropertiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder>
+ getBooleanArrayPropertiesOrBuilderList() {
+ if (booleanArrayPropertiesBuilder_ != null) {
+ return booleanArrayPropertiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(booleanArrayProperties_);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder addBooleanArrayPropertiesBuilder() {
+ return getBooleanArrayPropertiesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder addBooleanArrayPropertiesBuilder(
+ int index) {
+ return getBooleanArrayPropertiesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.BooleanArrayProperties boolean_array_properties = 7;
+ */
+ public java.util.List
+ getBooleanArrayPropertiesBuilderList() {
+ return getBooleanArrayPropertiesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder>
+ getBooleanArrayPropertiesFieldBuilder() {
+ if (booleanArrayPropertiesBuilder_ == null) {
+ booleanArrayPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayPropertiesOrBuilder>(
+ booleanArrayProperties_,
+ ((bitField0_ & 0x00000040) != 0),
+ getParentForChildren(),
+ isClean());
+ booleanArrayProperties_ = null;
+ }
+ return booleanArrayPropertiesBuilder_;
+ }
+ @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:weaviategrpc.BatchObject.Properties)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObject.Properties)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Properties 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.WeaviateProto.BatchObject.Properties getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface RefPropertiesSingleTargetOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObject.RefPropertiesSingleTarget)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated string uuids = 1;
+ * @return A list containing the uuids.
+ */
+ java.util.List
+ getUuidsList();
+ /**
+ * repeated string uuids = 1;
+ * @return The count of uuids.
+ */
+ int getUuidsCount();
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ java.lang.String getUuids(int index);
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ com.google.protobuf.ByteString
+ getUuidsBytes(int index);
+
+ /**
+ * string prop_name = 2;
+ * @return The propName.
+ */
+ java.lang.String getPropName();
+ /**
+ * string prop_name = 2;
+ * @return The bytes for propName.
+ */
+ com.google.protobuf.ByteString
+ getPropNameBytes();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.BatchObject.RefPropertiesSingleTarget}
+ */
+ public static final class RefPropertiesSingleTarget extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObject.RefPropertiesSingleTarget)
+ RefPropertiesSingleTargetOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RefPropertiesSingleTarget.newBuilder() to construct.
+ private RefPropertiesSingleTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private RefPropertiesSingleTarget() {
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ propName_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new RefPropertiesSingleTarget();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder.class);
+ }
+
+ public static final int UUIDS_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string uuids = 1;
+ * @return A list containing the uuids.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getUuidsList() {
+ return uuids_;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @return The count of uuids.
+ */
+ public int getUuidsCount() {
+ return uuids_.size();
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ public java.lang.String getUuids(int index) {
+ return uuids_.get(index);
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getUuidsBytes(int index) {
+ return uuids_.getByteString(index);
+ }
+
+ public static final int PROP_NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object propName_ = "";
+ /**
+ * string prop_name = 2;
+ * @return The propName.
+ */
+ @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;
+ }
+ }
+ /**
+ * string prop_name = 2;
+ * @return The bytes for propName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ 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;
+ }
+ }
+
+ 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 < uuids_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuids_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < uuids_.size(); i++) {
+ dataSize += computeStringSizeNoTag(uuids_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getUuidsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_);
+ }
+ 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget) obj;
+
+ if (!getUuidsList()
+ .equals(other.getUuidsList())) return false;
+ if (!getPropName()
+ .equals(other.getPropName())) 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 (getUuidsCount() > 0) {
+ hash = (37 * hash) + UUIDS_FIELD_NUMBER;
+ hash = (53 * hash) + getUuidsList().hashCode();
+ }
+ hash = (37 * hash) + PROP_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPropName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget 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 weaviategrpc.BatchObject.RefPropertiesSingleTarget}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObject.RefPropertiesSingleTarget)
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTargetOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ propName_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesSingleTarget_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ uuids_.makeImmutable();
+ result.uuids_ = uuids_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.propName_ = propName_;
+ }
+ }
+
+ @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.WeaviateProto.BatchObject.RefPropertiesSingleTarget) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget.getDefaultInstance()) return this;
+ if (!other.uuids_.isEmpty()) {
+ if (uuids_.isEmpty()) {
+ uuids_ = other.uuids_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureUuidsIsMutable();
+ uuids_.addAll(other.uuids_);
+ }
+ onChanged();
+ }
+ if (!other.getPropName().isEmpty()) {
+ propName_ = other.propName_;
+ bitField0_ |= 0x00000002;
+ 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: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureUuidsIsMutable();
+ uuids_.add(s);
+ break;
+ } // case 10
+ case 18: {
+ propName_ = input.readStringRequireUtf8();
+ 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 com.google.protobuf.LazyStringArrayList uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureUuidsIsMutable() {
+ if (!uuids_.isModifiable()) {
+ uuids_ = new com.google.protobuf.LazyStringArrayList(uuids_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @return A list containing the uuids.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getUuidsList() {
+ uuids_.makeImmutable();
+ return uuids_;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @return The count of uuids.
+ */
+ public int getUuidsCount() {
+ return uuids_.size();
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ public java.lang.String getUuids(int index) {
+ return uuids_.get(index);
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getUuidsBytes(int index) {
+ return uuids_.getByteString(index);
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index to set the value at.
+ * @param value The uuids to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuids(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureUuidsIsMutable();
+ uuids_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param value The uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addUuids(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureUuidsIsMutable();
+ uuids_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param values The uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllUuids(
+ java.lang.Iterable values) {
+ ensureUuidsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, uuids_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearUuids() {
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param value The bytes of the uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addUuidsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureUuidsIsMutable();
+ uuids_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object propName_ = "";
+ /**
+ * string prop_name = 2;
+ * @return The propName.
+ */
+ public java.lang.String getPropName() {
+ java.lang.Object ref = propName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ propName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string prop_name = 2;
+ * @return The bytes for propName.
+ */
+ public com.google.protobuf.ByteString
+ getPropNameBytes() {
+ java.lang.Object ref = propName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ propName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string prop_name = 2;
+ * @param value The propName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPropName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ propName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string prop_name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPropName() {
+ propName_ = getDefaultInstance().getPropName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string prop_name = 2;
+ * @param value The bytes for propName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPropNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ propName_ = value;
+ bitField0_ |= 0x00000002;
+ 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:weaviategrpc.BatchObject.RefPropertiesSingleTarget)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObject.RefPropertiesSingleTarget)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesSingleTarget getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RefPropertiesSingleTarget 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.WeaviateProto.BatchObject.RefPropertiesSingleTarget getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface RefPropertiesMultiTargetOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObject.RefPropertiesMultiTarget)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated string uuids = 1;
+ * @return A list containing the uuids.
+ */
+ java.util.List
+ getUuidsList();
+ /**
+ * repeated string uuids = 1;
+ * @return The count of uuids.
+ */
+ int getUuidsCount();
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ java.lang.String getUuids(int index);
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ com.google.protobuf.ByteString
+ getUuidsBytes(int index);
+
+ /**
+ * string prop_name = 2;
+ * @return The propName.
+ */
+ java.lang.String getPropName();
+ /**
+ * string prop_name = 2;
+ * @return The bytes for propName.
+ */
+ com.google.protobuf.ByteString
+ getPropNameBytes();
+
+ /**
+ * string target_collection = 3;
+ * @return The targetCollection.
+ */
+ java.lang.String getTargetCollection();
+ /**
+ * string target_collection = 3;
+ * @return The bytes for targetCollection.
+ */
+ com.google.protobuf.ByteString
+ getTargetCollectionBytes();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.BatchObject.RefPropertiesMultiTarget}
+ */
+ public static final class RefPropertiesMultiTarget extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObject.RefPropertiesMultiTarget)
+ RefPropertiesMultiTargetOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RefPropertiesMultiTarget.newBuilder() to construct.
+ private RefPropertiesMultiTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private RefPropertiesMultiTarget() {
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ propName_ = "";
+ targetCollection_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new RefPropertiesMultiTarget();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder.class);
+ }
+
+ public static final int UUIDS_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string uuids = 1;
+ * @return A list containing the uuids.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getUuidsList() {
+ return uuids_;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @return The count of uuids.
+ */
+ public int getUuidsCount() {
+ return uuids_.size();
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ public java.lang.String getUuids(int index) {
+ return uuids_.get(index);
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getUuidsBytes(int index) {
+ return uuids_.getByteString(index);
+ }
+
+ public static final int PROP_NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object propName_ = "";
+ /**
+ * string prop_name = 2;
+ * @return The propName.
+ */
+ @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;
+ }
+ }
+ /**
+ * string prop_name = 2;
+ * @return The bytes for propName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ 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 TARGET_COLLECTION_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object targetCollection_ = "";
+ /**
+ * string target_collection = 3;
+ * @return The targetCollection.
+ */
+ @java.lang.Override
+ public java.lang.String getTargetCollection() {
+ java.lang.Object ref = targetCollection_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ targetCollection_ = s;
+ return s;
+ }
+ }
+ /**
+ * string target_collection = 3;
+ * @return The bytes for targetCollection.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTargetCollectionBytes() {
+ java.lang.Object ref = targetCollection_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ targetCollection_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 < uuids_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuids_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetCollection_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetCollection_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < uuids_.size(); i++) {
+ dataSize += computeStringSizeNoTag(uuids_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getUuidsList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetCollection_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetCollection_);
+ }
+ 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget) obj;
+
+ if (!getUuidsList()
+ .equals(other.getUuidsList())) return false;
+ if (!getPropName()
+ .equals(other.getPropName())) return false;
+ if (!getTargetCollection()
+ .equals(other.getTargetCollection())) 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 (getUuidsCount() > 0) {
+ hash = (37 * hash) + UUIDS_FIELD_NUMBER;
+ hash = (53 * hash) + getUuidsList().hashCode();
+ }
+ hash = (37 * hash) + PROP_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPropName().hashCode();
+ hash = (37 * hash) + TARGET_COLLECTION_FIELD_NUMBER;
+ hash = (53 * hash) + getTargetCollection().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget 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 weaviategrpc.BatchObject.RefPropertiesMultiTarget}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObject.RefPropertiesMultiTarget)
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTargetOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ propName_ = "";
+ targetCollection_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_RefPropertiesMultiTarget_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ uuids_.makeImmutable();
+ result.uuids_ = uuids_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.propName_ = propName_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.targetCollection_ = targetCollection_;
+ }
+ }
+
+ @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.WeaviateProto.BatchObject.RefPropertiesMultiTarget) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget.getDefaultInstance()) return this;
+ if (!other.uuids_.isEmpty()) {
+ if (uuids_.isEmpty()) {
+ uuids_ = other.uuids_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureUuidsIsMutable();
+ uuids_.addAll(other.uuids_);
+ }
+ onChanged();
+ }
+ if (!other.getPropName().isEmpty()) {
+ propName_ = other.propName_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getTargetCollection().isEmpty()) {
+ targetCollection_ = other.targetCollection_;
+ bitField0_ |= 0x00000004;
+ 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: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureUuidsIsMutable();
+ uuids_.add(s);
+ break;
+ } // case 10
+ case 18: {
+ propName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ targetCollection_ = input.readStringRequireUtf8();
+ 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 com.google.protobuf.LazyStringArrayList uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureUuidsIsMutable() {
+ if (!uuids_.isModifiable()) {
+ uuids_ = new com.google.protobuf.LazyStringArrayList(uuids_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @return A list containing the uuids.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getUuidsList() {
+ uuids_.makeImmutable();
+ return uuids_;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @return The count of uuids.
+ */
+ public int getUuidsCount() {
+ return uuids_.size();
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ public java.lang.String getUuids(int index) {
+ return uuids_.get(index);
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getUuidsBytes(int index) {
+ return uuids_.getByteString(index);
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param index The index to set the value at.
+ * @param value The uuids to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuids(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureUuidsIsMutable();
+ uuids_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param value The uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addUuids(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureUuidsIsMutable();
+ uuids_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param values The uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllUuids(
+ java.lang.Iterable values) {
+ ensureUuidsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, uuids_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearUuids() {
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 1;
+ * @param value The bytes of the uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addUuidsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureUuidsIsMutable();
+ uuids_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object propName_ = "";
+ /**
+ * string prop_name = 2;
+ * @return The propName.
+ */
+ public java.lang.String getPropName() {
+ java.lang.Object ref = propName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ propName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string prop_name = 2;
+ * @return The bytes for propName.
+ */
+ public com.google.protobuf.ByteString
+ getPropNameBytes() {
+ java.lang.Object ref = propName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ propName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string prop_name = 2;
+ * @param value The propName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPropName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ propName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string prop_name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPropName() {
+ propName_ = getDefaultInstance().getPropName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string prop_name = 2;
+ * @param value The bytes for propName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPropNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ propName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object targetCollection_ = "";
+ /**
+ * string target_collection = 3;
+ * @return The targetCollection.
+ */
+ public java.lang.String getTargetCollection() {
+ java.lang.Object ref = targetCollection_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ targetCollection_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string target_collection = 3;
+ * @return The bytes for targetCollection.
+ */
+ public com.google.protobuf.ByteString
+ getTargetCollectionBytes() {
+ java.lang.Object ref = targetCollection_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ targetCollection_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string target_collection = 3;
+ * @param value The targetCollection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetCollection(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ targetCollection_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string target_collection = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTargetCollection() {
+ targetCollection_ = getDefaultInstance().getTargetCollection();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string target_collection = 3;
+ * @param value The bytes for targetCollection to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTargetCollectionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ targetCollection_ = value;
+ bitField0_ |= 0x00000004;
+ 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:weaviategrpc.BatchObject.RefPropertiesMultiTarget)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObject.RefPropertiesMultiTarget)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.RefPropertiesMultiTarget getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RefPropertiesMultiTarget 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.WeaviateProto.BatchObject.RefPropertiesMultiTarget getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int UUID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uuid_ = "";
+ /**
+ * string uuid = 1;
+ * @return The uuid.
+ */
+ @java.lang.Override
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ 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();
+ uuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string uuid = 1;
+ * @return The bytes for uuid.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VECTOR_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.FloatList vector_ =
+ emptyFloatList();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @return A list containing the vector.
+ */
+ @java.lang.Override
+ public java.util.List
+ getVectorList() {
+ return vector_;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @return The count of vector.
+ */
+ public int getVectorCount() {
+ return vector_.size();
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @param index The index of the element to return.
+ * @return The vector at the given index.
+ */
+ public float getVector(int index) {
+ return vector_.getFloat(index);
+ }
+ private int vectorMemoizedSerializedSize = -1;
+
+ public static final int PROPERTIES_FIELD_NUMBER = 3;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties properties_;
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ * @return Whether the properties field is set.
+ */
+ @java.lang.Override
+ public boolean hasProperties() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ * @return The properties.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getProperties() {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance() : properties_;
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder getPropertiesOrBuilder() {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance() : properties_;
+ }
+
+ public static final int CLASS_NAME_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object className_ = "";
+ /**
+ * string class_name = 4;
+ * @return The className.
+ */
+ @java.lang.Override
+ public java.lang.String getClassName() {
+ java.lang.Object ref = className_;
+ 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();
+ className_ = s;
+ return s;
+ }
+ }
+ /**
+ * string class_name = 4;
+ * @return The bytes for className.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getClassNameBytes() {
+ java.lang.Object ref = className_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ className_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TENANT_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tenant_ = "";
+ /**
+ * string tenant = 5;
+ * @return The tenant.
+ */
+ @java.lang.Override
+ public java.lang.String getTenant() {
+ java.lang.Object ref = tenant_;
+ 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();
+ tenant_ = s;
+ return s;
+ }
+ }
+ /**
+ * string tenant = 5;
+ * @return The bytes for tenant.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTenantBytes() {
+ java.lang.Object ref = tenant_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ tenant_ = 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 {
+ getSerializedSize();
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_);
+ }
+ if (getVectorList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(vectorMemoizedSerializedSize);
+ }
+ for (int i = 0; i < vector_.size(); i++) {
+ output.writeFloatNoTag(vector_.getFloat(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getProperties());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, className_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tenant_);
+ }
+ 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(uuid_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_);
+ }
+ {
+ int dataSize = 0;
+ dataSize = 4 * getVectorList().size();
+ size += dataSize;
+ if (!getVectorList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ vectorMemoizedSerializedSize = dataSize;
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getProperties());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, className_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tenant_);
+ }
+ 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.WeaviateProto.BatchObject)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject) obj;
+
+ if (!getUuid()
+ .equals(other.getUuid())) return false;
+ if (!getVectorList()
+ .equals(other.getVectorList())) return false;
+ if (hasProperties() != other.hasProperties()) return false;
+ if (hasProperties()) {
+ if (!getProperties()
+ .equals(other.getProperties())) return false;
+ }
+ if (!getClassName()
+ .equals(other.getClassName())) return false;
+ if (!getTenant()
+ .equals(other.getTenant())) 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) + UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getUuid().hashCode();
+ if (getVectorCount() > 0) {
+ hash = (37 * hash) + VECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getVectorList().hashCode();
+ }
+ if (hasProperties()) {
+ hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getProperties().hashCode();
+ }
+ hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getClassName().hashCode();
+ hash = (37 * hash) + TENANT_FIELD_NUMBER;
+ hash = (53 * hash) + getTenant().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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.WeaviateProto.BatchObject parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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.WeaviateProto.BatchObject parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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.WeaviateProto.BatchObject parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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.WeaviateProto.BatchObject parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject 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.WeaviateProto.BatchObject 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.WeaviateProto.BatchObject 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.WeaviateProto.BatchObject 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 weaviategrpc.BatchObject}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObject)
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.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;
+ uuid_ = "";
+ vector_ = emptyFloatList();
+ properties_ = null;
+ if (propertiesBuilder_ != null) {
+ propertiesBuilder_.dispose();
+ propertiesBuilder_ = null;
+ }
+ className_ = "";
+ tenant_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObject_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.uuid_ = uuid_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ vector_.makeImmutable();
+ result.vector_ = vector_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.properties_ = propertiesBuilder_ == null
+ ? properties_
+ : propertiesBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.className_ = className_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.tenant_ = tenant_;
+ }
+ 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.WeaviateProto.BatchObject) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.getDefaultInstance()) return this;
+ if (!other.getUuid().isEmpty()) {
+ uuid_ = other.uuid_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.vector_.isEmpty()) {
+ if (vector_.isEmpty()) {
+ vector_ = other.vector_;
+ vector_.makeImmutable();
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureVectorIsMutable();
+ vector_.addAll(other.vector_);
+ }
+ onChanged();
+ }
+ if (other.hasProperties()) {
+ mergeProperties(other.getProperties());
+ }
+ if (!other.getClassName().isEmpty()) {
+ className_ = other.className_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getTenant().isEmpty()) {
+ tenant_ = other.tenant_;
+ bitField0_ |= 0x00000010;
+ 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: {
+ uuid_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 21: {
+ float v = input.readFloat();
+ ensureVectorIsMutable();
+ vector_.addFloat(v);
+ break;
+ } // case 21
+ case 18: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ int alloc = length > 4096 ? 4096 : length;
+ ensureVectorIsMutable(alloc / 4);
+ while (input.getBytesUntilLimit() > 0) {
+ vector_.addFloat(input.readFloat());
+ }
+ input.popLimit(limit);
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getPropertiesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ className_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ tenant_ = input.readStringRequireUtf8();
+ 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 uuid_ = "";
+ /**
+ * string uuid = 1;
+ * @return The uuid.
+ */
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string uuid = 1;
+ * @return The bytes for uuid.
+ */
+ public com.google.protobuf.ByteString
+ getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string uuid = 1;
+ * @param value The uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuid(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ uuid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string uuid = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearUuid() {
+ uuid_ = getDefaultInstance().getUuid();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string uuid = 1;
+ * @param value The bytes for uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ uuid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList();
+ private void ensureVectorIsMutable() {
+ if (!vector_.isModifiable()) {
+ vector_ = makeMutableCopy(vector_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ private void ensureVectorIsMutable(int capacity) {
+ if (!vector_.isModifiable()) {
+ vector_ = makeMutableCopy(vector_, capacity);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @return A list containing the vector.
+ */
+ public java.util.List
+ getVectorList() {
+ vector_.makeImmutable();
+ return vector_;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @return The count of vector.
+ */
+ public int getVectorCount() {
+ return vector_.size();
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @param index The index of the element to return.
+ * @return The vector at the given index.
+ */
+ public float getVector(int index) {
+ return vector_.getFloat(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @param index The index to set the value at.
+ * @param value The vector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVector(
+ int index, float value) {
+
+ ensureVectorIsMutable();
+ vector_.setFloat(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @param value The vector to add.
+ * @return This builder for chaining.
+ */
+ public Builder addVector(float value) {
+
+ ensureVectorIsMutable();
+ vector_.addFloat(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @param values The vector to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllVector(
+ java.lang.Iterable extends java.lang.Float> values) {
+ ensureVectorIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, vector_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearVector() {
+ vector_ = emptyFloatList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties properties_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder> propertiesBuilder_;
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ * @return Whether the properties field is set.
+ */
+ public boolean hasProperties() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ * @return The properties.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties getProperties() {
+ if (propertiesBuilder_ == null) {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance() : properties_;
+ } else {
+ return propertiesBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ */
+ public Builder setProperties(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties value) {
+ if (propertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ properties_ = value;
+ } else {
+ propertiesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ */
+ public Builder setProperties(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder builderForValue) {
+ if (propertiesBuilder_ == null) {
+ properties_ = builderForValue.build();
+ } else {
+ propertiesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ */
+ public Builder mergeProperties(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties value) {
+ if (propertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ properties_ != null &&
+ properties_ != io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance()) {
+ getPropertiesBuilder().mergeFrom(value);
+ } else {
+ properties_ = value;
+ }
+ } else {
+ propertiesBuilder_.mergeFrom(value);
+ }
+ if (properties_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ */
+ public Builder clearProperties() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ properties_ = null;
+ if (propertiesBuilder_ != null) {
+ propertiesBuilder_.dispose();
+ propertiesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder getPropertiesBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getPropertiesFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder getPropertiesOrBuilder() {
+ if (propertiesBuilder_ != null) {
+ return propertiesBuilder_.getMessageOrBuilder();
+ } else {
+ return properties_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.getDefaultInstance() : properties_;
+ }
+ }
+ /**
+ * .weaviategrpc.BatchObject.Properties properties = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder>
+ getPropertiesFieldBuilder() {
+ if (propertiesBuilder_ == null) {
+ propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject.PropertiesOrBuilder>(
+ getProperties(),
+ getParentForChildren(),
+ isClean());
+ properties_ = null;
+ }
+ return propertiesBuilder_;
+ }
+
+ private java.lang.Object className_ = "";
+ /**
+ * string class_name = 4;
+ * @return The className.
+ */
+ public java.lang.String getClassName() {
+ java.lang.Object ref = className_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ className_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string class_name = 4;
+ * @return The bytes for className.
+ */
+ public com.google.protobuf.ByteString
+ getClassNameBytes() {
+ java.lang.Object ref = className_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ className_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string class_name = 4;
+ * @param value The className to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClassName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ className_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string class_name = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearClassName() {
+ className_ = getDefaultInstance().getClassName();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string class_name = 4;
+ * @param value The bytes for className to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClassNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ className_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tenant_ = "";
+ /**
+ * string tenant = 5;
+ * @return The tenant.
+ */
+ public java.lang.String getTenant() {
+ java.lang.Object ref = tenant_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tenant_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string tenant = 5;
+ * @return The bytes for tenant.
+ */
+ public com.google.protobuf.ByteString
+ getTenantBytes() {
+ java.lang.Object ref = tenant_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ tenant_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string tenant = 5;
+ * @param value The tenant to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTenant(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ tenant_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * string tenant = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearTenant() {
+ tenant_ = getDefaultInstance().getTenant();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * string tenant = 5;
+ * @param value The bytes for tenant to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTenantBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ tenant_ = value;
+ bitField0_ |= 0x00000010;
+ 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:weaviategrpc.BatchObject)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObject)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObject getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BatchObject 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.WeaviateProto.BatchObject getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface BatchObjectsReplyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObjectsReply)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ java.util.List
+ getResultsList();
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getResults(int index);
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ int getResultsCount();
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder>
+ getResultsOrBuilderList();
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder getResultsOrBuilder(
+ int index);
+
+ /**
+ * float took = 2;
+ * @return The took.
+ */
+ float getTook();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.BatchObjectsReply}
+ */
+ public static final class BatchObjectsReply extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObjectsReply)
+ BatchObjectsReplyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BatchObjectsReply.newBuilder() to construct.
+ private BatchObjectsReply(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BatchObjectsReply() {
+ results_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BatchObjectsReply();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.Builder.class);
+ }
+
+ public interface BatchResultsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.BatchObjectsReply.BatchResults)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 index = 1;
+ * @return The index.
+ */
+ int getIndex();
+
+ /**
+ * string error = 2;
+ * @return The error.
+ */
+ java.lang.String getError();
+ /**
+ * string error = 2;
+ * @return The bytes for error.
+ */
+ com.google.protobuf.ByteString
+ getErrorBytes();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.BatchObjectsReply.BatchResults}
+ */
+ public static final class BatchResults extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.BatchObjectsReply.BatchResults)
+ BatchResultsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BatchResults.newBuilder() to construct.
+ private BatchResults(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BatchResults() {
+ error_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BatchResults();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder.class);
+ }
+
+ public static final int INDEX_FIELD_NUMBER = 1;
+ private int index_ = 0;
+ /**
+ * int32 index = 1;
+ * @return The index.
+ */
+ @java.lang.Override
+ public int getIndex() {
+ return index_;
+ }
+
+ public static final int ERROR_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object error_ = "";
+ /**
+ * string error = 2;
+ * @return The error.
+ */
+ @java.lang.Override
+ public java.lang.String getError() {
+ java.lang.Object ref = error_;
+ 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();
+ error_ = s;
+ return s;
+ }
+ }
+ /**
+ * string error = 2;
+ * @return The bytes for error.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getErrorBytes() {
+ java.lang.Object ref = error_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ error_ = 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 (index_ != 0) {
+ output.writeInt32(1, index_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (index_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, index_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_);
+ }
+ 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.WeaviateProto.BatchObjectsReply.BatchResults)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults) obj;
+
+ if (getIndex()
+ != other.getIndex()) return false;
+ if (!getError()
+ .equals(other.getError())) 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) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getIndex();
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + getError().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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.WeaviateProto.BatchObjectsReply.BatchResults parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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.WeaviateProto.BatchObjectsReply.BatchResults parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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.WeaviateProto.BatchObjectsReply.BatchResults parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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.WeaviateProto.BatchObjectsReply.BatchResults parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults 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.WeaviateProto.BatchObjectsReply.BatchResults 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.WeaviateProto.BatchObjectsReply.BatchResults 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.WeaviateProto.BatchObjectsReply.BatchResults 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 weaviategrpc.BatchObjectsReply.BatchResults}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObjectsReply.BatchResults)
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ index_ = 0;
+ error_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_BatchResults_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.index_ = index_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.error_ = error_;
+ }
+ }
+
+ @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.WeaviateProto.BatchObjectsReply.BatchResults) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.getDefaultInstance()) return this;
+ if (other.getIndex() != 0) {
+ setIndex(other.getIndex());
+ }
+ if (!other.getError().isEmpty()) {
+ error_ = other.error_;
+ bitField0_ |= 0x00000002;
+ 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 8: {
+ index_ = input.readInt32();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ error_ = input.readStringRequireUtf8();
+ 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 int index_ ;
+ /**
+ * int32 index = 1;
+ * @return The index.
+ */
+ @java.lang.Override
+ public int getIndex() {
+ return index_;
+ }
+ /**
+ * int32 index = 1;
+ * @param value The index to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIndex(int value) {
+
+ index_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 index = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearIndex() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ index_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object error_ = "";
+ /**
+ * string error = 2;
+ * @return The error.
+ */
+ public java.lang.String getError() {
+ java.lang.Object ref = error_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ error_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string error = 2;
+ * @return The bytes for error.
+ */
+ public com.google.protobuf.ByteString
+ getErrorBytes() {
+ java.lang.Object ref = error_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ error_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string error = 2;
+ * @param value The error to set.
+ * @return This builder for chaining.
+ */
+ public Builder setError(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ error_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string error = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearError() {
+ error_ = getDefaultInstance().getError();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string error = 2;
+ * @param value The bytes for error to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ error_ = value;
+ bitField0_ |= 0x00000002;
+ 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:weaviategrpc.BatchObjectsReply.BatchResults)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObjectsReply.BatchResults)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BatchResults 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.WeaviateProto.BatchObjectsReply.BatchResults getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public static final int RESULTS_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List results_;
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ @java.lang.Override
+ public java.util.List getResultsList() {
+ return results_;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder>
+ getResultsOrBuilderList() {
+ return results_;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ @java.lang.Override
+ public int getResultsCount() {
+ return results_.size();
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getResults(int index) {
+ return results_.get(index);
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder getResultsOrBuilder(
+ int index) {
+ return results_.get(index);
+ }
+
+ public static final int TOOK_FIELD_NUMBER = 2;
+ private float took_ = 0F;
+ /**
+ * float took = 2;
+ * @return The took.
+ */
+ @java.lang.Override
+ public float getTook() {
+ return took_;
+ }
+
+ 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 < results_.size(); i++) {
+ output.writeMessage(1, results_.get(i));
+ }
+ if (java.lang.Float.floatToRawIntBits(took_) != 0) {
+ output.writeFloat(2, took_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < results_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, results_.get(i));
+ }
+ if (java.lang.Float.floatToRawIntBits(took_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, took_);
+ }
+ 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.WeaviateProto.BatchObjectsReply)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply other = (io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply) obj;
+
+ if (!getResultsList()
+ .equals(other.getResultsList())) return false;
+ if (java.lang.Float.floatToIntBits(getTook())
+ != java.lang.Float.floatToIntBits(
+ other.getTook())) 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 (getResultsCount() > 0) {
+ hash = (37 * hash) + RESULTS_FIELD_NUMBER;
+ hash = (53 * hash) + getResultsList().hashCode();
+ }
+ hash = (37 * hash) + TOOK_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getTook());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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.WeaviateProto.BatchObjectsReply parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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.WeaviateProto.BatchObjectsReply parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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.WeaviateProto.BatchObjectsReply parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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.WeaviateProto.BatchObjectsReply parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply 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.WeaviateProto.BatchObjectsReply 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.WeaviateProto.BatchObjectsReply 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.WeaviateProto.BatchObjectsReply 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 weaviategrpc.BatchObjectsReply}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.BatchObjectsReply)
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReplyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.class, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (resultsBuilder_ == null) {
+ results_ = java.util.Collections.emptyList();
+ } else {
+ results_ = null;
+ resultsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ took_ = 0F;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BatchObjectsReply_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply result = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply result) {
+ if (resultsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ results_ = java.util.Collections.unmodifiableList(results_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.results_ = results_;
+ } else {
+ result.results_ = resultsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.took_ = took_;
+ }
+ }
+
+ @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.WeaviateProto.BatchObjectsReply) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.getDefaultInstance()) return this;
+ if (resultsBuilder_ == null) {
+ if (!other.results_.isEmpty()) {
+ if (results_.isEmpty()) {
+ results_ = other.results_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureResultsIsMutable();
+ results_.addAll(other.results_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.results_.isEmpty()) {
+ if (resultsBuilder_.isEmpty()) {
+ resultsBuilder_.dispose();
+ resultsBuilder_ = null;
+ results_ = other.results_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ resultsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getResultsFieldBuilder() : null;
+ } else {
+ resultsBuilder_.addAllMessages(other.results_);
+ }
+ }
+ }
+ if (other.getTook() != 0F) {
+ setTook(other.getTook());
+ }
+ 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.WeaviateProto.BatchObjectsReply.BatchResults m =
+ input.readMessage(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.parser(),
+ extensionRegistry);
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.add(m);
+ } else {
+ resultsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 21: {
+ took_ = input.readFloat();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 21
+ 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 results_ =
+ java.util.Collections.emptyList();
+ private void ensureResultsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ results_ = new java.util.ArrayList(results_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder> resultsBuilder_;
+
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public java.util.List getResultsList() {
+ if (resultsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(results_);
+ } else {
+ return resultsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public int getResultsCount() {
+ if (resultsBuilder_ == null) {
+ return results_.size();
+ } else {
+ return resultsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults getResults(int index) {
+ if (resultsBuilder_ == null) {
+ return results_.get(index);
+ } else {
+ return resultsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder setResults(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults value) {
+ if (resultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResultsIsMutable();
+ results_.set(index, value);
+ onChanged();
+ } else {
+ resultsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder setResults(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder builderForValue) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ resultsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder addResults(io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults value) {
+ if (resultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResultsIsMutable();
+ results_.add(value);
+ onChanged();
+ } else {
+ resultsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder addResults(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults value) {
+ if (resultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResultsIsMutable();
+ results_.add(index, value);
+ onChanged();
+ } else {
+ resultsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder addResults(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder builderForValue) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.add(builderForValue.build());
+ onChanged();
+ } else {
+ resultsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder addResults(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder builderForValue) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ resultsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder addAllResults(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults> values) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, results_);
+ onChanged();
+ } else {
+ resultsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder clearResults() {
+ if (resultsBuilder_ == null) {
+ results_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ resultsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public Builder removeResults(int index) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.remove(index);
+ onChanged();
+ } else {
+ resultsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder getResultsBuilder(
+ int index) {
+ return getResultsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder getResultsOrBuilder(
+ int index) {
+ if (resultsBuilder_ == null) {
+ return results_.get(index); } else {
+ return resultsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder>
+ getResultsOrBuilderList() {
+ if (resultsBuilder_ != null) {
+ return resultsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(results_);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder addResultsBuilder() {
+ return getResultsFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder addResultsBuilder(
+ int index) {
+ return getResultsFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.BatchObjectsReply.BatchResults results = 1;
+ */
+ public java.util.List
+ getResultsBuilderList() {
+ return getResultsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder>
+ getResultsFieldBuilder() {
+ if (resultsBuilder_ == null) {
+ resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResults.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply.BatchResultsOrBuilder>(
+ results_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ results_ = null;
+ }
+ return resultsBuilder_;
+ }
+
+ private float took_ ;
+ /**
+ * float took = 2;
+ * @return The took.
+ */
+ @java.lang.Override
+ public float getTook() {
+ return took_;
+ }
+ /**
+ * float took = 2;
+ * @param value The took to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTook(float value) {
+
+ took_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * float took = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearTook() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ took_ = 0F;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:weaviategrpc.BatchObjectsReply)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.BatchObjectsReply)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BatchObjectsReply getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BatchObjectsReply 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.WeaviateProto.BatchObjectsReply getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface SearchRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.SearchRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string class_name = 1;
+ * @return The className.
+ */
+ java.lang.String getClassName();
+ /**
+ * string class_name = 1;
+ * @return The bytes for className.
+ */
+ com.google.protobuf.ByteString
+ getClassNameBytes();
+
+ /**
+ * uint32 limit = 2;
+ * @return The limit.
+ */
+ int getLimit();
+
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ * @return Whether the additionalProperties field is set.
+ */
+ boolean hasAdditionalProperties();
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ * @return The additionalProperties.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getAdditionalProperties();
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder();
+
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ * @return Whether the nearVector field is set.
+ */
+ boolean hasNearVector();
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ * @return The nearVector.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getNearVector();
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder getNearVectorOrBuilder();
+
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ * @return Whether the nearObject field is set.
+ */
+ boolean hasNearObject();
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ * @return The nearObject.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getNearObject();
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder getNearObjectOrBuilder();
+
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ * @return Whether the properties field is set.
+ */
+ boolean hasProperties();
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ * @return The properties.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties getProperties();
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getPropertiesOrBuilder();
+
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ * @return Whether the hybridSearch field is set.
+ */
+ boolean hasHybridSearch();
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ * @return The hybridSearch.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getHybridSearch();
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder getHybridSearchOrBuilder();
+
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ * @return Whether the bm25Search field is set.
+ */
+ boolean hasBm25Search();
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ * @return The bm25Search.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getBm25Search();
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder getBm25SearchOrBuilder();
+
+ /**
+ * uint32 offset = 9;
+ * @return The offset.
+ */
+ int getOffset();
+
+ /**
+ * uint32 autocut = 10;
+ * @return The autocut.
+ */
+ int getAutocut();
+
+ /**
+ * string after = 11;
+ * @return The after.
+ */
+ java.lang.String getAfter();
+ /**
+ * string after = 11;
+ * @return The bytes for after.
+ */
+ com.google.protobuf.ByteString
+ getAfterBytes();
+
+ /**
+ * string tenant = 12;
+ * @return The tenant.
+ */
+ java.lang.String getTenant();
+ /**
+ * string tenant = 12;
+ * @return The bytes for tenant.
+ */
+ com.google.protobuf.ByteString
+ getTenantBytes();
+
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ * @return Whether the filters field is set.
+ */
+ boolean hasFilters();
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ * @return The filters.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters();
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder();
+
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ * @return Whether the nearText field is set.
+ */
+ boolean hasNearText();
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ * @return The nearText.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getNearText();
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder getNearTextOrBuilder();
+
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ * @return Whether the nearImage field is set.
+ */
+ boolean hasNearImage();
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ * @return The nearImage.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getNearImage();
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder getNearImageOrBuilder();
+
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ * @return Whether the nearAudio field is set.
+ */
+ boolean hasNearAudio();
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ * @return The nearAudio.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getNearAudio();
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder getNearAudioOrBuilder();
+
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ * @return Whether the nearVideo field is set.
+ */
+ boolean hasNearVideo();
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ * @return The nearVideo.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getNearVideo();
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder getNearVideoOrBuilder();
+
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return Whether the consistencyLevel field is set.
+ */
+ boolean hasConsistencyLevel();
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return The enum numeric value on the wire for consistencyLevel.
+ */
+ int getConsistencyLevelValue();
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return The consistencyLevel.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel();
+
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ * @return Whether the generative field is set.
+ */
+ boolean hasGenerative();
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ * @return The generative.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getGenerative();
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder getGenerativeOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.SearchRequest}
+ */
+ public static final class SearchRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.SearchRequest)
+ SearchRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SearchRequest.newBuilder() to construct.
+ private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private SearchRequest() {
+ className_ = "";
+ after_ = "";
+ tenant_ = "";
+ consistencyLevel_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SearchRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.class, io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int CLASS_NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object className_ = "";
+ /**
+ * string class_name = 1;
+ * @return The className.
+ */
+ @java.lang.Override
+ public java.lang.String getClassName() {
+ java.lang.Object ref = className_;
+ 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();
+ className_ = s;
+ return s;
+ }
+ }
+ /**
+ * string class_name = 1;
+ * @return The bytes for className.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getClassNameBytes() {
+ java.lang.Object ref = className_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ className_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LIMIT_FIELD_NUMBER = 2;
+ private int limit_ = 0;
+ /**
+ * uint32 limit = 2;
+ * @return The limit.
+ */
+ @java.lang.Override
+ public int getLimit() {
+ return limit_;
+ }
+
+ public static final int ADDITIONAL_PROPERTIES_FIELD_NUMBER = 3;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties additionalProperties_;
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ * @return Whether the additionalProperties field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdditionalProperties() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ * @return The additionalProperties.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getAdditionalProperties() {
+ return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : additionalProperties_;
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder() {
+ return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : additionalProperties_;
+ }
+
+ public static final int NEAR_VECTOR_FIELD_NUMBER = 4;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams nearVector_;
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ * @return Whether the nearVector field is set.
+ */
+ @java.lang.Override
+ public boolean hasNearVector() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ * @return The nearVector.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getNearVector() {
+ return nearVector_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance() : nearVector_;
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder getNearVectorOrBuilder() {
+ return nearVector_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance() : nearVector_;
+ }
+
+ public static final int NEAR_OBJECT_FIELD_NUMBER = 5;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams nearObject_;
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ * @return Whether the nearObject field is set.
+ */
+ @java.lang.Override
+ public boolean hasNearObject() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ * @return The nearObject.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getNearObject() {
+ return nearObject_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance() : nearObject_;
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder getNearObjectOrBuilder() {
+ return nearObject_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance() : nearObject_;
+ }
+
+ public static final int PROPERTIES_FIELD_NUMBER = 6;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.Properties properties_;
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ * @return Whether the properties field is set.
+ */
+ @java.lang.Override
+ public boolean hasProperties() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ * @return The properties.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Properties getProperties() {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : properties_;
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getPropertiesOrBuilder() {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : properties_;
+ }
+
+ public static final int HYBRID_SEARCH_FIELD_NUMBER = 7;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams hybridSearch_;
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ * @return Whether the hybridSearch field is set.
+ */
+ @java.lang.Override
+ public boolean hasHybridSearch() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ * @return The hybridSearch.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getHybridSearch() {
+ return hybridSearch_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance() : hybridSearch_;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder getHybridSearchOrBuilder() {
+ return hybridSearch_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance() : hybridSearch_;
+ }
+
+ public static final int BM25_SEARCH_FIELD_NUMBER = 8;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams bm25Search_;
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ * @return Whether the bm25Search field is set.
+ */
+ @java.lang.Override
+ public boolean hasBm25Search() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ * @return The bm25Search.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getBm25Search() {
+ return bm25Search_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance() : bm25Search_;
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder getBm25SearchOrBuilder() {
+ return bm25Search_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance() : bm25Search_;
+ }
+
+ public static final int OFFSET_FIELD_NUMBER = 9;
+ private int offset_ = 0;
+ /**
+ * uint32 offset = 9;
+ * @return The offset.
+ */
+ @java.lang.Override
+ public int getOffset() {
+ return offset_;
+ }
+
+ public static final int AUTOCUT_FIELD_NUMBER = 10;
+ private int autocut_ = 0;
+ /**
+ * uint32 autocut = 10;
+ * @return The autocut.
+ */
+ @java.lang.Override
+ public int getAutocut() {
+ return autocut_;
+ }
+
+ public static final int AFTER_FIELD_NUMBER = 11;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object after_ = "";
+ /**
+ * string after = 11;
+ * @return The after.
+ */
+ @java.lang.Override
+ public java.lang.String getAfter() {
+ java.lang.Object ref = after_;
+ 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();
+ after_ = s;
+ return s;
+ }
+ }
+ /**
+ * string after = 11;
+ * @return The bytes for after.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAfterBytes() {
+ java.lang.Object ref = after_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ after_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TENANT_FIELD_NUMBER = 12;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object tenant_ = "";
+ /**
+ * string tenant = 12;
+ * @return The tenant.
+ */
+ @java.lang.Override
+ public java.lang.String getTenant() {
+ java.lang.Object ref = tenant_;
+ 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();
+ tenant_ = s;
+ return s;
+ }
+ }
+ /**
+ * string tenant = 12;
+ * @return The bytes for tenant.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTenantBytes() {
+ java.lang.Object ref = tenant_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ tenant_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FILTERS_FIELD_NUMBER = 13;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.Filters filters_;
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ * @return Whether the filters field is set.
+ */
+ @java.lang.Override
+ public boolean hasFilters() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ * @return The filters.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters() {
+ return filters_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance() : filters_;
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder() {
+ return filters_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance() : filters_;
+ }
+
+ public static final int NEAR_TEXT_FIELD_NUMBER = 14;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams nearText_;
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ * @return Whether the nearText field is set.
+ */
+ @java.lang.Override
+ public boolean hasNearText() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ * @return The nearText.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getNearText() {
+ return nearText_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance() : nearText_;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder getNearTextOrBuilder() {
+ return nearText_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance() : nearText_;
+ }
+
+ public static final int NEAR_IMAGE_FIELD_NUMBER = 15;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams nearImage_;
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ * @return Whether the nearImage field is set.
+ */
+ @java.lang.Override
+ public boolean hasNearImage() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ * @return The nearImage.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getNearImage() {
+ return nearImage_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance() : nearImage_;
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder getNearImageOrBuilder() {
+ return nearImage_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance() : nearImage_;
+ }
+
+ public static final int NEAR_AUDIO_FIELD_NUMBER = 16;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams nearAudio_;
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ * @return Whether the nearAudio field is set.
+ */
+ @java.lang.Override
+ public boolean hasNearAudio() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ * @return The nearAudio.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getNearAudio() {
+ return nearAudio_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance() : nearAudio_;
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder getNearAudioOrBuilder() {
+ return nearAudio_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance() : nearAudio_;
+ }
+
+ public static final int NEAR_VIDEO_FIELD_NUMBER = 17;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams nearVideo_;
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ * @return Whether the nearVideo field is set.
+ */
+ @java.lang.Override
+ public boolean hasNearVideo() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ * @return The nearVideo.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getNearVideo() {
+ return nearVideo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance() : nearVideo_;
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder getNearVideoOrBuilder() {
+ return nearVideo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance() : nearVideo_;
+ }
+
+ public static final int CONSISTENCY_LEVEL_FIELD_NUMBER = 18;
+ private int consistencyLevel_ = 0;
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return Whether the consistencyLevel field is set.
+ */
+ @java.lang.Override public boolean hasConsistencyLevel() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return The enum numeric value on the wire for consistencyLevel.
+ */
+ @java.lang.Override public int getConsistencyLevelValue() {
+ return consistencyLevel_;
+ }
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return The consistencyLevel.
+ */
+ @java.lang.Override public io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel result = io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.forNumber(consistencyLevel_);
+ return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.UNRECOGNIZED : result;
+ }
+
+ public static final int GENERATIVE_FIELD_NUMBER = 19;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch generative_;
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ * @return Whether the generative field is set.
+ */
+ @java.lang.Override
+ public boolean hasGenerative() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ * @return The generative.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getGenerative() {
+ return generative_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance() : generative_;
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder getGenerativeOrBuilder() {
+ return generative_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance() : generative_;
+ }
+
+ 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(className_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, className_);
+ }
+ if (limit_ != 0) {
+ output.writeUInt32(2, limit_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getAdditionalProperties());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(4, getNearVector());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(5, getNearObject());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getProperties());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeMessage(7, getHybridSearch());
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(8, getBm25Search());
+ }
+ if (offset_ != 0) {
+ output.writeUInt32(9, offset_);
+ }
+ if (autocut_ != 0) {
+ output.writeUInt32(10, autocut_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(after_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, after_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, tenant_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(13, getFilters());
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeMessage(14, getNearText());
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeMessage(15, getNearImage());
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ output.writeMessage(16, getNearAudio());
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ output.writeMessage(17, getNearVideo());
+ }
+ if (((bitField0_ & 0x00000800) != 0)) {
+ output.writeEnum(18, consistencyLevel_);
+ }
+ if (((bitField0_ & 0x00001000) != 0)) {
+ output.writeMessage(19, getGenerative());
+ }
+ 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(className_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, className_);
+ }
+ if (limit_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, limit_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getAdditionalProperties());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getNearVector());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getNearObject());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getProperties());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getHybridSearch());
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, getBm25Search());
+ }
+ if (offset_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(9, offset_);
+ }
+ if (autocut_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(10, autocut_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(after_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, after_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, tenant_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(13, getFilters());
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(14, getNearText());
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(15, getNearImage());
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(16, getNearAudio());
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(17, getNearVideo());
+ }
+ if (((bitField0_ & 0x00000800) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(18, consistencyLevel_);
+ }
+ if (((bitField0_ & 0x00001000) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(19, getGenerative());
+ }
+ 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.WeaviateProto.SearchRequest)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest other = (io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest) obj;
+
+ if (!getClassName()
+ .equals(other.getClassName())) return false;
+ if (getLimit()
+ != other.getLimit()) return false;
+ if (hasAdditionalProperties() != other.hasAdditionalProperties()) return false;
+ if (hasAdditionalProperties()) {
+ if (!getAdditionalProperties()
+ .equals(other.getAdditionalProperties())) return false;
+ }
+ if (hasNearVector() != other.hasNearVector()) return false;
+ if (hasNearVector()) {
+ if (!getNearVector()
+ .equals(other.getNearVector())) return false;
+ }
+ if (hasNearObject() != other.hasNearObject()) return false;
+ if (hasNearObject()) {
+ if (!getNearObject()
+ .equals(other.getNearObject())) return false;
+ }
+ if (hasProperties() != other.hasProperties()) return false;
+ if (hasProperties()) {
+ if (!getProperties()
+ .equals(other.getProperties())) return false;
+ }
+ if (hasHybridSearch() != other.hasHybridSearch()) return false;
+ if (hasHybridSearch()) {
+ if (!getHybridSearch()
+ .equals(other.getHybridSearch())) return false;
+ }
+ if (hasBm25Search() != other.hasBm25Search()) return false;
+ if (hasBm25Search()) {
+ if (!getBm25Search()
+ .equals(other.getBm25Search())) return false;
+ }
+ if (getOffset()
+ != other.getOffset()) return false;
+ if (getAutocut()
+ != other.getAutocut()) return false;
+ if (!getAfter()
+ .equals(other.getAfter())) return false;
+ if (!getTenant()
+ .equals(other.getTenant())) return false;
+ if (hasFilters() != other.hasFilters()) return false;
+ if (hasFilters()) {
+ if (!getFilters()
+ .equals(other.getFilters())) return false;
+ }
+ if (hasNearText() != other.hasNearText()) return false;
+ if (hasNearText()) {
+ if (!getNearText()
+ .equals(other.getNearText())) return false;
+ }
+ if (hasNearImage() != other.hasNearImage()) return false;
+ if (hasNearImage()) {
+ if (!getNearImage()
+ .equals(other.getNearImage())) return false;
+ }
+ if (hasNearAudio() != other.hasNearAudio()) return false;
+ if (hasNearAudio()) {
+ if (!getNearAudio()
+ .equals(other.getNearAudio())) return false;
+ }
+ if (hasNearVideo() != other.hasNearVideo()) return false;
+ if (hasNearVideo()) {
+ if (!getNearVideo()
+ .equals(other.getNearVideo())) return false;
+ }
+ if (hasConsistencyLevel() != other.hasConsistencyLevel()) return false;
+ if (hasConsistencyLevel()) {
+ if (consistencyLevel_ != other.consistencyLevel_) return false;
+ }
+ if (hasGenerative() != other.hasGenerative()) return false;
+ if (hasGenerative()) {
+ if (!getGenerative()
+ .equals(other.getGenerative())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getClassName().hashCode();
+ hash = (37 * hash) + LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getLimit();
+ if (hasAdditionalProperties()) {
+ hash = (37 * hash) + ADDITIONAL_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getAdditionalProperties().hashCode();
+ }
+ if (hasNearVector()) {
+ hash = (37 * hash) + NEAR_VECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getNearVector().hashCode();
+ }
+ if (hasNearObject()) {
+ hash = (37 * hash) + NEAR_OBJECT_FIELD_NUMBER;
+ hash = (53 * hash) + getNearObject().hashCode();
+ }
+ if (hasProperties()) {
+ hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getProperties().hashCode();
+ }
+ if (hasHybridSearch()) {
+ hash = (37 * hash) + HYBRID_SEARCH_FIELD_NUMBER;
+ hash = (53 * hash) + getHybridSearch().hashCode();
+ }
+ if (hasBm25Search()) {
+ hash = (37 * hash) + BM25_SEARCH_FIELD_NUMBER;
+ hash = (53 * hash) + getBm25Search().hashCode();
+ }
+ hash = (37 * hash) + OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getOffset();
+ hash = (37 * hash) + AUTOCUT_FIELD_NUMBER;
+ hash = (53 * hash) + getAutocut();
+ hash = (37 * hash) + AFTER_FIELD_NUMBER;
+ hash = (53 * hash) + getAfter().hashCode();
+ hash = (37 * hash) + TENANT_FIELD_NUMBER;
+ hash = (53 * hash) + getTenant().hashCode();
+ if (hasFilters()) {
+ hash = (37 * hash) + FILTERS_FIELD_NUMBER;
+ hash = (53 * hash) + getFilters().hashCode();
+ }
+ if (hasNearText()) {
+ hash = (37 * hash) + NEAR_TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getNearText().hashCode();
+ }
+ if (hasNearImage()) {
+ hash = (37 * hash) + NEAR_IMAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getNearImage().hashCode();
+ }
+ if (hasNearAudio()) {
+ hash = (37 * hash) + NEAR_AUDIO_FIELD_NUMBER;
+ hash = (53 * hash) + getNearAudio().hashCode();
+ }
+ if (hasNearVideo()) {
+ hash = (37 * hash) + NEAR_VIDEO_FIELD_NUMBER;
+ hash = (53 * hash) + getNearVideo().hashCode();
+ }
+ if (hasConsistencyLevel()) {
+ hash = (37 * hash) + CONSISTENCY_LEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + consistencyLevel_;
+ }
+ if (hasGenerative()) {
+ hash = (37 * hash) + GENERATIVE_FIELD_NUMBER;
+ hash = (53 * hash) + getGenerative().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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.WeaviateProto.SearchRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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.WeaviateProto.SearchRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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.WeaviateProto.SearchRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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.WeaviateProto.SearchRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest 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.WeaviateProto.SearchRequest 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.WeaviateProto.SearchRequest 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.WeaviateProto.SearchRequest 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 weaviategrpc.SearchRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.SearchRequest)
+ io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.class, io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getAdditionalPropertiesFieldBuilder();
+ getNearVectorFieldBuilder();
+ getNearObjectFieldBuilder();
+ getPropertiesFieldBuilder();
+ getHybridSearchFieldBuilder();
+ getBm25SearchFieldBuilder();
+ getFiltersFieldBuilder();
+ getNearTextFieldBuilder();
+ getNearImageFieldBuilder();
+ getNearAudioFieldBuilder();
+ getNearVideoFieldBuilder();
+ getGenerativeFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ className_ = "";
+ limit_ = 0;
+ additionalProperties_ = null;
+ if (additionalPropertiesBuilder_ != null) {
+ additionalPropertiesBuilder_.dispose();
+ additionalPropertiesBuilder_ = null;
+ }
+ nearVector_ = null;
+ if (nearVectorBuilder_ != null) {
+ nearVectorBuilder_.dispose();
+ nearVectorBuilder_ = null;
+ }
+ nearObject_ = null;
+ if (nearObjectBuilder_ != null) {
+ nearObjectBuilder_.dispose();
+ nearObjectBuilder_ = null;
+ }
+ properties_ = null;
+ if (propertiesBuilder_ != null) {
+ propertiesBuilder_.dispose();
+ propertiesBuilder_ = null;
+ }
+ hybridSearch_ = null;
+ if (hybridSearchBuilder_ != null) {
+ hybridSearchBuilder_.dispose();
+ hybridSearchBuilder_ = null;
+ }
+ bm25Search_ = null;
+ if (bm25SearchBuilder_ != null) {
+ bm25SearchBuilder_.dispose();
+ bm25SearchBuilder_ = null;
+ }
+ offset_ = 0;
+ autocut_ = 0;
+ after_ = "";
+ tenant_ = "";
+ filters_ = null;
+ if (filtersBuilder_ != null) {
+ filtersBuilder_.dispose();
+ filtersBuilder_ = null;
+ }
+ nearText_ = null;
+ if (nearTextBuilder_ != null) {
+ nearTextBuilder_.dispose();
+ nearTextBuilder_ = null;
+ }
+ nearImage_ = null;
+ if (nearImageBuilder_ != null) {
+ nearImageBuilder_.dispose();
+ nearImageBuilder_ = null;
+ }
+ nearAudio_ = null;
+ if (nearAudioBuilder_ != null) {
+ nearAudioBuilder_.dispose();
+ nearAudioBuilder_ = null;
+ }
+ nearVideo_ = null;
+ if (nearVideoBuilder_ != null) {
+ nearVideoBuilder_.dispose();
+ nearVideoBuilder_ = null;
+ }
+ consistencyLevel_ = 0;
+ generative_ = null;
+ if (generativeBuilder_ != null) {
+ generativeBuilder_.dispose();
+ generativeBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_SearchRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest result = new io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.className_ = className_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.limit_ = limit_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.additionalProperties_ = additionalPropertiesBuilder_ == null
+ ? additionalProperties_
+ : additionalPropertiesBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.nearVector_ = nearVectorBuilder_ == null
+ ? nearVector_
+ : nearVectorBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.nearObject_ = nearObjectBuilder_ == null
+ ? nearObject_
+ : nearObjectBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.properties_ = propertiesBuilder_ == null
+ ? properties_
+ : propertiesBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.hybridSearch_ = hybridSearchBuilder_ == null
+ ? hybridSearch_
+ : hybridSearchBuilder_.build();
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.bm25Search_ = bm25SearchBuilder_ == null
+ ? bm25Search_
+ : bm25SearchBuilder_.build();
+ to_bitField0_ |= 0x00000020;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.offset_ = offset_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.autocut_ = autocut_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.after_ = after_;
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.tenant_ = tenant_;
+ }
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.filters_ = filtersBuilder_ == null
+ ? filters_
+ : filtersBuilder_.build();
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.nearText_ = nearTextBuilder_ == null
+ ? nearText_
+ : nearTextBuilder_.build();
+ to_bitField0_ |= 0x00000080;
+ }
+ if (((from_bitField0_ & 0x00004000) != 0)) {
+ result.nearImage_ = nearImageBuilder_ == null
+ ? nearImage_
+ : nearImageBuilder_.build();
+ to_bitField0_ |= 0x00000100;
+ }
+ if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.nearAudio_ = nearAudioBuilder_ == null
+ ? nearAudio_
+ : nearAudioBuilder_.build();
+ to_bitField0_ |= 0x00000200;
+ }
+ if (((from_bitField0_ & 0x00010000) != 0)) {
+ result.nearVideo_ = nearVideoBuilder_ == null
+ ? nearVideo_
+ : nearVideoBuilder_.build();
+ to_bitField0_ |= 0x00000400;
+ }
+ if (((from_bitField0_ & 0x00020000) != 0)) {
+ result.consistencyLevel_ = consistencyLevel_;
+ to_bitField0_ |= 0x00000800;
+ }
+ if (((from_bitField0_ & 0x00040000) != 0)) {
+ result.generative_ = generativeBuilder_ == null
+ ? generative_
+ : generativeBuilder_.build();
+ to_bitField0_ |= 0x00001000;
+ }
+ 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.WeaviateProto.SearchRequest) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest.getDefaultInstance()) return this;
+ if (!other.getClassName().isEmpty()) {
+ className_ = other.className_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.getLimit() != 0) {
+ setLimit(other.getLimit());
+ }
+ if (other.hasAdditionalProperties()) {
+ mergeAdditionalProperties(other.getAdditionalProperties());
+ }
+ if (other.hasNearVector()) {
+ mergeNearVector(other.getNearVector());
+ }
+ if (other.hasNearObject()) {
+ mergeNearObject(other.getNearObject());
+ }
+ if (other.hasProperties()) {
+ mergeProperties(other.getProperties());
+ }
+ if (other.hasHybridSearch()) {
+ mergeHybridSearch(other.getHybridSearch());
+ }
+ if (other.hasBm25Search()) {
+ mergeBm25Search(other.getBm25Search());
+ }
+ if (other.getOffset() != 0) {
+ setOffset(other.getOffset());
+ }
+ if (other.getAutocut() != 0) {
+ setAutocut(other.getAutocut());
+ }
+ if (!other.getAfter().isEmpty()) {
+ after_ = other.after_;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ if (!other.getTenant().isEmpty()) {
+ tenant_ = other.tenant_;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ }
+ if (other.hasFilters()) {
+ mergeFilters(other.getFilters());
+ }
+ if (other.hasNearText()) {
+ mergeNearText(other.getNearText());
+ }
+ if (other.hasNearImage()) {
+ mergeNearImage(other.getNearImage());
+ }
+ if (other.hasNearAudio()) {
+ mergeNearAudio(other.getNearAudio());
+ }
+ if (other.hasNearVideo()) {
+ mergeNearVideo(other.getNearVideo());
+ }
+ if (other.hasConsistencyLevel()) {
+ setConsistencyLevel(other.getConsistencyLevel());
+ }
+ if (other.hasGenerative()) {
+ mergeGenerative(other.getGenerative());
+ }
+ 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: {
+ className_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ limit_ = input.readUInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ input.readMessage(
+ getAdditionalPropertiesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getNearVectorFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ input.readMessage(
+ getNearObjectFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50: {
+ input.readMessage(
+ getPropertiesFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58: {
+ input.readMessage(
+ getHybridSearchFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 66: {
+ input.readMessage(
+ getBm25SearchFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ case 72: {
+ offset_ = input.readUInt32();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 72
+ case 80: {
+ autocut_ = input.readUInt32();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 80
+ case 90: {
+ after_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 90
+ case 98: {
+ tenant_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 98
+ case 106: {
+ input.readMessage(
+ getFiltersFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 106
+ case 114: {
+ input.readMessage(
+ getNearTextFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00002000;
+ break;
+ } // case 114
+ case 122: {
+ input.readMessage(
+ getNearImageFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00004000;
+ break;
+ } // case 122
+ case 130: {
+ input.readMessage(
+ getNearAudioFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00008000;
+ break;
+ } // case 130
+ case 138: {
+ input.readMessage(
+ getNearVideoFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00010000;
+ break;
+ } // case 138
+ case 144: {
+ consistencyLevel_ = input.readEnum();
+ bitField0_ |= 0x00020000;
+ break;
+ } // case 144
+ case 154: {
+ input.readMessage(
+ getGenerativeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00040000;
+ break;
+ } // case 154
+ 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 className_ = "";
+ /**
+ * string class_name = 1;
+ * @return The className.
+ */
+ public java.lang.String getClassName() {
+ java.lang.Object ref = className_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ className_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string class_name = 1;
+ * @return The bytes for className.
+ */
+ public com.google.protobuf.ByteString
+ getClassNameBytes() {
+ java.lang.Object ref = className_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ className_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string class_name = 1;
+ * @param value The className to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClassName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ className_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string class_name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearClassName() {
+ className_ = getDefaultInstance().getClassName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string class_name = 1;
+ * @param value The bytes for className to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClassNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ className_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int limit_ ;
+ /**
+ * uint32 limit = 2;
+ * @return The limit.
+ */
+ @java.lang.Override
+ public int getLimit() {
+ return limit_;
+ }
+ /**
+ * uint32 limit = 2;
+ * @param value The limit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLimit(int value) {
+
+ limit_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 limit = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearLimit() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ limit_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties additionalProperties_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder> additionalPropertiesBuilder_;
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ * @return Whether the additionalProperties field is set.
+ */
+ public boolean hasAdditionalProperties() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ * @return The additionalProperties.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getAdditionalProperties() {
+ if (additionalPropertiesBuilder_ == null) {
+ return additionalProperties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : additionalProperties_;
+ } else {
+ return additionalPropertiesBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ public Builder setAdditionalProperties(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties value) {
+ if (additionalPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ additionalProperties_ = value;
+ } else {
+ additionalPropertiesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ public Builder setAdditionalProperties(
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder builderForValue) {
+ if (additionalPropertiesBuilder_ == null) {
+ additionalProperties_ = builderForValue.build();
+ } else {
+ additionalPropertiesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ public Builder mergeAdditionalProperties(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties value) {
+ if (additionalPropertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ additionalProperties_ != null &&
+ additionalProperties_ != io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance()) {
+ getAdditionalPropertiesBuilder().mergeFrom(value);
+ } else {
+ additionalProperties_ = value;
+ }
+ } else {
+ additionalPropertiesBuilder_.mergeFrom(value);
+ }
+ if (additionalProperties_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ public Builder clearAdditionalProperties() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ additionalProperties_ = null;
+ if (additionalPropertiesBuilder_ != null) {
+ additionalPropertiesBuilder_.dispose();
+ additionalPropertiesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder getAdditionalPropertiesBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getAdditionalPropertiesFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder getAdditionalPropertiesOrBuilder() {
+ if (additionalPropertiesBuilder_ != null) {
+ return additionalPropertiesBuilder_.getMessageOrBuilder();
+ } else {
+ return additionalProperties_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance() : additionalProperties_;
+ }
+ }
+ /**
+ * .weaviategrpc.AdditionalProperties additional_properties = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder>
+ getAdditionalPropertiesFieldBuilder() {
+ if (additionalPropertiesBuilder_ == null) {
+ additionalPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder>(
+ getAdditionalProperties(),
+ getParentForChildren(),
+ isClean());
+ additionalProperties_ = null;
+ }
+ return additionalPropertiesBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams nearVector_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder> nearVectorBuilder_;
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ * @return Whether the nearVector field is set.
+ */
+ public boolean hasNearVector() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ * @return The nearVector.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams getNearVector() {
+ if (nearVectorBuilder_ == null) {
+ return nearVector_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance() : nearVector_;
+ } else {
+ return nearVectorBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ public Builder setNearVector(io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams value) {
+ if (nearVectorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nearVector_ = value;
+ } else {
+ nearVectorBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ public Builder setNearVector(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder builderForValue) {
+ if (nearVectorBuilder_ == null) {
+ nearVector_ = builderForValue.build();
+ } else {
+ nearVectorBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ public Builder mergeNearVector(io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams value) {
+ if (nearVectorBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ nearVector_ != null &&
+ nearVector_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance()) {
+ getNearVectorBuilder().mergeFrom(value);
+ } else {
+ nearVector_ = value;
+ }
+ } else {
+ nearVectorBuilder_.mergeFrom(value);
+ }
+ if (nearVector_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ public Builder clearNearVector() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ nearVector_ = null;
+ if (nearVectorBuilder_ != null) {
+ nearVectorBuilder_.dispose();
+ nearVectorBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder getNearVectorBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getNearVectorFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder getNearVectorOrBuilder() {
+ if (nearVectorBuilder_ != null) {
+ return nearVectorBuilder_.getMessageOrBuilder();
+ } else {
+ return nearVector_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.getDefaultInstance() : nearVector_;
+ }
+ }
+ /**
+ * .weaviategrpc.NearVectorParams near_vector = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder>
+ getNearVectorFieldBuilder() {
+ if (nearVectorBuilder_ == null) {
+ nearVectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVectorParamsOrBuilder>(
+ getNearVector(),
+ getParentForChildren(),
+ isClean());
+ nearVector_ = null;
+ }
+ return nearVectorBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams nearObject_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder> nearObjectBuilder_;
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ * @return Whether the nearObject field is set.
+ */
+ public boolean hasNearObject() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ * @return The nearObject.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams getNearObject() {
+ if (nearObjectBuilder_ == null) {
+ return nearObject_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance() : nearObject_;
+ } else {
+ return nearObjectBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ public Builder setNearObject(io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams value) {
+ if (nearObjectBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nearObject_ = value;
+ } else {
+ nearObjectBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ public Builder setNearObject(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder builderForValue) {
+ if (nearObjectBuilder_ == null) {
+ nearObject_ = builderForValue.build();
+ } else {
+ nearObjectBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ public Builder mergeNearObject(io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams value) {
+ if (nearObjectBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ nearObject_ != null &&
+ nearObject_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance()) {
+ getNearObjectBuilder().mergeFrom(value);
+ } else {
+ nearObject_ = value;
+ }
+ } else {
+ nearObjectBuilder_.mergeFrom(value);
+ }
+ if (nearObject_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ public Builder clearNearObject() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ nearObject_ = null;
+ if (nearObjectBuilder_ != null) {
+ nearObjectBuilder_.dispose();
+ nearObjectBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder getNearObjectBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getNearObjectFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder getNearObjectOrBuilder() {
+ if (nearObjectBuilder_ != null) {
+ return nearObjectBuilder_.getMessageOrBuilder();
+ } else {
+ return nearObject_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.getDefaultInstance() : nearObject_;
+ }
+ }
+ /**
+ * .weaviategrpc.NearObjectParams near_object = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder>
+ getNearObjectFieldBuilder() {
+ if (nearObjectBuilder_ == null) {
+ nearObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearObjectParamsOrBuilder>(
+ getNearObject(),
+ getParentForChildren(),
+ isClean());
+ nearObject_ = null;
+ }
+ return nearObjectBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.Properties properties_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder> propertiesBuilder_;
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ * @return Whether the properties field is set.
+ */
+ public boolean hasProperties() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ * @return The properties.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Properties getProperties() {
+ if (propertiesBuilder_ == null) {
+ return properties_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : properties_;
+ } else {
+ return propertiesBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ public Builder setProperties(io.weaviate.client.grpc.protocol.WeaviateProto.Properties value) {
+ if (propertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ properties_ = value;
+ } else {
+ propertiesBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ public Builder setProperties(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder builderForValue) {
+ if (propertiesBuilder_ == null) {
+ properties_ = builderForValue.build();
+ } else {
+ propertiesBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ public Builder mergeProperties(io.weaviate.client.grpc.protocol.WeaviateProto.Properties value) {
+ if (propertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ properties_ != null &&
+ properties_ != io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance()) {
+ getPropertiesBuilder().mergeFrom(value);
+ } else {
+ properties_ = value;
+ }
+ } else {
+ propertiesBuilder_.mergeFrom(value);
+ }
+ if (properties_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ public Builder clearProperties() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ properties_ = null;
+ if (propertiesBuilder_ != null) {
+ propertiesBuilder_.dispose();
+ propertiesBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder getPropertiesBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getPropertiesFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder getPropertiesOrBuilder() {
+ if (propertiesBuilder_ != null) {
+ return propertiesBuilder_.getMessageOrBuilder();
+ } else {
+ return properties_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance() : properties_;
+ }
+ }
+ /**
+ * .weaviategrpc.Properties properties = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder>
+ getPropertiesFieldBuilder() {
+ if (propertiesBuilder_ == null) {
+ propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder>(
+ getProperties(),
+ getParentForChildren(),
+ isClean());
+ properties_ = null;
+ }
+ return propertiesBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams hybridSearch_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder> hybridSearchBuilder_;
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ * @return Whether the hybridSearch field is set.
+ */
+ public boolean hasHybridSearch() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ * @return The hybridSearch.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getHybridSearch() {
+ if (hybridSearchBuilder_ == null) {
+ return hybridSearch_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance() : hybridSearch_;
+ } else {
+ return hybridSearchBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ public Builder setHybridSearch(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams value) {
+ if (hybridSearchBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ hybridSearch_ = value;
+ } else {
+ hybridSearchBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ public Builder setHybridSearch(
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder builderForValue) {
+ if (hybridSearchBuilder_ == null) {
+ hybridSearch_ = builderForValue.build();
+ } else {
+ hybridSearchBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ public Builder mergeHybridSearch(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams value) {
+ if (hybridSearchBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0) &&
+ hybridSearch_ != null &&
+ hybridSearch_ != io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance()) {
+ getHybridSearchBuilder().mergeFrom(value);
+ } else {
+ hybridSearch_ = value;
+ }
+ } else {
+ hybridSearchBuilder_.mergeFrom(value);
+ }
+ if (hybridSearch_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ public Builder clearHybridSearch() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ hybridSearch_ = null;
+ if (hybridSearchBuilder_ != null) {
+ hybridSearchBuilder_.dispose();
+ hybridSearchBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder getHybridSearchBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getHybridSearchFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder getHybridSearchOrBuilder() {
+ if (hybridSearchBuilder_ != null) {
+ return hybridSearchBuilder_.getMessageOrBuilder();
+ } else {
+ return hybridSearch_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance() : hybridSearch_;
+ }
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams hybrid_search = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder>
+ getHybridSearchFieldBuilder() {
+ if (hybridSearchBuilder_ == null) {
+ hybridSearchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder>(
+ getHybridSearch(),
+ getParentForChildren(),
+ isClean());
+ hybridSearch_ = null;
+ }
+ return hybridSearchBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams bm25Search_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder> bm25SearchBuilder_;
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ * @return Whether the bm25Search field is set.
+ */
+ public boolean hasBm25Search() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ * @return The bm25Search.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams getBm25Search() {
+ if (bm25SearchBuilder_ == null) {
+ return bm25Search_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance() : bm25Search_;
+ } else {
+ return bm25SearchBuilder_.getMessage();
+ }
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ public Builder setBm25Search(io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams value) {
+ if (bm25SearchBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bm25Search_ = value;
+ } else {
+ bm25SearchBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ public Builder setBm25Search(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder builderForValue) {
+ if (bm25SearchBuilder_ == null) {
+ bm25Search_ = builderForValue.build();
+ } else {
+ bm25SearchBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ public Builder mergeBm25Search(io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams value) {
+ if (bm25SearchBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0) &&
+ bm25Search_ != null &&
+ bm25Search_ != io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance()) {
+ getBm25SearchBuilder().mergeFrom(value);
+ } else {
+ bm25Search_ = value;
+ }
+ } else {
+ bm25SearchBuilder_.mergeFrom(value);
+ }
+ if (bm25Search_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ public Builder clearBm25Search() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ bm25Search_ = null;
+ if (bm25SearchBuilder_ != null) {
+ bm25SearchBuilder_.dispose();
+ bm25SearchBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder getBm25SearchBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getBm25SearchFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder getBm25SearchOrBuilder() {
+ if (bm25SearchBuilder_ != null) {
+ return bm25SearchBuilder_.getMessageOrBuilder();
+ } else {
+ return bm25Search_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.getDefaultInstance() : bm25Search_;
+ }
+ }
+ /**
+ * .weaviategrpc.BM25SearchParams bm25_search = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder>
+ getBm25SearchFieldBuilder() {
+ if (bm25SearchBuilder_ == null) {
+ bm25SearchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BM25SearchParamsOrBuilder>(
+ getBm25Search(),
+ getParentForChildren(),
+ isClean());
+ bm25Search_ = null;
+ }
+ return bm25SearchBuilder_;
+ }
+
+ private int offset_ ;
+ /**
+ * uint32 offset = 9;
+ * @return The offset.
+ */
+ @java.lang.Override
+ public int getOffset() {
+ return offset_;
+ }
+ /**
+ * uint32 offset = 9;
+ * @param value The offset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOffset(int value) {
+
+ offset_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 offset = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearOffset() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ offset_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int autocut_ ;
+ /**
+ * uint32 autocut = 10;
+ * @return The autocut.
+ */
+ @java.lang.Override
+ public int getAutocut() {
+ return autocut_;
+ }
+ /**
+ * uint32 autocut = 10;
+ * @param value The autocut to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutocut(int value) {
+
+ autocut_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 autocut = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearAutocut() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ autocut_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object after_ = "";
+ /**
+ * string after = 11;
+ * @return The after.
+ */
+ public java.lang.String getAfter() {
+ java.lang.Object ref = after_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ after_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string after = 11;
+ * @return The bytes for after.
+ */
+ public com.google.protobuf.ByteString
+ getAfterBytes() {
+ java.lang.Object ref = after_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ after_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string after = 11;
+ * @param value The after to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAfter(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ after_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * string after = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearAfter() {
+ after_ = getDefaultInstance().getAfter();
+ bitField0_ = (bitField0_ & ~0x00000400);
+ onChanged();
+ return this;
+ }
+ /**
+ * string after = 11;
+ * @param value The bytes for after to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAfterBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ after_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object tenant_ = "";
+ /**
+ * string tenant = 12;
+ * @return The tenant.
+ */
+ public java.lang.String getTenant() {
+ java.lang.Object ref = tenant_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ tenant_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string tenant = 12;
+ * @return The bytes for tenant.
+ */
+ public com.google.protobuf.ByteString
+ getTenantBytes() {
+ java.lang.Object ref = tenant_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ tenant_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string tenant = 12;
+ * @param value The tenant to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTenant(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ tenant_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ * string tenant = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearTenant() {
+ tenant_ = getDefaultInstance().getTenant();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ onChanged();
+ return this;
+ }
+ /**
+ * string tenant = 12;
+ * @param value The bytes for tenant to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTenantBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ tenant_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.Filters filters_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder> filtersBuilder_;
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ * @return Whether the filters field is set.
+ */
+ public boolean hasFilters() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ * @return The filters.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters() {
+ if (filtersBuilder_ == null) {
+ return filters_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance() : filters_;
+ } else {
+ return filtersBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ public Builder setFilters(io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) {
+ if (filtersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ filters_ = value;
+ } else {
+ filtersBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ public Builder setFilters(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder builderForValue) {
+ if (filtersBuilder_ == null) {
+ filters_ = builderForValue.build();
+ } else {
+ filtersBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ public Builder mergeFilters(io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) {
+ if (filtersBuilder_ == null) {
+ if (((bitField0_ & 0x00001000) != 0) &&
+ filters_ != null &&
+ filters_ != io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance()) {
+ getFiltersBuilder().mergeFrom(value);
+ } else {
+ filters_ = value;
+ }
+ } else {
+ filtersBuilder_.mergeFrom(value);
+ }
+ if (filters_ != null) {
+ bitField0_ |= 0x00001000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ public Builder clearFilters() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ filters_ = null;
+ if (filtersBuilder_ != null) {
+ filtersBuilder_.dispose();
+ filtersBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder getFiltersBuilder() {
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return getFiltersFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder() {
+ if (filtersBuilder_ != null) {
+ return filtersBuilder_.getMessageOrBuilder();
+ } else {
+ return filters_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance() : filters_;
+ }
+ }
+ /**
+ * optional .weaviategrpc.Filters filters = 13;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>
+ getFiltersFieldBuilder() {
+ if (filtersBuilder_ == null) {
+ filtersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>(
+ getFilters(),
+ getParentForChildren(),
+ isClean());
+ filters_ = null;
+ }
+ return filtersBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams nearText_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder> nearTextBuilder_;
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ * @return Whether the nearText field is set.
+ */
+ public boolean hasNearText() {
+ return ((bitField0_ & 0x00002000) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ * @return The nearText.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getNearText() {
+ if (nearTextBuilder_ == null) {
+ return nearText_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance() : nearText_;
+ } else {
+ return nearTextBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ public Builder setNearText(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams value) {
+ if (nearTextBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nearText_ = value;
+ } else {
+ nearTextBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ public Builder setNearText(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder builderForValue) {
+ if (nearTextBuilder_ == null) {
+ nearText_ = builderForValue.build();
+ } else {
+ nearTextBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ public Builder mergeNearText(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams value) {
+ if (nearTextBuilder_ == null) {
+ if (((bitField0_ & 0x00002000) != 0) &&
+ nearText_ != null &&
+ nearText_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance()) {
+ getNearTextBuilder().mergeFrom(value);
+ } else {
+ nearText_ = value;
+ }
+ } else {
+ nearTextBuilder_.mergeFrom(value);
+ }
+ if (nearText_ != null) {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ public Builder clearNearText() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ nearText_ = null;
+ if (nearTextBuilder_ != null) {
+ nearTextBuilder_.dispose();
+ nearTextBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder getNearTextBuilder() {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return getNearTextFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder getNearTextOrBuilder() {
+ if (nearTextBuilder_ != null) {
+ return nearTextBuilder_.getMessageOrBuilder();
+ } else {
+ return nearText_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance() : nearText_;
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams near_text = 14;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder>
+ getNearTextFieldBuilder() {
+ if (nearTextBuilder_ == null) {
+ nearTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder>(
+ getNearText(),
+ getParentForChildren(),
+ isClean());
+ nearText_ = null;
+ }
+ return nearTextBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams nearImage_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder> nearImageBuilder_;
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ * @return Whether the nearImage field is set.
+ */
+ public boolean hasNearImage() {
+ return ((bitField0_ & 0x00004000) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ * @return The nearImage.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getNearImage() {
+ if (nearImageBuilder_ == null) {
+ return nearImage_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance() : nearImage_;
+ } else {
+ return nearImageBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ public Builder setNearImage(io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams value) {
+ if (nearImageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nearImage_ = value;
+ } else {
+ nearImageBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ public Builder setNearImage(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder builderForValue) {
+ if (nearImageBuilder_ == null) {
+ nearImage_ = builderForValue.build();
+ } else {
+ nearImageBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ public Builder mergeNearImage(io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams value) {
+ if (nearImageBuilder_ == null) {
+ if (((bitField0_ & 0x00004000) != 0) &&
+ nearImage_ != null &&
+ nearImage_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance()) {
+ getNearImageBuilder().mergeFrom(value);
+ } else {
+ nearImage_ = value;
+ }
+ } else {
+ nearImageBuilder_.mergeFrom(value);
+ }
+ if (nearImage_ != null) {
+ bitField0_ |= 0x00004000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ public Builder clearNearImage() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ nearImage_ = null;
+ if (nearImageBuilder_ != null) {
+ nearImageBuilder_.dispose();
+ nearImageBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder getNearImageBuilder() {
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return getNearImageFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder getNearImageOrBuilder() {
+ if (nearImageBuilder_ != null) {
+ return nearImageBuilder_.getMessageOrBuilder();
+ } else {
+ return nearImage_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance() : nearImage_;
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearImageSearchParams near_image = 15;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder>
+ getNearImageFieldBuilder() {
+ if (nearImageBuilder_ == null) {
+ nearImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder>(
+ getNearImage(),
+ getParentForChildren(),
+ isClean());
+ nearImage_ = null;
+ }
+ return nearImageBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams nearAudio_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder> nearAudioBuilder_;
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ * @return Whether the nearAudio field is set.
+ */
+ public boolean hasNearAudio() {
+ return ((bitField0_ & 0x00008000) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ * @return The nearAudio.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getNearAudio() {
+ if (nearAudioBuilder_ == null) {
+ return nearAudio_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance() : nearAudio_;
+ } else {
+ return nearAudioBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ public Builder setNearAudio(io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams value) {
+ if (nearAudioBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nearAudio_ = value;
+ } else {
+ nearAudioBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ public Builder setNearAudio(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder builderForValue) {
+ if (nearAudioBuilder_ == null) {
+ nearAudio_ = builderForValue.build();
+ } else {
+ nearAudioBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ public Builder mergeNearAudio(io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams value) {
+ if (nearAudioBuilder_ == null) {
+ if (((bitField0_ & 0x00008000) != 0) &&
+ nearAudio_ != null &&
+ nearAudio_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance()) {
+ getNearAudioBuilder().mergeFrom(value);
+ } else {
+ nearAudio_ = value;
+ }
+ } else {
+ nearAudioBuilder_.mergeFrom(value);
+ }
+ if (nearAudio_ != null) {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ public Builder clearNearAudio() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ nearAudio_ = null;
+ if (nearAudioBuilder_ != null) {
+ nearAudioBuilder_.dispose();
+ nearAudioBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder getNearAudioBuilder() {
+ bitField0_ |= 0x00008000;
+ onChanged();
+ return getNearAudioFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder getNearAudioOrBuilder() {
+ if (nearAudioBuilder_ != null) {
+ return nearAudioBuilder_.getMessageOrBuilder();
+ } else {
+ return nearAudio_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance() : nearAudio_;
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearAudioSearchParams near_audio = 16;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder>
+ getNearAudioFieldBuilder() {
+ if (nearAudioBuilder_ == null) {
+ nearAudioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder>(
+ getNearAudio(),
+ getParentForChildren(),
+ isClean());
+ nearAudio_ = null;
+ }
+ return nearAudioBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams nearVideo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder> nearVideoBuilder_;
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ * @return Whether the nearVideo field is set.
+ */
+ public boolean hasNearVideo() {
+ return ((bitField0_ & 0x00010000) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ * @return The nearVideo.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getNearVideo() {
+ if (nearVideoBuilder_ == null) {
+ return nearVideo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance() : nearVideo_;
+ } else {
+ return nearVideoBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ public Builder setNearVideo(io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams value) {
+ if (nearVideoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nearVideo_ = value;
+ } else {
+ nearVideoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ public Builder setNearVideo(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder builderForValue) {
+ if (nearVideoBuilder_ == null) {
+ nearVideo_ = builderForValue.build();
+ } else {
+ nearVideoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ public Builder mergeNearVideo(io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams value) {
+ if (nearVideoBuilder_ == null) {
+ if (((bitField0_ & 0x00010000) != 0) &&
+ nearVideo_ != null &&
+ nearVideo_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance()) {
+ getNearVideoBuilder().mergeFrom(value);
+ } else {
+ nearVideo_ = value;
+ }
+ } else {
+ nearVideoBuilder_.mergeFrom(value);
+ }
+ if (nearVideo_ != null) {
+ bitField0_ |= 0x00010000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ public Builder clearNearVideo() {
+ bitField0_ = (bitField0_ & ~0x00010000);
+ nearVideo_ = null;
+ if (nearVideoBuilder_ != null) {
+ nearVideoBuilder_.dispose();
+ nearVideoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder getNearVideoBuilder() {
+ bitField0_ |= 0x00010000;
+ onChanged();
+ return getNearVideoFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder getNearVideoOrBuilder() {
+ if (nearVideoBuilder_ != null) {
+ return nearVideoBuilder_.getMessageOrBuilder();
+ } else {
+ return nearVideo_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance() : nearVideo_;
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearVideoSearchParams near_video = 17;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder>
+ getNearVideoFieldBuilder() {
+ if (nearVideoBuilder_ == null) {
+ nearVideoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder>(
+ getNearVideo(),
+ getParentForChildren(),
+ isClean());
+ nearVideo_ = null;
+ }
+ return nearVideoBuilder_;
+ }
+
+ private int consistencyLevel_ = 0;
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return Whether the consistencyLevel field is set.
+ */
+ @java.lang.Override public boolean hasConsistencyLevel() {
+ return ((bitField0_ & 0x00020000) != 0);
+ }
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return The enum numeric value on the wire for consistencyLevel.
+ */
+ @java.lang.Override public int getConsistencyLevelValue() {
+ return consistencyLevel_;
+ }
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @param value The enum numeric value on the wire for consistencyLevel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConsistencyLevelValue(int value) {
+ consistencyLevel_ = value;
+ bitField0_ |= 0x00020000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return The consistencyLevel.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel getConsistencyLevel() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel result = io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.forNumber(consistencyLevel_);
+ return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel.UNRECOGNIZED : result;
+ }
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @param value The consistencyLevel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConsistencyLevel(io.weaviate.client.grpc.protocol.WeaviateProto.ConsistencyLevel value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00020000;
+ consistencyLevel_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.ConsistencyLevel consistency_level = 18;
+ * @return This builder for chaining.
+ */
+ public Builder clearConsistencyLevel() {
+ bitField0_ = (bitField0_ & ~0x00020000);
+ consistencyLevel_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch generative_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder> generativeBuilder_;
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ * @return Whether the generative field is set.
+ */
+ public boolean hasGenerative() {
+ return ((bitField0_ & 0x00040000) != 0);
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ * @return The generative.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getGenerative() {
+ if (generativeBuilder_ == null) {
+ return generative_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance() : generative_;
+ } else {
+ return generativeBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ public Builder setGenerative(io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch value) {
+ if (generativeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ generative_ = value;
+ } else {
+ generativeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00040000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ public Builder setGenerative(
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder builderForValue) {
+ if (generativeBuilder_ == null) {
+ generative_ = builderForValue.build();
+ } else {
+ generativeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00040000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ public Builder mergeGenerative(io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch value) {
+ if (generativeBuilder_ == null) {
+ if (((bitField0_ & 0x00040000) != 0) &&
+ generative_ != null &&
+ generative_ != io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance()) {
+ getGenerativeBuilder().mergeFrom(value);
+ } else {
+ generative_ = value;
+ }
+ } else {
+ generativeBuilder_.mergeFrom(value);
+ }
+ if (generative_ != null) {
+ bitField0_ |= 0x00040000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ public Builder clearGenerative() {
+ bitField0_ = (bitField0_ & ~0x00040000);
+ generative_ = null;
+ if (generativeBuilder_ != null) {
+ generativeBuilder_.dispose();
+ generativeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder getGenerativeBuilder() {
+ bitField0_ |= 0x00040000;
+ onChanged();
+ return getGenerativeFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder getGenerativeOrBuilder() {
+ if (generativeBuilder_ != null) {
+ return generativeBuilder_.getMessageOrBuilder();
+ } else {
+ return generative_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance() : generative_;
+ }
+ }
+ /**
+ * optional .weaviategrpc.GenerativeSearch generative = 19;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder>
+ getGenerativeFieldBuilder() {
+ if (generativeBuilder_ == null) {
+ generativeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder>(
+ getGenerative(),
+ getParentForChildren(),
+ isClean());
+ generative_ = null;
+ }
+ return generativeBuilder_;
+ }
+ @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:weaviategrpc.SearchRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.SearchRequest)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.SearchRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SearchRequest 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.WeaviateProto.SearchRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GenerativeSearchOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.GenerativeSearch)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string single_response_prompt = 1;
+ * @return The singleResponsePrompt.
+ */
+ java.lang.String getSingleResponsePrompt();
+ /**
+ * string single_response_prompt = 1;
+ * @return The bytes for singleResponsePrompt.
+ */
+ com.google.protobuf.ByteString
+ getSingleResponsePromptBytes();
+
+ /**
+ * string grouped_response_task = 2;
+ * @return The groupedResponseTask.
+ */
+ java.lang.String getGroupedResponseTask();
+ /**
+ * string grouped_response_task = 2;
+ * @return The bytes for groupedResponseTask.
+ */
+ com.google.protobuf.ByteString
+ getGroupedResponseTaskBytes();
+
+ /**
+ * repeated string grouped_properties = 3;
+ * @return A list containing the groupedProperties.
+ */
+ java.util.List
+ getGroupedPropertiesList();
+ /**
+ * repeated string grouped_properties = 3;
+ * @return The count of groupedProperties.
+ */
+ int getGroupedPropertiesCount();
+ /**
+ * repeated string grouped_properties = 3;
+ * @param index The index of the element to return.
+ * @return The groupedProperties at the given index.
+ */
+ java.lang.String getGroupedProperties(int index);
+ /**
+ * repeated string grouped_properties = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the groupedProperties at the given index.
+ */
+ com.google.protobuf.ByteString
+ getGroupedPropertiesBytes(int index);
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.GenerativeSearch}
+ */
+ public static final class GenerativeSearch extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.GenerativeSearch)
+ GenerativeSearchOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerativeSearch.newBuilder() to construct.
+ private GenerativeSearch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GenerativeSearch() {
+ singleResponsePrompt_ = "";
+ groupedResponseTask_ = "";
+ groupedProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GenerativeSearch();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.class, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder.class);
+ }
+
+ public static final int SINGLE_RESPONSE_PROMPT_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object singleResponsePrompt_ = "";
+ /**
+ * string single_response_prompt = 1;
+ * @return The singleResponsePrompt.
+ */
+ @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;
+ }
+ }
+ /**
+ * string single_response_prompt = 1;
+ * @return The bytes for singleResponsePrompt.
+ */
+ @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 static final int GROUPED_RESPONSE_TASK_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object groupedResponseTask_ = "";
+ /**
+ * string grouped_response_task = 2;
+ * @return The groupedResponseTask.
+ */
+ @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;
+ }
+ }
+ /**
+ * string grouped_response_task = 2;
+ * @return The bytes for groupedResponseTask.
+ */
+ @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 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;
+ * @return A list containing the groupedProperties.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getGroupedPropertiesList() {
+ return groupedProperties_;
+ }
+ /**
+ * repeated string grouped_properties = 3;
+ * @return The count of groupedProperties.
+ */
+ public int getGroupedPropertiesCount() {
+ return groupedProperties_.size();
+ }
+ /**
+ * repeated string grouped_properties = 3;
+ * @param index The index of the element to return.
+ * @return The groupedProperties at the given index.
+ */
+ public java.lang.String getGroupedProperties(int index) {
+ return groupedProperties_.get(index);
+ }
+ /**
+ * repeated string grouped_properties = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the groupedProperties at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getGroupedPropertiesBytes(int index) {
+ return groupedProperties_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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));
+ }
+ 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();
+ }
+ 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.WeaviateProto.GenerativeSearch)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch other = (io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch) obj;
+
+ if (!getSingleResponsePrompt()
+ .equals(other.getSingleResponsePrompt())) return false;
+ if (!getGroupedResponseTask()
+ .equals(other.getGroupedResponseTask())) return false;
+ if (!getGroupedPropertiesList()
+ .equals(other.getGroupedPropertiesList())) 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();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.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.WeaviateProto.GenerativeSearch parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.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.WeaviateProto.GenerativeSearch parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.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.WeaviateProto.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.WeaviateProto.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.WeaviateProto.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.WeaviateProto.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.WeaviateProto.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.WeaviateProto.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.WeaviateProto.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 weaviategrpc.GenerativeSearch}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.GenerativeSearch)
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearchOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.class, io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ singleResponsePrompt_ = "";
+ groupedResponseTask_ = "";
+ groupedProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_GenerativeSearch_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch result = new io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.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_;
+ }
+ }
+
+ @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.WeaviateProto.GenerativeSearch) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.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();
+ }
+ 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
+ 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;
+ * @return The singleResponsePrompt.
+ */
+ 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;
+ * @return The bytes for singleResponsePrompt.
+ */
+ 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;
+ * @param value The singleResponsePrompt to set.
+ * @return This builder for chaining.
+ */
+ 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;
+ * @return This builder for chaining.
+ */
+ public Builder clearSingleResponsePrompt() {
+ singleResponsePrompt_ = getDefaultInstance().getSingleResponsePrompt();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string single_response_prompt = 1;
+ * @param value The bytes for singleResponsePrompt to set.
+ * @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;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object groupedResponseTask_ = "";
+ /**
+ * string grouped_response_task = 2;
+ * @return The groupedResponseTask.
+ */
+ 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;
+ * @return The bytes for groupedResponseTask.
+ */
+ 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;
+ * @param value The groupedResponseTask to set.
+ * @return This builder for chaining.
+ */
+ 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;
+ * @return This builder for chaining.
+ */
+ public Builder clearGroupedResponseTask() {
+ groupedResponseTask_ = getDefaultInstance().getGroupedResponseTask();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string grouped_response_task = 2;
+ * @param value The bytes for groupedResponseTask to set.
+ * @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;
+ 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;
+ * @return A list containing the groupedProperties.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getGroupedPropertiesList() {
+ groupedProperties_.makeImmutable();
+ return groupedProperties_;
+ }
+ /**
+ * repeated string grouped_properties = 3;
+ * @return The count of groupedProperties.
+ */
+ public int getGroupedPropertiesCount() {
+ return groupedProperties_.size();
+ }
+ /**
+ * repeated string grouped_properties = 3;
+ * @param index The index of the element to return.
+ * @return The groupedProperties at the given index.
+ */
+ public java.lang.String getGroupedProperties(int index) {
+ return groupedProperties_.get(index);
+ }
+ /**
+ * repeated string grouped_properties = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the groupedProperties at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getGroupedPropertiesBytes(int index) {
+ return groupedProperties_.getByteString(index);
+ }
+ /**
+ * repeated string grouped_properties = 3;
+ * @param index The index to set the value at.
+ * @param value The groupedProperties to set.
+ * @return This builder for chaining.
+ */
+ 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;
+ * @param value The groupedProperties to add.
+ * @return This builder for chaining.
+ */
+ 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;
+ * @param values The groupedProperties to add.
+ * @return This builder for chaining.
+ */
+ 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;
+ * @return This builder for chaining.
+ */
+ public Builder clearGroupedProperties() {
+ groupedProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string grouped_properties = 3;
+ * @param value The bytes of the groupedProperties to add.
+ * @return This builder for chaining.
+ */
+ 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;
+ }
+ @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:weaviategrpc.GenerativeSearch)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.GenerativeSearch)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.GenerativeSearch();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.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.WeaviateProto.GenerativeSearch getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TextArrayOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.TextArray)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated string values = 1;
+ * @return A list containing the values.
+ */
+ java.util.List
+ getValuesList();
+ /**
+ * repeated string values = 1;
+ * @return The count of values.
+ */
+ int getValuesCount();
+ /**
+ * repeated string values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ java.lang.String getValues(int index);
+ /**
+ * repeated string values = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ com.google.protobuf.ByteString
+ getValuesBytes(int index);
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.TextArray}
+ */
+ public static final class TextArray extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.TextArray)
+ TextArrayOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TextArray.newBuilder() to construct.
+ private TextArray(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private TextArray() {
+ values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new TextArray();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder.class);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string values = 1;
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getValuesList() {
+ return values_;
+ }
+ /**
+ * repeated string values = 1;
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated string values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * repeated string values = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getValuesBytes(int index) {
+ return values_.getByteString(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++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ 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.WeaviateProto.TextArray)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray other = (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) 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.WeaviateProto.TextArray parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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.WeaviateProto.TextArray parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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.WeaviateProto.TextArray parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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.WeaviateProto.TextArray parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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.WeaviateProto.TextArray parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray 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.WeaviateProto.TextArray 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.WeaviateProto.TextArray 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.WeaviateProto.TextArray 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 weaviategrpc.TextArray}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.TextArray)
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_TextArray_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray result = new io.weaviate.client.grpc.protocol.WeaviateProto.TextArray(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.TextArray result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ values_.makeImmutable();
+ result.values_ = values_;
+ }
+ }
+
+ @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.WeaviateProto.TextArray) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.TextArray)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.TextArray other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance()) return this;
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ 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: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureValuesIsMutable();
+ values_.add(s);
+ 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 com.google.protobuf.LazyStringArrayList values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureValuesIsMutable() {
+ if (!values_.isModifiable()) {
+ values_ = new com.google.protobuf.LazyStringArrayList(values_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ * repeated string values = 1;
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getValuesList() {
+ values_.makeImmutable();
+ return values_;
+ }
+ /**
+ * repeated string values = 1;
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated string values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * repeated string values = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+ /**
+ * repeated string values = 1;
+ * @param index The index to set the value at.
+ * @param value The values to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValues(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string values = 1;
+ * @param value The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValues(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureValuesIsMutable();
+ values_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string values = 1;
+ * @param values The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllValues(
+ java.lang.Iterable values) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, values_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string values = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearValues() {
+ values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string values = 1;
+ * @param value The bytes of the values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValuesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(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:weaviategrpc.TextArray)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.TextArray)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.TextArray DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.TextArray();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TextArray 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.WeaviateProto.TextArray getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface IntArrayOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.IntArray)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated int64 values = 1;
+ * @return A list containing the values.
+ */
+ java.util.List getValuesList();
+ /**
+ * repeated int64 values = 1;
+ * @return The count of values.
+ */
+ int getValuesCount();
+ /**
+ * repeated int64 values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ long getValues(int index);
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.IntArray}
+ */
+ public static final class IntArray extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.IntArray)
+ IntArrayOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IntArray.newBuilder() to construct.
+ private IntArray(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private IntArray() {
+ values_ = emptyLongList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new IntArray();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder.class);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.LongList values_ =
+ emptyLongList();
+ /**
+ * repeated int64 values = 1;
+ * @return A list containing the values.
+ */
+ @java.lang.Override
+ public java.util.List
+ getValuesList() {
+ return values_;
+ }
+ /**
+ * repeated int64 values = 1;
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated int64 values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public long getValues(int index) {
+ return values_.getLong(index);
+ }
+ private int valuesMemoizedSerializedSize = -1;
+
+ 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 {
+ getSerializedSize();
+ if (getValuesList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(valuesMemoizedSerializedSize);
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ output.writeInt64NoTag(values_.getLong(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeInt64SizeNoTag(values_.getLong(i));
+ }
+ size += dataSize;
+ if (!getValuesList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ valuesMemoizedSerializedSize = dataSize;
+ }
+ 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.WeaviateProto.IntArray)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray other = (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) 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.WeaviateProto.IntArray parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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.WeaviateProto.IntArray parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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.WeaviateProto.IntArray parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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.WeaviateProto.IntArray parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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.WeaviateProto.IntArray parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray 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.WeaviateProto.IntArray 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.WeaviateProto.IntArray 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.WeaviateProto.IntArray 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 weaviategrpc.IntArray}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.IntArray)
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ values_ = emptyLongList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_IntArray_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray result = new io.weaviate.client.grpc.protocol.WeaviateProto.IntArray(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.IntArray result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ values_.makeImmutable();
+ result.values_ = values_;
+ }
+ }
+
+ @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.WeaviateProto.IntArray) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.IntArray)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.IntArray other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance()) return this;
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ values_.makeImmutable();
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ 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 8: {
+ long v = input.readInt64();
+ ensureValuesIsMutable();
+ values_.addLong(v);
+ break;
+ } // case 8
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ ensureValuesIsMutable();
+ while (input.getBytesUntilLimit() > 0) {
+ values_.addLong(input.readInt64());
+ }
+ input.popLimit(limit);
+ 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 com.google.protobuf.Internal.LongList values_ = emptyLongList();
+ private void ensureValuesIsMutable() {
+ if (!values_.isModifiable()) {
+ values_ = makeMutableCopy(values_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ * repeated int64 values = 1;
+ * @return A list containing the values.
+ */
+ public java.util.List
+ getValuesList() {
+ values_.makeImmutable();
+ return values_;
+ }
+ /**
+ * repeated int64 values = 1;
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated int64 values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public long getValues(int index) {
+ return values_.getLong(index);
+ }
+ /**
+ * repeated int64 values = 1;
+ * @param index The index to set the value at.
+ * @param value The values to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValues(
+ int index, long value) {
+
+ ensureValuesIsMutable();
+ values_.setLong(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated int64 values = 1;
+ * @param value The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValues(long value) {
+
+ ensureValuesIsMutable();
+ values_.addLong(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated int64 values = 1;
+ * @param values The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllValues(
+ java.lang.Iterable extends java.lang.Long> values) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, values_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated int64 values = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearValues() {
+ values_ = emptyLongList();
+ bitField0_ = (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:weaviategrpc.IntArray)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.IntArray)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.IntArray DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.IntArray();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IntArray 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.WeaviateProto.IntArray getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface NumberArrayOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.NumberArray)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated double values = 1;
+ * @return A list containing the values.
+ */
+ java.util.List getValuesList();
+ /**
+ * repeated double values = 1;
+ * @return The count of values.
+ */
+ int getValuesCount();
+ /**
+ * repeated double values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ double getValues(int index);
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.NumberArray}
+ */
+ public static final class NumberArray extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.NumberArray)
+ NumberArrayOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NumberArray.newBuilder() to construct.
+ private NumberArray(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NumberArray() {
+ values_ = emptyDoubleList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new NumberArray();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder.class);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.DoubleList values_ =
+ emptyDoubleList();
+ /**
+ * repeated double values = 1;
+ * @return A list containing the values.
+ */
+ @java.lang.Override
+ public java.util.List
+ getValuesList() {
+ return values_;
+ }
+ /**
+ * repeated double values = 1;
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated double values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public double getValues(int index) {
+ return values_.getDouble(index);
+ }
+ private int valuesMemoizedSerializedSize = -1;
+
+ 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 {
+ getSerializedSize();
+ if (getValuesList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(valuesMemoizedSerializedSize);
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ output.writeDoubleNoTag(values_.getDouble(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ dataSize = 8 * getValuesList().size();
+ size += dataSize;
+ if (!getValuesList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ valuesMemoizedSerializedSize = dataSize;
+ }
+ 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.WeaviateProto.NumberArray)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray other = (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) 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.WeaviateProto.NumberArray parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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.WeaviateProto.NumberArray parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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.WeaviateProto.NumberArray parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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.WeaviateProto.NumberArray parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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.WeaviateProto.NumberArray parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray 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.WeaviateProto.NumberArray 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.WeaviateProto.NumberArray 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.WeaviateProto.NumberArray 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 weaviategrpc.NumberArray}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.NumberArray)
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ values_ = emptyDoubleList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NumberArray_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray result = new io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ values_.makeImmutable();
+ result.values_ = values_;
+ }
+ }
+
+ @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.WeaviateProto.NumberArray) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance()) return this;
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ values_.makeImmutable();
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ 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 9: {
+ double v = input.readDouble();
+ ensureValuesIsMutable();
+ values_.addDouble(v);
+ break;
+ } // case 9
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ int alloc = length > 4096 ? 4096 : length;
+ ensureValuesIsMutable(alloc / 8);
+ while (input.getBytesUntilLimit() > 0) {
+ values_.addDouble(input.readDouble());
+ }
+ input.popLimit(limit);
+ 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 com.google.protobuf.Internal.DoubleList values_ = emptyDoubleList();
+ private void ensureValuesIsMutable() {
+ if (!values_.isModifiable()) {
+ values_ = makeMutableCopy(values_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ private void ensureValuesIsMutable(int capacity) {
+ if (!values_.isModifiable()) {
+ values_ = makeMutableCopy(values_, capacity);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ * repeated double values = 1;
+ * @return A list containing the values.
+ */
+ public java.util.List
+ getValuesList() {
+ values_.makeImmutable();
+ return values_;
+ }
+ /**
+ * repeated double values = 1;
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated double values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public double getValues(int index) {
+ return values_.getDouble(index);
+ }
+ /**
+ * repeated double values = 1;
+ * @param index The index to set the value at.
+ * @param value The values to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValues(
+ int index, double value) {
+
+ ensureValuesIsMutable();
+ values_.setDouble(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated double values = 1;
+ * @param value The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValues(double value) {
+
+ ensureValuesIsMutable();
+ values_.addDouble(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated double values = 1;
+ * @param values The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllValues(
+ java.lang.Iterable extends java.lang.Double> values) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, values_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated double values = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearValues() {
+ values_ = emptyDoubleList();
+ bitField0_ = (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:weaviategrpc.NumberArray)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.NumberArray)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public NumberArray 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.WeaviateProto.NumberArray getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface BooleanArrayOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.BooleanArray)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated bool values = 1;
+ * @return A list containing the values.
+ */
+ java.util.List getValuesList();
+ /**
+ * repeated bool values = 1;
+ * @return The count of values.
+ */
+ int getValuesCount();
+ /**
+ * repeated bool values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ boolean getValues(int index);
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.BooleanArray}
+ */
+ public static final class BooleanArray extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.BooleanArray)
+ BooleanArrayOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BooleanArray.newBuilder() to construct.
+ private BooleanArray(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BooleanArray() {
+ values_ = emptyBooleanList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BooleanArray();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder.class);
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.BooleanList values_ =
+ emptyBooleanList();
+ /**
+ * repeated bool values = 1;
+ * @return A list containing the values.
+ */
+ @java.lang.Override
+ public java.util.List
+ getValuesList() {
+ return values_;
+ }
+ /**
+ * repeated bool values = 1;
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated bool values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public boolean getValues(int index) {
+ return values_.getBoolean(index);
+ }
+ private int valuesMemoizedSerializedSize = -1;
+
+ 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 {
+ getSerializedSize();
+ if (getValuesList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(valuesMemoizedSerializedSize);
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ output.writeBoolNoTag(values_.getBoolean(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ dataSize = 1 * getValuesList().size();
+ size += dataSize;
+ if (!getValuesList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ valuesMemoizedSerializedSize = dataSize;
+ }
+ 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.WeaviateProto.BooleanArray)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray other = (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) 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.WeaviateProto.BooleanArray parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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.WeaviateProto.BooleanArray parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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.WeaviateProto.BooleanArray parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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.WeaviateProto.BooleanArray parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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.WeaviateProto.BooleanArray parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray 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.WeaviateProto.BooleanArray 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.WeaviateProto.BooleanArray 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.WeaviateProto.BooleanArray 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 weaviategrpc.BooleanArray}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.BooleanArray)
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.class, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ values_ = emptyBooleanList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_BooleanArray_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray result = new io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ values_.makeImmutable();
+ result.values_ = values_;
+ }
+ }
+
+ @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.WeaviateProto.BooleanArray) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance()) return this;
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ values_.makeImmutable();
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ 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 8: {
+ boolean v = input.readBool();
+ ensureValuesIsMutable();
+ values_.addBoolean(v);
+ break;
+ } // case 8
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ int alloc = length > 4096 ? 4096 : length;
+ ensureValuesIsMutable(alloc / 1);
+ while (input.getBytesUntilLimit() > 0) {
+ values_.addBoolean(input.readBool());
+ }
+ input.popLimit(limit);
+ 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 com.google.protobuf.Internal.BooleanList values_ = emptyBooleanList();
+ private void ensureValuesIsMutable() {
+ if (!values_.isModifiable()) {
+ values_ = makeMutableCopy(values_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ private void ensureValuesIsMutable(int capacity) {
+ if (!values_.isModifiable()) {
+ values_ = makeMutableCopy(values_, capacity);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ * repeated bool values = 1;
+ * @return A list containing the values.
+ */
+ public java.util.List
+ getValuesList() {
+ values_.makeImmutable();
+ return values_;
+ }
+ /**
+ * repeated bool values = 1;
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated bool values = 1;
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public boolean getValues(int index) {
+ return values_.getBoolean(index);
+ }
+ /**
+ * repeated bool values = 1;
+ * @param index The index to set the value at.
+ * @param value The values to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValues(
+ int index, boolean value) {
+
+ ensureValuesIsMutable();
+ values_.setBoolean(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated bool values = 1;
+ * @param value The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValues(boolean value) {
+
+ ensureValuesIsMutable();
+ values_.addBoolean(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated bool values = 1;
+ * @param values The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllValues(
+ java.lang.Iterable extends java.lang.Boolean> values) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, values_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated bool values = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearValues() {
+ values_ = emptyBooleanList();
+ bitField0_ = (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:weaviategrpc.BooleanArray)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.BooleanArray)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BooleanArray 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.WeaviateProto.BooleanArray getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface FiltersOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.Filters)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @return The enum numeric value on the wire for operator.
+ */
+ int getOperatorValue();
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @return The operator.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator getOperator();
+
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @return A list containing the on.
+ */
+ java.util.List
+ getOnList();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @return The count of on.
+ */
+ int getOnCount();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param index The index of the element to return.
+ * @return The on at the given index.
+ */
+ java.lang.String getOn(int index);
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the on at the given index.
+ */
+ com.google.protobuf.ByteString
+ getOnBytes(int index);
+
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ java.util.List
+ getFiltersList();
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters(int index);
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ int getFiltersCount();
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>
+ getFiltersOrBuilderList();
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder(
+ int index);
+
+ /**
+ * string value_text = 4;
+ * @return Whether the valueText field is set.
+ */
+ boolean hasValueText();
+ /**
+ * string value_text = 4;
+ * @return The valueText.
+ */
+ java.lang.String getValueText();
+ /**
+ * string value_text = 4;
+ * @return The bytes for valueText.
+ */
+ com.google.protobuf.ByteString
+ getValueTextBytes();
+
+ /**
+ * int64 value_int = 5;
+ * @return Whether the valueInt field is set.
+ */
+ boolean hasValueInt();
+ /**
+ * int64 value_int = 5;
+ * @return The valueInt.
+ */
+ long getValueInt();
+
+ /**
+ * bool value_boolean = 6;
+ * @return Whether the valueBoolean field is set.
+ */
+ boolean hasValueBoolean();
+ /**
+ * bool value_boolean = 6;
+ * @return The valueBoolean.
+ */
+ boolean getValueBoolean();
+
+ /**
+ * float value_number = 7;
+ * @return Whether the valueNumber field is set.
+ */
+ boolean hasValueNumber();
+ /**
+ * float value_number = 7;
+ * @return The valueNumber.
+ */
+ float getValueNumber();
+
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ * @return Whether the valueTextArray field is set.
+ */
+ boolean hasValueTextArray();
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ * @return The valueTextArray.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getValueTextArray();
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder getValueTextArrayOrBuilder();
+
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ * @return Whether the valueIntArray field is set.
+ */
+ boolean hasValueIntArray();
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ * @return The valueIntArray.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getValueIntArray();
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder getValueIntArrayOrBuilder();
+
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ * @return Whether the valueBooleanArray field is set.
+ */
+ boolean hasValueBooleanArray();
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ * @return The valueBooleanArray.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getValueBooleanArray();
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder getValueBooleanArrayOrBuilder();
+
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ * @return Whether the valueNumberArray field is set.
+ */
+ boolean hasValueNumberArray();
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ * @return The valueNumberArray.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getValueNumberArray();
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder getValueNumberArrayOrBuilder();
+
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.TestValueCase getTestValueCase();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.Filters}
+ */
+ public static final class Filters extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.Filters)
+ FiltersOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Filters.newBuilder() to construct.
+ private Filters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Filters() {
+ operator_ = 0;
+ on_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ filters_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Filters();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.class, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code weaviategrpc.Filters.Operator}
+ */
+ public enum Operator
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * OPERATOR_UNSPECIFIED = 0;
+ */
+ OPERATOR_UNSPECIFIED(0),
+ /**
+ * OPERATOR_EQUAL = 1;
+ */
+ OPERATOR_EQUAL(1),
+ /**
+ * OPERATOR_NOT_EQUAL = 2;
+ */
+ OPERATOR_NOT_EQUAL(2),
+ /**
+ * OPERATOR_GREATER_THAN = 3;
+ */
+ OPERATOR_GREATER_THAN(3),
+ /**
+ * OPERATOR_GREATER_THAN_EQUAL = 4;
+ */
+ OPERATOR_GREATER_THAN_EQUAL(4),
+ /**
+ * OPERATOR_LESS_THAN = 5;
+ */
+ OPERATOR_LESS_THAN(5),
+ /**
+ * OPERATOR_LESS_THAN_EQUAL = 6;
+ */
+ OPERATOR_LESS_THAN_EQUAL(6),
+ /**
+ * OPERATOR_AND = 7;
+ */
+ OPERATOR_AND(7),
+ /**
+ * OPERATOR_OR = 8;
+ */
+ OPERATOR_OR(8),
+ /**
+ * OPERATOR_WITHIN_GEO_RANGE = 9;
+ */
+ OPERATOR_WITHIN_GEO_RANGE(9),
+ /**
+ * OPERATOR_LIKE = 10;
+ */
+ OPERATOR_LIKE(10),
+ /**
+ * OPERATOR_IS_NULL = 11;
+ */
+ OPERATOR_IS_NULL(11),
+ /**
+ * OPERATOR_CONTAINS_ANY = 12;
+ */
+ OPERATOR_CONTAINS_ANY(12),
+ /**
+ * OPERATOR_CONTAINS_ALL = 13;
+ */
+ OPERATOR_CONTAINS_ALL(13),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * OPERATOR_UNSPECIFIED = 0;
+ */
+ public static final int OPERATOR_UNSPECIFIED_VALUE = 0;
+ /**
+ * OPERATOR_EQUAL = 1;
+ */
+ public static final int OPERATOR_EQUAL_VALUE = 1;
+ /**
+ * OPERATOR_NOT_EQUAL = 2;
+ */
+ public static final int OPERATOR_NOT_EQUAL_VALUE = 2;
+ /**
+ * OPERATOR_GREATER_THAN = 3;
+ */
+ public static final int OPERATOR_GREATER_THAN_VALUE = 3;
+ /**
+ * OPERATOR_GREATER_THAN_EQUAL = 4;
+ */
+ public static final int OPERATOR_GREATER_THAN_EQUAL_VALUE = 4;
+ /**
+ * OPERATOR_LESS_THAN = 5;
+ */
+ public static final int OPERATOR_LESS_THAN_VALUE = 5;
+ /**
+ * OPERATOR_LESS_THAN_EQUAL = 6;
+ */
+ public static final int OPERATOR_LESS_THAN_EQUAL_VALUE = 6;
+ /**
+ * OPERATOR_AND = 7;
+ */
+ public static final int OPERATOR_AND_VALUE = 7;
+ /**
+ * OPERATOR_OR = 8;
+ */
+ public static final int OPERATOR_OR_VALUE = 8;
+ /**
+ * OPERATOR_WITHIN_GEO_RANGE = 9;
+ */
+ public static final int OPERATOR_WITHIN_GEO_RANGE_VALUE = 9;
+ /**
+ * OPERATOR_LIKE = 10;
+ */
+ public static final int OPERATOR_LIKE_VALUE = 10;
+ /**
+ * OPERATOR_IS_NULL = 11;
+ */
+ public static final int OPERATOR_IS_NULL_VALUE = 11;
+ /**
+ * OPERATOR_CONTAINS_ANY = 12;
+ */
+ public static final int OPERATOR_CONTAINS_ANY_VALUE = 12;
+ /**
+ * OPERATOR_CONTAINS_ALL = 13;
+ */
+ public static final int OPERATOR_CONTAINS_ALL_VALUE = 13;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Operator valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Operator forNumber(int value) {
+ switch (value) {
+ case 0: return OPERATOR_UNSPECIFIED;
+ case 1: return OPERATOR_EQUAL;
+ case 2: return OPERATOR_NOT_EQUAL;
+ case 3: return OPERATOR_GREATER_THAN;
+ case 4: return OPERATOR_GREATER_THAN_EQUAL;
+ case 5: return OPERATOR_LESS_THAN;
+ case 6: return OPERATOR_LESS_THAN_EQUAL;
+ case 7: return OPERATOR_AND;
+ case 8: return OPERATOR_OR;
+ case 9: return OPERATOR_WITHIN_GEO_RANGE;
+ case 10: return OPERATOR_LIKE;
+ case 11: return OPERATOR_IS_NULL;
+ case 12: return OPERATOR_CONTAINS_ANY;
+ case 13: return OPERATOR_CONTAINS_ALL;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Operator> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Operator findValueByNumber(int number) {
+ return Operator.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Operator[] VALUES = values();
+
+ public static Operator valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Operator(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:weaviategrpc.Filters.Operator)
+ }
+
+ private int testValueCase_ = 0;
+ @SuppressWarnings("serial")
+ private java.lang.Object testValue_;
+ public enum TestValueCase
+ implements com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ VALUE_TEXT(4),
+ VALUE_INT(5),
+ VALUE_BOOLEAN(6),
+ VALUE_NUMBER(7),
+ VALUE_TEXT_ARRAY(9),
+ VALUE_INT_ARRAY(10),
+ VALUE_BOOLEAN_ARRAY(11),
+ VALUE_NUMBER_ARRAY(12),
+ TESTVALUE_NOT_SET(0);
+ private final int value;
+ private TestValueCase(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 TestValueCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static TestValueCase forNumber(int value) {
+ switch (value) {
+ case 4: return VALUE_TEXT;
+ case 5: return VALUE_INT;
+ case 6: return VALUE_BOOLEAN;
+ case 7: return VALUE_NUMBER;
+ case 9: return VALUE_TEXT_ARRAY;
+ case 10: return VALUE_INT_ARRAY;
+ case 11: return VALUE_BOOLEAN_ARRAY;
+ case 12: return VALUE_NUMBER_ARRAY;
+ case 0: return TESTVALUE_NOT_SET;
+ default: return null;
+ }
+ }
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public TestValueCase
+ getTestValueCase() {
+ return TestValueCase.forNumber(
+ testValueCase_);
+ }
+
+ public static final int OPERATOR_FIELD_NUMBER = 1;
+ private int operator_ = 0;
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @return The enum numeric value on the wire for operator.
+ */
+ @java.lang.Override public int getOperatorValue() {
+ return operator_;
+ }
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @return The operator.
+ */
+ @java.lang.Override public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator getOperator() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator result = io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.forNumber(operator_);
+ return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.UNRECOGNIZED : result;
+ }
+
+ public static final int ON_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList on_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @return A list containing the on.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getOnList() {
+ return on_;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @return The count of on.
+ */
+ public int getOnCount() {
+ return on_.size();
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param index The index of the element to return.
+ * @return The on at the given index.
+ */
+ public java.lang.String getOn(int index) {
+ return on_.get(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the on at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getOnBytes(int index) {
+ return on_.getByteString(index);
+ }
+
+ public static final int FILTERS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List filters_;
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ @java.lang.Override
+ public java.util.List getFiltersList() {
+ return filters_;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>
+ getFiltersOrBuilderList() {
+ return filters_;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ @java.lang.Override
+ public int getFiltersCount() {
+ return filters_.size();
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters(int index) {
+ return filters_.get(index);
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder(
+ int index) {
+ return filters_.get(index);
+ }
+
+ public static final int VALUE_TEXT_FIELD_NUMBER = 4;
+ /**
+ * string value_text = 4;
+ * @return Whether the valueText field is set.
+ */
+ public boolean hasValueText() {
+ return testValueCase_ == 4;
+ }
+ /**
+ * string value_text = 4;
+ * @return The valueText.
+ */
+ public java.lang.String getValueText() {
+ java.lang.Object ref = "";
+ if (testValueCase_ == 4) {
+ ref = testValue_;
+ }
+ 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();
+ if (testValueCase_ == 4) {
+ testValue_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * string value_text = 4;
+ * @return The bytes for valueText.
+ */
+ public com.google.protobuf.ByteString
+ getValueTextBytes() {
+ java.lang.Object ref = "";
+ if (testValueCase_ == 4) {
+ ref = testValue_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ if (testValueCase_ == 4) {
+ testValue_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_INT_FIELD_NUMBER = 5;
+ /**
+ * int64 value_int = 5;
+ * @return Whether the valueInt field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueInt() {
+ return testValueCase_ == 5;
+ }
+ /**
+ * int64 value_int = 5;
+ * @return The valueInt.
+ */
+ @java.lang.Override
+ public long getValueInt() {
+ if (testValueCase_ == 5) {
+ return (java.lang.Long) testValue_;
+ }
+ return 0L;
+ }
+
+ public static final int VALUE_BOOLEAN_FIELD_NUMBER = 6;
+ /**
+ * bool value_boolean = 6;
+ * @return Whether the valueBoolean field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueBoolean() {
+ return testValueCase_ == 6;
+ }
+ /**
+ * bool value_boolean = 6;
+ * @return The valueBoolean.
+ */
+ @java.lang.Override
+ public boolean getValueBoolean() {
+ if (testValueCase_ == 6) {
+ return (java.lang.Boolean) testValue_;
+ }
+ return false;
+ }
+
+ public static final int VALUE_NUMBER_FIELD_NUMBER = 7;
+ /**
+ * float value_number = 7;
+ * @return Whether the valueNumber field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueNumber() {
+ return testValueCase_ == 7;
+ }
+ /**
+ * float value_number = 7;
+ * @return The valueNumber.
+ */
+ @java.lang.Override
+ public float getValueNumber() {
+ if (testValueCase_ == 7) {
+ return (java.lang.Float) testValue_;
+ }
+ return 0F;
+ }
+
+ public static final int VALUE_TEXT_ARRAY_FIELD_NUMBER = 9;
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ * @return Whether the valueTextArray field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueTextArray() {
+ return testValueCase_ == 9;
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ * @return The valueTextArray.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getValueTextArray() {
+ if (testValueCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance();
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder getValueTextArrayOrBuilder() {
+ if (testValueCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance();
+ }
+
+ public static final int VALUE_INT_ARRAY_FIELD_NUMBER = 10;
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ * @return Whether the valueIntArray field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueIntArray() {
+ return testValueCase_ == 10;
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ * @return The valueIntArray.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getValueIntArray() {
+ if (testValueCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance();
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder getValueIntArrayOrBuilder() {
+ if (testValueCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance();
+ }
+
+ public static final int VALUE_BOOLEAN_ARRAY_FIELD_NUMBER = 11;
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ * @return Whether the valueBooleanArray field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueBooleanArray() {
+ return testValueCase_ == 11;
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ * @return The valueBooleanArray.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getValueBooleanArray() {
+ if (testValueCase_ == 11) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance();
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder getValueBooleanArrayOrBuilder() {
+ if (testValueCase_ == 11) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance();
+ }
+
+ public static final int VALUE_NUMBER_ARRAY_FIELD_NUMBER = 12;
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ * @return Whether the valueNumberArray field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueNumberArray() {
+ return testValueCase_ == 12;
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ * @return The valueNumberArray.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getValueNumberArray() {
+ if (testValueCase_ == 12) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance();
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder getValueNumberArrayOrBuilder() {
+ if (testValueCase_ == 12) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.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 (operator_ != io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.OPERATOR_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, operator_);
+ }
+ for (int i = 0; i < on_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, on_.getRaw(i));
+ }
+ for (int i = 0; i < filters_.size(); i++) {
+ output.writeMessage(3, filters_.get(i));
+ }
+ if (testValueCase_ == 4) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, testValue_);
+ }
+ if (testValueCase_ == 5) {
+ output.writeInt64(
+ 5, (long)((java.lang.Long) testValue_));
+ }
+ if (testValueCase_ == 6) {
+ output.writeBool(
+ 6, (boolean)((java.lang.Boolean) testValue_));
+ }
+ if (testValueCase_ == 7) {
+ output.writeFloat(
+ 7, (float)((java.lang.Float) testValue_));
+ }
+ if (testValueCase_ == 9) {
+ output.writeMessage(9, (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_);
+ }
+ if (testValueCase_ == 10) {
+ output.writeMessage(10, (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_);
+ }
+ if (testValueCase_ == 11) {
+ output.writeMessage(11, (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_);
+ }
+ if (testValueCase_ == 12) {
+ output.writeMessage(12, (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (operator_ != io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.OPERATOR_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, operator_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < on_.size(); i++) {
+ dataSize += computeStringSizeNoTag(on_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getOnList().size();
+ }
+ for (int i = 0; i < filters_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, filters_.get(i));
+ }
+ if (testValueCase_ == 4) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, testValue_);
+ }
+ if (testValueCase_ == 5) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(
+ 5, (long)((java.lang.Long) testValue_));
+ }
+ if (testValueCase_ == 6) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(
+ 6, (boolean)((java.lang.Boolean) testValue_));
+ }
+ if (testValueCase_ == 7) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(
+ 7, (float)((java.lang.Float) testValue_));
+ }
+ if (testValueCase_ == 9) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_);
+ }
+ if (testValueCase_ == 10) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_);
+ }
+ if (testValueCase_ == 11) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(11, (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_);
+ }
+ if (testValueCase_ == 12) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(12, (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_);
+ }
+ 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.WeaviateProto.Filters)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters other = (io.weaviate.client.grpc.protocol.WeaviateProto.Filters) obj;
+
+ if (operator_ != other.operator_) return false;
+ if (!getOnList()
+ .equals(other.getOnList())) return false;
+ if (!getFiltersList()
+ .equals(other.getFiltersList())) return false;
+ if (!getTestValueCase().equals(other.getTestValueCase())) return false;
+ switch (testValueCase_) {
+ case 4:
+ if (!getValueText()
+ .equals(other.getValueText())) return false;
+ break;
+ case 5:
+ if (getValueInt()
+ != other.getValueInt()) return false;
+ break;
+ case 6:
+ if (getValueBoolean()
+ != other.getValueBoolean()) return false;
+ break;
+ case 7:
+ if (java.lang.Float.floatToIntBits(getValueNumber())
+ != java.lang.Float.floatToIntBits(
+ other.getValueNumber())) return false;
+ break;
+ case 9:
+ if (!getValueTextArray()
+ .equals(other.getValueTextArray())) return false;
+ break;
+ case 10:
+ if (!getValueIntArray()
+ .equals(other.getValueIntArray())) return false;
+ break;
+ case 11:
+ if (!getValueBooleanArray()
+ .equals(other.getValueBooleanArray())) return false;
+ break;
+ case 12:
+ if (!getValueNumberArray()
+ .equals(other.getValueNumberArray())) 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) + OPERATOR_FIELD_NUMBER;
+ hash = (53 * hash) + operator_;
+ if (getOnCount() > 0) {
+ hash = (37 * hash) + ON_FIELD_NUMBER;
+ hash = (53 * hash) + getOnList().hashCode();
+ }
+ if (getFiltersCount() > 0) {
+ hash = (37 * hash) + FILTERS_FIELD_NUMBER;
+ hash = (53 * hash) + getFiltersList().hashCode();
+ }
+ switch (testValueCase_) {
+ case 4:
+ hash = (37 * hash) + VALUE_TEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getValueText().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + VALUE_INT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getValueInt());
+ break;
+ case 6:
+ hash = (37 * hash) + VALUE_BOOLEAN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getValueBoolean());
+ break;
+ case 7:
+ hash = (37 * hash) + VALUE_NUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getValueNumber());
+ break;
+ case 9:
+ hash = (37 * hash) + VALUE_TEXT_ARRAY_FIELD_NUMBER;
+ hash = (53 * hash) + getValueTextArray().hashCode();
+ break;
+ case 10:
+ hash = (37 * hash) + VALUE_INT_ARRAY_FIELD_NUMBER;
+ hash = (53 * hash) + getValueIntArray().hashCode();
+ break;
+ case 11:
+ hash = (37 * hash) + VALUE_BOOLEAN_ARRAY_FIELD_NUMBER;
+ hash = (53 * hash) + getValueBooleanArray().hashCode();
+ break;
+ case 12:
+ hash = (37 * hash) + VALUE_NUMBER_ARRAY_FIELD_NUMBER;
+ hash = (53 * hash) + getValueNumberArray().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters 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.WeaviateProto.Filters parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters 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.WeaviateProto.Filters parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters 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.WeaviateProto.Filters parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters 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.WeaviateProto.Filters parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters 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.WeaviateProto.Filters 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.WeaviateProto.Filters 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.WeaviateProto.Filters 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 weaviategrpc.Filters}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.Filters)
+ io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.class, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.Filters.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ operator_ = 0;
+ on_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ if (filtersBuilder_ == null) {
+ filters_ = java.util.Collections.emptyList();
+ } else {
+ filters_ = null;
+ filtersBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ if (valueTextArrayBuilder_ != null) {
+ valueTextArrayBuilder_.clear();
+ }
+ if (valueIntArrayBuilder_ != null) {
+ valueIntArrayBuilder_.clear();
+ }
+ if (valueBooleanArrayBuilder_ != null) {
+ valueBooleanArrayBuilder_.clear();
+ }
+ if (valueNumberArrayBuilder_ != null) {
+ valueNumberArrayBuilder_.clear();
+ }
+ testValueCase_ = 0;
+ testValue_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Filters_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters result = new io.weaviate.client.grpc.protocol.WeaviateProto.Filters(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.Filters result) {
+ if (filtersBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ filters_ = java.util.Collections.unmodifiableList(filters_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.filters_ = filters_;
+ } else {
+ result.filters_ = filtersBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.Filters result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.operator_ = operator_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ on_.makeImmutable();
+ result.on_ = on_;
+ }
+ }
+
+ private void buildPartialOneofs(io.weaviate.client.grpc.protocol.WeaviateProto.Filters result) {
+ result.testValueCase_ = testValueCase_;
+ result.testValue_ = this.testValue_;
+ if (testValueCase_ == 9 &&
+ valueTextArrayBuilder_ != null) {
+ result.testValue_ = valueTextArrayBuilder_.build();
+ }
+ if (testValueCase_ == 10 &&
+ valueIntArrayBuilder_ != null) {
+ result.testValue_ = valueIntArrayBuilder_.build();
+ }
+ if (testValueCase_ == 11 &&
+ valueBooleanArrayBuilder_ != null) {
+ result.testValue_ = valueBooleanArrayBuilder_.build();
+ }
+ if (testValueCase_ == 12 &&
+ valueNumberArrayBuilder_ != null) {
+ result.testValue_ = valueNumberArrayBuilder_.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.WeaviateProto.Filters) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.Filters)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.Filters other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance()) return this;
+ if (other.operator_ != 0) {
+ setOperatorValue(other.getOperatorValue());
+ }
+ if (!other.on_.isEmpty()) {
+ if (on_.isEmpty()) {
+ on_ = other.on_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureOnIsMutable();
+ on_.addAll(other.on_);
+ }
+ onChanged();
+ }
+ if (filtersBuilder_ == null) {
+ if (!other.filters_.isEmpty()) {
+ if (filters_.isEmpty()) {
+ filters_ = other.filters_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureFiltersIsMutable();
+ filters_.addAll(other.filters_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.filters_.isEmpty()) {
+ if (filtersBuilder_.isEmpty()) {
+ filtersBuilder_.dispose();
+ filtersBuilder_ = null;
+ filters_ = other.filters_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ filtersBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getFiltersFieldBuilder() : null;
+ } else {
+ filtersBuilder_.addAllMessages(other.filters_);
+ }
+ }
+ }
+ switch (other.getTestValueCase()) {
+ case VALUE_TEXT: {
+ testValueCase_ = 4;
+ testValue_ = other.testValue_;
+ onChanged();
+ break;
+ }
+ case VALUE_INT: {
+ setValueInt(other.getValueInt());
+ break;
+ }
+ case VALUE_BOOLEAN: {
+ setValueBoolean(other.getValueBoolean());
+ break;
+ }
+ case VALUE_NUMBER: {
+ setValueNumber(other.getValueNumber());
+ break;
+ }
+ case VALUE_TEXT_ARRAY: {
+ mergeValueTextArray(other.getValueTextArray());
+ break;
+ }
+ case VALUE_INT_ARRAY: {
+ mergeValueIntArray(other.getValueIntArray());
+ break;
+ }
+ case VALUE_BOOLEAN_ARRAY: {
+ mergeValueBooleanArray(other.getValueBooleanArray());
+ break;
+ }
+ case VALUE_NUMBER_ARRAY: {
+ mergeValueNumberArray(other.getValueNumberArray());
+ break;
+ }
+ case TESTVALUE_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: {
+ operator_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureOnIsMutable();
+ on_.add(s);
+ break;
+ } // case 18
+ case 26: {
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters m =
+ input.readMessage(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.parser(),
+ extensionRegistry);
+ if (filtersBuilder_ == null) {
+ ensureFiltersIsMutable();
+ filters_.add(m);
+ } else {
+ filtersBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+ testValueCase_ = 4;
+ testValue_ = s;
+ break;
+ } // case 34
+ case 40: {
+ testValue_ = input.readInt64();
+ testValueCase_ = 5;
+ break;
+ } // case 40
+ case 48: {
+ testValue_ = input.readBool();
+ testValueCase_ = 6;
+ break;
+ } // case 48
+ case 61: {
+ testValue_ = input.readFloat();
+ testValueCase_ = 7;
+ break;
+ } // case 61
+ case 74: {
+ input.readMessage(
+ getValueTextArrayFieldBuilder().getBuilder(),
+ extensionRegistry);
+ testValueCase_ = 9;
+ break;
+ } // case 74
+ case 82: {
+ input.readMessage(
+ getValueIntArrayFieldBuilder().getBuilder(),
+ extensionRegistry);
+ testValueCase_ = 10;
+ break;
+ } // case 82
+ case 90: {
+ input.readMessage(
+ getValueBooleanArrayFieldBuilder().getBuilder(),
+ extensionRegistry);
+ testValueCase_ = 11;
+ break;
+ } // case 90
+ case 98: {
+ input.readMessage(
+ getValueNumberArrayFieldBuilder().getBuilder(),
+ extensionRegistry);
+ testValueCase_ = 12;
+ break;
+ } // case 98
+ 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 testValueCase_ = 0;
+ private java.lang.Object testValue_;
+ public TestValueCase
+ getTestValueCase() {
+ return TestValueCase.forNumber(
+ testValueCase_);
+ }
+
+ public Builder clearTestValue() {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int operator_ = 0;
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @return The enum numeric value on the wire for operator.
+ */
+ @java.lang.Override public int getOperatorValue() {
+ return operator_;
+ }
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @param value The enum numeric value on the wire for operator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOperatorValue(int value) {
+ operator_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @return The operator.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator getOperator() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator result = io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.forNumber(operator_);
+ return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator.UNRECOGNIZED : result;
+ }
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @param value The operator to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOperator(io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Operator value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ operator_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.Filters.Operator operator = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearOperator() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ operator_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList on_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureOnIsMutable() {
+ if (!on_.isModifiable()) {
+ on_ = new com.google.protobuf.LazyStringArrayList(on_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @return A list containing the on.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getOnList() {
+ on_.makeImmutable();
+ return on_;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @return The count of on.
+ */
+ public int getOnCount() {
+ return on_.size();
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param index The index of the element to return.
+ * @return The on at the given index.
+ */
+ public java.lang.String getOn(int index) {
+ return on_.get(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the on at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getOnBytes(int index) {
+ return on_.getByteString(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param index The index to set the value at.
+ * @param value The on to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOn(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureOnIsMutable();
+ on_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param value The on to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOn(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureOnIsMutable();
+ on_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param values The on to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllOn(
+ java.lang.Iterable values) {
+ ensureOnIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, on_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearOn() {
+ on_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string on = 2;
+ * @param value The bytes of the on to add.
+ * @return This builder for chaining.
+ */
+ public Builder addOnBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureOnIsMutable();
+ on_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List filters_ =
+ java.util.Collections.emptyList();
+ private void ensureFiltersIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ filters_ = new java.util.ArrayList(filters_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder> filtersBuilder_;
+
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public java.util.List getFiltersList() {
+ if (filtersBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(filters_);
+ } else {
+ return filtersBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public int getFiltersCount() {
+ if (filtersBuilder_ == null) {
+ return filters_.size();
+ } else {
+ return filtersBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters getFilters(int index) {
+ if (filtersBuilder_ == null) {
+ return filters_.get(index);
+ } else {
+ return filtersBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder setFilters(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) {
+ if (filtersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFiltersIsMutable();
+ filters_.set(index, value);
+ onChanged();
+ } else {
+ filtersBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder setFilters(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder builderForValue) {
+ if (filtersBuilder_ == null) {
+ ensureFiltersIsMutable();
+ filters_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ filtersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder addFilters(io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) {
+ if (filtersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFiltersIsMutable();
+ filters_.add(value);
+ onChanged();
+ } else {
+ filtersBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder addFilters(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters value) {
+ if (filtersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFiltersIsMutable();
+ filters_.add(index, value);
+ onChanged();
+ } else {
+ filtersBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder addFilters(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder builderForValue) {
+ if (filtersBuilder_ == null) {
+ ensureFiltersIsMutable();
+ filters_.add(builderForValue.build());
+ onChanged();
+ } else {
+ filtersBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder addFilters(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder builderForValue) {
+ if (filtersBuilder_ == null) {
+ ensureFiltersIsMutable();
+ filters_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ filtersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder addAllFilters(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.Filters> values) {
+ if (filtersBuilder_ == null) {
+ ensureFiltersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, filters_);
+ onChanged();
+ } else {
+ filtersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder clearFilters() {
+ if (filtersBuilder_ == null) {
+ filters_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ filtersBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public Builder removeFilters(int index) {
+ if (filtersBuilder_ == null) {
+ ensureFiltersIsMutable();
+ filters_.remove(index);
+ onChanged();
+ } else {
+ filtersBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder getFiltersBuilder(
+ int index) {
+ return getFiltersFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder getFiltersOrBuilder(
+ int index) {
+ if (filtersBuilder_ == null) {
+ return filters_.get(index); } else {
+ return filtersBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>
+ getFiltersOrBuilderList() {
+ if (filtersBuilder_ != null) {
+ return filtersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(filters_);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder addFiltersBuilder() {
+ return getFiltersFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder addFiltersBuilder(
+ int index) {
+ return getFiltersFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.Filters filters = 3;
+ */
+ public java.util.List
+ getFiltersBuilderList() {
+ return getFiltersFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>
+ getFiltersFieldBuilder() {
+ if (filtersBuilder_ == null) {
+ filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.Filters, io.weaviate.client.grpc.protocol.WeaviateProto.Filters.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.FiltersOrBuilder>(
+ filters_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ filters_ = null;
+ }
+ return filtersBuilder_;
+ }
+
+ /**
+ * string value_text = 4;
+ * @return Whether the valueText field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueText() {
+ return testValueCase_ == 4;
+ }
+ /**
+ * string value_text = 4;
+ * @return The valueText.
+ */
+ @java.lang.Override
+ public java.lang.String getValueText() {
+ java.lang.Object ref = "";
+ if (testValueCase_ == 4) {
+ ref = testValue_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (testValueCase_ == 4) {
+ testValue_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string value_text = 4;
+ * @return The bytes for valueText.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getValueTextBytes() {
+ java.lang.Object ref = "";
+ if (testValueCase_ == 4) {
+ ref = testValue_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ if (testValueCase_ == 4) {
+ testValue_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string value_text = 4;
+ * @param value The valueText to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueText(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ testValueCase_ = 4;
+ testValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string value_text = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearValueText() {
+ if (testValueCase_ == 4) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * string value_text = 4;
+ * @param value The bytes for valueText to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueTextBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ testValueCase_ = 4;
+ testValue_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * int64 value_int = 5;
+ * @return Whether the valueInt field is set.
+ */
+ public boolean hasValueInt() {
+ return testValueCase_ == 5;
+ }
+ /**
+ * int64 value_int = 5;
+ * @return The valueInt.
+ */
+ public long getValueInt() {
+ if (testValueCase_ == 5) {
+ return (java.lang.Long) testValue_;
+ }
+ return 0L;
+ }
+ /**
+ * int64 value_int = 5;
+ * @param value The valueInt to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueInt(long value) {
+
+ testValueCase_ = 5;
+ testValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 value_int = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearValueInt() {
+ if (testValueCase_ == 5) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ * bool value_boolean = 6;
+ * @return Whether the valueBoolean field is set.
+ */
+ public boolean hasValueBoolean() {
+ return testValueCase_ == 6;
+ }
+ /**
+ * bool value_boolean = 6;
+ * @return The valueBoolean.
+ */
+ public boolean getValueBoolean() {
+ if (testValueCase_ == 6) {
+ return (java.lang.Boolean) testValue_;
+ }
+ return false;
+ }
+ /**
+ * bool value_boolean = 6;
+ * @param value The valueBoolean to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueBoolean(boolean value) {
+
+ testValueCase_ = 6;
+ testValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool value_boolean = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearValueBoolean() {
+ if (testValueCase_ == 6) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ * float value_number = 7;
+ * @return Whether the valueNumber field is set.
+ */
+ public boolean hasValueNumber() {
+ return testValueCase_ == 7;
+ }
+ /**
+ * float value_number = 7;
+ * @return The valueNumber.
+ */
+ public float getValueNumber() {
+ if (testValueCase_ == 7) {
+ return (java.lang.Float) testValue_;
+ }
+ return 0F;
+ }
+ /**
+ * float value_number = 7;
+ * @param value The valueNumber to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueNumber(float value) {
+
+ testValueCase_ = 7;
+ testValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float value_number = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearValueNumber() {
+ if (testValueCase_ == 7) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder> valueTextArrayBuilder_;
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ * @return Whether the valueTextArray field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueTextArray() {
+ return testValueCase_ == 9;
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ * @return The valueTextArray.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray getValueTextArray() {
+ if (valueTextArrayBuilder_ == null) {
+ if (testValueCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance();
+ } else {
+ if (testValueCase_ == 9) {
+ return valueTextArrayBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ public Builder setValueTextArray(io.weaviate.client.grpc.protocol.WeaviateProto.TextArray value) {
+ if (valueTextArrayBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ testValue_ = value;
+ onChanged();
+ } else {
+ valueTextArrayBuilder_.setMessage(value);
+ }
+ testValueCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ public Builder setValueTextArray(
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder builderForValue) {
+ if (valueTextArrayBuilder_ == null) {
+ testValue_ = builderForValue.build();
+ onChanged();
+ } else {
+ valueTextArrayBuilder_.setMessage(builderForValue.build());
+ }
+ testValueCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ public Builder mergeValueTextArray(io.weaviate.client.grpc.protocol.WeaviateProto.TextArray value) {
+ if (valueTextArrayBuilder_ == null) {
+ if (testValueCase_ == 9 &&
+ testValue_ != io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance()) {
+ testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.newBuilder((io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ testValue_ = value;
+ }
+ onChanged();
+ } else {
+ if (testValueCase_ == 9) {
+ valueTextArrayBuilder_.mergeFrom(value);
+ } else {
+ valueTextArrayBuilder_.setMessage(value);
+ }
+ }
+ testValueCase_ = 9;
+ return this;
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ public Builder clearValueTextArray() {
+ if (valueTextArrayBuilder_ == null) {
+ if (testValueCase_ == 9) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ }
+ } else {
+ if (testValueCase_ == 9) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ }
+ valueTextArrayBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder getValueTextArrayBuilder() {
+ return getValueTextArrayFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder getValueTextArrayOrBuilder() {
+ if ((testValueCase_ == 9) && (valueTextArrayBuilder_ != null)) {
+ return valueTextArrayBuilder_.getMessageOrBuilder();
+ } else {
+ if (testValueCase_ == 9) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviategrpc.TextArray value_text_array = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder>
+ getValueTextArrayFieldBuilder() {
+ if (valueTextArrayBuilder_ == null) {
+ if (!(testValueCase_ == 9)) {
+ testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.getDefaultInstance();
+ }
+ valueTextArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.TextArray, io.weaviate.client.grpc.protocol.WeaviateProto.TextArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.TextArrayOrBuilder>(
+ (io.weaviate.client.grpc.protocol.WeaviateProto.TextArray) testValue_,
+ getParentForChildren(),
+ isClean());
+ testValue_ = null;
+ }
+ testValueCase_ = 9;
+ onChanged();
+ return valueTextArrayBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder> valueIntArrayBuilder_;
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ * @return Whether the valueIntArray field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueIntArray() {
+ return testValueCase_ == 10;
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ * @return The valueIntArray.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray getValueIntArray() {
+ if (valueIntArrayBuilder_ == null) {
+ if (testValueCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance();
+ } else {
+ if (testValueCase_ == 10) {
+ return valueIntArrayBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ public Builder setValueIntArray(io.weaviate.client.grpc.protocol.WeaviateProto.IntArray value) {
+ if (valueIntArrayBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ testValue_ = value;
+ onChanged();
+ } else {
+ valueIntArrayBuilder_.setMessage(value);
+ }
+ testValueCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ public Builder setValueIntArray(
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder builderForValue) {
+ if (valueIntArrayBuilder_ == null) {
+ testValue_ = builderForValue.build();
+ onChanged();
+ } else {
+ valueIntArrayBuilder_.setMessage(builderForValue.build());
+ }
+ testValueCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ public Builder mergeValueIntArray(io.weaviate.client.grpc.protocol.WeaviateProto.IntArray value) {
+ if (valueIntArrayBuilder_ == null) {
+ if (testValueCase_ == 10 &&
+ testValue_ != io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance()) {
+ testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.newBuilder((io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ testValue_ = value;
+ }
+ onChanged();
+ } else {
+ if (testValueCase_ == 10) {
+ valueIntArrayBuilder_.mergeFrom(value);
+ } else {
+ valueIntArrayBuilder_.setMessage(value);
+ }
+ }
+ testValueCase_ = 10;
+ return this;
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ public Builder clearValueIntArray() {
+ if (valueIntArrayBuilder_ == null) {
+ if (testValueCase_ == 10) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ }
+ } else {
+ if (testValueCase_ == 10) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ }
+ valueIntArrayBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder getValueIntArrayBuilder() {
+ return getValueIntArrayFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder getValueIntArrayOrBuilder() {
+ if ((testValueCase_ == 10) && (valueIntArrayBuilder_ != null)) {
+ return valueIntArrayBuilder_.getMessageOrBuilder();
+ } else {
+ if (testValueCase_ == 10) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviategrpc.IntArray value_int_array = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder>
+ getValueIntArrayFieldBuilder() {
+ if (valueIntArrayBuilder_ == null) {
+ if (!(testValueCase_ == 10)) {
+ testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.getDefaultInstance();
+ }
+ valueIntArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.IntArray, io.weaviate.client.grpc.protocol.WeaviateProto.IntArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.IntArrayOrBuilder>(
+ (io.weaviate.client.grpc.protocol.WeaviateProto.IntArray) testValue_,
+ getParentForChildren(),
+ isClean());
+ testValue_ = null;
+ }
+ testValueCase_ = 10;
+ onChanged();
+ return valueIntArrayBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder> valueBooleanArrayBuilder_;
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ * @return Whether the valueBooleanArray field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueBooleanArray() {
+ return testValueCase_ == 11;
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ * @return The valueBooleanArray.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray getValueBooleanArray() {
+ if (valueBooleanArrayBuilder_ == null) {
+ if (testValueCase_ == 11) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance();
+ } else {
+ if (testValueCase_ == 11) {
+ return valueBooleanArrayBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ public Builder setValueBooleanArray(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray value) {
+ if (valueBooleanArrayBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ testValue_ = value;
+ onChanged();
+ } else {
+ valueBooleanArrayBuilder_.setMessage(value);
+ }
+ testValueCase_ = 11;
+ return this;
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ public Builder setValueBooleanArray(
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder builderForValue) {
+ if (valueBooleanArrayBuilder_ == null) {
+ testValue_ = builderForValue.build();
+ onChanged();
+ } else {
+ valueBooleanArrayBuilder_.setMessage(builderForValue.build());
+ }
+ testValueCase_ = 11;
+ return this;
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ public Builder mergeValueBooleanArray(io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray value) {
+ if (valueBooleanArrayBuilder_ == null) {
+ if (testValueCase_ == 11 &&
+ testValue_ != io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance()) {
+ testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.newBuilder((io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ testValue_ = value;
+ }
+ onChanged();
+ } else {
+ if (testValueCase_ == 11) {
+ valueBooleanArrayBuilder_.mergeFrom(value);
+ } else {
+ valueBooleanArrayBuilder_.setMessage(value);
+ }
+ }
+ testValueCase_ = 11;
+ return this;
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ public Builder clearValueBooleanArray() {
+ if (valueBooleanArrayBuilder_ == null) {
+ if (testValueCase_ == 11) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ }
+ } else {
+ if (testValueCase_ == 11) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ }
+ valueBooleanArrayBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder getValueBooleanArrayBuilder() {
+ return getValueBooleanArrayFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder getValueBooleanArrayOrBuilder() {
+ if ((testValueCase_ == 11) && (valueBooleanArrayBuilder_ != null)) {
+ return valueBooleanArrayBuilder_.getMessageOrBuilder();
+ } else {
+ if (testValueCase_ == 11) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviategrpc.BooleanArray value_boolean_array = 11;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder>
+ getValueBooleanArrayFieldBuilder() {
+ if (valueBooleanArrayBuilder_ == null) {
+ if (!(testValueCase_ == 11)) {
+ testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.getDefaultInstance();
+ }
+ valueBooleanArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArrayOrBuilder>(
+ (io.weaviate.client.grpc.protocol.WeaviateProto.BooleanArray) testValue_,
+ getParentForChildren(),
+ isClean());
+ testValue_ = null;
+ }
+ testValueCase_ = 11;
+ onChanged();
+ return valueBooleanArrayBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder> valueNumberArrayBuilder_;
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ * @return Whether the valueNumberArray field is set.
+ */
+ @java.lang.Override
+ public boolean hasValueNumberArray() {
+ return testValueCase_ == 12;
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ * @return The valueNumberArray.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray getValueNumberArray() {
+ if (valueNumberArrayBuilder_ == null) {
+ if (testValueCase_ == 12) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance();
+ } else {
+ if (testValueCase_ == 12) {
+ return valueNumberArrayBuilder_.getMessage();
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ public Builder setValueNumberArray(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray value) {
+ if (valueNumberArrayBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ testValue_ = value;
+ onChanged();
+ } else {
+ valueNumberArrayBuilder_.setMessage(value);
+ }
+ testValueCase_ = 12;
+ return this;
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ public Builder setValueNumberArray(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder builderForValue) {
+ if (valueNumberArrayBuilder_ == null) {
+ testValue_ = builderForValue.build();
+ onChanged();
+ } else {
+ valueNumberArrayBuilder_.setMessage(builderForValue.build());
+ }
+ testValueCase_ = 12;
+ return this;
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ public Builder mergeValueNumberArray(io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray value) {
+ if (valueNumberArrayBuilder_ == null) {
+ if (testValueCase_ == 12 &&
+ testValue_ != io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance()) {
+ testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.newBuilder((io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ testValue_ = value;
+ }
+ onChanged();
+ } else {
+ if (testValueCase_ == 12) {
+ valueNumberArrayBuilder_.mergeFrom(value);
+ } else {
+ valueNumberArrayBuilder_.setMessage(value);
+ }
+ }
+ testValueCase_ = 12;
+ return this;
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ public Builder clearValueNumberArray() {
+ if (valueNumberArrayBuilder_ == null) {
+ if (testValueCase_ == 12) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ onChanged();
+ }
+ } else {
+ if (testValueCase_ == 12) {
+ testValueCase_ = 0;
+ testValue_ = null;
+ }
+ valueNumberArrayBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder getValueNumberArrayBuilder() {
+ return getValueNumberArrayFieldBuilder().getBuilder();
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder getValueNumberArrayOrBuilder() {
+ if ((testValueCase_ == 12) && (valueNumberArrayBuilder_ != null)) {
+ return valueNumberArrayBuilder_.getMessageOrBuilder();
+ } else {
+ if (testValueCase_ == 12) {
+ return (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_;
+ }
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance();
+ }
+ }
+ /**
+ * .weaviategrpc.NumberArray value_number_array = 12;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder>
+ getValueNumberArrayFieldBuilder() {
+ if (valueNumberArrayBuilder_ == null) {
+ if (!(testValueCase_ == 12)) {
+ testValue_ = io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.getDefaultInstance();
+ }
+ valueNumberArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NumberArrayOrBuilder>(
+ (io.weaviate.client.grpc.protocol.WeaviateProto.NumberArray) testValue_,
+ getParentForChildren(),
+ isClean());
+ testValue_ = null;
+ }
+ testValueCase_ = 12;
+ onChanged();
+ return valueNumberArrayBuilder_;
+ }
+ @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:weaviategrpc.Filters)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.Filters)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.Filters DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.Filters();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Filters getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Filters 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.WeaviateProto.Filters getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface AdditionalPropertiesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.AdditionalProperties)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool uuid = 1;
+ * @return The uuid.
+ */
+ boolean getUuid();
+
+ /**
+ * bool vector = 2;
+ * @return The vector.
+ */
+ boolean getVector();
+
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool creationTimeUnix = 3;
+ * @return The creationTimeUnix.
+ */
+ boolean getCreationTimeUnix();
+
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool lastUpdateTimeUnix = 4;
+ * @return The lastUpdateTimeUnix.
+ */
+ boolean getLastUpdateTimeUnix();
+
+ /**
+ * bool distance = 5;
+ * @return The distance.
+ */
+ boolean getDistance();
+
+ /**
+ * bool certainty = 6;
+ * @return The certainty.
+ */
+ boolean getCertainty();
+
+ /**
+ * bool score = 7;
+ * @return The score.
+ */
+ boolean getScore();
+
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool explainScore = 8;
+ * @return The explainScore.
+ */
+ boolean getExplainScore();
+
+ /**
+ * bool is_consistent = 9;
+ * @return The isConsistent.
+ */
+ boolean getIsConsistent();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.AdditionalProperties}
+ */
+ public static final class AdditionalProperties extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.AdditionalProperties)
+ AdditionalPropertiesOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AdditionalProperties.newBuilder() to construct.
+ private AdditionalProperties(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private AdditionalProperties() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new AdditionalProperties();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder.class);
+ }
+
+ public static final int UUID_FIELD_NUMBER = 1;
+ private boolean uuid_ = false;
+ /**
+ * bool uuid = 1;
+ * @return The uuid.
+ */
+ @java.lang.Override
+ public boolean getUuid() {
+ return uuid_;
+ }
+
+ public static final int VECTOR_FIELD_NUMBER = 2;
+ private boolean vector_ = false;
+ /**
+ * bool vector = 2;
+ * @return The vector.
+ */
+ @java.lang.Override
+ public boolean getVector() {
+ return vector_;
+ }
+
+ public static final int CREATIONTIMEUNIX_FIELD_NUMBER = 3;
+ private boolean creationTimeUnix_ = false;
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool creationTimeUnix = 3;
+ * @return The creationTimeUnix.
+ */
+ @java.lang.Override
+ public boolean getCreationTimeUnix() {
+ return creationTimeUnix_;
+ }
+
+ public static final int LASTUPDATETIMEUNIX_FIELD_NUMBER = 4;
+ private boolean lastUpdateTimeUnix_ = false;
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool lastUpdateTimeUnix = 4;
+ * @return The lastUpdateTimeUnix.
+ */
+ @java.lang.Override
+ 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 EXPLAINSCORE_FIELD_NUMBER = 8;
+ private boolean explainScore_ = false;
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool explainScore = 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_;
+ }
+
+ 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 (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_);
+ }
+ if (explainScore_ != false) {
+ output.writeBool(8, explainScore_);
+ }
+ if (isConsistent_ != false) {
+ output.writeBool(9, isConsistent_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ 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_);
+ }
+ 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_);
+ }
+ 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.WeaviateProto.AdditionalProperties)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties other = (io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties) 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 (!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) + 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) + CREATIONTIMEUNIX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCreationTimeUnix());
+ hash = (37 * hash) + LASTUPDATETIMEUNIX_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) + EXPLAINSCORE_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());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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.WeaviateProto.AdditionalProperties parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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.WeaviateProto.AdditionalProperties parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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.WeaviateProto.AdditionalProperties parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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.WeaviateProto.AdditionalProperties parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties 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.WeaviateProto.AdditionalProperties 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.WeaviateProto.AdditionalProperties 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.WeaviateProto.AdditionalProperties 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 weaviategrpc.AdditionalProperties}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.AdditionalProperties)
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalPropertiesOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.class, io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ 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;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_AdditionalProperties_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties result = new io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.uuid_ = uuid_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.vector_ = vector_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ 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_;
+ }
+ }
+
+ @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.WeaviateProto.AdditionalProperties) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties.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());
+ }
+ 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: {
+ uuid_ = input.readBool();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ vector_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // 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
+ 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 boolean uuid_ ;
+ /**
+ * bool uuid = 1;
+ * @return The uuid.
+ */
+ @java.lang.Override
+ public boolean getUuid() {
+ return uuid_;
+ }
+ /**
+ * bool uuid = 1;
+ * @param value The uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuid(boolean value) {
+
+ uuid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool uuid = 1;
+ * @return This builder for chaining.
+ */
+ 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_;
+ }
+ /**
+ * bool vector = 2;
+ * @param value The vector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVector(boolean value) {
+
+ vector_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool vector = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearVector() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ vector_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean creationTimeUnix_ ;
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool creationTimeUnix = 3;
+ * @return The creationTimeUnix.
+ */
+ @java.lang.Override
+ public boolean getCreationTimeUnix() {
+ return creationTimeUnix_;
+ }
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool creationTimeUnix = 3;
+ * @param value The creationTimeUnix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCreationTimeUnix(boolean value) {
+
+ creationTimeUnix_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool creationTimeUnix = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCreationTimeUnix() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ creationTimeUnix_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean lastUpdateTimeUnix_ ;
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool lastUpdateTimeUnix = 4;
+ * @return The lastUpdateTimeUnix.
+ */
+ @java.lang.Override
+ public boolean getLastUpdateTimeUnix() {
+ return lastUpdateTimeUnix_;
+ }
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool lastUpdateTimeUnix = 4;
+ * @param value The lastUpdateTimeUnix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLastUpdateTimeUnix(boolean value) {
+
+ lastUpdateTimeUnix_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool lastUpdateTimeUnix = 4;
+ * @return This builder for chaining.
+ */
+ 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_ ;
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool explainScore = 8;
+ * @return The explainScore.
+ */
+ @java.lang.Override
+ public boolean getExplainScore() {
+ return explainScore_;
+ }
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool explainScore = 8;
+ * @param value The explainScore to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExplainScore(boolean value) {
+
+ explainScore_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next FIELD_NAMES_LOWER_SNAKE_CASE
+ *
+ *
+ * bool explainScore = 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;
+ }
+ @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:weaviategrpc.AdditionalProperties)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.AdditionalProperties)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.AdditionalProperties getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AdditionalProperties 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.WeaviateProto.AdditionalProperties getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PropertiesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.Properties)
+ 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.
+ */
+ java.lang.String getNonRefProperties(int 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.
+ */
+ com.google.protobuf.ByteString
+ getNonRefPropertiesBytes(int index);
+
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ java.util.List
+ getRefPropertiesList();
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getRefProperties(int index);
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ int getRefPropertiesCount();
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder>
+ getRefPropertiesOrBuilderList();
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder getRefPropertiesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.Properties}
+ */
+ public static final class Properties extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.Properties)
+ PropertiesOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Properties.newBuilder() to construct.
+ private Properties(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Properties() {
+ nonRefProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ refProperties_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Properties();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties.class, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder.class);
+ }
+
+ public static final int NON_REF_PROPERTIES_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();
+ }
+ /**
+ * 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 REF_PROPERTIES_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private java.util.List refProperties_;
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ @java.lang.Override
+ public java.util.List getRefPropertiesList() {
+ return refProperties_;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder>
+ getRefPropertiesOrBuilderList() {
+ return refProperties_;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ @java.lang.Override
+ public int getRefPropertiesCount() {
+ return refProperties_.size();
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getRefProperties(int index) {
+ return refProperties_.get(index);
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder getRefPropertiesOrBuilder(
+ int index) {
+ return refProperties_.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 < nonRefProperties_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nonRefProperties_.getRaw(i));
+ }
+ for (int i = 0; i < refProperties_.size(); i++) {
+ output.writeMessage(2, refProperties_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < nonRefProperties_.size(); i++) {
+ dataSize += computeStringSizeNoTag(nonRefProperties_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getNonRefPropertiesList().size();
+ }
+ for (int i = 0; i < refProperties_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, refProperties_.get(i));
+ }
+ size += 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.WeaviateProto.Properties)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties other = (io.weaviate.client.grpc.protocol.WeaviateProto.Properties) obj;
+
+ if (!getNonRefPropertiesList()
+ .equals(other.getNonRefPropertiesList())) return false;
+ if (!getRefPropertiesList()
+ .equals(other.getRefPropertiesList())) 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 (getNonRefPropertiesCount() > 0) {
+ hash = (37 * hash) + NON_REF_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getNonRefPropertiesList().hashCode();
+ }
+ if (getRefPropertiesCount() > 0) {
+ hash = (37 * hash) + REF_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getRefPropertiesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties 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.WeaviateProto.Properties parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties 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.WeaviateProto.Properties parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties 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.WeaviateProto.Properties parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties 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.WeaviateProto.Properties parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties 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.WeaviateProto.Properties 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.WeaviateProto.Properties 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.WeaviateProto.Properties 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 weaviategrpc.Properties}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.Properties)
+ io.weaviate.client.grpc.protocol.WeaviateProto.PropertiesOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties.class, io.weaviate.client.grpc.protocol.WeaviateProto.Properties.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.Properties.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ nonRefProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ if (refPropertiesBuilder_ == null) {
+ refProperties_ = java.util.Collections.emptyList();
+ } else {
+ refProperties_ = null;
+ refPropertiesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_Properties_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Properties getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Properties build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.Properties buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.Properties result = new io.weaviate.client.grpc.protocol.WeaviateProto.Properties(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(io.weaviate.client.grpc.protocol.WeaviateProto.Properties result) {
+ if (refPropertiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ refProperties_ = java.util.Collections.unmodifiableList(refProperties_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.refProperties_ = refProperties_;
+ } else {
+ result.refProperties_ = refPropertiesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.Properties result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ nonRefProperties_.makeImmutable();
+ result.nonRefProperties_ = nonRefProperties_;
+ }
+ }
+
+ @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.WeaviateProto.Properties) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.Properties)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.Properties other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.Properties.getDefaultInstance()) return this;
+ if (!other.nonRefProperties_.isEmpty()) {
+ if (nonRefProperties_.isEmpty()) {
+ nonRefProperties_ = other.nonRefProperties_;
+ bitField0_ |= 0x00000001;
+ } else {
+ 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_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureNonRefPropertiesIsMutable();
+ nonRefProperties_.add(s);
+ break;
+ } // case 10
+ case 18: {
+ io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties m =
+ input.readMessage(
+ io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.parser(),
+ extensionRegistry);
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(m);
+ } else {
+ refPropertiesBuilder_.addMessage(m);
+ }
+ 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 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;
+ }
+ /**
+ * repeated string non_ref_properties = 1;
+ * @return A list containing the nonRefProperties.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getNonRefPropertiesList() {
+ nonRefProperties_.makeImmutable();
+ return nonRefProperties_;
+ }
+ /**
+ * repeated string non_ref_properties = 1;
+ * @return The count of nonRefProperties.
+ */
+ 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);
+ }
+ /**
+ * 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 setNonRefProperties(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureNonRefPropertiesIsMutable();
+ nonRefProperties_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string non_ref_properties = 1;
+ * @param value The nonRefProperties to add.
+ * @return This builder for chaining.
+ */
+ public Builder addNonRefProperties(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureNonRefPropertiesIsMutable();
+ nonRefProperties_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string non_ref_properties = 1;
+ * @param values The nonRefProperties to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllNonRefProperties(
+ java.lang.Iterable values) {
+ ensureNonRefPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, nonRefProperties_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string non_ref_properties = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearNonRefProperties() {
+ nonRefProperties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string non_ref_properties = 1;
+ * @param value The bytes of the nonRefProperties to add.
+ * @return This builder for chaining.
+ */
+ 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 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.WeaviateProto.RefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder> refPropertiesBuilder_;
+
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public java.util.List getRefPropertiesList() {
+ if (refPropertiesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(refProperties_);
+ } else {
+ return refPropertiesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public int getRefPropertiesCount() {
+ if (refPropertiesBuilder_ == null) {
+ return refProperties_.size();
+ } else {
+ return refPropertiesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties getRefProperties(int index) {
+ if (refPropertiesBuilder_ == null) {
+ return refProperties_.get(index);
+ } else {
+ return refPropertiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder setRefProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties value) {
+ if (refPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropertiesIsMutable();
+ refProperties_.set(index, value);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder setRefProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder builderForValue) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ refPropertiesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder addRefProperties(io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties value) {
+ if (refPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(value);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder addRefProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties value) {
+ if (refPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(index, value);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder addRefProperties(
+ io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder builderForValue) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(builderForValue.build());
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder addRefProperties(
+ int index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder builderForValue) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder addAllRefProperties(
+ java.lang.Iterable extends io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties> values) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, refProperties_);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder clearRefProperties() {
+ if (refPropertiesBuilder_ == null) {
+ refProperties_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public Builder removeRefProperties(int index) {
+ if (refPropertiesBuilder_ == null) {
+ ensureRefPropertiesIsMutable();
+ refProperties_.remove(index);
+ onChanged();
+ } else {
+ refPropertiesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder getRefPropertiesBuilder(
+ int index) {
+ return getRefPropertiesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder getRefPropertiesOrBuilder(
+ int index) {
+ if (refPropertiesBuilder_ == null) {
+ return refProperties_.get(index); } else {
+ return refPropertiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public java.util.List extends io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder>
+ getRefPropertiesOrBuilderList() {
+ if (refPropertiesBuilder_ != null) {
+ return refPropertiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(refProperties_);
+ }
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder addRefPropertiesBuilder() {
+ return getRefPropertiesFieldBuilder().addBuilder(
+ io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder addRefPropertiesBuilder(
+ int index) {
+ return getRefPropertiesFieldBuilder().addBuilder(
+ index, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.getDefaultInstance());
+ }
+ /**
+ * repeated .weaviategrpc.RefProperties ref_properties = 2;
+ */
+ public java.util.List
+ getRefPropertiesBuilderList() {
+ return getRefPropertiesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder>
+ getRefPropertiesFieldBuilder() {
+ if (refPropertiesBuilder_ == null) {
+ refPropertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties, io.weaviate.client.grpc.protocol.WeaviateProto.RefProperties.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.RefPropertiesOrBuilder>(
+ refProperties_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ refProperties_ = null;
+ }
+ return refPropertiesBuilder_;
+ }
+ @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:weaviategrpc.Properties)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.Properties)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.Properties DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.Properties();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.Properties getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Properties 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.WeaviateProto.Properties getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HybridSearchParamsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.HybridSearchParams)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string query = 1;
+ * @return The query.
+ */
+ java.lang.String getQuery();
+ /**
+ * string query = 1;
+ * @return The bytes for query.
+ */
+ com.google.protobuf.ByteString
+ getQueryBytes();
+
+ /**
+ * repeated string properties = 2;
+ * @return A list containing the properties.
+ */
+ java.util.List
+ getPropertiesList();
+ /**
+ * repeated string properties = 2;
+ * @return The count of properties.
+ */
+ int getPropertiesCount();
+ /**
+ * repeated string properties = 2;
+ * @param index The index of the element to return.
+ * @return The properties at the given index.
+ */
+ java.lang.String getProperties(int index);
+ /**
+ * repeated string properties = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the properties at the given index.
+ */
+ com.google.protobuf.ByteString
+ getPropertiesBytes(int index);
+
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @return A list containing the vector.
+ */
+ java.util.List getVectorList();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @return The count of vector.
+ */
+ int getVectorCount();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @param index The index of the element to return.
+ * @return The vector at the given index.
+ */
+ float getVector(int index);
+
+ /**
+ * float alpha = 4;
+ * @return The alpha.
+ */
+ float getAlpha();
+
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @return The enum numeric value on the wire for fusionType.
+ */
+ int getFusionTypeValue();
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @return The fusionType.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType getFusionType();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.HybridSearchParams}
+ */
+ public static final class HybridSearchParams extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.HybridSearchParams)
+ HybridSearchParamsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HybridSearchParams.newBuilder() to construct.
+ private HybridSearchParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private HybridSearchParams() {
+ query_ = "";
+ properties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ vector_ = emptyFloatList();
+ fusionType_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new HybridSearchParams();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code weaviategrpc.HybridSearchParams.FusionType}
+ */
+ public enum FusionType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * FUSION_TYPE_UNSPECIFIED = 0;
+ */
+ FUSION_TYPE_UNSPECIFIED(0),
+ /**
+ * FUSION_TYPE_RANKED = 1;
+ */
+ FUSION_TYPE_RANKED(1),
+ /**
+ * FUSION_TYPE_RELATIVE_SCORE = 2;
+ */
+ FUSION_TYPE_RELATIVE_SCORE(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * FUSION_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int FUSION_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ * FUSION_TYPE_RANKED = 1;
+ */
+ public static final int FUSION_TYPE_RANKED_VALUE = 1;
+ /**
+ * FUSION_TYPE_RELATIVE_SCORE = 2;
+ */
+ public static final int FUSION_TYPE_RELATIVE_SCORE_VALUE = 2;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static FusionType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static FusionType forNumber(int value) {
+ switch (value) {
+ case 0: return FUSION_TYPE_UNSPECIFIED;
+ case 1: return FUSION_TYPE_RANKED;
+ case 2: return FUSION_TYPE_RELATIVE_SCORE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ FusionType> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public FusionType findValueByNumber(int number) {
+ return FusionType.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final FusionType[] VALUES = values();
+
+ public static FusionType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private FusionType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:weaviategrpc.HybridSearchParams.FusionType)
+ }
+
+ public static final int QUERY_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object query_ = "";
+ /**
+ * string query = 1;
+ * @return The query.
+ */
+ @java.lang.Override
+ public java.lang.String getQuery() {
+ java.lang.Object ref = query_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ query_ = s;
+ return s;
+ }
+ }
+ /**
+ * string query = 1;
+ * @return The bytes for query.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getQueryBytes() {
+ java.lang.Object ref = query_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ query_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROPERTIES_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList properties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string properties = 2;
+ * @return A list containing the properties.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getPropertiesList() {
+ return properties_;
+ }
+ /**
+ * repeated string properties = 2;
+ * @return The count of properties.
+ */
+ public int getPropertiesCount() {
+ return properties_.size();
+ }
+ /**
+ * repeated string properties = 2;
+ * @param index The index of the element to return.
+ * @return The properties at the given index.
+ */
+ public java.lang.String getProperties(int index) {
+ return properties_.get(index);
+ }
+ /**
+ * repeated string properties = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the properties at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getPropertiesBytes(int index) {
+ return properties_.getByteString(index);
+ }
+
+ public static final int VECTOR_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.FloatList vector_ =
+ emptyFloatList();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @return A list containing the vector.
+ */
+ @java.lang.Override
+ public java.util.List
+ getVectorList() {
+ return vector_;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @return The count of vector.
+ */
+ public int getVectorCount() {
+ return vector_.size();
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @param index The index of the element to return.
+ * @return The vector at the given index.
+ */
+ public float getVector(int index) {
+ return vector_.getFloat(index);
+ }
+ private int vectorMemoizedSerializedSize = -1;
+
+ public static final int ALPHA_FIELD_NUMBER = 4;
+ private float alpha_ = 0F;
+ /**
+ * float alpha = 4;
+ * @return The alpha.
+ */
+ @java.lang.Override
+ public float getAlpha() {
+ return alpha_;
+ }
+
+ public static final int FUSION_TYPE_FIELD_NUMBER = 5;
+ private int fusionType_ = 0;
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @return The enum numeric value on the wire for fusionType.
+ */
+ @java.lang.Override public int getFusionTypeValue() {
+ return fusionType_;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @return The fusionType.
+ */
+ @java.lang.Override public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType getFusionType() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType result = io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.forNumber(fusionType_);
+ return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_);
+ }
+ for (int i = 0; i < properties_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, properties_.getRaw(i));
+ }
+ if (getVectorList().size() > 0) {
+ output.writeUInt32NoTag(26);
+ output.writeUInt32NoTag(vectorMemoizedSerializedSize);
+ }
+ for (int i = 0; i < vector_.size(); i++) {
+ output.writeFloatNoTag(vector_.getFloat(i));
+ }
+ if (java.lang.Float.floatToRawIntBits(alpha_) != 0) {
+ output.writeFloat(4, alpha_);
+ }
+ if (fusionType_ != io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.FUSION_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(5, fusionType_);
+ }
+ 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(query_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < properties_.size(); i++) {
+ dataSize += computeStringSizeNoTag(properties_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getPropertiesList().size();
+ }
+ {
+ int dataSize = 0;
+ dataSize = 4 * getVectorList().size();
+ size += dataSize;
+ if (!getVectorList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ vectorMemoizedSerializedSize = dataSize;
+ }
+ if (java.lang.Float.floatToRawIntBits(alpha_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(4, alpha_);
+ }
+ if (fusionType_ != io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.FUSION_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(5, fusionType_);
+ }
+ 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.WeaviateProto.HybridSearchParams)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams) obj;
+
+ if (!getQuery()
+ .equals(other.getQuery())) return false;
+ if (!getPropertiesList()
+ .equals(other.getPropertiesList())) return false;
+ if (!getVectorList()
+ .equals(other.getVectorList())) return false;
+ if (java.lang.Float.floatToIntBits(getAlpha())
+ != java.lang.Float.floatToIntBits(
+ other.getAlpha())) return false;
+ if (fusionType_ != other.fusionType_) 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) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQuery().hashCode();
+ if (getPropertiesCount() > 0) {
+ hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getPropertiesList().hashCode();
+ }
+ if (getVectorCount() > 0) {
+ hash = (37 * hash) + VECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getVectorList().hashCode();
+ }
+ hash = (37 * hash) + ALPHA_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getAlpha());
+ hash = (37 * hash) + FUSION_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + fusionType_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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.WeaviateProto.HybridSearchParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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.WeaviateProto.HybridSearchParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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.WeaviateProto.HybridSearchParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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.WeaviateProto.HybridSearchParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams 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.WeaviateProto.HybridSearchParams 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.WeaviateProto.HybridSearchParams 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.WeaviateProto.HybridSearchParams 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 weaviategrpc.HybridSearchParams}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.HybridSearchParams)
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParamsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ query_ = "";
+ properties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ vector_ = emptyFloatList();
+ alpha_ = 0F;
+ fusionType_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_HybridSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.query_ = query_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ properties_.makeImmutable();
+ result.properties_ = properties_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ vector_.makeImmutable();
+ result.vector_ = vector_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.alpha_ = alpha_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.fusionType_ = fusionType_;
+ }
+ }
+
+ @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.WeaviateProto.HybridSearchParams) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.getDefaultInstance()) return this;
+ if (!other.getQuery().isEmpty()) {
+ query_ = other.query_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.properties_.isEmpty()) {
+ if (properties_.isEmpty()) {
+ properties_ = other.properties_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensurePropertiesIsMutable();
+ properties_.addAll(other.properties_);
+ }
+ onChanged();
+ }
+ if (!other.vector_.isEmpty()) {
+ if (vector_.isEmpty()) {
+ vector_ = other.vector_;
+ vector_.makeImmutable();
+ bitField0_ |= 0x00000004;
+ } else {
+ ensureVectorIsMutable();
+ vector_.addAll(other.vector_);
+ }
+ onChanged();
+ }
+ if (other.getAlpha() != 0F) {
+ setAlpha(other.getAlpha());
+ }
+ if (other.fusionType_ != 0) {
+ setFusionTypeValue(other.getFusionTypeValue());
+ }
+ 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: {
+ query_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensurePropertiesIsMutable();
+ properties_.add(s);
+ break;
+ } // case 18
+ case 29: {
+ float v = input.readFloat();
+ ensureVectorIsMutable();
+ vector_.addFloat(v);
+ break;
+ } // case 29
+ case 26: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ int alloc = length > 4096 ? 4096 : length;
+ ensureVectorIsMutable(alloc / 4);
+ while (input.getBytesUntilLimit() > 0) {
+ vector_.addFloat(input.readFloat());
+ }
+ input.popLimit(limit);
+ break;
+ } // case 26
+ case 37: {
+ alpha_ = input.readFloat();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 37
+ case 40: {
+ fusionType_ = input.readEnum();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object query_ = "";
+ /**
+ * string query = 1;
+ * @return The query.
+ */
+ public java.lang.String getQuery() {
+ java.lang.Object ref = query_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ query_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string query = 1;
+ * @return The bytes for query.
+ */
+ public com.google.protobuf.ByteString
+ getQueryBytes() {
+ java.lang.Object ref = query_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ query_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string query = 1;
+ * @param value The query to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuery(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ query_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string query = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearQuery() {
+ query_ = getDefaultInstance().getQuery();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string query = 1;
+ * @param value The bytes for query to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQueryBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ query_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList properties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensurePropertiesIsMutable() {
+ if (!properties_.isModifiable()) {
+ properties_ = new com.google.protobuf.LazyStringArrayList(properties_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ * repeated string properties = 2;
+ * @return A list containing the properties.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getPropertiesList() {
+ properties_.makeImmutable();
+ return properties_;
+ }
+ /**
+ * repeated string properties = 2;
+ * @return The count of properties.
+ */
+ public int getPropertiesCount() {
+ return properties_.size();
+ }
+ /**
+ * repeated string properties = 2;
+ * @param index The index of the element to return.
+ * @return The properties at the given index.
+ */
+ public java.lang.String getProperties(int index) {
+ return properties_.get(index);
+ }
+ /**
+ * repeated string properties = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the properties at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getPropertiesBytes(int index) {
+ return properties_.getByteString(index);
+ }
+ /**
+ * repeated string properties = 2;
+ * @param index The index to set the value at.
+ * @param value The properties to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProperties(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensurePropertiesIsMutable();
+ properties_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string properties = 2;
+ * @param value The properties to add.
+ * @return This builder for chaining.
+ */
+ public Builder addProperties(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensurePropertiesIsMutable();
+ properties_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string properties = 2;
+ * @param values The properties to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllProperties(
+ java.lang.Iterable values) {
+ ensurePropertiesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, properties_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string properties = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearProperties() {
+ properties_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string properties = 2;
+ * @param value The bytes of the properties to add.
+ * @return This builder for chaining.
+ */
+ public Builder addPropertiesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensurePropertiesIsMutable();
+ properties_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList();
+ private void ensureVectorIsMutable() {
+ if (!vector_.isModifiable()) {
+ vector_ = makeMutableCopy(vector_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+ private void ensureVectorIsMutable(int capacity) {
+ if (!vector_.isModifiable()) {
+ vector_ = makeMutableCopy(vector_, capacity);
+ }
+ bitField0_ |= 0x00000004;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @return A list containing the vector.
+ */
+ public java.util.List
+ getVectorList() {
+ vector_.makeImmutable();
+ return vector_;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @return The count of vector.
+ */
+ public int getVectorCount() {
+ return vector_.size();
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @param index The index of the element to return.
+ * @return The vector at the given index.
+ */
+ public float getVector(int index) {
+ return vector_.getFloat(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @param index The index to set the value at.
+ * @param value The vector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVector(
+ int index, float value) {
+
+ ensureVectorIsMutable();
+ vector_.setFloat(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @param value The vector to add.
+ * @return This builder for chaining.
+ */
+ public Builder addVector(float value) {
+
+ ensureVectorIsMutable();
+ vector_.addFloat(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @param values The vector to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllVector(
+ java.lang.Iterable extends java.lang.Float> values) {
+ ensureVectorIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, vector_);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated float vector = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearVector() {
+ vector_ = emptyFloatList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ private float alpha_ ;
+ /**
+ * float alpha = 4;
+ * @return The alpha.
+ */
+ @java.lang.Override
+ public float getAlpha() {
+ return alpha_;
+ }
+ /**
+ * float alpha = 4;
+ * @param value The alpha to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAlpha(float value) {
+
+ alpha_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * float alpha = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearAlpha() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ alpha_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private int fusionType_ = 0;
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @return The enum numeric value on the wire for fusionType.
+ */
+ @java.lang.Override public int getFusionTypeValue() {
+ return fusionType_;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @param value The enum numeric value on the wire for fusionType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFusionTypeValue(int value) {
+ fusionType_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @return The fusionType.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType getFusionType() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType result = io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.forNumber(fusionType_);
+ return result == null ? io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType.UNRECOGNIZED : result;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @param value The fusionType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFusionType(io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams.FusionType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ fusionType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .weaviategrpc.HybridSearchParams.FusionType fusion_type = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearFusionType() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ fusionType_ = 0;
+ 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:weaviategrpc.HybridSearchParams)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.HybridSearchParams)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.HybridSearchParams getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public HybridSearchParams 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.WeaviateProto.HybridSearchParams getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface NearTextSearchParamsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.NearTextSearchParams)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @return A list containing the query.
+ */
+ java.util.List
+ getQueryList();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @return The count of query.
+ */
+ int getQueryCount();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param index The index of the element to return.
+ * @return The query at the given index.
+ */
+ java.lang.String getQuery(int index);
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the query at the given index.
+ */
+ com.google.protobuf.ByteString
+ getQueryBytes(int index);
+
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ boolean hasCertainty();
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ double getCertainty();
+
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ boolean hasDistance();
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ double getDistance();
+
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ * @return Whether the moveTo field is set.
+ */
+ boolean hasMoveTo();
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ * @return The moveTo.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveTo();
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveToOrBuilder();
+
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ * @return Whether the moveAway field is set.
+ */
+ boolean hasMoveAway();
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ * @return The moveAway.
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveAway();
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveAwayOrBuilder();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.NearTextSearchParams}
+ */
+ public static final class NearTextSearchParams extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.NearTextSearchParams)
+ NearTextSearchParamsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NearTextSearchParams.newBuilder() to construct.
+ private NearTextSearchParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NearTextSearchParams() {
+ query_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new NearTextSearchParams();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder.class);
+ }
+
+ public interface MoveOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.NearTextSearchParams.Move)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * float force = 1;
+ * @return The force.
+ */
+ float getForce();
+
+ /**
+ * repeated string concepts = 2;
+ * @return A list containing the concepts.
+ */
+ java.util.List
+ getConceptsList();
+ /**
+ * repeated string concepts = 2;
+ * @return The count of concepts.
+ */
+ int getConceptsCount();
+ /**
+ * repeated string concepts = 2;
+ * @param index The index of the element to return.
+ * @return The concepts at the given index.
+ */
+ java.lang.String getConcepts(int index);
+ /**
+ * repeated string concepts = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the concepts at the given index.
+ */
+ com.google.protobuf.ByteString
+ getConceptsBytes(int index);
+
+ /**
+ * repeated string uuids = 3;
+ * @return A list containing the uuids.
+ */
+ java.util.List
+ getUuidsList();
+ /**
+ * repeated string uuids = 3;
+ * @return The count of uuids.
+ */
+ int getUuidsCount();
+ /**
+ * repeated string uuids = 3;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ java.lang.String getUuids(int index);
+ /**
+ * repeated string uuids = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ com.google.protobuf.ByteString
+ getUuidsBytes(int index);
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.NearTextSearchParams.Move}
+ */
+ public static final class Move extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.NearTextSearchParams.Move)
+ MoveOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Move.newBuilder() to construct.
+ private Move(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Move() {
+ concepts_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Move();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder.class);
+ }
+
+ public static final int FORCE_FIELD_NUMBER = 1;
+ private float force_ = 0F;
+ /**
+ * float force = 1;
+ * @return The force.
+ */
+ @java.lang.Override
+ public float getForce() {
+ return force_;
+ }
+
+ public static final int CONCEPTS_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList concepts_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string concepts = 2;
+ * @return A list containing the concepts.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getConceptsList() {
+ return concepts_;
+ }
+ /**
+ * repeated string concepts = 2;
+ * @return The count of concepts.
+ */
+ public int getConceptsCount() {
+ return concepts_.size();
+ }
+ /**
+ * repeated string concepts = 2;
+ * @param index The index of the element to return.
+ * @return The concepts at the given index.
+ */
+ public java.lang.String getConcepts(int index) {
+ return concepts_.get(index);
+ }
+ /**
+ * repeated string concepts = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the concepts at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getConceptsBytes(int index) {
+ return concepts_.getByteString(index);
+ }
+
+ public static final int UUIDS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ * repeated string uuids = 3;
+ * @return A list containing the uuids.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getUuidsList() {
+ return uuids_;
+ }
+ /**
+ * repeated string uuids = 3;
+ * @return The count of uuids.
+ */
+ public int getUuidsCount() {
+ return uuids_.size();
+ }
+ /**
+ * repeated string uuids = 3;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ public java.lang.String getUuids(int index) {
+ return uuids_.get(index);
+ }
+ /**
+ * repeated string uuids = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getUuidsBytes(int index) {
+ return uuids_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (java.lang.Float.floatToRawIntBits(force_) != 0) {
+ output.writeFloat(1, force_);
+ }
+ for (int i = 0; i < concepts_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, concepts_.getRaw(i));
+ }
+ for (int i = 0; i < uuids_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uuids_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (java.lang.Float.floatToRawIntBits(force_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(1, force_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < concepts_.size(); i++) {
+ dataSize += computeStringSizeNoTag(concepts_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getConceptsList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < uuids_.size(); i++) {
+ dataSize += computeStringSizeNoTag(uuids_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getUuidsList().size();
+ }
+ 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.WeaviateProto.NearTextSearchParams.Move)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move) obj;
+
+ if (java.lang.Float.floatToIntBits(getForce())
+ != java.lang.Float.floatToIntBits(
+ other.getForce())) return false;
+ if (!getConceptsList()
+ .equals(other.getConceptsList())) return false;
+ if (!getUuidsList()
+ .equals(other.getUuidsList())) 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) + FORCE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getForce());
+ if (getConceptsCount() > 0) {
+ hash = (37 * hash) + CONCEPTS_FIELD_NUMBER;
+ hash = (53 * hash) + getConceptsList().hashCode();
+ }
+ if (getUuidsCount() > 0) {
+ hash = (37 * hash) + UUIDS_FIELD_NUMBER;
+ hash = (53 * hash) + getUuidsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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.WeaviateProto.NearTextSearchParams.Move parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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.WeaviateProto.NearTextSearchParams.Move parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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.WeaviateProto.NearTextSearchParams.Move parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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.WeaviateProto.NearTextSearchParams.Move parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move 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.WeaviateProto.NearTextSearchParams.Move 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.WeaviateProto.NearTextSearchParams.Move 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.WeaviateProto.NearTextSearchParams.Move 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 weaviategrpc.NearTextSearchParams.Move}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.NearTextSearchParams.Move)
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ force_ = 0F;
+ concepts_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_Move_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.force_ = force_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ concepts_.makeImmutable();
+ result.concepts_ = concepts_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ uuids_.makeImmutable();
+ result.uuids_ = uuids_;
+ }
+ }
+
+ @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.WeaviateProto.NearTextSearchParams.Move) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance()) return this;
+ if (other.getForce() != 0F) {
+ setForce(other.getForce());
+ }
+ if (!other.concepts_.isEmpty()) {
+ if (concepts_.isEmpty()) {
+ concepts_ = other.concepts_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureConceptsIsMutable();
+ concepts_.addAll(other.concepts_);
+ }
+ onChanged();
+ }
+ if (!other.uuids_.isEmpty()) {
+ if (uuids_.isEmpty()) {
+ uuids_ = other.uuids_;
+ bitField0_ |= 0x00000004;
+ } else {
+ ensureUuidsIsMutable();
+ uuids_.addAll(other.uuids_);
+ }
+ 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 13: {
+ force_ = input.readFloat();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 13
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureConceptsIsMutable();
+ concepts_.add(s);
+ break;
+ } // case 18
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureUuidsIsMutable();
+ uuids_.add(s);
+ 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 float force_ ;
+ /**
+ * float force = 1;
+ * @return The force.
+ */
+ @java.lang.Override
+ public float getForce() {
+ return force_;
+ }
+ /**
+ * float force = 1;
+ * @param value The force to set.
+ * @return This builder for chaining.
+ */
+ public Builder setForce(float value) {
+
+ force_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * float force = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearForce() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ force_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList concepts_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureConceptsIsMutable() {
+ if (!concepts_.isModifiable()) {
+ concepts_ = new com.google.protobuf.LazyStringArrayList(concepts_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ * repeated string concepts = 2;
+ * @return A list containing the concepts.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getConceptsList() {
+ concepts_.makeImmutable();
+ return concepts_;
+ }
+ /**
+ * repeated string concepts = 2;
+ * @return The count of concepts.
+ */
+ public int getConceptsCount() {
+ return concepts_.size();
+ }
+ /**
+ * repeated string concepts = 2;
+ * @param index The index of the element to return.
+ * @return The concepts at the given index.
+ */
+ public java.lang.String getConcepts(int index) {
+ return concepts_.get(index);
+ }
+ /**
+ * repeated string concepts = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the concepts at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getConceptsBytes(int index) {
+ return concepts_.getByteString(index);
+ }
+ /**
+ * repeated string concepts = 2;
+ * @param index The index to set the value at.
+ * @param value The concepts to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConcepts(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureConceptsIsMutable();
+ concepts_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string concepts = 2;
+ * @param value The concepts to add.
+ * @return This builder for chaining.
+ */
+ public Builder addConcepts(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureConceptsIsMutable();
+ concepts_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string concepts = 2;
+ * @param values The concepts to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllConcepts(
+ java.lang.Iterable values) {
+ ensureConceptsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, concepts_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string concepts = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearConcepts() {
+ concepts_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string concepts = 2;
+ * @param value The bytes of the concepts to add.
+ * @return This builder for chaining.
+ */
+ public Builder addConceptsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureConceptsIsMutable();
+ concepts_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureUuidsIsMutable() {
+ if (!uuids_.isModifiable()) {
+ uuids_ = new com.google.protobuf.LazyStringArrayList(uuids_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+ /**
+ * repeated string uuids = 3;
+ * @return A list containing the uuids.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getUuidsList() {
+ uuids_.makeImmutable();
+ return uuids_;
+ }
+ /**
+ * repeated string uuids = 3;
+ * @return The count of uuids.
+ */
+ public int getUuidsCount() {
+ return uuids_.size();
+ }
+ /**
+ * repeated string uuids = 3;
+ * @param index The index of the element to return.
+ * @return The uuids at the given index.
+ */
+ public java.lang.String getUuids(int index) {
+ return uuids_.get(index);
+ }
+ /**
+ * repeated string uuids = 3;
+ * @param index The index of the value to return.
+ * @return The bytes of the uuids at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getUuidsBytes(int index) {
+ return uuids_.getByteString(index);
+ }
+ /**
+ * repeated string uuids = 3;
+ * @param index The index to set the value at.
+ * @param value The uuids to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuids(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureUuidsIsMutable();
+ uuids_.set(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 3;
+ * @param value The uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addUuids(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureUuidsIsMutable();
+ uuids_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 3;
+ * @param values The uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllUuids(
+ java.lang.Iterable values) {
+ ensureUuidsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, uuids_);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearUuids() {
+ uuids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);;
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string uuids = 3;
+ * @param value The bytes of the uuids to add.
+ * @return This builder for chaining.
+ */
+ public Builder addUuidsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureUuidsIsMutable();
+ uuids_.add(value);
+ bitField0_ |= 0x00000004;
+ 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:weaviategrpc.NearTextSearchParams.Move)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.NearTextSearchParams.Move)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Move 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.WeaviateProto.NearTextSearchParams.Move getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int QUERY_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList query_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @return A list containing the query.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getQueryList() {
+ return query_;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @return The count of query.
+ */
+ public int getQueryCount() {
+ return query_.size();
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param index The index of the element to return.
+ * @return The query at the given index.
+ */
+ public java.lang.String getQuery(int index) {
+ return query_.get(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the query at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getQueryBytes(int index) {
+ return query_.getByteString(index);
+ }
+
+ public static final int CERTAINTY_FIELD_NUMBER = 2;
+ private double certainty_ = 0D;
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ @java.lang.Override
+ public boolean hasCertainty() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public double getCertainty() {
+ return certainty_;
+ }
+
+ public static final int DISTANCE_FIELD_NUMBER = 3;
+ private double distance_ = 0D;
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDistance() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public double getDistance() {
+ return distance_;
+ }
+
+ public static final int MOVE_TO_FIELD_NUMBER = 4;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move moveTo_;
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ * @return Whether the moveTo field is set.
+ */
+ @java.lang.Override
+ public boolean hasMoveTo() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ * @return The moveTo.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveTo() {
+ return moveTo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveTo_;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveToOrBuilder() {
+ return moveTo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveTo_;
+ }
+
+ public static final int MOVE_AWAY_FIELD_NUMBER = 5;
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move moveAway_;
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ * @return Whether the moveAway field is set.
+ */
+ @java.lang.Override
+ public boolean hasMoveAway() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ * @return The moveAway.
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveAway() {
+ return moveAway_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveAway_;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveAwayOrBuilder() {
+ return moveAway_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveAway_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < query_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_.getRaw(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeDouble(2, certainty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(3, distance_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(4, getMoveTo());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(5, getMoveAway());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < query_.size(); i++) {
+ dataSize += computeStringSizeNoTag(query_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getQueryList().size();
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, certainty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, distance_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getMoveTo());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getMoveAway());
+ }
+ 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.WeaviateProto.NearTextSearchParams)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams) obj;
+
+ if (!getQueryList()
+ .equals(other.getQueryList())) return false;
+ if (hasCertainty() != other.hasCertainty()) return false;
+ if (hasCertainty()) {
+ if (java.lang.Double.doubleToLongBits(getCertainty())
+ != java.lang.Double.doubleToLongBits(
+ other.getCertainty())) return false;
+ }
+ if (hasDistance() != other.hasDistance()) return false;
+ if (hasDistance()) {
+ if (java.lang.Double.doubleToLongBits(getDistance())
+ != java.lang.Double.doubleToLongBits(
+ other.getDistance())) return false;
+ }
+ if (hasMoveTo() != other.hasMoveTo()) return false;
+ if (hasMoveTo()) {
+ if (!getMoveTo()
+ .equals(other.getMoveTo())) return false;
+ }
+ if (hasMoveAway() != other.hasMoveAway()) return false;
+ if (hasMoveAway()) {
+ if (!getMoveAway()
+ .equals(other.getMoveAway())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getQueryCount() > 0) {
+ hash = (37 * hash) + QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryList().hashCode();
+ }
+ if (hasCertainty()) {
+ hash = (37 * hash) + CERTAINTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getCertainty()));
+ }
+ if (hasDistance()) {
+ hash = (37 * hash) + DISTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDistance()));
+ }
+ if (hasMoveTo()) {
+ hash = (37 * hash) + MOVE_TO_FIELD_NUMBER;
+ hash = (53 * hash) + getMoveTo().hashCode();
+ }
+ if (hasMoveAway()) {
+ hash = (37 * hash) + MOVE_AWAY_FIELD_NUMBER;
+ hash = (53 * hash) + getMoveAway().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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.WeaviateProto.NearTextSearchParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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.WeaviateProto.NearTextSearchParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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.WeaviateProto.NearTextSearchParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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.WeaviateProto.NearTextSearchParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams 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.WeaviateProto.NearTextSearchParams 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.WeaviateProto.NearTextSearchParams 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.WeaviateProto.NearTextSearchParams 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 weaviategrpc.NearTextSearchParams}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.NearTextSearchParams)
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParamsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getMoveToFieldBuilder();
+ getMoveAwayFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ query_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ certainty_ = 0D;
+ distance_ = 0D;
+ moveTo_ = null;
+ if (moveToBuilder_ != null) {
+ moveToBuilder_.dispose();
+ moveToBuilder_ = null;
+ }
+ moveAway_ = null;
+ if (moveAwayBuilder_ != null) {
+ moveAwayBuilder_.dispose();
+ moveAwayBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearTextSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ query_.makeImmutable();
+ result.query_ = query_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.certainty_ = certainty_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.distance_ = distance_;
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.moveTo_ = moveToBuilder_ == null
+ ? moveTo_
+ : moveToBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.moveAway_ = moveAwayBuilder_ == null
+ ? moveAway_
+ : moveAwayBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
+ 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.WeaviateProto.NearTextSearchParams) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.getDefaultInstance()) return this;
+ if (!other.query_.isEmpty()) {
+ if (query_.isEmpty()) {
+ query_ = other.query_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureQueryIsMutable();
+ query_.addAll(other.query_);
+ }
+ onChanged();
+ }
+ if (other.hasCertainty()) {
+ setCertainty(other.getCertainty());
+ }
+ if (other.hasDistance()) {
+ setDistance(other.getDistance());
+ }
+ if (other.hasMoveTo()) {
+ mergeMoveTo(other.getMoveTo());
+ }
+ if (other.hasMoveAway()) {
+ mergeMoveAway(other.getMoveAway());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureQueryIsMutable();
+ query_.add(s);
+ break;
+ } // case 10
+ case 17: {
+ certainty_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 25: {
+ distance_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ case 34: {
+ input.readMessage(
+ getMoveToFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ input.readMessage(
+ getMoveAwayFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList query_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ private void ensureQueryIsMutable() {
+ if (!query_.isModifiable()) {
+ query_ = new com.google.protobuf.LazyStringArrayList(query_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @return A list containing the query.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getQueryList() {
+ query_.makeImmutable();
+ return query_;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @return The count of query.
+ */
+ public int getQueryCount() {
+ return query_.size();
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param index The index of the element to return.
+ * @return The query at the given index.
+ */
+ public java.lang.String getQuery(int index) {
+ return query_.get(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the query at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getQueryBytes(int index) {
+ return query_.getByteString(index);
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param index The index to set the value at.
+ * @param value The query to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQuery(
+ int index, java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureQueryIsMutable();
+ query_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param value The query to add.
+ * @return This builder for chaining.
+ */
+ public Builder addQuery(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ensureQueryIsMutable();
+ query_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param values The query to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllQuery(
+ java.lang.Iterable values) {
+ ensureQueryIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, query_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearQuery() {
+ query_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED
+ *
+ *
+ * repeated string query = 1;
+ * @param value The bytes of the query to add.
+ * @return This builder for chaining.
+ */
+ public Builder addQueryBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ensureQueryIsMutable();
+ query_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private double certainty_ ;
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ @java.lang.Override
+ public boolean hasCertainty() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public double getCertainty() {
+ return certainty_;
+ }
+ /**
+ * optional double certainty = 2;
+ * @param value The certainty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCertainty(double value) {
+
+ certainty_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double certainty = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCertainty() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ certainty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double distance_ ;
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDistance() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public double getDistance() {
+ return distance_;
+ }
+ /**
+ * optional double distance = 3;
+ * @param value The distance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDistance(double value) {
+
+ distance_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double distance = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearDistance() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ distance_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move moveTo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder> moveToBuilder_;
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ * @return Whether the moveTo field is set.
+ */
+ public boolean hasMoveTo() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ * @return The moveTo.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveTo() {
+ if (moveToBuilder_ == null) {
+ return moveTo_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveTo_;
+ } else {
+ return moveToBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ public Builder setMoveTo(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move value) {
+ if (moveToBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ moveTo_ = value;
+ } else {
+ moveToBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ public Builder setMoveTo(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder builderForValue) {
+ if (moveToBuilder_ == null) {
+ moveTo_ = builderForValue.build();
+ } else {
+ moveToBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ public Builder mergeMoveTo(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move value) {
+ if (moveToBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ moveTo_ != null &&
+ moveTo_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance()) {
+ getMoveToBuilder().mergeFrom(value);
+ } else {
+ moveTo_ = value;
+ }
+ } else {
+ moveToBuilder_.mergeFrom(value);
+ }
+ if (moveTo_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ public Builder clearMoveTo() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ moveTo_ = null;
+ if (moveToBuilder_ != null) {
+ moveToBuilder_.dispose();
+ moveToBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder getMoveToBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getMoveToFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveToOrBuilder() {
+ if (moveToBuilder_ != null) {
+ return moveToBuilder_.getMessageOrBuilder();
+ } else {
+ return moveTo_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveTo_;
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_to = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder>
+ getMoveToFieldBuilder() {
+ if (moveToBuilder_ == null) {
+ moveToBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder>(
+ getMoveTo(),
+ getParentForChildren(),
+ isClean());
+ moveTo_ = null;
+ }
+ return moveToBuilder_;
+ }
+
+ private io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move moveAway_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder> moveAwayBuilder_;
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ * @return Whether the moveAway field is set.
+ */
+ public boolean hasMoveAway() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ * @return The moveAway.
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move getMoveAway() {
+ if (moveAwayBuilder_ == null) {
+ return moveAway_ == null ? io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveAway_;
+ } else {
+ return moveAwayBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ public Builder setMoveAway(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move value) {
+ if (moveAwayBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ moveAway_ = value;
+ } else {
+ moveAwayBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ public Builder setMoveAway(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder builderForValue) {
+ if (moveAwayBuilder_ == null) {
+ moveAway_ = builderForValue.build();
+ } else {
+ moveAwayBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ public Builder mergeMoveAway(io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move value) {
+ if (moveAwayBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ moveAway_ != null &&
+ moveAway_ != io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance()) {
+ getMoveAwayBuilder().mergeFrom(value);
+ } else {
+ moveAway_ = value;
+ }
+ } else {
+ moveAwayBuilder_.mergeFrom(value);
+ }
+ if (moveAway_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ public Builder clearMoveAway() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ moveAway_ = null;
+ if (moveAwayBuilder_ != null) {
+ moveAwayBuilder_.dispose();
+ moveAwayBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder getMoveAwayBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getMoveAwayFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder getMoveAwayOrBuilder() {
+ if (moveAwayBuilder_ != null) {
+ return moveAwayBuilder_.getMessageOrBuilder();
+ } else {
+ return moveAway_ == null ?
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.getDefaultInstance() : moveAway_;
+ }
+ }
+ /**
+ * optional .weaviategrpc.NearTextSearchParams.Move move_away = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder>
+ getMoveAwayFieldBuilder() {
+ if (moveAwayBuilder_ == null) {
+ moveAwayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.Move.Builder, io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams.MoveOrBuilder>(
+ getMoveAway(),
+ getParentForChildren(),
+ isClean());
+ moveAway_ = null;
+ }
+ return moveAwayBuilder_;
+ }
+ @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:weaviategrpc.NearTextSearchParams)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.NearTextSearchParams)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearTextSearchParams getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public NearTextSearchParams 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.WeaviateProto.NearTextSearchParams getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface NearImageSearchParamsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.NearImageSearchParams)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string image = 1;
+ * @return The image.
+ */
+ java.lang.String getImage();
+ /**
+ * string image = 1;
+ * @return The bytes for image.
+ */
+ com.google.protobuf.ByteString
+ getImageBytes();
+
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ boolean hasCertainty();
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ double getCertainty();
+
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ boolean hasDistance();
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ double getDistance();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.NearImageSearchParams}
+ */
+ public static final class NearImageSearchParams extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.NearImageSearchParams)
+ NearImageSearchParamsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NearImageSearchParams.newBuilder() to construct.
+ private NearImageSearchParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NearImageSearchParams() {
+ image_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new NearImageSearchParams();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int IMAGE_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object image_ = "";
+ /**
+ * string image = 1;
+ * @return The image.
+ */
+ @java.lang.Override
+ public java.lang.String getImage() {
+ java.lang.Object ref = image_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ image_ = s;
+ return s;
+ }
+ }
+ /**
+ * string image = 1;
+ * @return The bytes for image.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getImageBytes() {
+ java.lang.Object ref = image_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ image_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CERTAINTY_FIELD_NUMBER = 2;
+ private double certainty_ = 0D;
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ @java.lang.Override
+ public boolean hasCertainty() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public double getCertainty() {
+ return certainty_;
+ }
+
+ public static final int DISTANCE_FIELD_NUMBER = 3;
+ private double distance_ = 0D;
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDistance() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public double getDistance() {
+ return distance_;
+ }
+
+ 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(image_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeDouble(2, certainty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(3, distance_);
+ }
+ 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(image_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, certainty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, distance_);
+ }
+ 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.WeaviateProto.NearImageSearchParams)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams) obj;
+
+ if (!getImage()
+ .equals(other.getImage())) return false;
+ if (hasCertainty() != other.hasCertainty()) return false;
+ if (hasCertainty()) {
+ if (java.lang.Double.doubleToLongBits(getCertainty())
+ != java.lang.Double.doubleToLongBits(
+ other.getCertainty())) return false;
+ }
+ if (hasDistance() != other.hasDistance()) return false;
+ if (hasDistance()) {
+ if (java.lang.Double.doubleToLongBits(getDistance())
+ != java.lang.Double.doubleToLongBits(
+ other.getDistance())) return false;
+ }
+ if (!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) + IMAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getImage().hashCode();
+ if (hasCertainty()) {
+ hash = (37 * hash) + CERTAINTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getCertainty()));
+ }
+ if (hasDistance()) {
+ hash = (37 * hash) + DISTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDistance()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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.WeaviateProto.NearImageSearchParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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.WeaviateProto.NearImageSearchParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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.WeaviateProto.NearImageSearchParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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.WeaviateProto.NearImageSearchParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams 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.WeaviateProto.NearImageSearchParams 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.WeaviateProto.NearImageSearchParams 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.WeaviateProto.NearImageSearchParams 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 weaviategrpc.NearImageSearchParams}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.NearImageSearchParams)
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParamsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ image_ = "";
+ certainty_ = 0D;
+ distance_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearImageSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.image_ = image_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.certainty_ = certainty_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.distance_ = distance_;
+ to_bitField0_ |= 0x00000002;
+ }
+ 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.WeaviateProto.NearImageSearchParams) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams.getDefaultInstance()) return this;
+ if (!other.getImage().isEmpty()) {
+ image_ = other.image_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasCertainty()) {
+ setCertainty(other.getCertainty());
+ }
+ if (other.hasDistance()) {
+ setDistance(other.getDistance());
+ }
+ 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: {
+ image_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 17: {
+ certainty_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 25: {
+ distance_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ 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 image_ = "";
+ /**
+ * string image = 1;
+ * @return The image.
+ */
+ public java.lang.String getImage() {
+ java.lang.Object ref = image_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ image_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string image = 1;
+ * @return The bytes for image.
+ */
+ public com.google.protobuf.ByteString
+ getImageBytes() {
+ java.lang.Object ref = image_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ image_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string image = 1;
+ * @param value The image to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImage(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ image_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string image = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearImage() {
+ image_ = getDefaultInstance().getImage();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string image = 1;
+ * @param value The bytes for image to set.
+ * @return This builder for chaining.
+ */
+ public Builder setImageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ image_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private double certainty_ ;
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ @java.lang.Override
+ public boolean hasCertainty() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public double getCertainty() {
+ return certainty_;
+ }
+ /**
+ * optional double certainty = 2;
+ * @param value The certainty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCertainty(double value) {
+
+ certainty_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double certainty = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCertainty() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ certainty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double distance_ ;
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDistance() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public double getDistance() {
+ return distance_;
+ }
+ /**
+ * optional double distance = 3;
+ * @param value The distance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDistance(double value) {
+
+ distance_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double distance = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearDistance() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ distance_ = 0D;
+ onChanged();
+ return this;
+ }
+ @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:weaviategrpc.NearImageSearchParams)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.NearImageSearchParams)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearImageSearchParams getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public NearImageSearchParams 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.WeaviateProto.NearImageSearchParams getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface NearAudioSearchParamsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.NearAudioSearchParams)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string audio = 1;
+ * @return The audio.
+ */
+ java.lang.String getAudio();
+ /**
+ * string audio = 1;
+ * @return The bytes for audio.
+ */
+ com.google.protobuf.ByteString
+ getAudioBytes();
+
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ boolean hasCertainty();
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ double getCertainty();
+
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ boolean hasDistance();
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ double getDistance();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.NearAudioSearchParams}
+ */
+ public static final class NearAudioSearchParams extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.NearAudioSearchParams)
+ NearAudioSearchParamsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NearAudioSearchParams.newBuilder() to construct.
+ private NearAudioSearchParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NearAudioSearchParams() {
+ audio_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new NearAudioSearchParams();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int AUDIO_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object audio_ = "";
+ /**
+ * string audio = 1;
+ * @return The audio.
+ */
+ @java.lang.Override
+ public java.lang.String getAudio() {
+ java.lang.Object ref = audio_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ audio_ = s;
+ return s;
+ }
+ }
+ /**
+ * string audio = 1;
+ * @return The bytes for audio.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAudioBytes() {
+ java.lang.Object ref = audio_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ audio_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CERTAINTY_FIELD_NUMBER = 2;
+ private double certainty_ = 0D;
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ @java.lang.Override
+ public boolean hasCertainty() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public double getCertainty() {
+ return certainty_;
+ }
+
+ public static final int DISTANCE_FIELD_NUMBER = 3;
+ private double distance_ = 0D;
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDistance() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public double getDistance() {
+ return distance_;
+ }
+
+ 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(audio_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audio_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeDouble(2, certainty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(3, distance_);
+ }
+ 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(audio_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audio_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, certainty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, distance_);
+ }
+ 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.WeaviateProto.NearAudioSearchParams)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams) obj;
+
+ if (!getAudio()
+ .equals(other.getAudio())) return false;
+ if (hasCertainty() != other.hasCertainty()) return false;
+ if (hasCertainty()) {
+ if (java.lang.Double.doubleToLongBits(getCertainty())
+ != java.lang.Double.doubleToLongBits(
+ other.getCertainty())) return false;
+ }
+ if (hasDistance() != other.hasDistance()) return false;
+ if (hasDistance()) {
+ if (java.lang.Double.doubleToLongBits(getDistance())
+ != java.lang.Double.doubleToLongBits(
+ other.getDistance())) return false;
+ }
+ if (!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) + AUDIO_FIELD_NUMBER;
+ hash = (53 * hash) + getAudio().hashCode();
+ if (hasCertainty()) {
+ hash = (37 * hash) + CERTAINTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getCertainty()));
+ }
+ if (hasDistance()) {
+ hash = (37 * hash) + DISTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDistance()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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.WeaviateProto.NearAudioSearchParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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.WeaviateProto.NearAudioSearchParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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.WeaviateProto.NearAudioSearchParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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.WeaviateProto.NearAudioSearchParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams 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.WeaviateProto.NearAudioSearchParams 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.WeaviateProto.NearAudioSearchParams 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.WeaviateProto.NearAudioSearchParams 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 weaviategrpc.NearAudioSearchParams}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.NearAudioSearchParams)
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParamsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ audio_ = "";
+ certainty_ = 0D;
+ distance_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearAudioSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.audio_ = audio_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.certainty_ = certainty_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.distance_ = distance_;
+ to_bitField0_ |= 0x00000002;
+ }
+ 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.WeaviateProto.NearAudioSearchParams) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams.getDefaultInstance()) return this;
+ if (!other.getAudio().isEmpty()) {
+ audio_ = other.audio_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasCertainty()) {
+ setCertainty(other.getCertainty());
+ }
+ if (other.hasDistance()) {
+ setDistance(other.getDistance());
+ }
+ 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: {
+ audio_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 17: {
+ certainty_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 25: {
+ distance_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ 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 audio_ = "";
+ /**
+ * string audio = 1;
+ * @return The audio.
+ */
+ public java.lang.String getAudio() {
+ java.lang.Object ref = audio_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ audio_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string audio = 1;
+ * @return The bytes for audio.
+ */
+ public com.google.protobuf.ByteString
+ getAudioBytes() {
+ java.lang.Object ref = audio_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ audio_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string audio = 1;
+ * @param value The audio to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudio(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ audio_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string audio = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearAudio() {
+ audio_ = getDefaultInstance().getAudio();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string audio = 1;
+ * @param value The bytes for audio to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudioBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ audio_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private double certainty_ ;
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ @java.lang.Override
+ public boolean hasCertainty() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public double getCertainty() {
+ return certainty_;
+ }
+ /**
+ * optional double certainty = 2;
+ * @param value The certainty to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCertainty(double value) {
+
+ certainty_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double certainty = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCertainty() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ certainty_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double distance_ ;
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDistance() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public double getDistance() {
+ return distance_;
+ }
+ /**
+ * optional double distance = 3;
+ * @param value The distance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDistance(double value) {
+
+ distance_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional double distance = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearDistance() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ distance_ = 0D;
+ onChanged();
+ return this;
+ }
+ @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:weaviategrpc.NearAudioSearchParams)
+ }
+
+ // @@protoc_insertion_point(class_scope:weaviategrpc.NearAudioSearchParams)
+ private static final io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams();
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearAudioSearchParams getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public NearAudioSearchParams 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.WeaviateProto.NearAudioSearchParams getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface NearVideoSearchParamsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:weaviategrpc.NearVideoSearchParams)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string video = 1;
+ * @return The video.
+ */
+ java.lang.String getVideo();
+ /**
+ * string video = 1;
+ * @return The bytes for video.
+ */
+ com.google.protobuf.ByteString
+ getVideoBytes();
+
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ boolean hasCertainty();
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ double getCertainty();
+
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ boolean hasDistance();
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ double getDistance();
+ }
+ /**
+ * Protobuf type {@code weaviategrpc.NearVideoSearchParams}
+ */
+ public static final class NearVideoSearchParams extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:weaviategrpc.NearVideoSearchParams)
+ NearVideoSearchParamsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NearVideoSearchParams.newBuilder() to construct.
+ private NearVideoSearchParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NearVideoSearchParams() {
+ video_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new NearVideoSearchParams();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int VIDEO_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object video_ = "";
+ /**
+ * string video = 1;
+ * @return The video.
+ */
+ @java.lang.Override
+ public java.lang.String getVideo() {
+ java.lang.Object ref = video_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ video_ = s;
+ return s;
+ }
+ }
+ /**
+ * string video = 1;
+ * @return The bytes for video.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getVideoBytes() {
+ java.lang.Object ref = video_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ video_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CERTAINTY_FIELD_NUMBER = 2;
+ private double certainty_ = 0D;
+ /**
+ * optional double certainty = 2;
+ * @return Whether the certainty field is set.
+ */
+ @java.lang.Override
+ public boolean hasCertainty() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional double certainty = 2;
+ * @return The certainty.
+ */
+ @java.lang.Override
+ public double getCertainty() {
+ return certainty_;
+ }
+
+ public static final int DISTANCE_FIELD_NUMBER = 3;
+ private double distance_ = 0D;
+ /**
+ * optional double distance = 3;
+ * @return Whether the distance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDistance() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional double distance = 3;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public double getDistance() {
+ return distance_;
+ }
+
+ 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(video_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, video_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeDouble(2, certainty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeDouble(3, distance_);
+ }
+ 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(video_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, video_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, certainty_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(3, distance_);
+ }
+ 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.WeaviateProto.NearVideoSearchParams)) {
+ return super.equals(obj);
+ }
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams other = (io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams) obj;
+
+ if (!getVideo()
+ .equals(other.getVideo())) return false;
+ if (hasCertainty() != other.hasCertainty()) return false;
+ if (hasCertainty()) {
+ if (java.lang.Double.doubleToLongBits(getCertainty())
+ != java.lang.Double.doubleToLongBits(
+ other.getCertainty())) return false;
+ }
+ if (hasDistance() != other.hasDistance()) return false;
+ if (hasDistance()) {
+ if (java.lang.Double.doubleToLongBits(getDistance())
+ != java.lang.Double.doubleToLongBits(
+ other.getDistance())) return false;
+ }
+ if (!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) + VIDEO_FIELD_NUMBER;
+ hash = (53 * hash) + getVideo().hashCode();
+ if (hasCertainty()) {
+ hash = (37 * hash) + CERTAINTY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getCertainty()));
+ }
+ if (hasDistance()) {
+ hash = (37 * hash) + DISTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDistance()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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.WeaviateProto.NearVideoSearchParams parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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.WeaviateProto.NearVideoSearchParams parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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.WeaviateProto.NearVideoSearchParams parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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.WeaviateProto.NearVideoSearchParams parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams 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.WeaviateProto.NearVideoSearchParams 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.WeaviateProto.NearVideoSearchParams 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.WeaviateProto.NearVideoSearchParams 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 weaviategrpc.NearVideoSearchParams}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:weaviategrpc.NearVideoSearchParams)
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParamsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.class, io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.Builder.class);
+ }
+
+ // Construct using io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ video_ = "";
+ certainty_ = 0D;
+ distance_ = 0D;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.internal_static_weaviategrpc_NearVideoSearchParams_descriptor;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams getDefaultInstanceForType() {
+ return io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams build() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams buildPartial() {
+ io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams result = new io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.video_ = video_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.certainty_ = certainty_;
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.distance_ = distance_;
+ to_bitField0_ |= 0x00000002;
+ }
+ 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.WeaviateProto.NearVideoSearchParams) {
+ return mergeFrom((io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams other) {
+ if (other == io.weaviate.client.grpc.protocol.WeaviateProto.NearVideoSearchParams.getDefaultInstance()) return this;
+ if (!other.getVideo().isEmpty()) {
+ video_ = other.video_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasCertainty()) {
+ setCertainty(other.getCertainty());
+ }
+ if (other.hasDistance()) {
+ setDistance(other.getDistance());
+ }
+ 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: {
+ video_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 17: {
+ certainty_ = input.readDouble();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 25: {
+ distance_ = input.readDouble();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ 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 video_ = "";
+ /**
+ *