Package com.google.cloudbuild.v1
Class ApprovalResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ApprovalResult.Builder>
com.google.cloudbuild.v1.ApprovalResult.Builder
- All Implemented Interfaces:
ApprovalResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ApprovalResult
public static final class ApprovalResult.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Optional.Required.clearUrl()Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.Optional.com.google.protobuf.ByteStringOptional.Required.intRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetUrl()Optional.com.google.protobuf.ByteStringOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeApprovalTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(ApprovalResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setApprovalTime(com.google.protobuf.Timestamp value) Output only.setApprovalTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setApproverAccount(String value) Output only.setApproverAccountBytes(com.google.protobuf.ByteString value) Output only.setComment(String value) Optional.setCommentBytes(com.google.protobuf.ByteString value) Optional.Required.setDecisionValue(int value) Required.Optional.setUrlBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ApprovalResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ApprovalResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ApprovalResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApprovalResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ApprovalResult.Builder>
-
mergeFrom
public ApprovalResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApprovalResult.Builder>- Throws:
IOException
-
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];- Specified by:
getApproverAccountin interfaceApprovalResultOrBuilder- Returns:
- The approverAccount.
-
getApproverAccountBytes
public com.google.protobuf.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];- Specified by:
getApproverAccountBytesin interfaceApprovalResultOrBuilder- Returns:
- The bytes for approverAccount.
-
setApproverAccount
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];- Parameters:
value- The approverAccount to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setApproverAccountBytes
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];- Parameters:
value- The bytes for approverAccount to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasApprovalTimein interfaceApprovalResultOrBuilder- Returns:
- Whether the approvalTime field is set.
-
getApprovalTime
public com.google.protobuf.Timestamp getApprovalTime()Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getApprovalTimein interfaceApprovalResultOrBuilder- Returns:
- The approvalTime.
-
setApprovalTime
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setApprovalTime
public ApprovalResult.Builder setApprovalTime(com.google.protobuf.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]; -
mergeApprovalTime
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearApprovalTime
Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getApprovalTimeBuilder
public com.google.protobuf.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]; -
getApprovalTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getApprovalTimeOrBuilder()Output only. The time when the approval decision was made.
.google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getApprovalTimeOrBuilderin interfaceApprovalResultOrBuilder
-
getDecisionValue
public int getDecisionValue()Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDecisionValuein interfaceApprovalResultOrBuilder- Returns:
- The enum numeric value on the wire for decision.
-
setDecisionValue
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for decision to set.- Returns:
- This builder for chaining.
-
getDecision
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDecisionin interfaceApprovalResultOrBuilder- Returns:
- The decision.
-
setDecision
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The decision to set.- Returns:
- This builder for chaining.
-
clearDecision
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getComment
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCommentin interfaceApprovalResultOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCommentBytesin interfaceApprovalResultOrBuilder- Returns:
- The bytes for comment.
-
setComment
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setCommentBytes
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for comment to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getUrlin interfaceApprovalResultOrBuilder- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.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];- Specified by:
getUrlBytesin interfaceApprovalResultOrBuilder- Returns:
- The bytes for url.
-
setUrl
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];- Parameters:
value- The url to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setUrlBytes
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];- Parameters:
value- The bytes for url to set.- Returns:
- This builder for chaining.
-