Class CreatePullRequestCommentRequest.Builder

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

public static final class CreatePullRequestCommentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreatePullRequestCommentRequest.Builder> implements CreatePullRequestCommentRequestOrBuilder
 The request to create a pull request comment.
 
Protobuf type google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest
  • 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<CreatePullRequestCommentRequest.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<CreatePullRequestCommentRequest.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<CreatePullRequestCommentRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public CreatePullRequestCommentRequest.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<CreatePullRequestCommentRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The pull request in which to create the pull request comment.
       Format:
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreatePullRequestCommentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The pull request in which to create the pull request comment.
       Format:
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreatePullRequestCommentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The pull request in which to create the pull request comment.
       Format:
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The pull request in which to create the pull request comment.
       Format:
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreatePullRequestCommentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The pull request in which to create the pull request comment.
       Format:
       `projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasPullRequestComment

      public boolean hasPullRequestComment()
       Required. The pull request comment to create.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment pull_request_comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPullRequestComment in interface CreatePullRequestCommentRequestOrBuilder
      Returns:
      Whether the pullRequestComment field is set.
    • getPullRequestComment

      public PullRequestComment getPullRequestComment()
       Required. The pull request comment to create.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment pull_request_comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPullRequestComment in interface CreatePullRequestCommentRequestOrBuilder
      Returns:
      The pullRequestComment.
    • setPullRequestComment

      public CreatePullRequestCommentRequest.Builder setPullRequestComment(PullRequestComment value)
       Required. The pull request comment to create.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment pull_request_comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • setPullRequestComment

      public CreatePullRequestCommentRequest.Builder setPullRequestComment(PullRequestComment.Builder builderForValue)
       Required. The pull request comment to create.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment pull_request_comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergePullRequestComment

      public CreatePullRequestCommentRequest.Builder mergePullRequestComment(PullRequestComment value)
       Required. The pull request comment to create.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment pull_request_comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearPullRequestComment

      public CreatePullRequestCommentRequest.Builder clearPullRequestComment()
       Required. The pull request comment to create.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment pull_request_comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPullRequestCommentBuilder

      public PullRequestComment.Builder getPullRequestCommentBuilder()
       Required. The pull request comment to create.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment pull_request_comment = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPullRequestCommentOrBuilder

      public PullRequestCommentOrBuilder getPullRequestCommentOrBuilder()
       Required. The pull request comment to create.
       
      .google.cloud.securesourcemanager.v1.PullRequestComment pull_request_comment = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPullRequestCommentOrBuilder in interface CreatePullRequestCommentRequestOrBuilder