public final class AdaptiveMtTranslateResponse extends com.google.protobuf.GeneratedMessageV3 implements AdaptiveMtTranslateResponseOrBuilder
An AdaptiveMtTranslate response.Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateResponse| Modifier and Type | Class and Description |
|---|---|
static class |
AdaptiveMtTranslateResponse.Builder
An AdaptiveMtTranslate response.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
GLOSSARY_TRANSLATIONS_FIELD_NUMBER |
static int |
LANGUAGE_CODE_FIELD_NUMBER |
static int |
TRANSLATIONS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static AdaptiveMtTranslateResponse |
getDefaultInstance() |
AdaptiveMtTranslateResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AdaptiveMtTranslation |
getGlossaryTranslations(int index)
Text translation response if a glossary is provided in the request.
|
int |
getGlossaryTranslationsCount()
Text translation response if a glossary is provided in the request.
|
List<AdaptiveMtTranslation> |
getGlossaryTranslationsList()
Text translation response if a glossary is provided in the request.
|
AdaptiveMtTranslationOrBuilder |
getGlossaryTranslationsOrBuilder(int index)
Text translation response if a glossary is provided in the request.
|
List<? extends AdaptiveMtTranslationOrBuilder> |
getGlossaryTranslationsOrBuilderList()
Text translation response if a glossary is provided in the request.
|
String |
getLanguageCode()
Output only.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Output only.
|
com.google.protobuf.Parser<AdaptiveMtTranslateResponse> |
getParserForType() |
int |
getSerializedSize() |
AdaptiveMtTranslation |
getTranslations(int index)
Output only.
|
int |
getTranslationsCount()
Output only.
|
List<AdaptiveMtTranslation> |
getTranslationsList()
Output only.
|
AdaptiveMtTranslationOrBuilder |
getTranslationsOrBuilder(int index)
Output only.
|
List<? extends AdaptiveMtTranslationOrBuilder> |
getTranslationsOrBuilderList()
Output only.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AdaptiveMtTranslateResponse.Builder |
newBuilder() |
static AdaptiveMtTranslateResponse.Builder |
newBuilder(AdaptiveMtTranslateResponse prototype) |
AdaptiveMtTranslateResponse.Builder |
newBuilderForType() |
protected AdaptiveMtTranslateResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AdaptiveMtTranslateResponse |
parseDelimitedFrom(InputStream input) |
static AdaptiveMtTranslateResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateResponse |
parseFrom(byte[] data) |
static AdaptiveMtTranslateResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateResponse |
parseFrom(ByteBuffer data) |
static AdaptiveMtTranslateResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateResponse |
parseFrom(com.google.protobuf.ByteString data) |
static AdaptiveMtTranslateResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AdaptiveMtTranslateResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateResponse |
parseFrom(InputStream input) |
static AdaptiveMtTranslateResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AdaptiveMtTranslateResponse> |
parser() |
AdaptiveMtTranslateResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TRANSLATIONS_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<AdaptiveMtTranslation> getTranslationsList()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslationsList in interface AdaptiveMtTranslateResponseOrBuilderpublic List<? extends AdaptiveMtTranslationOrBuilder> getTranslationsOrBuilderList()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslationsOrBuilderList in interface AdaptiveMtTranslateResponseOrBuilderpublic int getTranslationsCount()
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslationsCount in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslation getTranslations(int index)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslations in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslationOrBuilder getTranslationsOrBuilder(int index)
Output only. The translation.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTranslationsOrBuilder in interface AdaptiveMtTranslateResponseOrBuilderpublic String getLanguageCode()
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getLanguageCode in interface AdaptiveMtTranslateResponseOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
Output only. The translation's language code.
string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getLanguageCodeBytes in interface AdaptiveMtTranslateResponseOrBuilderpublic List<AdaptiveMtTranslation> getGlossaryTranslationsList()
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
getGlossaryTranslationsList in interface AdaptiveMtTranslateResponseOrBuilderpublic List<? extends AdaptiveMtTranslationOrBuilder> getGlossaryTranslationsOrBuilderList()
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
getGlossaryTranslationsOrBuilderList in interface AdaptiveMtTranslateResponseOrBuilderpublic int getGlossaryTranslationsCount()
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
getGlossaryTranslationsCount in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslation getGlossaryTranslations(int index)
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
getGlossaryTranslations in interface AdaptiveMtTranslateResponseOrBuilderpublic AdaptiveMtTranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)
Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
getGlossaryTranslationsOrBuilder in interface AdaptiveMtTranslateResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AdaptiveMtTranslateResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static AdaptiveMtTranslateResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdaptiveMtTranslateResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AdaptiveMtTranslateResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdaptiveMtTranslateResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AdaptiveMtTranslateResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AdaptiveMtTranslateResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AdaptiveMtTranslateResponse.Builder newBuilder()
public static AdaptiveMtTranslateResponse.Builder newBuilder(AdaptiveMtTranslateResponse prototype)
public AdaptiveMtTranslateResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AdaptiveMtTranslateResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AdaptiveMtTranslateResponse getDefaultInstance()
public static com.google.protobuf.Parser<AdaptiveMtTranslateResponse> parser()
public com.google.protobuf.Parser<AdaptiveMtTranslateResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AdaptiveMtTranslateResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.