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

com.basistech.rosette.apimodel.SupportedLanguagePairsResponse Maven / Gradle / Ivy

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 language/script/scheme pairs for name-translation and name-similarity endpoints
 */
@JacksonMixin
public class SupportedLanguagePairsResponse extends Response {
    /**
     */
    private final Set supportedLanguagePairs;

    @SuppressWarnings("all")
    SupportedLanguagePairsResponse(final Set supportedLanguagePairs) {
        this.supportedLanguagePairs = supportedLanguagePairs;
    }


    @SuppressWarnings("all")
    public static class SupportedLanguagePairsResponseBuilder {
        @SuppressWarnings("all")
        private Set supportedLanguagePairs;

        @SuppressWarnings("all")
        SupportedLanguagePairsResponseBuilder() {
        }

        /**
         * @return {@code this}.
         */
        @SuppressWarnings("all")
        public SupportedLanguagePairsResponse.SupportedLanguagePairsResponseBuilder supportedLanguagePairs(final Set supportedLanguagePairs) {
            this.supportedLanguagePairs = supportedLanguagePairs;
            return this;
        }

        @SuppressWarnings("all")
        public SupportedLanguagePairsResponse build() {
            return new SupportedLanguagePairsResponse(this.supportedLanguagePairs);
        }

        @Override
        @SuppressWarnings("all")
        public String toString() {
            return "SupportedLanguagePairsResponse.SupportedLanguagePairsResponseBuilder(supportedLanguagePairs=" + this.supportedLanguagePairs + ")";
        }
    }

    @SuppressWarnings("all")
    public static SupportedLanguagePairsResponse.SupportedLanguagePairsResponseBuilder builder() {
        return new SupportedLanguagePairsResponse.SupportedLanguagePairsResponseBuilder();
    }

    /**
     * @return the set of supported language pairs
     */
    @SuppressWarnings("all")
    public Set getSupportedLanguagePairs() {
        return this.supportedLanguagePairs;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof SupportedLanguagePairsResponse)) return false;
        final SupportedLanguagePairsResponse other = (SupportedLanguagePairsResponse) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$supportedLanguagePairs = this.getSupportedLanguagePairs();
        final Object other$supportedLanguagePairs = other.getSupportedLanguagePairs();
        if (this$supportedLanguagePairs == null ? other$supportedLanguagePairs != null : !this$supportedLanguagePairs.equals(other$supportedLanguagePairs)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof SupportedLanguagePairsResponse;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $supportedLanguagePairs = this.getSupportedLanguagePairs();
        result = result * PRIME + ($supportedLanguagePairs == null ? 43 : $supportedLanguagePairs.hashCode());
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy