Class ListAttachmentsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListAttachmentsResponse.Builder>
com.google.cloud.support.v2beta.ListAttachmentsResponse.Builder
All Implemented Interfaces:
ListAttachmentsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListAttachmentsResponse

public static final class ListAttachmentsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListAttachmentsResponse.Builder> implements ListAttachmentsResponseOrBuilder
 The response message for the ListAttachments endpoint.
 
Protobuf type google.cloud.support.v2beta.ListAttachmentsResponse
  • 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<ListAttachmentsResponse.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<ListAttachmentsResponse.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<ListAttachmentsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListAttachmentsResponse.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<ListAttachmentsResponse.Builder>
      Throws:
      IOException
    • getAttachmentsList

      public List<Attachment> getAttachmentsList()
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
      Specified by:
      getAttachmentsList in interface ListAttachmentsResponseOrBuilder
    • getAttachmentsCount

      public int getAttachmentsCount()
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
      Specified by:
      getAttachmentsCount in interface ListAttachmentsResponseOrBuilder
    • getAttachments

      public Attachment getAttachments(int index)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
      Specified by:
      getAttachments in interface ListAttachmentsResponseOrBuilder
    • setAttachments

      public ListAttachmentsResponse.Builder setAttachments(int index, Attachment value)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • setAttachments

      public ListAttachmentsResponse.Builder setAttachments(int index, Attachment.Builder builderForValue)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • addAttachments

      public ListAttachmentsResponse.Builder addAttachments(Attachment value)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • addAttachments

      public ListAttachmentsResponse.Builder addAttachments(int index, Attachment value)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • addAttachments

      public ListAttachmentsResponse.Builder addAttachments(Attachment.Builder builderForValue)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • addAttachments

      public ListAttachmentsResponse.Builder addAttachments(int index, Attachment.Builder builderForValue)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • addAllAttachments

      public ListAttachmentsResponse.Builder addAllAttachments(Iterable<? extends Attachment> values)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • clearAttachments

      public ListAttachmentsResponse.Builder clearAttachments()
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • removeAttachments

      public ListAttachmentsResponse.Builder removeAttachments(int index)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • getAttachmentsBuilder

      public Attachment.Builder getAttachmentsBuilder(int index)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • getAttachmentsOrBuilder

      public AttachmentOrBuilder getAttachmentsOrBuilder(int index)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
      Specified by:
      getAttachmentsOrBuilder in interface ListAttachmentsResponseOrBuilder
    • getAttachmentsOrBuilderList

      public List<? extends AttachmentOrBuilder> getAttachmentsOrBuilderList()
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
      Specified by:
      getAttachmentsOrBuilderList in interface ListAttachmentsResponseOrBuilder
    • addAttachmentsBuilder

      public Attachment.Builder addAttachmentsBuilder()
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • addAttachmentsBuilder

      public Attachment.Builder addAttachmentsBuilder(int index)
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • getAttachmentsBuilderList

      public List<Attachment.Builder> getAttachmentsBuilderList()
       The list of attachments associated with a case.
       
      repeated .google.cloud.support.v2beta.Attachment attachments = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token to retrieve the next page of results. Set this in the `page_token`
       field of subsequent `cases.attachments.list` requests. If unspecified,
       there are no more results to retrieve.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListAttachmentsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token to retrieve the next page of results. Set this in the `page_token`
       field of subsequent `cases.attachments.list` requests. If unspecified,
       there are no more results to retrieve.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListAttachmentsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListAttachmentsResponse.Builder setNextPageToken(String value)
       A token to retrieve the next page of results. Set this in the `page_token`
       field of subsequent `cases.attachments.list` requests. If unspecified,
       there are no more results to retrieve.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListAttachmentsResponse.Builder clearNextPageToken()
       A token to retrieve the next page of results. Set this in the `page_token`
       field of subsequent `cases.attachments.list` requests. If unspecified,
       there are no more results to retrieve.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListAttachmentsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token to retrieve the next page of results. Set this in the `page_token`
       field of subsequent `cases.attachments.list` requests. If unspecified,
       there are no more results to retrieve.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.