Class ApprovalConfig.Builder (3.57.0)

public static final class ApprovalConfig.Builder extends GeneratedMessageV3.Builder<ApprovalConfig.Builder> implements ApprovalConfigOrBuilder

ApprovalConfig describes configuration for manual approval of a build.

Protobuf type google.devtools.cloudbuild.v1.ApprovalConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApprovalConfig build()
Returns
Type Description
ApprovalConfig

buildPartial()

public ApprovalConfig buildPartial()
Returns
Type Description
ApprovalConfig

clear()

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

clearApprovalRequired()

public ApprovalConfig.Builder clearApprovalRequired()

Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.

bool approval_required = 1;

Returns
Type Description
ApprovalConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getApprovalRequired()

public boolean getApprovalRequired()

Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.

bool approval_required = 1;

Returns
Type Description
boolean

The approvalRequired.

getDefaultInstanceForType()

public ApprovalConfig getDefaultInstanceForType()
Returns
Type Description
ApprovalConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApprovalConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApprovalRequired(boolean value)

public ApprovalConfig.Builder setApprovalRequired(boolean value)

Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.

bool approval_required = 1;

Parameter
Name Description
value boolean

The approvalRequired to set.

Returns
Type Description
ApprovalConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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