Class BuildApproval.Builder (3.47.0)

public static final class BuildApproval.Builder extends GeneratedMessageV3.Builder<BuildApproval.Builder> implements BuildApprovalOrBuilder

BuildApproval describes a build's approval configuration, state, and result.

Protobuf type google.devtools.cloudbuild.v1.BuildApproval

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BuildApproval build()
Returns
Type Description
BuildApproval

buildPartial()

public BuildApproval buildPartial()
Returns
Type Description
BuildApproval

clear()

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

clearConfig()

public BuildApproval.Builder clearConfig()

Output only. Configuration for manual approval of this build.

.google.devtools.cloudbuild.v1.ApprovalConfig config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BuildApproval.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResult()

public BuildApproval.Builder clearResult()

Output only. Result of manual approval for this Build.

.google.devtools.cloudbuild.v1.ApprovalResult result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BuildApproval.Builder

clearState()

public BuildApproval.Builder clearState()

Output only. The state of this build's approval.

.google.devtools.cloudbuild.v1.BuildApproval.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BuildApproval.Builder

This builder for chaining.

clone()

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

getConfig()

public ApprovalConfig getConfig()

Output only. Configuration for manual approval of this build.

.google.devtools.cloudbuild.v1.ApprovalConfig config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApprovalConfig

The config.

getConfigBuilder()

public ApprovalConfig.Builder getConfigBuilder()

Output only. Configuration for manual approval of this build.

.google.devtools.cloudbuild.v1.ApprovalConfig config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApprovalConfig.Builder

getConfigOrBuilder()

public ApprovalConfigOrBuilder getConfigOrBuilder()

Output only. Configuration for manual approval of this build.

.google.devtools.cloudbuild.v1.ApprovalConfig config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApprovalConfigOrBuilder

getDefaultInstanceForType()

public BuildApproval getDefaultInstanceForType()
Returns
Type Description
BuildApproval

getDescriptorForType()

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

getResult()

public ApprovalResult getResult()

Output only. Result of manual approval for this Build.

.google.devtools.cloudbuild.v1.ApprovalResult result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApprovalResult

The result.

getResultBuilder()

public ApprovalResult.Builder getResultBuilder()

Output only. Result of manual approval for this Build.

.google.devtools.cloudbuild.v1.ApprovalResult result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApprovalResult.Builder

getResultOrBuilder()

public ApprovalResultOrBuilder getResultOrBuilder()

Output only. Result of manual approval for this Build.

.google.devtools.cloudbuild.v1.ApprovalResult result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApprovalResultOrBuilder

getState()

public BuildApproval.State getState()

Output only. The state of this build's approval.

.google.devtools.cloudbuild.v1.BuildApproval.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BuildApproval.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of this build's approval.

.google.devtools.cloudbuild.v1.BuildApproval.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasConfig()

public boolean hasConfig()

Output only. Configuration for manual approval of this build.

.google.devtools.cloudbuild.v1.ApprovalConfig config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the config field is set.

hasResult()

public boolean hasResult()

Output only. Result of manual approval for this Build.

.google.devtools.cloudbuild.v1.ApprovalResult result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the result field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfig(ApprovalConfig value)

public BuildApproval.Builder mergeConfig(ApprovalConfig value)

Output only. Configuration for manual approval of this build.

.google.devtools.cloudbuild.v1.ApprovalConfig config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ApprovalConfig
Returns
Type Description
BuildApproval.Builder

mergeFrom(BuildApproval other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResult(ApprovalResult value)

public BuildApproval.Builder mergeResult(ApprovalResult value)

Output only. Result of manual approval for this Build.

.google.devtools.cloudbuild.v1.ApprovalResult result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ApprovalResult
Returns
Type Description
BuildApproval.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfig(ApprovalConfig value)

public BuildApproval.Builder setConfig(ApprovalConfig value)

Output only. Configuration for manual approval of this build.

.google.devtools.cloudbuild.v1.ApprovalConfig config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ApprovalConfig
Returns
Type Description
BuildApproval.Builder

setConfig(ApprovalConfig.Builder builderForValue)

public BuildApproval.Builder setConfig(ApprovalConfig.Builder builderForValue)

Output only. Configuration for manual approval of this build.

.google.devtools.cloudbuild.v1.ApprovalConfig config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ApprovalConfig.Builder
Returns
Type Description
BuildApproval.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResult(ApprovalResult value)

public BuildApproval.Builder setResult(ApprovalResult value)

Output only. Result of manual approval for this Build.

.google.devtools.cloudbuild.v1.ApprovalResult result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ApprovalResult
Returns
Type Description
BuildApproval.Builder

setResult(ApprovalResult.Builder builderForValue)

public BuildApproval.Builder setResult(ApprovalResult.Builder builderForValue)

Output only. Result of manual approval for this Build.

.google.devtools.cloudbuild.v1.ApprovalResult result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setState(BuildApproval.State value)

public BuildApproval.Builder setState(BuildApproval.State value)

Output only. The state of this build's approval.

.google.devtools.cloudbuild.v1.BuildApproval.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BuildApproval.State

The state to set.

Returns
Type Description
BuildApproval.Builder

This builder for chaining.

setStateValue(int value)

public BuildApproval.Builder setStateValue(int value)

Output only. The state of this build's approval.

.google.devtools.cloudbuild.v1.BuildApproval.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
BuildApproval.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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