Class ApprovalConfig.Builder (3.4.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApprovalConfig build()
Returns
TypeDescription
ApprovalConfig

buildPartial()

public ApprovalConfig buildPartial()
Returns
TypeDescription
ApprovalConfig

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

The approvalRequired.

getDefaultInstanceForType()

public ApprovalConfig getDefaultInstanceForType()
Returns
TypeDescription
ApprovalConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ApprovalConfig other)

public ApprovalConfig.Builder mergeFrom(ApprovalConfig other)
Parameter
NameDescription
otherApprovalConfig
Returns
TypeDescription
ApprovalConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The approvalRequired to set.

Returns
TypeDescription
ApprovalConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ApprovalConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ApprovalConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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