Class BatchCreatePullRequestCommentsRequest (0.40.0)

public final class BatchCreatePullRequestCommentsRequest extends GeneratedMessageV3 implements BatchCreatePullRequestCommentsRequestOrBuilder

The request to batch create pull request comments.

Protobuf type google.cloud.securesourcemanager.v1.BatchCreatePullRequestCommentsRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > BatchCreatePullRequestCommentsRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

REQUESTS_FIELD_NUMBER

public static final int REQUESTS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchCreatePullRequestCommentsRequest getDefaultInstance()
Returns
Type Description
BatchCreatePullRequestCommentsRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BatchCreatePullRequestCommentsRequest.Builder newBuilder()
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

newBuilder(BatchCreatePullRequestCommentsRequest prototype)

public static BatchCreatePullRequestCommentsRequest.Builder newBuilder(BatchCreatePullRequestCommentsRequest prototype)
Parameter
Name Description
prototype BatchCreatePullRequestCommentsRequest
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

parseDelimitedFrom(InputStream input)

public static BatchCreatePullRequestCommentsRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePullRequestCommentsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchCreatePullRequestCommentsRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePullRequestCommentsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchCreatePullRequestCommentsRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePullRequestCommentsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchCreatePullRequestCommentsRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePullRequestCommentsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchCreatePullRequestCommentsRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePullRequestCommentsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchCreatePullRequestCommentsRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePullRequestCommentsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePullRequestCommentsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchCreatePullRequestCommentsRequest> parser()
Returns
Type Description
Parser<BatchCreatePullRequestCommentsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BatchCreatePullRequestCommentsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreatePullRequestCommentsRequest

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) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<BatchCreatePullRequestCommentsRequest> getParserForType()
Returns
Type Description
Parser<BatchCreatePullRequestCommentsRequest>
Overrides

getRequests(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
CreatePullRequestCommentRequest

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];

Returns
Type Description
int

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];

Returns
Type Description
List<CreatePullRequestCommentRequest>

getRequestsOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
CreatePullRequestCommentRequestOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.securesourcemanager.v1.CreatePullRequestCommentRequestOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BatchCreatePullRequestCommentsRequest.Builder newBuilderForType()
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchCreatePullRequestCommentsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BatchCreatePullRequestCommentsRequest.Builder toBuilder()
Returns
Type Description
BatchCreatePullRequestCommentsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException