public final class Rule extends GeneratedMessage implements RuleOrBuilder
A rule in the cloud control.
Protobuf type google.cloud.cloudsecuritycompliance.v1.Rule
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CEL_EXPRESSION_FIELD_NUMBER
public static final int CEL_EXPRESSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RULE_ACTION_TYPES_FIELD_NUMBER
public static final int RULE_ACTION_TYPES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Rule getDefaultInstance()
| Returns |
| Type |
Description |
Rule |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Rule.Builder newBuilder()
newBuilder(Rule prototype)
public static Rule.Builder newBuilder(Rule prototype)
| Parameter |
| Name |
Description |
prototype |
Rule
|
public static Rule parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(byte[] data)
public static Rule parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Rule |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Rule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(ByteString data)
public static Rule parseFrom(ByteString data)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Rule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseFrom(InputStream input)
| Returns |
| Type |
Description |
Rule |
|
public static Rule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(ByteBuffer data)
public static Rule parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Rule |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Rule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Rule |
|
parser()
public static Parser<Rule> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCelExpression()
public CELExpression getCelExpression()
The rule's logic expression in Common Expression Language (CEL).
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
getCelExpressionOrBuilder()
public CELExpressionOrBuilder getCelExpressionOrBuilder()
The rule's logic expression in Common Expression Language (CEL).
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
getDefaultInstanceForType()
public Rule getDefaultInstanceForType()
| Returns |
| Type |
Description |
Rule |
|
getDescription()
public String getDescription()
Optional. The rule description. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. The rule description. The maximum length is 2000 characters.
string description = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for description.
|
getImplementationCase()
public Rule.ImplementationCase getImplementationCase()
getParserForType()
public Parser<Rule> getParserForType()
Overrides
getRuleActionTypes(int index)
public RuleActionType getRuleActionTypes(int index)
Required. The functionality that's enabled by the rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
RuleActionType |
The ruleActionTypes at the given index.
|
getRuleActionTypesCount()
public int getRuleActionTypesCount()
Required. The functionality that's enabled by the rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
The count of ruleActionTypes.
|
getRuleActionTypesList()
public List<RuleActionType> getRuleActionTypesList()
Required. The functionality that's enabled by the rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
getRuleActionTypesValue(int index)
public int getRuleActionTypesValue(int index)
Required. The functionality that's enabled by the rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire of ruleActionTypes at the given index.
|
getRuleActionTypesValueList()
public List<Integer> getRuleActionTypesValueList()
Required. The functionality that's enabled by the rule.
repeated .google.cloud.cloudsecuritycompliance.v1.RuleActionType rule_action_types = 16 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for ruleActionTypes.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasCelExpression()
public boolean hasCelExpression()
The rule's logic expression in Common Expression Language (CEL).
.google.cloud.cloudsecuritycompliance.v1.CELExpression cel_expression = 1;
| Returns |
| Type |
Description |
boolean |
Whether the celExpression field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Rule.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Rule.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Rule.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides