Class ListDraftsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListDraftsResponse.Builder>
com.google.cloud.visionai.v1.ListDraftsResponse.Builder
All Implemented Interfaces:
ListDraftsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListDraftsResponse

public static final class ListDraftsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListDraftsResponse.Builder> implements ListDraftsResponseOrBuilder
 Message for response to listing Drafts.
 
Protobuf type google.cloud.visionai.v1.ListDraftsResponse
  • 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<ListDraftsResponse.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<ListDraftsResponse.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<ListDraftsResponse.Builder>
    • getDefaultInstanceForType

      public ListDraftsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ListDraftsResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListDraftsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ListDraftsResponse.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<ListDraftsResponse.Builder>
      Throws:
      IOException
    • getDraftsList

      public List<Draft> getDraftsList()
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
      Specified by:
      getDraftsList in interface ListDraftsResponseOrBuilder
    • getDraftsCount

      public int getDraftsCount()
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
      Specified by:
      getDraftsCount in interface ListDraftsResponseOrBuilder
    • getDrafts

      public Draft getDrafts(int index)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
      Specified by:
      getDrafts in interface ListDraftsResponseOrBuilder
    • setDrafts

      public ListDraftsResponse.Builder setDrafts(int index, Draft value)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • setDrafts

      public ListDraftsResponse.Builder setDrafts(int index, Draft.Builder builderForValue)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • addDrafts

      public ListDraftsResponse.Builder addDrafts(Draft value)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • addDrafts

      public ListDraftsResponse.Builder addDrafts(int index, Draft value)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • addDrafts

      public ListDraftsResponse.Builder addDrafts(Draft.Builder builderForValue)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • addDrafts

      public ListDraftsResponse.Builder addDrafts(int index, Draft.Builder builderForValue)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • addAllDrafts

      public ListDraftsResponse.Builder addAllDrafts(Iterable<? extends Draft> values)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • clearDrafts

      public ListDraftsResponse.Builder clearDrafts()
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • removeDrafts

      public ListDraftsResponse.Builder removeDrafts(int index)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • getDraftsBuilder

      public Draft.Builder getDraftsBuilder(int index)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • getDraftsOrBuilder

      public DraftOrBuilder getDraftsOrBuilder(int index)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
      Specified by:
      getDraftsOrBuilder in interface ListDraftsResponseOrBuilder
    • getDraftsOrBuilderList

      public List<? extends DraftOrBuilder> getDraftsOrBuilderList()
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
      Specified by:
      getDraftsOrBuilderList in interface ListDraftsResponseOrBuilder
    • addDraftsBuilder

      public Draft.Builder addDraftsBuilder()
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • addDraftsBuilder

      public Draft.Builder addDraftsBuilder(int index)
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • getDraftsBuilderList

      public List<Draft.Builder> getDraftsBuilderList()
       The list of Draft.
       
      repeated .google.cloud.visionai.v1.Draft drafts = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListDraftsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListDraftsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListDraftsResponse.Builder setNextPageToken(String value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListDraftsResponse.Builder clearNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListDraftsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • getUnreachableList

      public com.google.protobuf.ProtocolStringList getUnreachableList()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableList in interface ListDraftsResponseOrBuilder
      Returns:
      A list containing the unreachable.
    • getUnreachableCount

      public int getUnreachableCount()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableCount in interface ListDraftsResponseOrBuilder
      Returns:
      The count of unreachable.
    • getUnreachable

      public String getUnreachable(int index)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachable in interface ListDraftsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The unreachable at the given index.
    • getUnreachableBytes

      public com.google.protobuf.ByteString getUnreachableBytes(int index)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Specified by:
      getUnreachableBytes in interface ListDraftsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the unreachable at the given index.
    • setUnreachable

      public ListDraftsResponse.Builder setUnreachable(int index, String value)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      index - The index to set the value at.
      value - The unreachable to set.
      Returns:
      This builder for chaining.
    • addUnreachable

      public ListDraftsResponse.Builder addUnreachable(String value)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      value - The unreachable to add.
      Returns:
      This builder for chaining.
    • addAllUnreachable

      public ListDraftsResponse.Builder addAllUnreachable(Iterable<String> values)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      values - The unreachable to add.
      Returns:
      This builder for chaining.
    • clearUnreachable

      public ListDraftsResponse.Builder clearUnreachable()
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Returns:
      This builder for chaining.
    • addUnreachableBytes

      public ListDraftsResponse.Builder addUnreachableBytes(com.google.protobuf.ByteString value)
       Locations that could not be reached.
       
      repeated string unreachable = 3;
      Parameters:
      value - The bytes of the unreachable to add.
      Returns:
      This builder for chaining.