com.tencentcloudapi.es.v20180416.models.EsDictionaryInfo Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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.tencentcloudapi.es.v20180416.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class EsDictionaryInfo extends AbstractModel{
/**
* List of non-stop words
*/
@SerializedName("MainDict")
@Expose
private DictInfo [] MainDict;
/**
* List of stop words
*/
@SerializedName("Stopwords")
@Expose
private DictInfo [] Stopwords;
/**
* QQ dictionary list
*/
@SerializedName("QQDict")
@Expose
private DictInfo [] QQDict;
/**
* Synonym dictionary list
*/
@SerializedName("Synonym")
@Expose
private DictInfo [] Synonym;
/**
* Update dictionary type
*/
@SerializedName("UpdateType")
@Expose
private String UpdateType;
/**
* Get List of non-stop words
* @return MainDict List of non-stop words
*/
public DictInfo [] getMainDict() {
return this.MainDict;
}
/**
* Set List of non-stop words
* @param MainDict List of non-stop words
*/
public void setMainDict(DictInfo [] MainDict) {
this.MainDict = MainDict;
}
/**
* Get List of stop words
* @return Stopwords List of stop words
*/
public DictInfo [] getStopwords() {
return this.Stopwords;
}
/**
* Set List of stop words
* @param Stopwords List of stop words
*/
public void setStopwords(DictInfo [] Stopwords) {
this.Stopwords = Stopwords;
}
/**
* Get QQ dictionary list
* @return QQDict QQ dictionary list
*/
public DictInfo [] getQQDict() {
return this.QQDict;
}
/**
* Set QQ dictionary list
* @param QQDict QQ dictionary list
*/
public void setQQDict(DictInfo [] QQDict) {
this.QQDict = QQDict;
}
/**
* Get Synonym dictionary list
* @return Synonym Synonym dictionary list
*/
public DictInfo [] getSynonym() {
return this.Synonym;
}
/**
* Set Synonym dictionary list
* @param Synonym Synonym dictionary list
*/
public void setSynonym(DictInfo [] Synonym) {
this.Synonym = Synonym;
}
/**
* Get Update dictionary type
* @return UpdateType Update dictionary type
*/
public String getUpdateType() {
return this.UpdateType;
}
/**
* Set Update dictionary type
* @param UpdateType Update dictionary type
*/
public void setUpdateType(String UpdateType) {
this.UpdateType = UpdateType;
}
public EsDictionaryInfo() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public EsDictionaryInfo(EsDictionaryInfo source) {
if (source.MainDict != null) {
this.MainDict = new DictInfo[source.MainDict.length];
for (int i = 0; i < source.MainDict.length; i++) {
this.MainDict[i] = new DictInfo(source.MainDict[i]);
}
}
if (source.Stopwords != null) {
this.Stopwords = new DictInfo[source.Stopwords.length];
for (int i = 0; i < source.Stopwords.length; i++) {
this.Stopwords[i] = new DictInfo(source.Stopwords[i]);
}
}
if (source.QQDict != null) {
this.QQDict = new DictInfo[source.QQDict.length];
for (int i = 0; i < source.QQDict.length; i++) {
this.QQDict[i] = new DictInfo(source.QQDict[i]);
}
}
if (source.Synonym != null) {
this.Synonym = new DictInfo[source.Synonym.length];
for (int i = 0; i < source.Synonym.length; i++) {
this.Synonym[i] = new DictInfo(source.Synonym[i]);
}
}
if (source.UpdateType != null) {
this.UpdateType = new String(source.UpdateType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArrayObj(map, prefix + "MainDict.", this.MainDict);
this.setParamArrayObj(map, prefix + "Stopwords.", this.Stopwords);
this.setParamArrayObj(map, prefix + "QQDict.", this.QQDict);
this.setParamArrayObj(map, prefix + "Synonym.", this.Synonym);
this.setParamSimple(map, prefix + "UpdateType", this.UpdateType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy