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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BuildApproval.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BuildApproval build()
Returns
buildPartial()
public BuildApproval buildPartial()
Returns
clear()
public BuildApproval.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public BuildApproval.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BuildApproval.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public BuildApproval.Builder clone()
Returns
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
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
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
getDefaultInstanceForType()
public BuildApproval getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(BuildApproval other)
public BuildApproval.Builder mergeFrom(BuildApproval other)
Parameter
Returns
public BuildApproval.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BuildApproval.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BuildApproval.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BuildApproval.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BuildApproval.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final BuildApproval.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides