Class PullRequestComment.Code.Builder

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

public static final class PullRequestComment.Code.Builder extends com.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Code.Builder> implements PullRequestComment.CodeOrBuilder
 The comment on a code line.
 
Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment.Code
  • 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.Code.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.Code.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.Code.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getBody()
       Required. The comment body.
       
      string body = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBody in interface PullRequestComment.CodeOrBuilder
      Returns:
      The body.
    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
       Required. The comment body.
       
      string body = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBodyBytes in interface PullRequestComment.CodeOrBuilder
      Returns:
      The bytes for body.
    • setBody

      public PullRequestComment.Code.Builder setBody(String value)
       Required. The comment body.
       
      string body = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public PullRequestComment.Code.Builder clearBody()
       Required. The comment body.
       
      string body = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setBodyBytes

      public PullRequestComment.Code.Builder setBodyBytes(com.google.protobuf.ByteString value)
       Required. The comment body.
       
      string body = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for body to set.
      Returns:
      This builder for chaining.
    • getReply

      public String getReply()
       Optional. Input only. The PullRequestComment resource name that this
       comment is replying to.
       
      string reply = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getReply in interface PullRequestComment.CodeOrBuilder
      Returns:
      The reply.
    • getReplyBytes

      public com.google.protobuf.ByteString getReplyBytes()
       Optional. Input only. The PullRequestComment resource name that this
       comment is replying to.
       
      string reply = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getReplyBytes in interface PullRequestComment.CodeOrBuilder
      Returns:
      The bytes for reply.
    • setReply

      public PullRequestComment.Code.Builder setReply(String value)
       Optional. Input only. The PullRequestComment resource name that this
       comment is replying to.
       
      string reply = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The reply to set.
      Returns:
      This builder for chaining.
    • clearReply

      public PullRequestComment.Code.Builder clearReply()
       Optional. Input only. The PullRequestComment resource name that this
       comment is replying to.
       
      string reply = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Returns:
      This builder for chaining.
    • setReplyBytes

      public PullRequestComment.Code.Builder setReplyBytes(com.google.protobuf.ByteString value)
       Optional. Input only. The PullRequestComment resource name that this
       comment is replying to.
       
      string reply = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Parameters:
      value - The bytes for reply to set.
      Returns:
      This builder for chaining.
    • hasPosition

      public boolean hasPosition()
       Optional. The position of the comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPosition in interface PullRequestComment.CodeOrBuilder
      Returns:
      Whether the position field is set.
    • getPosition

      public PullRequestComment.Position getPosition()
       Optional. The position of the comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPosition in interface PullRequestComment.CodeOrBuilder
      Returns:
      The position.
    • setPosition

       Optional. The position of the comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setPosition

       Optional. The position of the comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergePosition

       Optional. The position of the comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearPosition

      public PullRequestComment.Code.Builder clearPosition()
       Optional. The position of the comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPositionBuilder

      public PullRequestComment.Position.Builder getPositionBuilder()
       Optional. The position of the comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getPositionOrBuilder

      public PullRequestComment.PositionOrBuilder getPositionOrBuilder()
       Optional. The position of the comment.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Position position = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPositionOrBuilder in interface PullRequestComment.CodeOrBuilder
    • getEffectiveRootComment

      public String getEffectiveRootComment()
       Output only. The root comment of the conversation, derived from the reply
       field.
       
      string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveRootComment in interface PullRequestComment.CodeOrBuilder
      Returns:
      The effectiveRootComment.
    • getEffectiveRootCommentBytes

      public com.google.protobuf.ByteString getEffectiveRootCommentBytes()
       Output only. The root comment of the conversation, derived from the reply
       field.
       
      string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveRootCommentBytes in interface PullRequestComment.CodeOrBuilder
      Returns:
      The bytes for effectiveRootComment.
    • setEffectiveRootComment

      public PullRequestComment.Code.Builder setEffectiveRootComment(String value)
       Output only. The root comment of the conversation, derived from the reply
       field.
       
      string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The effectiveRootComment to set.
      Returns:
      This builder for chaining.
    • clearEffectiveRootComment

      public PullRequestComment.Code.Builder clearEffectiveRootComment()
       Output only. The root comment of the conversation, derived from the reply
       field.
       
      string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEffectiveRootCommentBytes

      public PullRequestComment.Code.Builder setEffectiveRootCommentBytes(com.google.protobuf.ByteString value)
       Output only. The root comment of the conversation, derived from the reply
       field.
       
      string effective_root_comment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for effectiveRootComment to set.
      Returns:
      This builder for chaining.
    • getResolved

      public boolean getResolved()
       Output only. Boolean indicator if the comment is resolved.
       
      bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getResolved in interface PullRequestComment.CodeOrBuilder
      Returns:
      The resolved.
    • setResolved

      public PullRequestComment.Code.Builder setResolved(boolean value)
       Output only. Boolean indicator if the comment is resolved.
       
      bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The resolved to set.
      Returns:
      This builder for chaining.
    • clearResolved

      public PullRequestComment.Code.Builder clearResolved()
       Output only. Boolean indicator if the comment is resolved.
       
      bool resolved = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getEffectiveCommitSha

      public String getEffectiveCommitSha()
       Output only. The effective commit sha this code comment is pointing to.
       
      string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveCommitSha in interface PullRequestComment.CodeOrBuilder
      Returns:
      The effectiveCommitSha.
    • getEffectiveCommitShaBytes

      public com.google.protobuf.ByteString getEffectiveCommitShaBytes()
       Output only. The effective commit sha this code comment is pointing to.
       
      string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveCommitShaBytes in interface PullRequestComment.CodeOrBuilder
      Returns:
      The bytes for effectiveCommitSha.
    • setEffectiveCommitSha

      public PullRequestComment.Code.Builder setEffectiveCommitSha(String value)
       Output only. The effective commit sha this code comment is pointing to.
       
      string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The effectiveCommitSha to set.
      Returns:
      This builder for chaining.
    • clearEffectiveCommitSha

      public PullRequestComment.Code.Builder clearEffectiveCommitSha()
       Output only. The effective commit sha this code comment is pointing to.
       
      string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEffectiveCommitShaBytes

      public PullRequestComment.Code.Builder setEffectiveCommitShaBytes(com.google.protobuf.ByteString value)
       Output only. The effective commit sha this code comment is pointing to.
       
      string effective_commit_sha = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for effectiveCommitSha to set.
      Returns:
      This builder for chaining.