Class PullRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PullRequest.Builder>
com.google.cloud.securesourcemanager.v1.PullRequest.Builder
All Implemented Interfaces:
PullRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PullRequest

public static final class PullRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<PullRequest.Builder> implements PullRequestOrBuilder
 Metadata of a PullRequest. PullRequest is the request
 from a user to merge a branch (head) into another branch (base).
 
Protobuf type google.cloud.securesourcemanager.v1.PullRequest
  • 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<PullRequest.Builder>
    • clear

      public PullRequest.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<PullRequest.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<PullRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public PullRequest.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<PullRequest.Builder>
    • mergeFrom

      public PullRequest.Builder mergeFrom(PullRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PullRequest.Builder>
    • mergeFrom

      public PullRequest.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<PullRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Identifier. A unique identifier for a PullRequest. The number
       appended at the end is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface PullRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Identifier. A unique identifier for a PullRequest. The number
       appended at the end is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface PullRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PullRequest.Builder setName(String value)
       Output only. Identifier. A unique identifier for a PullRequest. The number
       appended at the end is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PullRequest.Builder clearName()
       Output only. Identifier. A unique identifier for a PullRequest. The number
       appended at the end is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public PullRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Identifier. A unique identifier for a PullRequest. The number
       appended at the end is generated by the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTitle

      public String getTitle()
       Required. The pull request title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTitle in interface PullRequestOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Required. The pull request title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTitleBytes in interface PullRequestOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public PullRequest.Builder setTitle(String value)
       Required. The pull request title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public PullRequest.Builder clearTitle()
       Required. The pull request title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public PullRequest.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Required. The pull request title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • getBody

      public String getBody()
       Optional. The pull request body. Provides a detailed description of the
       changes.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBody in interface PullRequestOrBuilder
      Returns:
      The body.
    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
       Optional. The pull request body. Provides a detailed description of the
       changes.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBodyBytes in interface PullRequestOrBuilder
      Returns:
      The bytes for body.
    • setBody

      public PullRequest.Builder setBody(String value)
       Optional. The pull request body. Provides a detailed description of the
       changes.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public PullRequest.Builder clearBody()
       Optional. The pull request body. Provides a detailed description of the
       changes.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setBodyBytes

      public PullRequest.Builder setBodyBytes(com.google.protobuf.ByteString value)
       Optional. The pull request body. Provides a detailed description of the
       changes.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for body to set.
      Returns:
      This builder for chaining.
    • hasBase

      public boolean hasBase()
       Required. The branch to merge changes in.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasBase in interface PullRequestOrBuilder
      Returns:
      Whether the base field is set.
    • getBase

      public PullRequest.Branch getBase()
       Required. The branch to merge changes in.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBase in interface PullRequestOrBuilder
      Returns:
      The base.
    • setBase

      public PullRequest.Builder setBase(PullRequest.Branch value)
       Required. The branch to merge changes in.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];
    • setBase

      public PullRequest.Builder setBase(PullRequest.Branch.Builder builderForValue)
       Required. The branch to merge changes in.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeBase

      public PullRequest.Builder mergeBase(PullRequest.Branch value)
       Required. The branch to merge changes in.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearBase

      public PullRequest.Builder clearBase()
       Required. The branch to merge changes in.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];
    • getBaseBuilder

      public PullRequest.Branch.Builder getBaseBuilder()
       Required. The branch to merge changes in.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];
    • getBaseOrBuilder

      public PullRequest.BranchOrBuilder getBaseOrBuilder()
       Required. The branch to merge changes in.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBaseOrBuilder in interface PullRequestOrBuilder
    • hasHead

      public boolean hasHead()
       Immutable. The branch containing the changes to be merged.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasHead in interface PullRequestOrBuilder
      Returns:
      Whether the head field is set.
    • getHead

      public PullRequest.Branch getHead()
       Immutable. The branch containing the changes to be merged.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getHead in interface PullRequestOrBuilder
      Returns:
      The head.
    • setHead

      public PullRequest.Builder setHead(PullRequest.Branch value)
       Immutable. The branch containing the changes to be merged.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • setHead

      public PullRequest.Builder setHead(PullRequest.Branch.Builder builderForValue)
       Immutable. The branch containing the changes to be merged.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • mergeHead

      public PullRequest.Builder mergeHead(PullRequest.Branch value)
       Immutable. The branch containing the changes to be merged.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • clearHead

      public PullRequest.Builder clearHead()
       Immutable. The branch containing the changes to be merged.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • getHeadBuilder

      public PullRequest.Branch.Builder getHeadBuilder()
       Immutable. The branch containing the changes to be merged.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • getHeadOrBuilder

      public PullRequest.BranchOrBuilder getHeadOrBuilder()
       Immutable. The branch containing the changes to be merged.
       
      .google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getHeadOrBuilder in interface PullRequestOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. State of the pull request (open, closed or merged).
       
      .google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface PullRequestOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public PullRequest.Builder setStateValue(int value)
       Output only. State of the pull request (open, closed or merged).
       
      .google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public PullRequest.State getState()
       Output only. State of the pull request (open, closed or merged).
       
      .google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface PullRequestOrBuilder
      Returns:
      The state.
    • setState

      public PullRequest.Builder setState(PullRequest.State value)
       Output only. State of the pull request (open, closed or merged).
       
      .google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public PullRequest.Builder clearState()
       Output only. State of the pull request (open, closed or merged).
       
      .google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface PullRequestOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface PullRequestOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public PullRequest.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public PullRequest.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public PullRequest.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public PullRequest.Builder clearCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface PullRequestOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PullRequestOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PullRequestOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PullRequest.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public PullRequest.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public PullRequest.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public PullRequest.Builder clearUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PullRequestOrBuilder
    • hasCloseTime

      public boolean hasCloseTime()
       Output only. Close timestamp (if closed or merged). Cleared when pull
       request is re-opened.
       
      .google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCloseTime in interface PullRequestOrBuilder
      Returns:
      Whether the closeTime field is set.
    • getCloseTime

      public com.google.protobuf.Timestamp getCloseTime()
       Output only. Close timestamp (if closed or merged). Cleared when pull
       request is re-opened.
       
      .google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCloseTime in interface PullRequestOrBuilder
      Returns:
      The closeTime.
    • setCloseTime

      public PullRequest.Builder setCloseTime(com.google.protobuf.Timestamp value)
       Output only. Close timestamp (if closed or merged). Cleared when pull
       request is re-opened.
       
      .google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCloseTime

      public PullRequest.Builder setCloseTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Close timestamp (if closed or merged). Cleared when pull
       request is re-opened.
       
      .google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCloseTime

      public PullRequest.Builder mergeCloseTime(com.google.protobuf.Timestamp value)
       Output only. Close timestamp (if closed or merged). Cleared when pull
       request is re-opened.
       
      .google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCloseTime

      public PullRequest.Builder clearCloseTime()
       Output only. Close timestamp (if closed or merged). Cleared when pull
       request is re-opened.
       
      .google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCloseTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCloseTimeBuilder()
       Output only. Close timestamp (if closed or merged). Cleared when pull
       request is re-opened.
       
      .google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCloseTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder()
       Output only. Close timestamp (if closed or merged). Cleared when pull
       request is re-opened.
       
      .google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCloseTimeOrBuilder in interface PullRequestOrBuilder