Class BuildApproval.Builder (3.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BuildApproval build()
Returns
TypeDescription
BuildApproval

buildPartial()

public BuildApproval buildPartial()
Returns
TypeDescription
BuildApproval

clear()

public BuildApproval.Builder clear()
Returns
TypeDescription
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
TypeDescription
BuildApproval.Builder

clearField(Descriptors.FieldDescriptor field)

public BuildApproval.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BuildApproval.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BuildApproval.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BuildApproval.Builder

This builder for chaining.

clone()

public BuildApproval.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ApprovalConfigOrBuilder

getDefaultInstanceForType()

public BuildApproval getDefaultInstanceForType()
Returns
TypeDescription
BuildApproval

getDescriptorForType()

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

Whether the result field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueApprovalConfig
Returns
TypeDescription
BuildApproval.Builder

mergeFrom(BuildApproval other)

public BuildApproval.Builder mergeFrom(BuildApproval other)
Parameter
NameDescription
otherBuildApproval
Returns
TypeDescription
BuildApproval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public BuildApproval.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueApprovalResult
Returns
TypeDescription
BuildApproval.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BuildApproval.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueApprovalConfig
Returns
TypeDescription
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
NameDescription
builderForValueApprovalConfig.Builder
Returns
TypeDescription
BuildApproval.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BuildApproval.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueApprovalResult
Returns
TypeDescription
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
NameDescription
builderForValueApprovalResult.Builder
Returns
TypeDescription
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
NameDescription
valueBuildApproval.State

The state to set.

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

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

Returns
TypeDescription
BuildApproval.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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