Class ListAdaptiveMtSentencesResponse.Builder

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

public static final class ListAdaptiveMtSentencesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAdaptiveMtSentencesResponse.Builder> implements ListAdaptiveMtSentencesResponseOrBuilder
 List AdaptiveMt sentences response.
 
Protobuf type google.cloud.translation.v3.ListAdaptiveMtSentencesResponse
  • 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<ListAdaptiveMtSentencesResponse.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<ListAdaptiveMtSentencesResponse.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<ListAdaptiveMtSentencesResponse.Builder>
    • getDefaultInstanceForType

      public ListAdaptiveMtSentencesResponse 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 ListAdaptiveMtSentencesResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListAdaptiveMtSentencesResponse.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<ListAdaptiveMtSentencesResponse.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<ListAdaptiveMtSentencesResponse.Builder>
    • mergeFrom

      public ListAdaptiveMtSentencesResponse.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<ListAdaptiveMtSentencesResponse.Builder>
      Throws:
      IOException
    • getAdaptiveMtSentencesList

      public List<AdaptiveMtSentence> getAdaptiveMtSentencesList()
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtSentencesList in interface ListAdaptiveMtSentencesResponseOrBuilder
    • getAdaptiveMtSentencesCount

      public int getAdaptiveMtSentencesCount()
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtSentencesCount in interface ListAdaptiveMtSentencesResponseOrBuilder
    • getAdaptiveMtSentences

      public AdaptiveMtSentence getAdaptiveMtSentences(int index)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtSentences in interface ListAdaptiveMtSentencesResponseOrBuilder
    • setAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder setAdaptiveMtSentences(int index, AdaptiveMtSentence value)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder setAdaptiveMtSentences(int index, AdaptiveMtSentence.Builder builderForValue)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder addAdaptiveMtSentences(AdaptiveMtSentence value)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder addAdaptiveMtSentences(int index, AdaptiveMtSentence value)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder addAdaptiveMtSentences(AdaptiveMtSentence.Builder builderForValue)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder addAdaptiveMtSentences(int index, AdaptiveMtSentence.Builder builderForValue)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder addAllAdaptiveMtSentences(Iterable<? extends AdaptiveMtSentence> values)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder clearAdaptiveMtSentences()
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeAdaptiveMtSentences

      public ListAdaptiveMtSentencesResponse.Builder removeAdaptiveMtSentences(int index)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtSentencesBuilder

      public AdaptiveMtSentence.Builder getAdaptiveMtSentencesBuilder(int index)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtSentencesOrBuilder

      public AdaptiveMtSentenceOrBuilder getAdaptiveMtSentencesOrBuilder(int index)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtSentencesOrBuilder in interface ListAdaptiveMtSentencesResponseOrBuilder
    • getAdaptiveMtSentencesOrBuilderList

      public List<? extends AdaptiveMtSentenceOrBuilder> getAdaptiveMtSentencesOrBuilderList()
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtSentencesOrBuilderList in interface ListAdaptiveMtSentencesResponseOrBuilder
    • addAdaptiveMtSentencesBuilder

      public AdaptiveMtSentence.Builder addAdaptiveMtSentencesBuilder()
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtSentencesBuilder

      public AdaptiveMtSentence.Builder addAdaptiveMtSentencesBuilder(int index)
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtSentencesBuilderList

      public List<AdaptiveMtSentence.Builder> getAdaptiveMtSentencesBuilderList()
       Output only. The list of AdaptiveMtSentences.
       
      repeated .google.cloud.translation.v3.AdaptiveMtSentence adaptive_mt_sentences = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getNextPageToken

      public String getNextPageToken()
       Optional.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageToken in interface ListAdaptiveMtSentencesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Optional.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageTokenBytes in interface ListAdaptiveMtSentencesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAdaptiveMtSentencesResponse.Builder setNextPageToken(String value)
       Optional.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListAdaptiveMtSentencesResponse.Builder clearNextPageToken()
       Optional.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListAdaptiveMtSentencesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Optional.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.