Class ApproveBuildRequest.Builder (3.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ApproveBuildRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides

build()

public ApproveBuildRequest build()
Returns
TypeDescription
ApproveBuildRequest

buildPartial()

public ApproveBuildRequest buildPartial()
Returns
TypeDescription
ApproveBuildRequest

clear()

public ApproveBuildRequest.Builder clear()
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides

clearApprovalResult()

public ApproveBuildRequest.Builder clearApprovalResult()

Approval decision and metadata.

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

Returns
TypeDescription
ApproveBuildRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ApproveBuildRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ApproveBuildRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ApproveBuildRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides

clone()

public ApproveBuildRequest.Builder clone()
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides

getApprovalResult()

public ApprovalResult getApprovalResult()

Approval decision and metadata.

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

Returns
TypeDescription
ApprovalResult

The approvalResult.

getApprovalResultBuilder()

public ApprovalResult.Builder getApprovalResultBuilder()

Approval decision and metadata.

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

Returns
TypeDescription
ApprovalResult.Builder

getApprovalResultOrBuilder()

public ApprovalResultOrBuilder getApprovalResultOrBuilder()

Approval decision and metadata.

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

Returns
TypeDescription
ApprovalResultOrBuilder

getDefaultInstanceForType()

public ApproveBuildRequest getDefaultInstanceForType()
Returns
TypeDescription
ApproveBuildRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

hasApprovalResult()

public boolean hasApprovalResult()

Approval decision and metadata.

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

Returns
TypeDescription
boolean

Whether the approvalResult field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeApprovalResult(ApprovalResult value)

public ApproveBuildRequest.Builder mergeApprovalResult(ApprovalResult value)

Approval decision and metadata.

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

Parameter
NameDescription
valueApprovalResult
Returns
TypeDescription
ApproveBuildRequest.Builder

mergeFrom(ApproveBuildRequest other)

public ApproveBuildRequest.Builder mergeFrom(ApproveBuildRequest other)
Parameter
NameDescription
otherApproveBuildRequest
Returns
TypeDescription
ApproveBuildRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ApproveBuildRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ApproveBuildRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ApproveBuildRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueApprovalResult
Returns
TypeDescription
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
NameDescription
builderForValueApprovalResult.Builder
Returns
TypeDescription
ApproveBuildRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ApproveBuildRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ApproveBuildRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ApproveBuildRequest.Builder
Overrides