public interface BranchRuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
Optional.
|
boolean |
getAllowStaleReviews()
Optional.
|
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Optional.
|
Map<String,String> |
getAnnotationsMap()
Optional.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getAnnotationsOrThrow(String key)
Optional.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
boolean |
getDisabled()
Optional.
|
String |
getEtag()
Optional.
|
com.google.protobuf.ByteString |
getEtagBytes()
Optional.
|
String |
getIncludePattern()
Optional.
|
com.google.protobuf.ByteString |
getIncludePatternBytes()
Optional.
|
int |
getMinimumApprovalsCount()
Optional.
|
int |
getMinimumReviewsCount()
Optional.
|
String |
getName()
Optional.
|
com.google.protobuf.ByteString |
getNameBytes()
Optional.
|
boolean |
getRequireCommentsResolved()
Optional.
|
BranchRule.Check |
getRequiredStatusChecks(int index)
Optional.
|
int |
getRequiredStatusChecksCount()
Optional.
|
List<BranchRule.Check> |
getRequiredStatusChecksList()
Optional.
|
BranchRule.CheckOrBuilder |
getRequiredStatusChecksOrBuilder(int index)
Optional.
|
List<? extends BranchRule.CheckOrBuilder> |
getRequiredStatusChecksOrBuilderList()
Optional.
|
boolean |
getRequireLinearHistory()
Optional.
|
boolean |
getRequirePullRequest()
Optional.
|
String |
getUid()
Output only.
|
com.google.protobuf.ByteString |
getUidBytes()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getName()
Optional. 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) = OPTIONAL];com.google.protobuf.ByteString getNameBytes()
Optional. 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) = OPTIONAL];String getUid()
Output only. Unique identifier of the repository.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];com.google.protobuf.ByteString getUidBytes()
Output only. Unique identifier of the repository.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];boolean hasCreateTime()
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.Timestamp getCreateTime()
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
boolean hasUpdateTime()
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.Timestamp getUpdateTime()
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Update timestamp.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
int getAnnotationsCount()
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];
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];
@Deprecated Map<String,String> getAnnotations()
getAnnotationsMap() instead.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];
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];
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];
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];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];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];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];boolean getDisabled()
Optional. Determines if the branch rule is disabled or not.
bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL];boolean getRequirePullRequest()
Optional. Determines if the branch rule requires a pull request or not.
bool require_pull_request = 9 [(.google.api.field_behavior) = OPTIONAL];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];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];boolean getRequireCommentsResolved()
Optional. Determines if require comments resolved before merging to the branch.
bool require_comments_resolved = 12 [(.google.api.field_behavior) = OPTIONAL];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];boolean getRequireLinearHistory()
Optional. Determines if require linear history before merging to the branch.
bool require_linear_history = 13 [(.google.api.field_behavior) = OPTIONAL];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];
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];
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];
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];
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];
Copyright © 2025 Google LLC. All rights reserved.