Class ListAdaptiveMtDatasetsResponse.Builder

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

public static final class ListAdaptiveMtDatasetsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAdaptiveMtDatasetsResponse.Builder> implements ListAdaptiveMtDatasetsResponseOrBuilder
 A list of AdaptiveMtDatasets.
 
Protobuf type google.cloud.translation.v3.ListAdaptiveMtDatasetsResponse
  • 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<ListAdaptiveMtDatasetsResponse.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<ListAdaptiveMtDatasetsResponse.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<ListAdaptiveMtDatasetsResponse.Builder>
    • getDefaultInstanceForType

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

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

      public ListAdaptiveMtDatasetsResponse.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<ListAdaptiveMtDatasetsResponse.Builder>
      Throws:
      IOException
    • getAdaptiveMtDatasetsList

      public List<AdaptiveMtDataset> getAdaptiveMtDatasetsList()
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtDatasetsList in interface ListAdaptiveMtDatasetsResponseOrBuilder
    • getAdaptiveMtDatasetsCount

      public int getAdaptiveMtDatasetsCount()
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtDatasetsCount in interface ListAdaptiveMtDatasetsResponseOrBuilder
    • getAdaptiveMtDatasets

      public AdaptiveMtDataset getAdaptiveMtDatasets(int index)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtDatasets in interface ListAdaptiveMtDatasetsResponseOrBuilder
    • setAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder setAdaptiveMtDatasets(int index, AdaptiveMtDataset value)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder setAdaptiveMtDatasets(int index, AdaptiveMtDataset.Builder builderForValue)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder addAdaptiveMtDatasets(AdaptiveMtDataset value)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder addAdaptiveMtDatasets(int index, AdaptiveMtDataset value)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder addAdaptiveMtDatasets(AdaptiveMtDataset.Builder builderForValue)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder addAdaptiveMtDatasets(int index, AdaptiveMtDataset.Builder builderForValue)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder addAllAdaptiveMtDatasets(Iterable<? extends AdaptiveMtDataset> values)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder clearAdaptiveMtDatasets()
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeAdaptiveMtDatasets

      public ListAdaptiveMtDatasetsResponse.Builder removeAdaptiveMtDatasets(int index)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtDatasetsBuilder

      public AdaptiveMtDataset.Builder getAdaptiveMtDatasetsBuilder(int index)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtDatasetsOrBuilder

      public AdaptiveMtDatasetOrBuilder getAdaptiveMtDatasetsOrBuilder(int index)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtDatasetsOrBuilder in interface ListAdaptiveMtDatasetsResponseOrBuilder
    • getAdaptiveMtDatasetsOrBuilderList

      public List<? extends AdaptiveMtDatasetOrBuilder> getAdaptiveMtDatasetsOrBuilderList()
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdaptiveMtDatasetsOrBuilderList in interface ListAdaptiveMtDatasetsResponseOrBuilder
    • addAdaptiveMtDatasetsBuilder

      public AdaptiveMtDataset.Builder addAdaptiveMtDatasetsBuilder()
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAdaptiveMtDatasetsBuilder

      public AdaptiveMtDataset.Builder addAdaptiveMtDatasetsBuilder(int index)
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getAdaptiveMtDatasetsBuilderList

      public List<AdaptiveMtDataset.Builder> getAdaptiveMtDatasetsBuilderList()
       Output only. A list of Adaptive MT datasets.
       
      repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 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
       [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to
       `ListAdaptiveMtDatasets` method to retrieve the next page of results.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageToken in interface ListAdaptiveMtDatasetsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

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

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

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

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