Package com.google.cloud.translate.v3
Interface AdaptiveMtTranslateRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AdaptiveMtTranslateRequest,AdaptiveMtTranslateRequest.Builder
@Generated
public interface AdaptiveMtTranslateRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetContent(int index) Required.com.google.protobuf.ByteStringgetContentBytes(int index) Required.intRequired.Required.Required.com.google.protobuf.ByteStringRequired.Optional.Optional.The format of the source text.com.google.protobuf.ByteStringThe format of the source text.Required.com.google.protobuf.ByteStringRequired.Configuration for caller provided reference sentences.Configuration for caller provided reference sentences.booleanOptional.booleanConfiguration for caller provided reference sentences.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getParent
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) = { ... }- Returns:
- The parent.
-
getParentBytes
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) = { ... }- Returns:
- The bytes for parent.
-
getDataset
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) = { ... }- Returns:
- The dataset.
-
getDatasetBytes
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) = { ... }- Returns:
- The bytes for dataset.
-
getContentList
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the content.
-
getContentCount
int getContentCount()Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The count of content.
-
getContent
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the element to return.- Returns:
- The content at the given index.
-
getContentBytes
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];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the content at the given index.
-
getMimeType
String getMimeType()The format of the source text.
string mime_type = 4;- Returns:
- The mimeType.
-
getMimeTypeBytes
com.google.protobuf.ByteString getMimeTypeBytes()The format of the source text.
string mime_type = 4;- Returns:
- The bytes for mimeType.
-
hasReferenceSentenceConfig
boolean hasReferenceSentenceConfig()Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;- Returns:
- Whether the referenceSentenceConfig field is set.
-
getReferenceSentenceConfig
AdaptiveMtTranslateRequest.ReferenceSentenceConfig getReferenceSentenceConfig()Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;- Returns:
- The referenceSentenceConfig.
-
getReferenceSentenceConfigOrBuilder
AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder getReferenceSentenceConfigOrBuilder()Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6; -
hasGlossaryConfig
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];- Returns:
- Whether the glossaryConfig field is set.
-
getGlossaryConfig
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];- Returns:
- The glossaryConfig.
-
getGlossaryConfigOrBuilder
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];
-