Class ClosePullRequestRequest.Builder (0.55.0)

public static final class ClosePullRequestRequest.Builder extends GeneratedMessage.Builder<ClosePullRequestRequest.Builder> implements ClosePullRequestRequestOrBuilder

ClosePullRequestRequest is the request to close a pull request.

Protobuf type google.cloud.securesourcemanager.v1.ClosePullRequestRequest

Static Methods

getDescriptor()

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

Methods

build()

public ClosePullRequestRequest build()
Returns
Type Description
ClosePullRequestRequest

buildPartial()

public ClosePullRequestRequest buildPartial()
Returns
Type Description
ClosePullRequestRequest

clear()

public ClosePullRequestRequest.Builder clear()
Returns
Type Description
ClosePullRequestRequest.Builder
Overrides

clearName()

public ClosePullRequestRequest.Builder clearName()

Required. The pull request to close. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ClosePullRequestRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ClosePullRequestRequest getDefaultInstanceForType()
Returns
Type Description
ClosePullRequestRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The pull request to close. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The pull request to close. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClosePullRequestRequest other)

public ClosePullRequestRequest.Builder mergeFrom(ClosePullRequestRequest other)
Parameter
Name Description
other ClosePullRequestRequest
Returns
Type Description
ClosePullRequestRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClosePullRequestRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClosePullRequestRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClosePullRequestRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClosePullRequestRequest.Builder
Overrides

setName(String value)

public ClosePullRequestRequest.Builder setName(String value)

Required. The pull request to close. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ClosePullRequestRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ClosePullRequestRequest.Builder setNameBytes(ByteString value)

Required. The pull request to close. Format: projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ClosePullRequestRequest.Builder

This builder for chaining.