Class ApprovalResult (3.14.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 3.14.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
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 
  
    
      
        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];
 
 
  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 
  
    
      
        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];
 
  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 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]