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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ApprovalResult.Builder>
    • clear

      public ApprovalResult.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ApprovalResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ApprovalResult.Builder>
    • getDefaultInstanceForType

      public ApprovalResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ApprovalResult build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ApprovalResult buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ApprovalResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ApprovalResult.Builder>
    • mergeFrom

      public ApprovalResult.Builder mergeFrom(ApprovalResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ApprovalResult.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getApproverAccount in interface ApprovalResultOrBuilder
      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:
      getApproverAccountBytes in interface ApprovalResultOrBuilder
      Returns:
      The bytes for approverAccount.
    • setApproverAccount

      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];
      Parameters:
      value - The approverAccount to set.
      Returns:
      This builder for chaining.
    • 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];
      Returns:
      This builder for chaining.
    • setApproverAccountBytes

      public ApprovalResult.Builder setApproverAccountBytes(com.google.protobuf.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];
      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:
      hasApprovalTime in interface ApprovalResultOrBuilder
      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:
      getApprovalTime in interface ApprovalResultOrBuilder
      Returns:
      The approvalTime.
    • setApprovalTime

      public ApprovalResult.Builder setApprovalTime(com.google.protobuf.Timestamp value)
       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

      public ApprovalResult.Builder mergeApprovalTime(com.google.protobuf.Timestamp value)
       Output only. The time when the approval decision was made.
       
      .google.protobuf.Timestamp approval_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getApprovalTimeOrBuilder in interface ApprovalResultOrBuilder
    • 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:
      getDecisionValue in interface ApprovalResultOrBuilder
      Returns:
      The enum numeric value on the wire for decision.
    • setDecisionValue

      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];
      Parameters:
      value - The enum numeric value on the wire for decision to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getDecision in interface ApprovalResultOrBuilder
      Returns:
      The decision.
    • setDecision

      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];
      Parameters:
      value - The decision to set.
      Returns:
      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];
      Returns:
      This builder for chaining.
    • getComment

      public String getComment()
       Optional. An optional comment for this manual approval result.
       
      string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getComment in interface ApprovalResultOrBuilder
      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:
      getCommentBytes in interface ApprovalResultOrBuilder
      Returns:
      The bytes for comment.
    • setComment

      public ApprovalResult.Builder setComment(String value)
       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

      public ApprovalResult.Builder clearComment()
       Optional. An optional comment for this manual approval result.
       
      string comment = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCommentBytes

      public ApprovalResult.Builder setCommentBytes(com.google.protobuf.ByteString value)
       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

      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];
      Specified by:
      getUrl in interface ApprovalResultOrBuilder
      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:
      getUrlBytes in interface ApprovalResultOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      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];
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • 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];
      Returns:
      This builder for chaining.
    • setUrlBytes

      public ApprovalResult.Builder setUrlBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.