Class PullRequestComment.Builder

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

public static final class PullRequestComment.Builder extends com.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Builder> implements PullRequestCommentOrBuilder
 PullRequestComment represents a comment on a pull request.
 
Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment
  • 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<PullRequestComment.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<PullRequestComment.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<PullRequestComment.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PullRequestComment.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<PullRequestComment.Builder>
      Throws:
      IOException
    • getCommentDetailCase

      public PullRequestComment.CommentDetailCase getCommentDetailCase()
      Specified by:
      getCommentDetailCase in interface PullRequestCommentOrBuilder
    • clearCommentDetail

      public PullRequestComment.Builder clearCommentDetail()
    • getName

      public String getName()
       Identifier. Unique identifier for the pull request comment. The comment id
       is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface PullRequestCommentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Unique identifier for the pull request comment. The comment id
       is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface PullRequestCommentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PullRequestComment.Builder setName(String value)
       Identifier. Unique identifier for the pull request comment. The comment id
       is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PullRequestComment.Builder clearName()
       Identifier. Unique identifier for the pull request comment. The comment id
       is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public PullRequestComment.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Unique identifier for the pull request comment. The comment id
       is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface PullRequestCommentOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface PullRequestCommentOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public PullRequestComment.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public PullRequestComment.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public PullRequestComment.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public PullRequestComment.Builder clearCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface PullRequestCommentOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PullRequestCommentOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PullRequestCommentOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PullRequestComment.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public PullRequestComment.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public PullRequestComment.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public PullRequestComment.Builder clearUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PullRequestCommentOrBuilder
    • hasReview

      public boolean hasReview()
       Optional. The review summary comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasReview in interface PullRequestCommentOrBuilder
      Returns:
      Whether the review field is set.
    • getReview

      public PullRequestComment.Review getReview()
       Optional. The review summary comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReview in interface PullRequestCommentOrBuilder
      Returns:
      The review.
    • setReview

       Optional. The review summary comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setReview

       Optional. The review summary comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeReview

       Optional. The review summary comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearReview

      public PullRequestComment.Builder clearReview()
       Optional. The review summary comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getReviewBuilder

      public PullRequestComment.Review.Builder getReviewBuilder()
       Optional. The review summary comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getReviewOrBuilder

      public PullRequestComment.ReviewOrBuilder getReviewOrBuilder()
       Optional. The review summary comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review review = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReviewOrBuilder in interface PullRequestCommentOrBuilder
    • hasComment

      public boolean hasComment()
       Optional. The general pull request comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasComment in interface PullRequestCommentOrBuilder
      Returns:
      Whether the comment field is set.
    • getComment

      public PullRequestComment.Comment getComment()
       Optional. The general pull request comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComment in interface PullRequestCommentOrBuilder
      Returns:
      The comment.
    • setComment

       Optional. The general pull request comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setComment

       Optional. The general pull request comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeComment

       Optional. The general pull request comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearComment

      public PullRequestComment.Builder clearComment()
       Optional. The general pull request comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getCommentBuilder

      public PullRequestComment.Comment.Builder getCommentBuilder()
       Optional. The general pull request comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getCommentOrBuilder

      public PullRequestComment.CommentOrBuilder getCommentOrBuilder()
       Optional. The general pull request comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Comment comment = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommentOrBuilder in interface PullRequestCommentOrBuilder
    • hasCode

      public boolean hasCode()
       Optional. The comment on a code line.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCode in interface PullRequestCommentOrBuilder
      Returns:
      Whether the code field is set.
    • getCode

      public PullRequestComment.Code getCode()
       Optional. The comment on a code line.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCode in interface PullRequestCommentOrBuilder
      Returns:
      The code.
    • setCode

       Optional. The comment on a code line.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setCode

       Optional. The comment on a code line.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCode

       Optional. The comment on a code line.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearCode

      public PullRequestComment.Builder clearCode()
       Optional. The comment on a code line.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getCodeBuilder

      public PullRequestComment.Code.Builder getCodeBuilder()
       Optional. The comment on a code line.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getCodeOrBuilder

      public PullRequestComment.CodeOrBuilder getCodeOrBuilder()
       Optional. The comment on a code line.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Code code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCodeOrBuilder in interface PullRequestCommentOrBuilder