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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ApprovalConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ApprovalConfig build()
Returns
buildPartial()
public ApprovalConfig buildPartial()
Returns
clear()
public ApprovalConfig.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public ApprovalConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ApprovalConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ApprovalConfig.Builder clone()
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ApprovalConfig other)
public ApprovalConfig.Builder mergeFrom(ApprovalConfig other)
Parameter
Returns
public ApprovalConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ApprovalConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ApprovalConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public ApprovalConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ApprovalConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ApprovalConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides