public final class AdaptiveMtTranslateRequest extends com.google.protobuf.GeneratedMessageV3 implements AdaptiveMtTranslateRequestOrBuilder
The request for sending an AdaptiveMt translation query.Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateRequest| Modifier and Type | Class and Description |
|---|---|
static class |
AdaptiveMtTranslateRequest.Builder
The request for sending an AdaptiveMt translation query.
|
static class |
AdaptiveMtTranslateRequest.GlossaryConfig
Configures which glossary is used for a specific target language and
defines
options for applying that glossary.
|
static interface |
AdaptiveMtTranslateRequest.GlossaryConfigOrBuilder |
static class |
AdaptiveMtTranslateRequest.ReferenceSentenceConfig
Message of caller-provided reference configuration.
|
static interface |
AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder |
static class |
AdaptiveMtTranslateRequest.ReferenceSentencePair
A pair of sentences used as reference in source and target languages.
|
static class |
AdaptiveMtTranslateRequest.ReferenceSentencePairList
A list of reference sentence pairs.
|
static interface |
AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder |
static interface |
AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilder |
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 |
CONTENT_FIELD_NUMBER |
static int |
DATASET_FIELD_NUMBER |
static int |
GLOSSARY_CONFIG_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
static int |
REFERENCE_SENTENCE_CONFIG_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContent(int index)
Required.
|
com.google.protobuf.ByteString |
getContentBytes(int index)
Required.
|
int |
getContentCount()
Required.
|
com.google.protobuf.ProtocolStringList |
getContentList()
Required.
|
String |
getDataset()
Required.
|
com.google.protobuf.ByteString |
getDatasetBytes()
Required.
|
static AdaptiveMtTranslateRequest |
getDefaultInstance() |
AdaptiveMtTranslateRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AdaptiveMtTranslateRequest.GlossaryConfig |
getGlossaryConfig()
Optional.
|
AdaptiveMtTranslateRequest.GlossaryConfigOrBuilder |
getGlossaryConfigOrBuilder()
Optional.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
com.google.protobuf.Parser<AdaptiveMtTranslateRequest> |
getParserForType() |
AdaptiveMtTranslateRequest.ReferenceSentenceConfig |
getReferenceSentenceConfig()
Configuration for caller provided reference sentences.
|
AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder |
getReferenceSentenceConfigOrBuilder()
Configuration for caller provided reference sentences.
|
int |
getSerializedSize() |
boolean |
hasGlossaryConfig()
Optional.
|
int |
hashCode() |
boolean |
hasReferenceSentenceConfig()
Configuration for caller provided reference sentences.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AdaptiveMtTranslateRequest.Builder |
newBuilder() |
static AdaptiveMtTranslateRequest.Builder |
newBuilder(AdaptiveMtTranslateRequest prototype) |
AdaptiveMtTranslateRequest.Builder |
newBuilderForType() |
protected AdaptiveMtTranslateRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AdaptiveMtTranslateRequest |
parseDelimitedFrom(InputStream input) |
static AdaptiveMtTranslateRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateRequest |
parseFrom(byte[] data) |
static AdaptiveMtTranslateRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateRequest |
parseFrom(ByteBuffer data) |
static AdaptiveMtTranslateRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateRequest |
parseFrom(com.google.protobuf.ByteString data) |
static AdaptiveMtTranslateRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AdaptiveMtTranslateRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AdaptiveMtTranslateRequest |
parseFrom(InputStream input) |
static AdaptiveMtTranslateRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AdaptiveMtTranslateRequest> |
parser() |
AdaptiveMtTranslateRequest.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 PARENT_FIELD_NUMBER
public static final int DATASET_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int REFERENCE_SENTENCE_CONFIG_FIELD_NUMBER
public static final int GLOSSARY_CONFIG_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 String getParent()
Required. Location to make a regional call.
Format: `projects/{project-number-or-id}/locations/{location-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent in interface AdaptiveMtTranslateRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Required. Location to make a regional call.
Format: `projects/{project-number-or-id}/locations/{location-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes in interface AdaptiveMtTranslateRequestOrBuilderpublic String getDataset()
Required. The resource name for the dataset to use for adaptive MT.
`projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
string dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDataset in interface AdaptiveMtTranslateRequestOrBuilderpublic com.google.protobuf.ByteString getDatasetBytes()
Required. The resource name for the dataset to use for adaptive MT.
`projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
string dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getDatasetBytes in interface AdaptiveMtTranslateRequestOrBuilderpublic com.google.protobuf.ProtocolStringList getContentList()
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];getContentList in interface AdaptiveMtTranslateRequestOrBuilderpublic int getContentCount()
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];getContentCount in interface AdaptiveMtTranslateRequestOrBuilderpublic String getContent(int index)
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];getContent in interface AdaptiveMtTranslateRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getContentBytes(int index)
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];getContentBytes in interface AdaptiveMtTranslateRequestOrBuilderindex - The index of the value to return.public boolean hasReferenceSentenceConfig()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
hasReferenceSentenceConfig in interface AdaptiveMtTranslateRequestOrBuilderpublic AdaptiveMtTranslateRequest.ReferenceSentenceConfig getReferenceSentenceConfig()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
getReferenceSentenceConfig in interface AdaptiveMtTranslateRequestOrBuilderpublic AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder getReferenceSentenceConfigOrBuilder()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
getReferenceSentenceConfigOrBuilder in interface AdaptiveMtTranslateRequestOrBuilderpublic boolean hasGlossaryConfig()
Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
hasGlossaryConfig in interface AdaptiveMtTranslateRequestOrBuilderpublic AdaptiveMtTranslateRequest.GlossaryConfig getGlossaryConfig()
Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getGlossaryConfig in interface AdaptiveMtTranslateRequestOrBuilderpublic AdaptiveMtTranslateRequest.GlossaryConfigOrBuilder getGlossaryConfigOrBuilder()
Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
getGlossaryConfigOrBuilder in interface AdaptiveMtTranslateRequestOrBuilderpublic 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 AdaptiveMtTranslateRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdaptiveMtTranslateRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static AdaptiveMtTranslateRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdaptiveMtTranslateRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AdaptiveMtTranslateRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdaptiveMtTranslateRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AdaptiveMtTranslateRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AdaptiveMtTranslateRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AdaptiveMtTranslateRequest.Builder newBuilder()
public static AdaptiveMtTranslateRequest.Builder newBuilder(AdaptiveMtTranslateRequest prototype)
public AdaptiveMtTranslateRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AdaptiveMtTranslateRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AdaptiveMtTranslateRequest getDefaultInstance()
public static com.google.protobuf.Parser<AdaptiveMtTranslateRequest> parser()
public com.google.protobuf.Parser<AdaptiveMtTranslateRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AdaptiveMtTranslateRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.