com.google.devtools.artifactregistry.v1.RuleOrBuilder Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/devtools/artifactregistry/v1/rule.proto
// Protobuf Java Version: 3.25.5
package com.google.devtools.artifactregistry.v1;
public interface RuleOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.Rule)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the rule, for example:
* `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
*
*
* string name = 1;
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
*
* The name of the rule, for example:
* `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* The action this rule takes.
*
*
* .google.devtools.artifactregistry.v1.Rule.Action action = 2;
*
* @return The enum numeric value on the wire for action.
*/
int getActionValue();
/**
*
*
*
* The action this rule takes.
*
*
* .google.devtools.artifactregistry.v1.Rule.Action action = 2;
*
* @return The action.
*/
com.google.devtools.artifactregistry.v1.Rule.Action getAction();
/**
* .google.devtools.artifactregistry.v1.Rule.Operation operation = 3;
*
* @return The enum numeric value on the wire for operation.
*/
int getOperationValue();
/**
* .google.devtools.artifactregistry.v1.Rule.Operation operation = 3;
*
* @return The operation.
*/
com.google.devtools.artifactregistry.v1.Rule.Operation getOperation();
/**
*
*
*
* 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];
*
* @return Whether the condition field is set.
*/
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];
*
* @return The condition.
*/
com.google.type.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];
*/
com.google.type.ExprOrBuilder getConditionOrBuilder();
/**
*
*
*
* The package ID the rule applies to.
* If empty, this rule applies to all packages inside the repository.
*
*
* string package_id = 5;
*
* @return The packageId.
*/
java.lang.String getPackageId();
/**
*
*
*
* The package ID the rule applies to.
* If empty, this rule applies to all packages inside the repository.
*
*
* string package_id = 5;
*
* @return The bytes for packageId.
*/
com.google.protobuf.ByteString getPackageIdBytes();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy