Class TranslateTextResponse (2.3.2)

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
TypeDescription
int

TRANSLATIONS_FIELD_NUMBER

public static final int TRANSLATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TranslateTextResponse getDefaultInstance()
Returns
TypeDescription
TranslateTextResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TranslateTextResponse.Builder newBuilder()
Returns
TypeDescription
TranslateTextResponse.Builder

newBuilder(TranslateTextResponse prototype)

public static TranslateTextResponse.Builder newBuilder(TranslateTextResponse prototype)
Parameter
NameDescription
prototypeTranslateTextResponse
Returns
TypeDescription
TranslateTextResponse.Builder

parseDelimitedFrom(InputStream input)

public static TranslateTextResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslateTextResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TranslateTextResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TranslateTextResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TranslateTextResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TranslateTextResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TranslateTextResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslateTextResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TranslateTextResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslateTextResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TranslateTextResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TranslateTextResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslateTextResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TranslateTextResponse> parser()
Returns
TypeDescription
Parser<TranslateTextResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TranslateTextResponse getDefaultInstanceForType()
Returns
TypeDescription
TranslateTextResponse

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
NameDescription
indexint
Returns
TypeDescription
Translation

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
TypeDescription
int

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
TypeDescription
List<Translation>

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
NameDescription
indexint
Returns
TypeDescription
TranslationOrBuilder

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
TypeDescription
List<? extends com.google.cloud.translate.v3beta1.TranslationOrBuilder>

getParserForType()

public Parser<TranslateTextResponse> getParserForType()
Returns
TypeDescription
Parser<TranslateTextResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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
NameDescription
indexint
Returns
TypeDescription
Translation

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
TypeDescription
int

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
TypeDescription
List<Translation>

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
NameDescription
indexint
Returns
TypeDescription
TranslationOrBuilder

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
TypeDescription
List<? extends com.google.cloud.translate.v3beta1.TranslationOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TranslateTextResponse.Builder newBuilderForType()
Returns
TypeDescription
TranslateTextResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TranslateTextResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TranslateTextResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TranslateTextResponse.Builder toBuilder()
Returns
TypeDescription
TranslateTextResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException