Class ListAdaptiveMtFilesResponse.Builder

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

public static final class ListAdaptiveMtFilesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAdaptiveMtFilesResponse.Builder> implements ListAdaptiveMtFilesResponseOrBuilder
 The response for listing all AdaptiveMt files under a given dataset.
 
Protobuf type google.cloud.translation.v3.ListAdaptiveMtFilesResponse
  • 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<ListAdaptiveMtFilesResponse.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<ListAdaptiveMtFilesResponse.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<ListAdaptiveMtFilesResponse.Builder>
    • getDefaultInstanceForType

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

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

      public ListAdaptiveMtFilesResponse.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<ListAdaptiveMtFilesResponse.Builder>
      Throws:
      IOException
    • getAdaptiveMtFilesList

      public List<AdaptiveMtFile> getAdaptiveMtFilesList()
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtFilesList in interface ListAdaptiveMtFilesResponseOrBuilder
    • getAdaptiveMtFilesCount

      public int getAdaptiveMtFilesCount()
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtFilesCount in interface ListAdaptiveMtFilesResponseOrBuilder
    • getAdaptiveMtFiles

      public AdaptiveMtFile getAdaptiveMtFiles(int index)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtFiles in interface ListAdaptiveMtFilesResponseOrBuilder
    • setAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder setAdaptiveMtFiles(int index, AdaptiveMtFile value)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder setAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(AdaptiveMtFile value)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(int index, AdaptiveMtFile value)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(AdaptiveMtFile.Builder builderForValue)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder addAllAdaptiveMtFiles(Iterable<? extends AdaptiveMtFile> values)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder clearAdaptiveMtFiles()
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeAdaptiveMtFiles

      public ListAdaptiveMtFilesResponse.Builder removeAdaptiveMtFiles(int index)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtFilesBuilder

      public AdaptiveMtFile.Builder getAdaptiveMtFilesBuilder(int index)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtFilesOrBuilder

      public AdaptiveMtFileOrBuilder getAdaptiveMtFilesOrBuilder(int index)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtFilesOrBuilder in interface ListAdaptiveMtFilesResponseOrBuilder
    • getAdaptiveMtFilesOrBuilderList

      public List<? extends AdaptiveMtFileOrBuilder> getAdaptiveMtFilesOrBuilderList()
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtFilesOrBuilderList in interface ListAdaptiveMtFilesResponseOrBuilder
    • addAdaptiveMtFilesBuilder

      public AdaptiveMtFile.Builder addAdaptiveMtFilesBuilder()
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtFilesBuilder

      public AdaptiveMtFile.Builder addAdaptiveMtFilesBuilder(int index)
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtFilesBuilderList

      public List<AdaptiveMtFile.Builder> getAdaptiveMtFilesBuilderList()
       Output only. The Adaptive MT files.
       
      repeated .google.cloud.translation.v3.AdaptiveMtFile adaptive_mt_files = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getNextPageToken

      public String getNextPageToken()
       Optional. A token to retrieve a page of results. Pass this value in the
       ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
       `ListAdaptiveMtFiles` method to retrieve the next page of results.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageToken in interface ListAdaptiveMtFilesResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Optional. A token to retrieve a page of results. Pass this value in the
       ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
       `ListAdaptiveMtFiles` method to retrieve the next page of results.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageTokenBytes in interface ListAdaptiveMtFilesResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAdaptiveMtFilesResponse.Builder setNextPageToken(String value)
       Optional. A token to retrieve a page of results. Pass this value in the
       ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
       `ListAdaptiveMtFiles` method to retrieve the next page of results.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListAdaptiveMtFilesResponse.Builder clearNextPageToken()
       Optional. A token to retrieve a page of results. Pass this value in the
       ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
       `ListAdaptiveMtFiles` method to retrieve the next page of results.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListAdaptiveMtFilesResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. A token to retrieve a page of results. Pass this value in the
       ListAdaptiveMtFilesRequest.page_token field in the subsequent call to
       `ListAdaptiveMtFiles` method to retrieve the next page of results.
       
      string next_page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.