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