public Builder mergeFrom(com.google.cloud.visionai.v1.SearchIndexEndpointRequest other) {
      if (other == com.google.cloud.visionai.v1.SearchIndexEndpointRequest.getDefaultInstance())
        return this;
      if (!other.getIndexEndpoint().isEmpty()) {
        indexEndpoint_ = other.indexEndpoint_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (criteriaBuilder_ == null) {
        if (!other.criteria_.isEmpty()) {
          if (criteria_.isEmpty()) {
            criteria_ = other.criteria_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureCriteriaIsMutable();
            criteria_.addAll(other.criteria_);
          }
          onChanged();
        }
      } else {
        if (!other.criteria_.isEmpty()) {
          if (criteriaBuilder_.isEmpty()) {
            criteriaBuilder_.dispose();
            criteriaBuilder_ = null;
            criteria_ = other.criteria_;
            bitField0_ = (bitField0_ & ~0x00000008);
            criteriaBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getCriteriaFieldBuilder()
                    : null;
          } else {
            criteriaBuilder_.addAllMessages(other.criteria_);
          }
        }
      }
      if (exclusionCriteriaBuilder_ == null) {
        if (!other.exclusionCriteria_.isEmpty()) {
          if (exclusionCriteria_.isEmpty()) {
            exclusionCriteria_ = other.exclusionCriteria_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureExclusionCriteriaIsMutable();
            exclusionCriteria_.addAll(other.exclusionCriteria_);
          }
          onChanged();
        }
      } else {
        if (!other.exclusionCriteria_.isEmpty()) {
          if (exclusionCriteriaBuilder_.isEmpty()) {
            exclusionCriteriaBuilder_.dispose();
            exclusionCriteriaBuilder_ = null;
            exclusionCriteria_ = other.exclusionCriteria_;
            bitField0_ = (bitField0_ & ~0x00000010);
            exclusionCriteriaBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getExclusionCriteriaFieldBuilder()
                    : null;
          } else {
            exclusionCriteriaBuilder_.addAllMessages(other.exclusionCriteria_);
          }
        }
      }
      if (other.getPageSize() != 0) {
        setPageSize(other.getPageSize());
      }
      if (!other.getPageToken().isEmpty()) {
        pageToken_ = other.pageToken_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      switch (other.getQueryCase()) {
        case IMAGE_QUERY:
          {
            mergeImageQuery(other.getImageQuery());
            break;
          }
        case TEXT_QUERY:
          {
            queryCase_ = 3;
            query_ = other.query_;
            onChanged();
            break;
          }
        case QUERY_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
Request message for SearchIndexEndpoint.
</pre>

Protobuf type {@code google.cloud.visionai.v1.SearchIndexEndpointRequest}
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/SearchIndexEndpointRequest.java