Interface RuleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Rule,Rule.Builder
@Generated
public interface RuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe action this rule takes.intThe action this rule takes.Optional.Optional.getName()The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.com.google.protobuf.ByteStringThe name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`..google.devtools.artifactregistry.v1.Rule.Operation operation = 3;int.google.devtools.artifactregistry.v1.Rule.Operation operation = 3;The package ID the rule applies to.com.google.protobuf.ByteStringThe package ID the rule applies to.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
string name = 1;- Returns:
- The bytes for name.
-
getActionValue
int getActionValue()The action this rule takes.
.google.devtools.artifactregistry.v1.Rule.Action action = 2;- Returns:
- The enum numeric value on the wire for action.
-
getAction
Rule.Action getAction()The action this rule takes.
.google.devtools.artifactregistry.v1.Rule.Action action = 2;- Returns:
- The action.
-
getOperationValue
int getOperationValue().google.devtools.artifactregistry.v1.Rule.Operation operation = 3;- Returns:
- The enum numeric value on the wire for operation.
-
getOperation
Rule.Operation getOperation().google.devtools.artifactregistry.v1.Rule.Operation operation = 3;- Returns:
- The operation.
-
hasCondition
boolean hasCondition()Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.
.google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the condition field is set.
-
getCondition
Expr getCondition()Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.
.google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The condition.
-
getConditionOrBuilder
ExprOrBuilder getConditionOrBuilder()Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.
.google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPackageId
String getPackageId()The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.
string package_id = 5;- Returns:
- The packageId.
-
getPackageIdBytes
com.google.protobuf.ByteString getPackageIdBytes()The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.
string package_id = 5;- Returns:
- The bytes for packageId.
-