/** * Sets the code for the default target language. If not set, english ({@code en}) is used. * {@link Translate#translate(List, TranslateOption...)} and * {@link Translate#translate(String, TranslateOption...)} calls will use this * value unless a {@link TranslateOption#targetLanguage(String)} option is explicitly * provided. * * @return the builder */ public Builder targetLanguage(String targetLanguage) { this.targetLanguage = targetLanguage; return self(); }
/** * Sets the service authentication credentials. Setting credentials has no impact on the * {@link Translate} service. * * @return the builder */ public Builder authCredentials(AuthCredentials authCredentials) { super.authCredentials(authCredentials); return self(); }
/** * Sets the project ID. Setting a project ID has no impact on the {@link Translate} service. * * @return the builder */ @Override public Builder setProjectId(String projectId) { super.setProjectId(projectId); return self(); }
/** * Sets project id. Setting a project id has no impact on the {@link Translate} service. * * @return the builder */ @Override public Builder projectId(String projectId) { super.projectId(projectId); return self(); }
/** * Sets the code for the default target language. If not set, English ({@code en}) is used. * Calls to {@link Translate#translate(List, TranslateOption...)} and {@link * Translate#translate(String, TranslateOption...)} will use this value unless an option from * {@link TranslateOption#targetLanguage(String)} is explicitly provided. * * @return the builder */ public Builder setTargetLanguage(String targetLanguage) { this.targetLanguage = targetLanguage; return self(); }
/** * Sets the code for the default target language. If not set, English ({@code en}) is used. * Calls to {@link Translate#translate(List, TranslateOption...)} and {@link * Translate#translate(String, TranslateOption...)} will use this value unless an option from * {@link TranslateOption#targetLanguage(String)} is explicitly provided. * * @return the builder */ public Builder setTargetLanguage(String targetLanguage) { this.targetLanguage = targetLanguage; return self(); }
/** * Sets the project ID. Setting a project ID has no impact on the {@link Translate} service. * * @return the builder */ @Override public Builder setProjectId(String projectId) { super.setProjectId(projectId); return self(); }