All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clinia.model.registry.V1PipelineSegmenterProcessorSegmenter Maven / Gradle / Ivy

// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.

package com.clinia.model.registry;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;

/** V1PipelineSegmenterProcessorSegmenter */
public class V1PipelineSegmenterProcessorSegmenter {

  @JsonProperty("inputProperty")
  private String inputProperty;

  @JsonProperty("propertyKey")
  private String propertyKey;

  @JsonProperty("maxTokens")
  private Integer maxTokens;

  public V1PipelineSegmenterProcessorSegmenter setInputProperty(String inputProperty) {
    this.inputProperty = inputProperty;
    return this;
  }

  /** The input property path to segment. */
  @javax.annotation.Nonnull
  public String getInputProperty() {
    return inputProperty;
  }

  public V1PipelineSegmenterProcessorSegmenter setPropertyKey(String propertyKey) {
    this.propertyKey = propertyKey;
    return this;
  }

  /**
   * The key of the property to store the segments. The property key will be accessible as a sub
   * property of the input property. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. Therefore
   * for a input property `content` and a property key `passages`, the segments will be accessible
   * as `content.passages`.
   */
  @javax.annotation.Nonnull
  public String getPropertyKey() {
    return propertyKey;
  }

  public V1PipelineSegmenterProcessorSegmenter setMaxTokens(Integer maxTokens) {
    this.maxTokens = maxTokens;
    return this;
  }

  /** The maximum number of tokens per segment. */
  @javax.annotation.Nonnull
  public Integer getMaxTokens() {
    return maxTokens;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1PipelineSegmenterProcessorSegmenter v1PipelineSegmenterProcessorSegmenter = (V1PipelineSegmenterProcessorSegmenter) o;
    return (
      Objects.equals(this.inputProperty, v1PipelineSegmenterProcessorSegmenter.inputProperty) &&
      Objects.equals(this.propertyKey, v1PipelineSegmenterProcessorSegmenter.propertyKey) &&
      Objects.equals(this.maxTokens, v1PipelineSegmenterProcessorSegmenter.maxTokens)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(inputProperty, propertyKey, maxTokens);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1PipelineSegmenterProcessorSegmenter {\n");
    sb.append("    inputProperty: ").append(toIndentedString(inputProperty)).append("\n");
    sb.append("    propertyKey: ").append(toIndentedString(propertyKey)).append("\n");
    sb.append("    maxTokens: ").append(toIndentedString(maxTokens)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy