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 Summary
Modifier and TypeMethodDescriptionaddAllRequiredStatusChecks(Iterable<? extends BranchRule.Check> values) Optional.addRequiredStatusChecks(int index, BranchRule.Check value) Optional.addRequiredStatusChecks(int index, BranchRule.Check.Builder builderForValue) Optional.Optional.addRequiredStatusChecks(BranchRule.Check.Builder builderForValue) Optional.Optional.addRequiredStatusChecksBuilder(int index) Optional.build()clear()Optional.Output only.Optional.Optional.Optional.Optional.Optional.Identifier.Optional.Optional.Optional.Optional.Optional.clearUid()Output only.Output only.booleanOptional.booleanOptional.Deprecated.intOptional.Optional.getAnnotationsOrDefault(String key, String defaultValue) Optional.Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.getEtag()Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.intOptional.intOptional.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.booleanOptional.booleanOptional.getRequiredStatusChecks(int index) Optional.getRequiredStatusChecksBuilder(int index) Optional.Optional.intOptional.Optional.getRequiredStatusChecksOrBuilder(int index) Optional.List<? extends BranchRule.CheckOrBuilder>Optional.booleanOptional.booleanOptional.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(BranchRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllAnnotations(Map<String, String> values) Optional.putAnnotations(String key, String value) Optional.removeAnnotations(String key) Optional.removeRequiredStatusChecks(int index) Optional.setAllowStaleReviews(boolean value) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisabled(boolean value) Optional.Optional.setEtagBytes(com.google.protobuf.ByteString value) Optional.setIncludePattern(String value) Optional.setIncludePatternBytes(com.google.protobuf.ByteString value) Optional.setMinimumApprovalsCount(int value) Optional.setMinimumReviewsCount(int value) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setRequireCodeOwnerApproval(boolean value) Optional.setRequireCommentsResolved(boolean value) Optional.setRequiredStatusChecks(int index, BranchRule.Check value) Optional.setRequiredStatusChecks(int index, BranchRule.Check.Builder builderForValue) Optional.setRequireLinearHistory(boolean value) Optional.setRequirePullRequest(boolean value) Optional.Output only.setUidBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BranchRule.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BranchRule.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BranchRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BranchRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BranchRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BranchRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BranchRule.Builder>- Throws:
IOException
-
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:
getNamein interfaceBranchRuleOrBuilder- 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:
getNameBytesin interfaceBranchRuleOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
Output only. Unique identifier of the repository.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getUidin interfaceBranchRuleOrBuilder- 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:
getUidBytesin interfaceBranchRuleOrBuilder- Returns:
- The bytes for uid.
-
setUid
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
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
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:
hasCreateTimein interfaceBranchRuleOrBuilder- 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:
getCreateTimein interfaceBranchRuleOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getCreateTimeOrBuilderin interfaceBranchRuleOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceBranchRuleOrBuilder- 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:
getUpdateTimein interfaceBranchRuleOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getUpdateTimeOrBuilderin interfaceBranchRuleOrBuilder
-
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:BranchRuleOrBuilderOptional. 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:
getAnnotationsCountin interfaceBranchRuleOrBuilder
-
containsAnnotations
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:
containsAnnotationsin interfaceBranchRuleOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceBranchRuleOrBuilder
-
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:
getAnnotationsMapin interfaceBranchRuleOrBuilder
-
getAnnotationsOrDefault
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:
getAnnotationsOrDefaultin interfaceBranchRuleOrBuilder
-
getAnnotationsOrThrow
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:
getAnnotationsOrThrowin interfaceBranchRuleOrBuilder
-
clearAnnotations
-
removeAnnotations
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.Use alternate mutation accessors instead. -
putAnnotations
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
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
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:
getEtagin interfaceBranchRuleOrBuilder- 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:
getEtagBytesin interfaceBranchRuleOrBuilder- Returns:
- The bytes for etag.
-
setEtag
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
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
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
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:
getIncludePatternin interfaceBranchRuleOrBuilder- 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:
getIncludePatternBytesin interfaceBranchRuleOrBuilder- Returns:
- The bytes for includePattern.
-
setIncludePattern
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
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
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:
getDisabledin interfaceBranchRuleOrBuilder- Returns:
- The disabled.
-
setDisabled
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
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:
getRequirePullRequestin interfaceBranchRuleOrBuilder- Returns:
- The requirePullRequest.
-
setRequirePullRequest
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
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:
getMinimumReviewsCountin interfaceBranchRuleOrBuilder- Returns:
- The minimumReviewsCount.
-
setMinimumReviewsCount
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
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:
getMinimumApprovalsCountin interfaceBranchRuleOrBuilder- Returns:
- The minimumApprovalsCount.
-
setMinimumApprovalsCount
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
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:
getRequireCodeOwnerApprovalin interfaceBranchRuleOrBuilder- Returns:
- The requireCodeOwnerApproval.
-
setRequireCodeOwnerApproval
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
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:
getRequireCommentsResolvedin interfaceBranchRuleOrBuilder- Returns:
- The requireCommentsResolved.
-
setRequireCommentsResolved
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
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:
getAllowStaleReviewsin interfaceBranchRuleOrBuilder- Returns:
- The allowStaleReviews.
-
setAllowStaleReviews
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
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:
getRequireLinearHistoryin interfaceBranchRuleOrBuilder- Returns:
- The requireLinearHistory.
-
setRequireLinearHistory
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
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
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:
getRequiredStatusChecksListin interfaceBranchRuleOrBuilder
-
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:
getRequiredStatusChecksCountin interfaceBranchRuleOrBuilder
-
getRequiredStatusChecks
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:
getRequiredStatusChecksin interfaceBranchRuleOrBuilder
-
setRequiredStatusChecks
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
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
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
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
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
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
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
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
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:
getRequiredStatusChecksOrBuilderin interfaceBranchRuleOrBuilder
-
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:
getRequiredStatusChecksOrBuilderListin interfaceBranchRuleOrBuilder
-
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
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
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];
-