Class ListAnnotationSpecSetsResponse.Builder

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

public static final class ListAnnotationSpecSetsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAnnotationSpecSetsResponse.Builder> implements ListAnnotationSpecSetsResponseOrBuilder
 Results of listing annotation spec set under a project.
 
Protobuf type google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse
  • 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<ListAnnotationSpecSetsResponse.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<ListAnnotationSpecSetsResponse.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<ListAnnotationSpecSetsResponse.Builder>
    • getDefaultInstanceForType

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

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

      public ListAnnotationSpecSetsResponse.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<ListAnnotationSpecSetsResponse.Builder>
      Throws:
      IOException
    • getAnnotationSpecSetsList

      public List<AnnotationSpecSet> getAnnotationSpecSetsList()
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
      Specified by:
      getAnnotationSpecSetsList in interface ListAnnotationSpecSetsResponseOrBuilder
    • getAnnotationSpecSetsCount

      public int getAnnotationSpecSetsCount()
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
      Specified by:
      getAnnotationSpecSetsCount in interface ListAnnotationSpecSetsResponseOrBuilder
    • getAnnotationSpecSets

      public AnnotationSpecSet getAnnotationSpecSets(int index)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
      Specified by:
      getAnnotationSpecSets in interface ListAnnotationSpecSetsResponseOrBuilder
    • setAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder setAnnotationSpecSets(int index, AnnotationSpecSet value)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • setAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder setAnnotationSpecSets(int index, AnnotationSpecSet.Builder builderForValue)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • addAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder addAnnotationSpecSets(AnnotationSpecSet value)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • addAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder addAnnotationSpecSets(int index, AnnotationSpecSet value)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • addAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder addAnnotationSpecSets(AnnotationSpecSet.Builder builderForValue)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • addAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder addAnnotationSpecSets(int index, AnnotationSpecSet.Builder builderForValue)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • addAllAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder addAllAnnotationSpecSets(Iterable<? extends AnnotationSpecSet> values)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • clearAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder clearAnnotationSpecSets()
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • removeAnnotationSpecSets

      public ListAnnotationSpecSetsResponse.Builder removeAnnotationSpecSets(int index)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • getAnnotationSpecSetsBuilder

      public AnnotationSpecSet.Builder getAnnotationSpecSetsBuilder(int index)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • getAnnotationSpecSetsOrBuilder

      public AnnotationSpecSetOrBuilder getAnnotationSpecSetsOrBuilder(int index)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
      Specified by:
      getAnnotationSpecSetsOrBuilder in interface ListAnnotationSpecSetsResponseOrBuilder
    • getAnnotationSpecSetsOrBuilderList

      public List<? extends AnnotationSpecSetOrBuilder> getAnnotationSpecSetsOrBuilderList()
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
      Specified by:
      getAnnotationSpecSetsOrBuilderList in interface ListAnnotationSpecSetsResponseOrBuilder
    • addAnnotationSpecSetsBuilder

      public AnnotationSpecSet.Builder addAnnotationSpecSetsBuilder()
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • addAnnotationSpecSetsBuilder

      public AnnotationSpecSet.Builder addAnnotationSpecSetsBuilder(int index)
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • getAnnotationSpecSetsBuilderList

      public List<AnnotationSpecSet.Builder> getAnnotationSpecSetsBuilderList()
       The list of annotation spec sets.
       
      repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token to retrieve next page of results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListAnnotationSpecSetsResponseOrBuilder
      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 ListAnnotationSpecSetsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAnnotationSpecSetsResponse.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 ListAnnotationSpecSetsResponse.Builder clearNextPageToken()
       A token to retrieve next page of results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListAnnotationSpecSetsResponse.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.