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

      List<String> 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

      String getContent(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 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

       Configuration for caller provided reference sentences.
       
      optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
      Returns:
      The referenceSentenceConfig.
    • 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

       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

       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];