Class BranchRule.Builder

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

public static final class BranchRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<BranchRule.Builder> implements BranchRuleOrBuilder
 Metadata of a BranchRule. BranchRule is the protection rule to enforce
 pre-defined rules on designated branches within a repository.
 
Protobuf type google.cloud.securesourcemanager.v1.BranchRule
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BranchRule.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BranchRule.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public BranchRule.Builder mergeFrom(BranchRule other)
    • isInitialized

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

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

      public String getName()
       Identifier. A unique identifier for a BranchRule. The name should be of the
       format:
       `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface BranchRuleOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. A unique identifier for a BranchRule. The name should be of the
       format:
       `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface BranchRuleOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BranchRule.Builder setName(String value)
       Identifier. A unique identifier for a BranchRule. The name should be of the
       format:
       `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BranchRule.Builder clearName()
       Identifier. A unique identifier for a BranchRule. The name should be of the
       format:
       `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public BranchRule.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. A unique identifier for a BranchRule. The name should be of the
       format:
       `projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. Unique identifier of the repository.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface BranchRuleOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Unique identifier of the repository.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface BranchRuleOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public BranchRule.Builder setUid(String value)
       Output only. Unique identifier of the repository.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public BranchRule.Builder clearUid()
       Output only. Unique identifier of the repository.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public BranchRule.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Unique identifier of the repository.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

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

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

      public BranchRule.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

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

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

      public BranchRule.Builder clearCreateTime()
       Output only. Create timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

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

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

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

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

      public BranchRule.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public BranchRule.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public BranchRule.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public BranchRule.Builder clearUpdateTime()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

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

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update timestamp.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface BranchRuleOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: BranchRuleOrBuilder
       Optional. User annotations. These attributes can only be set and used by
       the user. See https://google.aip.dev/128#annotations for more details such
       as format and size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface BranchRuleOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user. See https://google.aip.dev/128#annotations for more details such
       as format and size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface BranchRuleOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface BranchRuleOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. User annotations. These attributes can only be set and used by
       the user. See https://google.aip.dev/128#annotations for more details such
       as format and size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface BranchRuleOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. User annotations. These attributes can only be set and used by
       the user. See https://google.aip.dev/128#annotations for more details such
       as format and size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface BranchRuleOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user. See https://google.aip.dev/128#annotations for more details such
       as format and size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface BranchRuleOrBuilder
    • clearAnnotations

      public BranchRule.Builder clearAnnotations()
    • removeAnnotations

      public BranchRule.Builder removeAnnotations(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user. See https://google.aip.dev/128#annotations for more details such
       as format and size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public BranchRule.Builder putAnnotations(String key, String value)
       Optional. User annotations. These attributes can only be set and used by
       the user. See https://google.aip.dev/128#annotations for more details such
       as format and size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAnnotations

      public BranchRule.Builder putAllAnnotations(Map<String,String> values)
       Optional. User annotations. These attributes can only be set and used by
       the user. See https://google.aip.dev/128#annotations for more details such
       as format and size limitations.
       
      map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getEtag

      public String getEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface BranchRuleOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface BranchRuleOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public BranchRule.Builder setEtag(String value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public BranchRule.Builder clearEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public BranchRule.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getIncludePattern

      public String getIncludePattern()
       Optional. The pattern of the branch that can match to this BranchRule.
       Specified as regex.
       .* for all branches. Examples: main, (main|release.*).
       Current MVP phase only support `.*` for wildcard.
       
      string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludePattern in interface BranchRuleOrBuilder
      Returns:
      The includePattern.
    • getIncludePatternBytes

      public com.google.protobuf.ByteString getIncludePatternBytes()
       Optional. The pattern of the branch that can match to this BranchRule.
       Specified as regex.
       .* for all branches. Examples: main, (main|release.*).
       Current MVP phase only support `.*` for wildcard.
       
      string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludePatternBytes in interface BranchRuleOrBuilder
      Returns:
      The bytes for includePattern.
    • setIncludePattern

      public BranchRule.Builder setIncludePattern(String value)
       Optional. The pattern of the branch that can match to this BranchRule.
       Specified as regex.
       .* for all branches. Examples: main, (main|release.*).
       Current MVP phase only support `.*` for wildcard.
       
      string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The includePattern to set.
      Returns:
      This builder for chaining.
    • clearIncludePattern

      public BranchRule.Builder clearIncludePattern()
       Optional. The pattern of the branch that can match to this BranchRule.
       Specified as regex.
       .* for all branches. Examples: main, (main|release.*).
       Current MVP phase only support `.*` for wildcard.
       
      string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setIncludePatternBytes

      public BranchRule.Builder setIncludePatternBytes(com.google.protobuf.ByteString value)
       Optional. The pattern of the branch that can match to this BranchRule.
       Specified as regex.
       .* for all branches. Examples: main, (main|release.*).
       Current MVP phase only support `.*` for wildcard.
       
      string include_pattern = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for includePattern to set.
      Returns:
      This builder for chaining.
    • getDisabled

      public boolean getDisabled()
       Optional. Determines if the branch rule is disabled or not.
       
      bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisabled in interface BranchRuleOrBuilder
      Returns:
      The disabled.
    • setDisabled

      public BranchRule.Builder setDisabled(boolean value)
       Optional. Determines if the branch rule is disabled or not.
       
      bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The disabled to set.
      Returns:
      This builder for chaining.
    • clearDisabled

      public BranchRule.Builder clearDisabled()
       Optional. Determines if the branch rule is disabled or not.
       
      bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRequirePullRequest

      public boolean getRequirePullRequest()
       Optional. Determines if the branch rule requires a pull request or not.
       
      bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequirePullRequest in interface BranchRuleOrBuilder
      Returns:
      The requirePullRequest.
    • setRequirePullRequest

      public BranchRule.Builder setRequirePullRequest(boolean value)
       Optional. Determines if the branch rule requires a pull request or not.
       
      bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requirePullRequest to set.
      Returns:
      This builder for chaining.
    • clearRequirePullRequest

      public BranchRule.Builder clearRequirePullRequest()
       Optional. Determines if the branch rule requires a pull request or not.
       
      bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMinimumReviewsCount

      public int getMinimumReviewsCount()
       Optional. The minimum number of reviews required for the branch rule to be
       matched.
       
      int32 minimum_reviews_count = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinimumReviewsCount in interface BranchRuleOrBuilder
      Returns:
      The minimumReviewsCount.
    • setMinimumReviewsCount

      public BranchRule.Builder setMinimumReviewsCount(int value)
       Optional. The minimum number of reviews required for the branch rule to be
       matched.
       
      int32 minimum_reviews_count = 10 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The minimumReviewsCount to set.
      Returns:
      This builder for chaining.
    • clearMinimumReviewsCount

      public BranchRule.Builder clearMinimumReviewsCount()
       Optional. The minimum number of reviews required for the branch rule to be
       matched.
       
      int32 minimum_reviews_count = 10 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMinimumApprovalsCount

      public int getMinimumApprovalsCount()
       Optional. The minimum number of approvals required for the branch rule to
       be matched.
       
      int32 minimum_approvals_count = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMinimumApprovalsCount in interface BranchRuleOrBuilder
      Returns:
      The minimumApprovalsCount.
    • setMinimumApprovalsCount

      public BranchRule.Builder setMinimumApprovalsCount(int value)
       Optional. The minimum number of approvals required for the branch rule to
       be matched.
       
      int32 minimum_approvals_count = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The minimumApprovalsCount to set.
      Returns:
      This builder for chaining.
    • clearMinimumApprovalsCount

      public BranchRule.Builder clearMinimumApprovalsCount()
       Optional. The minimum number of approvals required for the branch rule to
       be matched.
       
      int32 minimum_approvals_count = 11 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRequireCodeOwnerApproval

      public boolean getRequireCodeOwnerApproval()
       Optional. Determines if code owners must approve before merging to the
       branch.
       
      bool require_code_owner_approval = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequireCodeOwnerApproval in interface BranchRuleOrBuilder
      Returns:
      The requireCodeOwnerApproval.
    • setRequireCodeOwnerApproval

      public BranchRule.Builder setRequireCodeOwnerApproval(boolean value)
       Optional. Determines if code owners must approve before merging to the
       branch.
       
      bool require_code_owner_approval = 16 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requireCodeOwnerApproval to set.
      Returns:
      This builder for chaining.
    • clearRequireCodeOwnerApproval

      public BranchRule.Builder clearRequireCodeOwnerApproval()
       Optional. Determines if code owners must approve before merging to the
       branch.
       
      bool require_code_owner_approval = 16 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRequireCommentsResolved

      public boolean getRequireCommentsResolved()
       Optional. Determines if require comments resolved before merging to the
       branch.
       
      bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequireCommentsResolved in interface BranchRuleOrBuilder
      Returns:
      The requireCommentsResolved.
    • setRequireCommentsResolved

      public BranchRule.Builder setRequireCommentsResolved(boolean value)
       Optional. Determines if require comments resolved before merging to the
       branch.
       
      bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requireCommentsResolved to set.
      Returns:
      This builder for chaining.
    • clearRequireCommentsResolved

      public BranchRule.Builder clearRequireCommentsResolved()
       Optional. Determines if require comments resolved before merging to the
       branch.
       
      bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getAllowStaleReviews

      public boolean getAllowStaleReviews()
       Optional. Determines if allow stale reviews or approvals before merging to
       the branch.
       
      bool allow_stale_reviews = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowStaleReviews in interface BranchRuleOrBuilder
      Returns:
      The allowStaleReviews.
    • setAllowStaleReviews

      public BranchRule.Builder setAllowStaleReviews(boolean value)
       Optional. Determines if allow stale reviews or approvals before merging to
       the branch.
       
      bool allow_stale_reviews = 15 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allowStaleReviews to set.
      Returns:
      This builder for chaining.
    • clearAllowStaleReviews

      public BranchRule.Builder clearAllowStaleReviews()
       Optional. Determines if allow stale reviews or approvals before merging to
       the branch.
       
      bool allow_stale_reviews = 15 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRequireLinearHistory

      public boolean getRequireLinearHistory()
       Optional. Determines if require linear history before merging to the
       branch.
       
      bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequireLinearHistory in interface BranchRuleOrBuilder
      Returns:
      The requireLinearHistory.
    • setRequireLinearHistory

      public BranchRule.Builder setRequireLinearHistory(boolean value)
       Optional. Determines if require linear history before merging to the
       branch.
       
      bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The requireLinearHistory to set.
      Returns:
      This builder for chaining.
    • clearRequireLinearHistory

      public BranchRule.Builder clearRequireLinearHistory()
       Optional. Determines if require linear history before merging to the
       branch.
       
      bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getRequiredStatusChecksList

      public List<BranchRule.Check> getRequiredStatusChecksList()
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequiredStatusChecksList in interface BranchRuleOrBuilder
    • getRequiredStatusChecksCount

      public int getRequiredStatusChecksCount()
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequiredStatusChecksCount in interface BranchRuleOrBuilder
    • getRequiredStatusChecks

      public BranchRule.Check getRequiredStatusChecks(int index)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequiredStatusChecks in interface BranchRuleOrBuilder
    • setRequiredStatusChecks

      public BranchRule.Builder setRequiredStatusChecks(int index, BranchRule.Check value)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • setRequiredStatusChecks

      public BranchRule.Builder setRequiredStatusChecks(int index, BranchRule.Check.Builder builderForValue)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • addRequiredStatusChecks

      public BranchRule.Builder addRequiredStatusChecks(BranchRule.Check value)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • addRequiredStatusChecks

      public BranchRule.Builder addRequiredStatusChecks(int index, BranchRule.Check value)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • addRequiredStatusChecks

      public BranchRule.Builder addRequiredStatusChecks(BranchRule.Check.Builder builderForValue)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • addRequiredStatusChecks

      public BranchRule.Builder addRequiredStatusChecks(int index, BranchRule.Check.Builder builderForValue)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • addAllRequiredStatusChecks

      public BranchRule.Builder addAllRequiredStatusChecks(Iterable<? extends BranchRule.Check> values)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • clearRequiredStatusChecks

      public BranchRule.Builder clearRequiredStatusChecks()
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • removeRequiredStatusChecks

      public BranchRule.Builder removeRequiredStatusChecks(int index)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getRequiredStatusChecksBuilder

      public BranchRule.Check.Builder getRequiredStatusChecksBuilder(int index)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getRequiredStatusChecksOrBuilder

      public BranchRule.CheckOrBuilder getRequiredStatusChecksOrBuilder(int index)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequiredStatusChecksOrBuilder in interface BranchRuleOrBuilder
    • getRequiredStatusChecksOrBuilderList

      public List<? extends BranchRule.CheckOrBuilder> getRequiredStatusChecksOrBuilderList()
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequiredStatusChecksOrBuilderList in interface BranchRuleOrBuilder
    • addRequiredStatusChecksBuilder

      public BranchRule.Check.Builder addRequiredStatusChecksBuilder()
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • addRequiredStatusChecksBuilder

      public BranchRule.Check.Builder addRequiredStatusChecksBuilder(int index)
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getRequiredStatusChecksBuilderList

      public List<BranchRule.Check.Builder> getRequiredStatusChecksBuilderList()
       Optional. List of required status checks before merging to the branch.
       
      repeated .google.cloud.securesourcemanager.v1.BranchRule.Check required_status_checks = 14 [(.google.api.field_behavior) = OPTIONAL];