public static final class TranslateTextResponse.Builder extends GeneratedMessageV3.Builder<TranslateTextResponse.Builder> implements TranslateTextResponseOrBuilder
   
  Protobuf type google.cloud.translation.v3.TranslateTextResponse
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  Returns
  
  Methods
  
  
  addAllGlossaryTranslations(Iterable<? extends Translation> values)
  
    public TranslateTextResponse.Builder addAllGlossaryTranslations(Iterable<? extends Translation> values)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    
      
        | Name | Description | 
      
        | values | Iterable<? extends com.google.cloud.translate.v3.Translation>
 | 
    
  
  Returns
  
  
  addAllTranslations(Iterable<? extends Translation> values)
  
    public TranslateTextResponse.Builder addAllTranslations(Iterable<? extends Translation> values)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
    
      
        | Name | Description | 
      
        | values | Iterable<? extends com.google.cloud.translate.v3.Translation>
 | 
    
  
  Returns
  
  
  addGlossaryTranslations(Translation value)
  
    public TranslateTextResponse.Builder addGlossaryTranslations(Translation value)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
addGlossaryTranslations(Translation.Builder builderForValue)
  
    public TranslateTextResponse.Builder addGlossaryTranslations(Translation.Builder builderForValue)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
addGlossaryTranslations(int index, Translation value)
  
    public TranslateTextResponse.Builder addGlossaryTranslations(int index, Translation value)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
addGlossaryTranslations(int index, Translation.Builder builderForValue)
  
    public TranslateTextResponse.Builder addGlossaryTranslations(int index, Translation.Builder builderForValue)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
addGlossaryTranslationsBuilder()
  
    public Translation.Builder addGlossaryTranslationsBuilder()
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
addGlossaryTranslationsBuilder(int index)
  
    public Translation.Builder addGlossaryTranslationsBuilder(int index)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value)
  
    public TranslateTextResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
   
  Parameters
  
  Returns
  
  Overrides
  
  
  addTranslations(Translation value)
  
    public TranslateTextResponse.Builder addTranslations(Translation value)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
addTranslations(Translation.Builder builderForValue)
  
    public TranslateTextResponse.Builder addTranslations(Translation.Builder builderForValue)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
addTranslations(int index, Translation value)
  
    public TranslateTextResponse.Builder addTranslations(int index, Translation value)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
addTranslations(int index, Translation.Builder builderForValue)
  
    public TranslateTextResponse.Builder addTranslations(int index, Translation.Builder builderForValue)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
addTranslationsBuilder()
  
    public Translation.Builder addTranslationsBuilder()
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
addTranslationsBuilder(int index)
  
    public Translation.Builder addTranslationsBuilder(int index)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  build()
  
    public TranslateTextResponse build()
   
  Returns
  
  
  buildPartial()
  
    public TranslateTextResponse buildPartial()
   
  Returns
  
  
  clear()
  
    public TranslateTextResponse.Builder clear()
   
  Returns
  
  Overrides
  
  
  clearField(Descriptors.FieldDescriptor field)
  
    public TranslateTextResponse.Builder clearField(Descriptors.FieldDescriptor field)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  clearGlossaryTranslations()
  
    public TranslateTextResponse.Builder clearGlossaryTranslations()
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
  
    public TranslateTextResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  clearTranslations()
  
    public TranslateTextResponse.Builder clearTranslations()
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
clone()
  
    public TranslateTextResponse.Builder clone()
   
  Returns
  
  Overrides
  
  
  getDefaultInstanceForType()
  
    public TranslateTextResponse getDefaultInstanceForType()
   
  Returns
  
  
  getDescriptorForType()
  
    public Descriptors.Descriptor getDescriptorForType()
   
  Returns
  
  Overrides
  
  
  getGlossaryTranslations(int index)
  
    public Translation getGlossaryTranslations(int index)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getGlossaryTranslationsBuilder(int index)
  
    public Translation.Builder getGlossaryTranslationsBuilder(int index)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getGlossaryTranslationsBuilderList()
  
    public List<Translation.Builder> getGlossaryTranslationsBuilderList()
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
getGlossaryTranslationsCount()
  
    public int getGlossaryTranslationsCount()
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
getGlossaryTranslationsList()
  
    public List<Translation> getGlossaryTranslationsList()
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
getGlossaryTranslationsOrBuilder(int index)
  
    public TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getGlossaryTranslationsOrBuilderList()
  
    public List<? extends TranslationOrBuilder> getGlossaryTranslationsOrBuilderList()
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    
      
        | Type | Description | 
      
        | List<? extends com.google.cloud.translate.v3.TranslationOrBuilder> |  | 
    
  
  
  getTranslations(int index)
  
    public Translation getTranslations(int index)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getTranslationsBuilder(int index)
  
    public Translation.Builder getTranslationsBuilder(int index)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getTranslationsBuilderList()
  
    public List<Translation.Builder> getTranslationsBuilderList()
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
getTranslationsCount()
  
    public int getTranslationsCount()
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
getTranslationsList()
  
    public List<Translation> getTranslationsList()
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
getTranslationsOrBuilder(int index)
  
    public TranslationOrBuilder getTranslationsOrBuilder(int index)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  getTranslationsOrBuilderList()
  
    public List<? extends TranslationOrBuilder> getTranslationsOrBuilderList()
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
    
      
        | Type | Description | 
      
        | List<? extends com.google.cloud.translate.v3.TranslationOrBuilder> |  | 
    
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  Returns
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  Returns
  
  Overrides
  
  
  mergeFrom(TranslateTextResponse other)
  
    public TranslateTextResponse.Builder mergeFrom(TranslateTextResponse other)
   
  Parameter
  
  Returns
  
  
  mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
  
    public TranslateTextResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Overrides
  
  Exceptions
  
  
  mergeFrom(Message other)
  
    public TranslateTextResponse.Builder mergeFrom(Message other)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  mergeUnknownFields(UnknownFieldSet unknownFields)
  
    public final TranslateTextResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  removeGlossaryTranslations(int index)
  
    public TranslateTextResponse.Builder removeGlossaryTranslations(int index)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  removeTranslations(int index)
  
    public TranslateTextResponse.Builder removeTranslations(int index)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
    
      
        | Name | Description | 
      
        | index | int
 | 
    
  
  Returns
  
  
  setField(Descriptors.FieldDescriptor field, Object value)
  
    public TranslateTextResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
   
  Parameters
  
  Returns
  
  Overrides
  
  
  setGlossaryTranslations(int index, Translation value)
  
    public TranslateTextResponse.Builder setGlossaryTranslations(int index, Translation value)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
setGlossaryTranslations(int index, Translation.Builder builderForValue)
  
    public TranslateTextResponse.Builder setGlossaryTranslations(int index, Translation.Builder builderForValue)
   
   Text translation responses if a glossary is provided in the request.
 This can be the same as
 translations
 if no terms apply. This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
  
    public TranslateTextResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
   
  Parameters
  
  Returns
  
  Overrides
  
  
  setTranslations(int index, Translation value)
  
    public TranslateTextResponse.Builder setTranslations(int index, Translation value)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
setTranslations(int index, Translation.Builder builderForValue)
  
    public TranslateTextResponse.Builder setTranslations(int index, Translation.Builder builderForValue)
   
   Text translation responses with no glossary applied.
 This field has the same length as
 contents.
 repeated .google.cloud.translation.v3.Translation translations = 1;
setUnknownFields(UnknownFieldSet unknownFields)
  
    public final TranslateTextResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
   
  Parameter
  
  Returns
  
  Overrides