Class ListAnnotatedDatasetsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListAnnotatedDatasetsResponse.Builder>
com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder
All Implemented Interfaces:
ListAnnotatedDatasetsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListAnnotatedDatasetsResponse

public static final class ListAnnotatedDatasetsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAnnotatedDatasetsResponse.Builder> implements ListAnnotatedDatasetsResponseOrBuilder
 Results of listing annotated datasets for a dataset.
 
Protobuf type google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse
  • 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<ListAnnotatedDatasetsResponse.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<ListAnnotatedDatasetsResponse.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<ListAnnotatedDatasetsResponse.Builder>
    • getDefaultInstanceForType

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

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

      public ListAnnotatedDatasetsResponse.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<ListAnnotatedDatasetsResponse.Builder>
      Throws:
      IOException
    • getAnnotatedDatasetsList

      public List<AnnotatedDataset> getAnnotatedDatasetsList()
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
      Specified by:
      getAnnotatedDatasetsList in interface ListAnnotatedDatasetsResponseOrBuilder
    • getAnnotatedDatasetsCount

      public int getAnnotatedDatasetsCount()
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
      Specified by:
      getAnnotatedDatasetsCount in interface ListAnnotatedDatasetsResponseOrBuilder
    • getAnnotatedDatasets

      public AnnotatedDataset getAnnotatedDatasets(int index)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
      Specified by:
      getAnnotatedDatasets in interface ListAnnotatedDatasetsResponseOrBuilder
    • setAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder setAnnotatedDatasets(int index, AnnotatedDataset value)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • setAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder setAnnotatedDatasets(int index, AnnotatedDataset.Builder builderForValue)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • addAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder addAnnotatedDatasets(AnnotatedDataset value)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • addAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder addAnnotatedDatasets(int index, AnnotatedDataset value)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • addAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder addAnnotatedDatasets(AnnotatedDataset.Builder builderForValue)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • addAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder addAnnotatedDatasets(int index, AnnotatedDataset.Builder builderForValue)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • addAllAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder addAllAnnotatedDatasets(Iterable<? extends AnnotatedDataset> values)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • clearAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder clearAnnotatedDatasets()
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • removeAnnotatedDatasets

      public ListAnnotatedDatasetsResponse.Builder removeAnnotatedDatasets(int index)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • getAnnotatedDatasetsBuilder

      public AnnotatedDataset.Builder getAnnotatedDatasetsBuilder(int index)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • getAnnotatedDatasetsOrBuilder

      public AnnotatedDatasetOrBuilder getAnnotatedDatasetsOrBuilder(int index)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
      Specified by:
      getAnnotatedDatasetsOrBuilder in interface ListAnnotatedDatasetsResponseOrBuilder
    • getAnnotatedDatasetsOrBuilderList

      public List<? extends AnnotatedDatasetOrBuilder> getAnnotatedDatasetsOrBuilderList()
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
      Specified by:
      getAnnotatedDatasetsOrBuilderList in interface ListAnnotatedDatasetsResponseOrBuilder
    • addAnnotatedDatasetsBuilder

      public AnnotatedDataset.Builder addAnnotatedDatasetsBuilder()
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • addAnnotatedDatasetsBuilder

      public AnnotatedDataset.Builder addAnnotatedDatasetsBuilder(int index)
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • getAnnotatedDatasetsBuilderList

      public List<AnnotatedDataset.Builder> getAnnotatedDatasetsBuilderList()
       The list of annotated datasets to return.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token to retrieve next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListAnnotatedDatasetsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token to retrieve next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListAnnotatedDatasetsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAnnotatedDatasetsResponse.Builder setNextPageToken(String value)
       A token to retrieve next page of results.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListAnnotatedDatasetsResponse.Builder clearNextPageToken()
       A token to retrieve next page of results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListAnnotatedDatasetsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token to retrieve next page of results.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.