Class AdaptiveMtTranslateRequest (2.70.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.70.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  AdaptiveMtTranslateRequest   extends   GeneratedMessageV3   implements   AdaptiveMtTranslateRequestOrBuilder  
   The request for sending an AdaptiveMt translation query.
 Protobuf type google.cloud.translation.v3.AdaptiveMtTranslateRequest
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  CONTENT_FIELD_NUMBER 
  
    
public   static   final   int   CONTENT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DATASET_FIELD_NUMBER 
  
    
public   static   final   int   DATASET_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  GLOSSARY_CONFIG_FIELD_NUMBER 
  
    
public   static   final   int   GLOSSARY_CONFIG_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PARENT_FIELD_NUMBER 
  
    
public   static   final   int   PARENT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  REFERENCE_SENTENCE_CONFIG_FIELD_NUMBER 
  
    
public   static   final   int   REFERENCE_SENTENCE_CONFIG_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   AdaptiveMtTranslateRequest   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   AdaptiveMtTranslateRequest . Builder   newBuilder ()  
  
  newBuilder(AdaptiveMtTranslateRequest prototype) 
  
    
public   static   AdaptiveMtTranslateRequest . Builder   newBuilder ( AdaptiveMtTranslateRequest   prototype )  
  
  
  
    
public   static   AdaptiveMtTranslateRequest   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   AdaptiveMtTranslateRequest   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AdaptiveMtTranslateRequest   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<AdaptiveMtTranslateRequest>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getContent(int index) 
  
    
public   String   getContent ( int   index )  
   Required. The content of the input in string format.
 repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String The content at the given index.
 
     
  
  getContentBytes(int index) 
  
    
public   ByteString   getContentBytes ( int   index )  
   Required. The content of the input in string format.
 repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes of the content at the given index.
 
     
  
  getContentCount() 
  
    
public   int   getContentCount ()  
   Required. The content of the input in string format.
 repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        int The count of content.
 
     
  
  getContentList() 
  
    
public   ProtocolStringList   getContentList ()  
   Required. The content of the input in string format.
 repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
getDataset() 
  
    
public   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  
      
        Type Description  
      
        String The dataset.
 
     
  
  getDatasetBytes() 
  
    
public   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  
      
        Type Description  
      
        ByteString The bytes for dataset.
 
     
  
  getDefaultInstanceForType() 
  
    
public   AdaptiveMtTranslateRequest   getDefaultInstanceForType ()  
  
  getGlossaryConfig() 
  
    
public   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];
 
getGlossaryConfigOrBuilder() 
  
    
public   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];
 
getParent() 
  
    
public   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  
      
        Type Description  
      
        String The parent.
 
     
  
  getParentBytes() 
  
    
public   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  
      
        Type Description  
      
        ByteString The bytes for parent.
 
     
  
  getParserForType() 
  
    
public   Parser<AdaptiveMtTranslateRequest>   getParserForType ()  
  
  Overrides 
  
  getReferenceSentenceConfig() 
  
    
public   AdaptiveMtTranslateRequest . ReferenceSentenceConfig   getReferenceSentenceConfig ()  
   Configuration for caller provided reference sentences.
 
 optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
 
getReferenceSentenceConfigOrBuilder() 
  
    
public   AdaptiveMtTranslateRequest . ReferenceSentenceConfigOrBuilder   getReferenceSentenceConfigOrBuilder ()  
   Configuration for caller provided reference sentences.
 
 optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
 
getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hasGlossaryConfig() 
  
    
public   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  
      
        Type Description  
      
        boolean Whether the glossaryConfig field is set.
 
     
  
  hasReferenceSentenceConfig() 
  
    
public   boolean   hasReferenceSentenceConfig ()  
   Configuration for caller provided reference sentences.
 
 optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the referenceSentenceConfig field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   AdaptiveMtTranslateRequest . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   AdaptiveMtTranslateRequest . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   AdaptiveMtTranslateRequest . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]