com.basistech.rosette.apimodel.AdmResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rosette-api-all Show documentation
Show all versions of rosette-api-all Show documentation
Babel Street Analytics API all modules combined
The newest version!
// Generated by delombok at Fri Nov 15 11:56:46 CST 2024
/*
* Copyright 2017 Basis Technology Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.basistech.rosette.apimodel;
import com.basistech.rosette.annotations.JacksonMixin;
import com.basistech.rosette.dm.AnnotatedText;
/**
* An {@link com.basistech.rosette.dm.AnnotatedText} response from a document-processing endpoint.
*/
@JacksonMixin
public class AdmResponse extends Response {
/**
*/
private final AnnotatedText text;
@SuppressWarnings("all")
AdmResponse(final AnnotatedText text) {
this.text = text;
}
@SuppressWarnings("all")
public static class AdmResponseBuilder {
@SuppressWarnings("all")
private AnnotatedText text;
@SuppressWarnings("all")
AdmResponseBuilder() {
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public AdmResponse.AdmResponseBuilder text(final AnnotatedText text) {
this.text = text;
return this;
}
@SuppressWarnings("all")
public AdmResponse build() {
return new AdmResponse(this.text);
}
@Override
@SuppressWarnings("all")
public String toString() {
return "AdmResponse.AdmResponseBuilder(text=" + this.text + ")";
}
}
@SuppressWarnings("all")
public static AdmResponse.AdmResponseBuilder builder() {
return new AdmResponse.AdmResponseBuilder();
}
/**
* @return {@link com.basistech.rosette.dm.AnnotatedText}
*/
@SuppressWarnings("all")
public AnnotatedText getText() {
return this.text;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof AdmResponse)) return false;
final AdmResponse other = (AdmResponse) o;
if (!other.canEqual((Object) this)) return false;
if (!super.equals(o)) return false;
final Object this$text = this.getText();
final Object other$text = other.getText();
if (this$text == null ? other$text != null : !this$text.equals(other$text)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof AdmResponse;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final Object $text = this.getText();
result = result * PRIME + ($text == null ? 43 : $text.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy