Uses of Class
com.google.cloud.translate.v3.Translation.Builder
-
Uses of Translation.Builder in com.google.cloud.translate.v3
Methods in com.google.cloud.translate.v3 that return Translation.BuilderModifier and TypeMethodDescriptionTranslateTextResponse.Builder.addGlossaryTranslationsBuilder()Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder.addGlossaryTranslationsBuilder(int index) Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder.addTranslationsBuilder()Text translation responses with no glossary applied.TranslateTextResponse.Builder.addTranslationsBuilder(int index) Text translation responses with no glossary applied.Translation.Builder.clear()Translation.Builder.clearDetectedLanguageCode()The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request.Translation.Builder.clearGlossaryConfig()The `glossary_config` used for this translation.Translation.Builder.clearModel()Only present when `model` is present in the request.Translation.Builder.clearTranslatedText()Text translated into the target language.TranslateTextResponse.Builder.getGlossaryTranslationsBuilder(int index) Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder.getTranslationsBuilder(int index) Text translation responses with no glossary applied.Translation.Builder.mergeFrom(Translation other) Translation.Builder.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) Translation.Builder.mergeFrom(com.google.protobuf.Message other) Translation.Builder.mergeGlossaryConfig(TranslateTextGlossaryConfig value) The `glossary_config` used for this translation.static Translation.BuilderTranslation.newBuilder()static Translation.BuilderTranslation.newBuilder(Translation prototype) Translation.newBuilderForType()protected Translation.BuilderTranslation.newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) Translation.Builder.setDetectedLanguageCode(String value) The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request.Translation.Builder.setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request.Translation.Builder.setGlossaryConfig(TranslateTextGlossaryConfig value) The `glossary_config` used for this translation.Translation.Builder.setGlossaryConfig(TranslateTextGlossaryConfig.Builder builderForValue) The `glossary_config` used for this translation.Only present when `model` is present in the request.Translation.Builder.setModelBytes(com.google.protobuf.ByteString value) Only present when `model` is present in the request.Translation.Builder.setTranslatedText(String value) Text translated into the target language.Translation.Builder.setTranslatedTextBytes(com.google.protobuf.ByteString value) Text translated into the target language.Translation.toBuilder()Methods in com.google.cloud.translate.v3 that return types with arguments of type Translation.BuilderModifier and TypeMethodDescriptionTranslateTextResponse.Builder.getGlossaryTranslationsBuilderList()Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder.getTranslationsBuilderList()Text translation responses with no glossary applied.Methods in com.google.cloud.translate.v3 with parameters of type Translation.BuilderModifier and TypeMethodDescriptionTranslateTextResponse.Builder.addGlossaryTranslations(int index, Translation.Builder builderForValue) Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder.addGlossaryTranslations(Translation.Builder builderForValue) Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder.addTranslations(int index, Translation.Builder builderForValue) Text translation responses with no glossary applied.TranslateTextResponse.Builder.addTranslations(Translation.Builder builderForValue) Text translation responses with no glossary applied.TranslateTextResponse.Builder.setGlossaryTranslations(int index, Translation.Builder builderForValue) Text translation responses if a glossary is provided in the request.TranslateTextResponse.Builder.setTranslations(int index, Translation.Builder builderForValue) Text translation responses with no glossary applied.