Class BatchCreatePullRequestCommentsRequest.Builder

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

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

      public BatchCreatePullRequestCommentsRequest 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

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

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

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

      public String getParent()
       Required. The pull request in which to create the pull request comments.
       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 BatchCreatePullRequestCommentsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The pull request in which to create the pull request comments.
       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 BatchCreatePullRequestCommentsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The pull request in which to create the pull request comments.
       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 comments.
       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 BatchCreatePullRequestCommentsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The pull request in which to create the pull request comments.
       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.
    • getRequestsList

      public List<CreatePullRequestCommentRequest> getRequestsList()
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsList in interface BatchCreatePullRequestCommentsRequestOrBuilder
    • getRequestsCount

      public int getRequestsCount()
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsCount in interface BatchCreatePullRequestCommentsRequestOrBuilder
    • getRequests

      public CreatePullRequestCommentRequest getRequests(int index)
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequests in interface BatchCreatePullRequestCommentsRequestOrBuilder
    • setRequests

       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRequests

       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllRequests

       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRequests

       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeRequests

      public BatchCreatePullRequestCommentsRequest.Builder removeRequests(int index)
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilder

      public CreatePullRequestCommentRequest.Builder getRequestsBuilder(int index)
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsOrBuilder

      public CreatePullRequestCommentRequestOrBuilder getRequestsOrBuilder(int index)
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilder in interface BatchCreatePullRequestCommentsRequestOrBuilder
    • getRequestsOrBuilderList

      public List<? extends CreatePullRequestCommentRequestOrBuilder> getRequestsOrBuilderList()
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilderList in interface BatchCreatePullRequestCommentsRequestOrBuilder
    • addRequestsBuilder

      public CreatePullRequestCommentRequest.Builder addRequestsBuilder()
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequestsBuilder

      public CreatePullRequestCommentRequest.Builder addRequestsBuilder(int index)
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilderList

      public List<CreatePullRequestCommentRequest.Builder> getRequestsBuilderList()
       Required. The request message specifying the resources to create. There
       should be exactly one CreatePullRequestCommentRequest with CommentDetail
       being REVIEW in the list, and no more than 100
       CreatePullRequestCommentRequests with CommentDetail being CODE in the list
       
      repeated .google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];