com.basistech.rosette.apimodel.SupportedLanguagesResponse 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 2018 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 java.util.Set;
/**
* Supported languages/scripts for a given endpoint
*/
@JacksonMixin
public class SupportedLanguagesResponse extends Response {
/**
*/
private final Set supportedLanguages;
@SuppressWarnings("all")
SupportedLanguagesResponse(final Set supportedLanguages) {
this.supportedLanguages = supportedLanguages;
}
@SuppressWarnings("all")
public static class SupportedLanguagesResponseBuilder {
@SuppressWarnings("all")
private Set supportedLanguages;
@SuppressWarnings("all")
SupportedLanguagesResponseBuilder() {
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public SupportedLanguagesResponse.SupportedLanguagesResponseBuilder supportedLanguages(final Set supportedLanguages) {
this.supportedLanguages = supportedLanguages;
return this;
}
@SuppressWarnings("all")
public SupportedLanguagesResponse build() {
return new SupportedLanguagesResponse(this.supportedLanguages);
}
@Override
@SuppressWarnings("all")
public String toString() {
return "SupportedLanguagesResponse.SupportedLanguagesResponseBuilder(supportedLanguages=" + this.supportedLanguages + ")";
}
}
@SuppressWarnings("all")
public static SupportedLanguagesResponse.SupportedLanguagesResponseBuilder builder() {
return new SupportedLanguagesResponse.SupportedLanguagesResponseBuilder();
}
/**
* @return the set of supported languages/scripts
*/
@SuppressWarnings("all")
public Set getSupportedLanguages() {
return this.supportedLanguages;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof SupportedLanguagesResponse)) return false;
final SupportedLanguagesResponse other = (SupportedLanguagesResponse) o;
if (!other.canEqual((Object) this)) return false;
if (!super.equals(o)) return false;
final Object this$supportedLanguages = this.getSupportedLanguages();
final Object other$supportedLanguages = other.getSupportedLanguages();
if (this$supportedLanguages == null ? other$supportedLanguages != null : !this$supportedLanguages.equals(other$supportedLanguages)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof SupportedLanguagesResponse;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final Object $supportedLanguages = this.getSupportedLanguages();
result = result * PRIME + ($supportedLanguages == null ? 43 : $supportedLanguages.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy