Class ListCommentsResponse.Builder

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

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

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

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

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

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

      public ListCommentsResponse.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<ListCommentsResponse.Builder>
      Throws:
      IOException
    • getCommentsList

      public List<Comment> getCommentsList()
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
      Specified by:
      getCommentsList in interface ListCommentsResponseOrBuilder
    • getCommentsCount

      public int getCommentsCount()
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
      Specified by:
      getCommentsCount in interface ListCommentsResponseOrBuilder
    • getComments

      public Comment getComments(int index)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
      Specified by:
      getComments in interface ListCommentsResponseOrBuilder
    • setComments

      public ListCommentsResponse.Builder setComments(int index, Comment value)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • setComments

      public ListCommentsResponse.Builder setComments(int index, Comment.Builder builderForValue)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • addComments

      public ListCommentsResponse.Builder addComments(Comment value)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • addComments

      public ListCommentsResponse.Builder addComments(int index, Comment value)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • addComments

      public ListCommentsResponse.Builder addComments(Comment.Builder builderForValue)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • addComments

      public ListCommentsResponse.Builder addComments(int index, Comment.Builder builderForValue)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • addAllComments

      public ListCommentsResponse.Builder addAllComments(Iterable<? extends Comment> values)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • clearComments

      public ListCommentsResponse.Builder clearComments()
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • removeComments

      public ListCommentsResponse.Builder removeComments(int index)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • getCommentsBuilder

      public Comment.Builder getCommentsBuilder(int index)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • getCommentsOrBuilder

      public CommentOrBuilder getCommentsOrBuilder(int index)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
      Specified by:
      getCommentsOrBuilder in interface ListCommentsResponseOrBuilder
    • getCommentsOrBuilderList

      public List<? extends CommentOrBuilder> getCommentsOrBuilderList()
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
      Specified by:
      getCommentsOrBuilderList in interface ListCommentsResponseOrBuilder
    • addCommentsBuilder

      public Comment.Builder addCommentsBuilder()
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • addCommentsBuilder

      public Comment.Builder addCommentsBuilder(int index)
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • getCommentsBuilderList

      public List<Comment.Builder> getCommentsBuilderList()
       List of the comments associated with the case.
       
      repeated .google.cloud.support.v2beta.Comment comments = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token to retrieve the next page of results. Set this in the `page_token`
       field of subsequent `cases.comments.list` requests. If unspecified, there
       are no more results to retrieve.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListCommentsResponseOrBuilder
      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.comments.list` requests. If unspecified, there
       are no more results to retrieve.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListCommentsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListCommentsResponse.Builder setNextPageToken(String value)
       A token to retrieve the next page of results. Set this in the `page_token`
       field of subsequent `cases.comments.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 ListCommentsResponse.Builder clearNextPageToken()
       A token to retrieve the next page of results. Set this in the `page_token`
       field of subsequent `cases.comments.list` requests. If unspecified, there
       are no more results to retrieve.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListCommentsResponse.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.comments.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.