public final class ApprovalResult extends GeneratedMessageV3 implements ApprovalResultOrBuilder
ApprovalResult describes the decision and associated metadata of a manual
approval of a build.
Protobuf type google.devtools.cloudbuild.v1.ApprovalResult
Static Fields
APPROVAL_TIME_FIELD_NUMBER
public static final int APPROVAL_TIME_FIELD_NUMBER
Field Value
APPROVER_ACCOUNT_FIELD_NUMBER
public static final int APPROVER_ACCOUNT_FIELD_NUMBER
Field Value
public static final int COMMENT_FIELD_NUMBER
Field Value
DECISION_FIELD_NUMBER
public static final int DECISION_FIELD_NUMBER
Field Value
URL_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ApprovalResult getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ApprovalResult.Builder newBuilder()
Returns
newBuilder(ApprovalResult prototype)
public static ApprovalResult.Builder newBuilder(ApprovalResult prototype)
Parameter
Returns
public static ApprovalResult parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ApprovalResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ApprovalResult parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ApprovalResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ApprovalResult parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ApprovalResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ApprovalResult parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ApprovalResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ApprovalResult parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ApprovalResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ApprovalResult parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ApprovalResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ApprovalResult> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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];
Returns
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];
Returns
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];
Returns
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];
Returns
Type | Description |
ByteString | The bytes for approverAccount.
|
public String getComment()
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The comment.
|
public ByteString getCommentBytes()
Optional. An optional comment for this manual approval result.
string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
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];
Returns
getDecisionValue()
public int getDecisionValue()
Required. The decision of this manual approval.
.google.devtools.cloudbuild.v1.ApprovalResult.Decision decision = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
int | The enum numeric value on the wire for decision.
|
getDefaultInstanceForType()
public ApprovalResult getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ApprovalResult> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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];
Returns
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];
Returns
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];
Returns
Type | Description |
boolean | Whether the approvalTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ApprovalResult.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ApprovalResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ApprovalResult.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions