Class ApproveBuildRequest.Builder (3.50.0)

public static final class ApproveBuildRequest.Builder extends GeneratedMessageV3.Builder<ApproveBuildRequest.Builder> implements ApproveBuildRequestOrBuilder

Request to approve or reject a pending build.

Protobuf type google.devtools.cloudbuild.v1.ApproveBuildRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ApproveBuildRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApproveBuildRequest.Builder
Overrides

build()

public ApproveBuildRequest build()
Returns
Type Description
ApproveBuildRequest

buildPartial()

public ApproveBuildRequest buildPartial()
Returns
Type Description
ApproveBuildRequest

clear()

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

clearApprovalResult()

public ApproveBuildRequest.Builder clearApprovalResult()

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Returns
Type Description
ApproveBuildRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ApproveBuildRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ApproveBuildRequest.Builder
Overrides

clearName()

public ApproveBuildRequest.Builder clearName()

Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApproveBuildRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ApproveBuildRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ApproveBuildRequest.Builder
Overrides

clone()

public ApproveBuildRequest.Builder clone()
Returns
Type Description
ApproveBuildRequest.Builder
Overrides

getApprovalResult()

public ApprovalResult getApprovalResult()

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Returns
Type Description
ApprovalResult

The approvalResult.

getApprovalResultBuilder()

public ApprovalResult.Builder getApprovalResultBuilder()

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Returns
Type Description
ApprovalResult.Builder

getApprovalResultOrBuilder()

public ApprovalResultOrBuilder getApprovalResultOrBuilder()

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Returns
Type Description
ApprovalResultOrBuilder

getDefaultInstanceForType()

public ApproveBuildRequest getDefaultInstanceForType()
Returns
Type Description
ApproveBuildRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

hasApprovalResult()

public boolean hasApprovalResult()

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Returns
Type Description
boolean

Whether the approvalResult field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApprovalResult(ApprovalResult value)

public ApproveBuildRequest.Builder mergeApprovalResult(ApprovalResult value)

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Parameter
Name Description
value ApprovalResult
Returns
Type Description
ApproveBuildRequest.Builder

mergeFrom(ApproveBuildRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ApproveBuildRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApproveBuildRequest.Builder
Overrides

setApprovalResult(ApprovalResult value)

public ApproveBuildRequest.Builder setApprovalResult(ApprovalResult value)

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Parameter
Name Description
value ApprovalResult
Returns
Type Description
ApproveBuildRequest.Builder

setApprovalResult(ApprovalResult.Builder builderForValue)

public ApproveBuildRequest.Builder setApprovalResult(ApprovalResult.Builder builderForValue)

Approval decision and metadata.

.google.devtools.cloudbuild.v1.ApprovalResult approval_result = 2;

Parameter
Name Description
builderForValue ApprovalResult.Builder
Returns
Type Description
ApproveBuildRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ApproveBuildRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApproveBuildRequest.Builder
Overrides

setName(String value)

public ApproveBuildRequest.Builder setName(String value)

Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ApproveBuildRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ApproveBuildRequest.Builder setNameBytes(ByteString value)

Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ApproveBuildRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ApproveBuildRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ApproveBuildRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ApproveBuildRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApproveBuildRequest.Builder
Overrides