public final class TranslateTextResponse extends GeneratedMessageV3 implements TranslateTextResponseOrBuilder
Protobuf type google.cloud.translation.v3beta1.TranslateTextResponse
Static Fields
GLOSSARY_TRANSLATIONS_FIELD_NUMBER
public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER
Field Value
TRANSLATIONS_FIELD_NUMBER
public static final int TRANSLATIONS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TranslateTextResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TranslateTextResponse.Builder newBuilder()
Returns
newBuilder(TranslateTextResponse prototype)
public static TranslateTextResponse.Builder newBuilder(TranslateTextResponse prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static TranslateTextResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TranslateTextResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TranslateTextResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TranslateTextResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TranslateTextResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TranslateTextResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static TranslateTextResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TranslateTextResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static TranslateTextResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TranslateTextResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TranslateTextResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TranslateTextResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TranslateTextResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public TranslateTextResponse getDefaultInstanceForType()
Returns
getGlossaryTranslations(int index)
public Translation getGlossaryTranslations(int index)
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
Parameter
Returns
getGlossaryTranslationsCount()
public int getGlossaryTranslationsCount()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
Returns
getGlossaryTranslationsList()
public List<Translation> getGlossaryTranslationsList()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
Returns
getGlossaryTranslationsOrBuilder(int index)
public TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
Parameter
Returns
getGlossaryTranslationsOrBuilderList()
public List<? extends TranslationOrBuilder> getGlossaryTranslationsOrBuilderList()
Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation glossary_translations = 3;
Returns
Type | Description |
List<? extends com.google.cloud.translate.v3beta1.TranslationOrBuilder> | |
getParserForType()
public Parser<TranslateTextResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTranslations(int index)
public Translation getTranslations(int index)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
Parameter
Returns
getTranslationsCount()
public int getTranslationsCount()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
Returns
getTranslationsList()
public List<Translation> getTranslationsList()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
Returns
getTranslationsOrBuilder(int index)
public TranslationOrBuilder getTranslationsOrBuilder(int index)
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
Parameter
Returns
getTranslationsOrBuilderList()
public List<? extends TranslationOrBuilder> getTranslationsOrBuilderList()
Text translation responses with no glossary applied.
This field has the same length as
contents
.
repeated .google.cloud.translation.v3beta1.Translation translations = 1;
Returns
Type | Description |
List<? extends com.google.cloud.translate.v3beta1.TranslationOrBuilder> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TranslateTextResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TranslateTextResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TranslateTextResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions