Class AdaptiveMtTranslateResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder>
com.google.cloud.translate.v3.AdaptiveMtTranslateResponse.Builder
All Implemented Interfaces:
AdaptiveMtTranslateResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdaptiveMtTranslateResponse

public static final class AdaptiveMtTranslateResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder> implements AdaptiveMtTranslateResponseOrBuilder
 An AdaptiveMtTranslate response.
 
Protobuf type google.cloud.translation.v3.AdaptiveMtTranslateResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder>
    • getDefaultInstanceForType

      public AdaptiveMtTranslateResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AdaptiveMtTranslateResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AdaptiveMtTranslateResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtTranslateResponse.Builder>
    • mergeFrom

      public AdaptiveMtTranslateResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateResponse.Builder>
      Throws:
      IOException
    • getTranslationsList

      public List<AdaptiveMtTranslation> getTranslationsList()
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTranslationsList in interface AdaptiveMtTranslateResponseOrBuilder
    • getTranslationsCount

      public int getTranslationsCount()
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTranslationsCount in interface AdaptiveMtTranslateResponseOrBuilder
    • getTranslations

      public AdaptiveMtTranslation getTranslations(int index)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTranslations in interface AdaptiveMtTranslateResponseOrBuilder
    • setTranslations

      public AdaptiveMtTranslateResponse.Builder setTranslations(int index, AdaptiveMtTranslation value)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setTranslations

      public AdaptiveMtTranslateResponse.Builder setTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addTranslations

       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addTranslations

      public AdaptiveMtTranslateResponse.Builder addTranslations(int index, AdaptiveMtTranslation value)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addTranslations

      public AdaptiveMtTranslateResponse.Builder addTranslations(AdaptiveMtTranslation.Builder builderForValue)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addTranslations

      public AdaptiveMtTranslateResponse.Builder addTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllTranslations

      public AdaptiveMtTranslateResponse.Builder addAllTranslations(Iterable<? extends AdaptiveMtTranslation> values)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearTranslations

      public AdaptiveMtTranslateResponse.Builder clearTranslations()
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeTranslations

      public AdaptiveMtTranslateResponse.Builder removeTranslations(int index)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTranslationsBuilder

      public AdaptiveMtTranslation.Builder getTranslationsBuilder(int index)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTranslationsOrBuilder

      public AdaptiveMtTranslationOrBuilder getTranslationsOrBuilder(int index)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTranslationsOrBuilder in interface AdaptiveMtTranslateResponseOrBuilder
    • getTranslationsOrBuilderList

      public List<? extends AdaptiveMtTranslationOrBuilder> getTranslationsOrBuilderList()
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTranslationsOrBuilderList in interface AdaptiveMtTranslateResponseOrBuilder
    • addTranslationsBuilder

      public AdaptiveMtTranslation.Builder addTranslationsBuilder()
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addTranslationsBuilder

      public AdaptiveMtTranslation.Builder addTranslationsBuilder(int index)
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getTranslationsBuilderList

      public List<AdaptiveMtTranslation.Builder> getTranslationsBuilderList()
       Output only. The translation.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation translations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLanguageCode

      public String getLanguageCode()
       Output only. The translation's language code.
       
      string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLanguageCode in interface AdaptiveMtTranslateResponseOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Output only. The translation's language code.
       
      string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLanguageCodeBytes in interface AdaptiveMtTranslateResponseOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public AdaptiveMtTranslateResponse.Builder setLanguageCode(String value)
       Output only. The translation's language code.
       
      string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public AdaptiveMtTranslateResponse.Builder clearLanguageCode()
       Output only. The translation's language code.
       
      string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public AdaptiveMtTranslateResponse.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Output only. The translation's language code.
       
      string language_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • getGlossaryTranslationsList

      public List<AdaptiveMtTranslation> getGlossaryTranslationsList()
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
      Specified by:
      getGlossaryTranslationsList in interface AdaptiveMtTranslateResponseOrBuilder
    • getGlossaryTranslationsCount

      public int getGlossaryTranslationsCount()
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
      Specified by:
      getGlossaryTranslationsCount in interface AdaptiveMtTranslateResponseOrBuilder
    • getGlossaryTranslations

      public AdaptiveMtTranslation getGlossaryTranslations(int index)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
      Specified by:
      getGlossaryTranslations in interface AdaptiveMtTranslateResponseOrBuilder
    • setGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder setGlossaryTranslations(int index, AdaptiveMtTranslation value)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • setGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder setGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • addGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(AdaptiveMtTranslation value)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • addGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(int index, AdaptiveMtTranslation value)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • addGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(AdaptiveMtTranslation.Builder builderForValue)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • addGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder addGlossaryTranslations(int index, AdaptiveMtTranslation.Builder builderForValue)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • addAllGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder addAllGlossaryTranslations(Iterable<? extends AdaptiveMtTranslation> values)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • clearGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder clearGlossaryTranslations()
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • removeGlossaryTranslations

      public AdaptiveMtTranslateResponse.Builder removeGlossaryTranslations(int index)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • getGlossaryTranslationsBuilder

      public AdaptiveMtTranslation.Builder getGlossaryTranslationsBuilder(int index)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • getGlossaryTranslationsOrBuilder

      public AdaptiveMtTranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
      Specified by:
      getGlossaryTranslationsOrBuilder in interface AdaptiveMtTranslateResponseOrBuilder
    • getGlossaryTranslationsOrBuilderList

      public List<? extends AdaptiveMtTranslationOrBuilder> getGlossaryTranslationsOrBuilderList()
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
      Specified by:
      getGlossaryTranslationsOrBuilderList in interface AdaptiveMtTranslateResponseOrBuilder
    • addGlossaryTranslationsBuilder

      public AdaptiveMtTranslation.Builder addGlossaryTranslationsBuilder()
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • addGlossaryTranslationsBuilder

      public AdaptiveMtTranslation.Builder addGlossaryTranslationsBuilder(int index)
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;
    • getGlossaryTranslationsBuilderList

      public List<AdaptiveMtTranslation.Builder> getGlossaryTranslationsBuilderList()
       Text translation response if a glossary is provided in the request. This
       could be the same as 'translation' above if no terms apply.
       
      repeated .google.cloud.translation.v3.AdaptiveMtTranslation glossary_translations = 4;