Class PullRequestComment.Review.Builder

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

public static final class PullRequestComment.Review.Builder extends com.google.protobuf.GeneratedMessage.Builder<PullRequestComment.Review.Builder> implements PullRequestComment.ReviewOrBuilder
 The review summary comment.
 
Protobuf type google.cloud.securesourcemanager.v1.PullRequestComment.Review
  • 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.Review.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.Review.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.Review.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getActionTypeValue()
       Required. The review action type.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionTypeValue in interface PullRequestComment.ReviewOrBuilder
      Returns:
      The enum numeric value on the wire for actionType.
    • setActionTypeValue

      public PullRequestComment.Review.Builder setActionTypeValue(int value)
       Required. The review action type.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for actionType to set.
      Returns:
      This builder for chaining.
    • getActionType

      public PullRequestComment.Review.ActionType getActionType()
       Required. The review action type.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionType in interface PullRequestComment.ReviewOrBuilder
      Returns:
      The actionType.
    • setActionType

       Required. The review action type.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The actionType to set.
      Returns:
      This builder for chaining.
    • clearActionType

      public PullRequestComment.Review.Builder clearActionType()
       Required. The review action type.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment.Review.ActionType action_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getBody

      public String getBody()
       Optional. The comment body.
       
      string body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBody in interface PullRequestComment.ReviewOrBuilder
      Returns:
      The body.
    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
       Optional. The comment body.
       
      string body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBodyBytes in interface PullRequestComment.ReviewOrBuilder
      Returns:
      The bytes for body.
    • setBody

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

       Optional. The comment body.
       
      string body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setBodyBytes

      public PullRequestComment.Review.Builder setBodyBytes(com.google.protobuf.ByteString value)
       Optional. The comment body.
       
      string body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for body to set.
      Returns:
      This builder for chaining.
    • getEffectiveCommitSha

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

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

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

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

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