- 3.49.0 (latest)
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.6
- 3.4.1
- 3.3.12
public static final class ApprovalResult.Builder extends GeneratedMessageV3.Builder<ApprovalResult.Builder> implements ApprovalResultOrBuilder
ApprovalResult describes the decision and associated metadata of a manual approval of a build.
Protobuf type google.devtools.cloudbuild.v1.ApprovalResult
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ApprovalResult.BuilderImplements
ApprovalResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ApprovalResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ApprovalResult.Builder |
build()
public ApprovalResult build()
Type | Description |
ApprovalResult |
buildPartial()
public ApprovalResult buildPartial()
Type | Description |
ApprovalResult |
clear()
public ApprovalResult.Builder clear()
Type | Description |
ApprovalResult.Builder |
clearApprovalTime()
public ApprovalResult.Builder clearApprovalTime()
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ApprovalResult.Builder |
clearApproverAccount()
public ApprovalResult.Builder clearApproverAccount()
Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
string approver_account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
clearComment()
public ApprovalResult.Builder clearComment()
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
clearDecision()
public ApprovalResult.Builder clearDecision()
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ApprovalResult.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ApprovalResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ApprovalResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ApprovalResult.Builder |
clearUrl()
public ApprovalResult.Builder clearUrl()
Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
string url = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
clone()
public ApprovalResult.Builder clone()
Type | Description |
ApprovalResult.Builder |
getApprovalTime()
public Timestamp getApprovalTime()
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The approvalTime. |
getApprovalTimeBuilder()
public Timestamp.Builder getApprovalTimeBuilder()
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getApprovalTimeOrBuilder()
public TimestampOrBuilder getApprovalTimeOrBuilder()
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getApproverAccount()
public String getApproverAccount()
Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
string approver_account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The approverAccount. |
getApproverAccountBytes()
public ByteString getApproverAccountBytes()
Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
string approver_account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for approverAccount. |
getComment()
public String getComment()
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The comment. |
getCommentBytes()
public ByteString getCommentBytes()
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for comment. |
getDecision()
public ApprovalResult.Decision getDecision()
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ApprovalResult.Decision | The decision. |
getDecisionValue()
public int getDecisionValue()
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The enum numeric value on the wire for decision. |
getDefaultInstanceForType()
public ApprovalResult getDefaultInstanceForType()
Type | Description |
ApprovalResult |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getUrl()
public String getUrl()
Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
string url = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The url. |
getUrlBytes()
public ByteString getUrlBytes()
Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
string url = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for url. |
hasApprovalTime()
public boolean hasApprovalTime()
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the approvalTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeApprovalTime(Timestamp value)
public ApprovalResult.Builder mergeApprovalTime(Timestamp value)
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ApprovalResult.Builder |
mergeFrom(ApprovalResult other)
public ApprovalResult.Builder mergeFrom(ApprovalResult other)
Name | Description |
other | ApprovalResult |
Type | Description |
ApprovalResult.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ApprovalResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ApprovalResult.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ApprovalResult.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ApprovalResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ApprovalResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ApprovalResult.Builder |
setApprovalTime(Timestamp value)
public ApprovalResult.Builder setApprovalTime(Timestamp value)
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
ApprovalResult.Builder |
setApprovalTime(Timestamp.Builder builderForValue)
public ApprovalResult.Builder setApprovalTime(Timestamp.Builder builderForValue)
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
ApprovalResult.Builder |
setApproverAccount(String value)
public ApprovalResult.Builder setApproverAccount(String value)
Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
string approver_account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The approverAccount to set. |
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
setApproverAccountBytes(ByteString value)
public ApprovalResult.Builder setApproverAccountBytes(ByteString value)
Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.
string approver_account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for approverAccount to set. |
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
setComment(String value)
public ApprovalResult.Builder setComment(String value)
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The comment to set. |
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
setCommentBytes(ByteString value)
public ApprovalResult.Builder setCommentBytes(ByteString value)
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for comment to set. |
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
setDecision(ApprovalResult.Decision value)
public ApprovalResult.Builder setDecision(ApprovalResult.Decision value)
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ApprovalResult.Decision The decision to set. |
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
setDecisionValue(int value)
public ApprovalResult.Builder setDecisionValue(int value)
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | int The enum numeric value on the wire for decision to set. |
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ApprovalResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ApprovalResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ApprovalResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ApprovalResult.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ApprovalResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ApprovalResult.Builder |
setUrl(String value)
public ApprovalResult.Builder setUrl(String value)
Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
string url = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The url to set. |
Type | Description |
ApprovalResult.Builder | This builder for chaining. |
setUrlBytes(ByteString value)
public ApprovalResult.Builder setUrlBytes(ByteString value)
Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.
string url = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for url to set. |
Type | Description |
ApprovalResult.Builder | This builder for chaining. |