public interface AdaptiveMtTranslateRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getContent(int index)
Required.
|
com.google.protobuf.ByteString |
getContentBytes(int index)
Required.
|
int |
getContentCount()
Required.
|
List<String> |
getContentList()
Required.
|
String |
getDataset()
Required.
|
com.google.protobuf.ByteString |
getDatasetBytes()
Required.
|
AdaptiveMtTranslateRequest.GlossaryConfig |
getGlossaryConfig()
Optional.
|
AdaptiveMtTranslateRequest.GlossaryConfigOrBuilder |
getGlossaryConfigOrBuilder()
Optional.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
AdaptiveMtTranslateRequest.ReferenceSentenceConfig |
getReferenceSentenceConfig()
Configuration for caller provided reference sentences.
|
AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder |
getReferenceSentenceConfigOrBuilder()
Configuration for caller provided reference sentences.
|
boolean |
hasGlossaryConfig()
Optional.
|
boolean |
hasReferenceSentenceConfig()
Configuration for caller provided reference sentences.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString 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) = { ... }
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) = { ... }
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) = { ... }
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) = { ... }
List<String> getContentList()
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];int getContentCount()
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];String getContent(int index)
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];index - The index of the element to return.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];index - The index of the value to return.boolean hasReferenceSentenceConfig()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
AdaptiveMtTranslateRequest.ReferenceSentenceConfig getReferenceSentenceConfig()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder getReferenceSentenceConfigOrBuilder()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
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];
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];
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];
Copyright © 2024 Google LLC. All rights reserved.