public static final class CELExpression.Builder extends GeneratedMessage.Builder<CELExpression.Builder> implements CELExpressionOrBuilderA Common Expression Language (CEL) expression that's used to create a rule.
Protobuf type google.cloud.cloudsecuritycompliance.v1.CELExpression
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CELExpression.BuilderImplements
CELExpressionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CELExpression build()| Returns | |
|---|---|
| Type | Description |
CELExpression |
|
buildPartial()
public CELExpression buildPartial()| Returns | |
|---|---|
| Type | Description |
CELExpression |
|
clear()
public CELExpression.Builder clear()| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|
clearCriteria()
public CELExpression.Builder clearCriteria()| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|
clearExpression()
public CELExpression.Builder clearExpression()Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see CEL expression.
string expression = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
This builder for chaining. |
clearResourceTypesValues()
public CELExpression.Builder clearResourceTypesValues() The resource instance types on which this expression is defined.
The format is <SERVICE_NAME>/<type>.
For example: compute.googleapis.com/Instance
.google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3;
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|
getCriteriaCase()
public CELExpression.CriteriaCase getCriteriaCase()| Returns | |
|---|---|
| Type | Description |
CELExpression.CriteriaCase |
|
getDefaultInstanceForType()
public CELExpression getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CELExpression |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExpression()
public String getExpression()Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see CEL expression.
string expression = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The expression. |
getExpressionBytes()
public ByteString getExpressionBytes()Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see CEL expression.
string expression = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for expression. |
getResourceTypesValues()
public StringList getResourceTypesValues() The resource instance types on which this expression is defined.
The format is <SERVICE_NAME>/<type>.
For example: compute.googleapis.com/Instance
.google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3;
| Returns | |
|---|---|
| Type | Description |
StringList |
The resourceTypesValues. |
getResourceTypesValuesBuilder()
public StringList.Builder getResourceTypesValuesBuilder() The resource instance types on which this expression is defined.
The format is <SERVICE_NAME>/<type>.
For example: compute.googleapis.com/Instance
.google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3;
| Returns | |
|---|---|
| Type | Description |
StringList.Builder |
|
getResourceTypesValuesOrBuilder()
public StringListOrBuilder getResourceTypesValuesOrBuilder() The resource instance types on which this expression is defined.
The format is <SERVICE_NAME>/<type>.
For example: compute.googleapis.com/Instance
.google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3;
| Returns | |
|---|---|
| Type | Description |
StringListOrBuilder |
|
hasResourceTypesValues()
public boolean hasResourceTypesValues() The resource instance types on which this expression is defined.
The format is <SERVICE_NAME>/<type>.
For example: compute.googleapis.com/Instance
.google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the resourceTypesValues field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CELExpression other)
public CELExpression.Builder mergeFrom(CELExpression other)| Parameter | |
|---|---|
| Name | Description |
other |
CELExpression |
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CELExpression.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CELExpression.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|
mergeResourceTypesValues(StringList value)
public CELExpression.Builder mergeResourceTypesValues(StringList value) The resource instance types on which this expression is defined.
The format is <SERVICE_NAME>/<type>.
For example: compute.googleapis.com/Instance
.google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringList |
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|
setExpression(String value)
public CELExpression.Builder setExpression(String value)Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see CEL expression.
string expression = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe expression to set. |
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
This builder for chaining. |
setExpressionBytes(ByteString value)
public CELExpression.Builder setExpressionBytes(ByteString value)Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see CEL expression.
string expression = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for expression to set. |
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
This builder for chaining. |
setResourceTypesValues(StringList value)
public CELExpression.Builder setResourceTypesValues(StringList value) The resource instance types on which this expression is defined.
The format is <SERVICE_NAME>/<type>.
For example: compute.googleapis.com/Instance
.google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringList |
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|
setResourceTypesValues(StringList.Builder builderForValue)
public CELExpression.Builder setResourceTypesValues(StringList.Builder builderForValue) The resource instance types on which this expression is defined.
The format is <SERVICE_NAME>/<type>.
For example: compute.googleapis.com/Instance
.google.cloud.cloudsecuritycompliance.v1.StringList resource_types_values = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
StringList.Builder |
| Returns | |
|---|---|
| Type | Description |
CELExpression.Builder |
|