Package cel.dev.expr.conformance
Class Environment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
cel.dev.expr.conformance.Environment.Builder
- All Implemented Interfaces:
EnvironmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Environment
public static final class Environment.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
implements EnvironmentOrBuilder
Representation of a CEL Environment, defining what features and extensions are available for conformance testing.Protobuf type
cel.expr.conformance.Environment-
Method Summary
Modifier and TypeMethodDescriptionaddAllDeclarations(Iterable<? extends Decl> values) List of declarations to be configured in the CEL environment.addAllExtensions(Iterable<? extends Extension> values) List of extensions to enable in the CEL environment.addAllFeatures(Iterable<? extends Feature> values) List of feature flags to be enabled or disabled.addAllImports(Iterable<? extends Environment.Import> values) List of abbreviations to be added to the CEL environmentaddAllValidators(Iterable<? extends Validator> values) List of validators for validating the parsed ast.addDeclarations(int index, Decl value) List of declarations to be configured in the CEL environment.addDeclarations(int index, Decl.Builder builderForValue) List of declarations to be configured in the CEL environment.addDeclarations(Decl value) List of declarations to be configured in the CEL environment.addDeclarations(Decl.Builder builderForValue) List of declarations to be configured in the CEL environment.List of declarations to be configured in the CEL environment.addDeclarationsBuilder(int index) List of declarations to be configured in the CEL environment.addExtensions(int index, Extension value) List of extensions to enable in the CEL environment.addExtensions(int index, Extension.Builder builderForValue) List of extensions to enable in the CEL environment.addExtensions(Extension value) List of extensions to enable in the CEL environment.addExtensions(Extension.Builder builderForValue) List of extensions to enable in the CEL environment.List of extensions to enable in the CEL environment.addExtensionsBuilder(int index) List of extensions to enable in the CEL environment.addFeatures(int index, Feature value) List of feature flags to be enabled or disabled.addFeatures(int index, Feature.Builder builderForValue) List of feature flags to be enabled or disabled.addFeatures(Feature value) List of feature flags to be enabled or disabled.addFeatures(Feature.Builder builderForValue) List of feature flags to be enabled or disabled.List of feature flags to be enabled or disabled.addFeaturesBuilder(int index) List of feature flags to be enabled or disabled.addImports(int index, Environment.Import value) List of abbreviations to be added to the CEL environmentaddImports(int index, Environment.Import.Builder builderForValue) List of abbreviations to be added to the CEL environmentaddImports(Environment.Import value) List of abbreviations to be added to the CEL environmentaddImports(Environment.Import.Builder builderForValue) List of abbreviations to be added to the CEL environmentList of abbreviations to be added to the CEL environmentaddImportsBuilder(int index) List of abbreviations to be added to the CEL environmentaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addValidators(int index, Validator value) List of validators for validating the parsed ast.addValidators(int index, Validator.Builder builderForValue) List of validators for validating the parsed ast.addValidators(Validator value) List of validators for validating the parsed ast.addValidators(Validator.Builder builderForValue) List of validators for validating the parsed ast.List of validators for validating the parsed ast.addValidatorsBuilder(int index) List of validators for validating the parsed ast.build()clear()Sets the namespace (container) for the expression.If set, adds a context declaration from a proto message.List of declarations to be configured in the CEL environment.Description for the current environmentDisables including the declarations from the standard CEL environment.When macro call tracking is enabled, the resulting SourceInfo in the CheckedExpr will contain a collection of expressions representing the function calls which were replaced by macros.List of extensions to enable in the CEL environment.List of feature flags to be enabled or disabled.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) List of abbreviations to be added to the CEL environmentIf provided, uses the provided FileDescriptorSet to extend types available the CEL expression.Name of the environmentclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Set of options to subset a subsettable libraryList of validators for validating the parsed ast.clone()Sets the namespace (container) for the expression.com.google.protobuf.ByteStringSets the namespace (container) for the expression.If set, adds a context declaration from a proto message.If set, adds a context declaration from a proto message.If set, adds a context declaration from a proto message.getDeclarations(int index) List of declarations to be configured in the CEL environment.getDeclarationsBuilder(int index) List of declarations to be configured in the CEL environment.List of declarations to be configured in the CEL environment.intList of declarations to be configured in the CEL environment.List of declarations to be configured in the CEL environment.getDeclarationsOrBuilder(int index) List of declarations to be configured in the CEL environment.List<? extends DeclOrBuilder>List of declarations to be configured in the CEL environment.Description for the current environmentcom.google.protobuf.ByteStringDescription for the current environmentstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanDisables including the declarations from the standard CEL environment.booleanWhen macro call tracking is enabled, the resulting SourceInfo in the CheckedExpr will contain a collection of expressions representing the function calls which were replaced by macros.getExtensions(int index) List of extensions to enable in the CEL environment.getExtensionsBuilder(int index) List of extensions to enable in the CEL environment.List of extensions to enable in the CEL environment.intList of extensions to enable in the CEL environment.List of extensions to enable in the CEL environment.getExtensionsOrBuilder(int index) List of extensions to enable in the CEL environment.List<? extends ExtensionOrBuilder>List of extensions to enable in the CEL environment.getFeatures(int index) List of feature flags to be enabled or disabled.getFeaturesBuilder(int index) List of feature flags to be enabled or disabled.List of feature flags to be enabled or disabled.intList of feature flags to be enabled or disabled.List of feature flags to be enabled or disabled.getFeaturesOrBuilder(int index) List of feature flags to be enabled or disabled.List<? extends FeatureOrBuilder>List of feature flags to be enabled or disabled.getImports(int index) List of abbreviations to be added to the CEL environmentgetImportsBuilder(int index) List of abbreviations to be added to the CEL environmentList of abbreviations to be added to the CEL environmentintList of abbreviations to be added to the CEL environmentList of abbreviations to be added to the CEL environmentgetImportsOrBuilder(int index) List of abbreviations to be added to the CEL environmentList<? extends Environment.ImportOrBuilder>List of abbreviations to be added to the CEL environmentcom.google.protobuf.DescriptorProtos.FileDescriptorSetIf provided, uses the provided FileDescriptorSet to extend types available the CEL expression.com.google.protobuf.DescriptorProtos.FileDescriptorSet.BuilderIf provided, uses the provided FileDescriptorSet to extend types available the CEL expression.com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilderIf provided, uses the provided FileDescriptorSet to extend types available the CEL expression.getName()Name of the environmentcom.google.protobuf.ByteStringName of the environmentSet of options to subset a subsettable librarySet of options to subset a subsettable librarySet of options to subset a subsettable librarygetValidators(int index) List of validators for validating the parsed ast.getValidatorsBuilder(int index) List of validators for validating the parsed ast.List of validators for validating the parsed ast.intList of validators for validating the parsed ast.List of validators for validating the parsed ast.getValidatorsOrBuilder(int index) List of validators for validating the parsed ast.List<? extends ValidatorOrBuilder>List of validators for validating the parsed ast.booleanIf set, adds a context declaration from a proto message.booleanIf provided, uses the provided FileDescriptorSet to extend types available the CEL expression.booleanSet of options to subset a subsettable libraryprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanIf set, adds a context declaration from a proto message.mergeFrom(Environment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMessageTypeExtension(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) If provided, uses the provided FileDescriptorSet to extend types available the CEL expression.mergeStdlib(LibrarySubset value) Set of options to subset a subsettable libraryfinal Environment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeDeclarations(int index) List of declarations to be configured in the CEL environment.removeExtensions(int index) List of extensions to enable in the CEL environment.removeFeatures(int index) List of feature flags to be enabled or disabled.removeImports(int index) List of abbreviations to be added to the CEL environmentremoveValidators(int index) List of validators for validating the parsed ast.setContainer(String value) Sets the namespace (container) for the expression.setContainerBytes(com.google.protobuf.ByteString value) Sets the namespace (container) for the expression.If set, adds a context declaration from a proto message.setContextVariable(Environment.ContextVariable.Builder builderForValue) If set, adds a context declaration from a proto message.setDeclarations(int index, Decl value) List of declarations to be configured in the CEL environment.setDeclarations(int index, Decl.Builder builderForValue) List of declarations to be configured in the CEL environment.setDescription(String value) Description for the current environmentsetDescriptionBytes(com.google.protobuf.ByteString value) Description for the current environmentsetDisableStandardCelDeclarations(boolean value) Disables including the declarations from the standard CEL environment.setEnableMacroCallTracking(boolean value) When macro call tracking is enabled, the resulting SourceInfo in the CheckedExpr will contain a collection of expressions representing the function calls which were replaced by macros.setExtensions(int index, Extension value) List of extensions to enable in the CEL environment.setExtensions(int index, Extension.Builder builderForValue) List of extensions to enable in the CEL environment.setFeatures(int index, Feature value) List of feature flags to be enabled or disabled.setFeatures(int index, Feature.Builder builderForValue) List of feature flags to be enabled or disabled.setImports(int index, Environment.Import value) List of abbreviations to be added to the CEL environmentsetImports(int index, Environment.Import.Builder builderForValue) List of abbreviations to be added to the CEL environmentsetMessageTypeExtension(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) If provided, uses the provided FileDescriptorSet to extend types available the CEL expression.setMessageTypeExtension(com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) If provided, uses the provided FileDescriptorSet to extend types available the CEL expression.Name of the environmentsetNameBytes(com.google.protobuf.ByteString value) Name of the environmentsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStdlib(LibrarySubset value) Set of options to subset a subsettable librarysetStdlib(LibrarySubset.Builder builderForValue) Set of options to subset a subsettable libraryfinal Environment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValidators(int index, Validator value) List of validators for validating the parsed ast.setValidators(int index, Validator.Builder builderForValue) List of validators for validating the parsed ast.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
setField
public Environment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
setRepeatedField
public Environment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
addRepeatedField
public Environment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Environment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
mergeFrom
public Environment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Environment.Builder>- Throws:
IOException
-
getName
Name of the environment
string name = 1;- Specified by:
getNamein interfaceEnvironmentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the environment
string name = 1;- Specified by:
getNameBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the environment
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the environment
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the environment
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
Description for the current environment
string description = 2;- Specified by:
getDescriptionin interfaceEnvironmentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description for the current environment
string description = 2;- Specified by:
getDescriptionBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for description.
-
setDescription
Description for the current environment
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Description for the current environment
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Description for the current environment
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getContainer
Sets the namespace (container) for the expression. This is used to simplify resolution. For example with container `google.rpc.context` an identifier of `google.rpc.context.AttributeContext` could be referred to simply as `AttributeContext` in the CEL expression.
string container = 3;- Specified by:
getContainerin interfaceEnvironmentOrBuilder- Returns:
- The container.
-
getContainerBytes
public com.google.protobuf.ByteString getContainerBytes()Sets the namespace (container) for the expression. This is used to simplify resolution. For example with container `google.rpc.context` an identifier of `google.rpc.context.AttributeContext` could be referred to simply as `AttributeContext` in the CEL expression.
string container = 3;- Specified by:
getContainerBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for container.
-
setContainer
Sets the namespace (container) for the expression. This is used to simplify resolution. For example with container `google.rpc.context` an identifier of `google.rpc.context.AttributeContext` could be referred to simply as `AttributeContext` in the CEL expression.
string container = 3;- Parameters:
value- The container to set.- Returns:
- This builder for chaining.
-
clearContainer
Sets the namespace (container) for the expression. This is used to simplify resolution. For example with container `google.rpc.context` an identifier of `google.rpc.context.AttributeContext` could be referred to simply as `AttributeContext` in the CEL expression.
string container = 3;- Returns:
- This builder for chaining.
-
setContainerBytes
Sets the namespace (container) for the expression. This is used to simplify resolution. For example with container `google.rpc.context` an identifier of `google.rpc.context.AttributeContext` could be referred to simply as `AttributeContext` in the CEL expression.
string container = 3;- Parameters:
value- The bytes for container to set.- Returns:
- This builder for chaining.
-
getImportsList
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4;- Specified by:
getImportsListin interfaceEnvironmentOrBuilder
-
getImportsCount
public int getImportsCount()List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4;- Specified by:
getImportsCountin interfaceEnvironmentOrBuilder
-
getImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4;- Specified by:
getImportsin interfaceEnvironmentOrBuilder
-
setImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
setImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
addImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
addImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
addImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
addImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
addAllImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
clearImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
removeImports
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
getImportsBuilder
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
getImportsOrBuilder
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4;- Specified by:
getImportsOrBuilderin interfaceEnvironmentOrBuilder
-
getImportsOrBuilderList
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4;- Specified by:
getImportsOrBuilderListin interfaceEnvironmentOrBuilder
-
addImportsBuilder
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
addImportsBuilder
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
getImportsBuilderList
List of abbreviations to be added to the CEL environment
repeated .cel.expr.conformance.Environment.Import imports = 4; -
hasStdlib
public boolean hasStdlib()Set of options to subset a subsettable library
.cel.expr.conformance.LibrarySubset stdlib = 5;- Specified by:
hasStdlibin interfaceEnvironmentOrBuilder- Returns:
- Whether the stdlib field is set.
-
getStdlib
Set of options to subset a subsettable library
.cel.expr.conformance.LibrarySubset stdlib = 5;- Specified by:
getStdlibin interfaceEnvironmentOrBuilder- Returns:
- The stdlib.
-
setStdlib
Set of options to subset a subsettable library
.cel.expr.conformance.LibrarySubset stdlib = 5; -
setStdlib
Set of options to subset a subsettable library
.cel.expr.conformance.LibrarySubset stdlib = 5; -
mergeStdlib
Set of options to subset a subsettable library
.cel.expr.conformance.LibrarySubset stdlib = 5; -
clearStdlib
Set of options to subset a subsettable library
.cel.expr.conformance.LibrarySubset stdlib = 5; -
getStdlibBuilder
Set of options to subset a subsettable library
.cel.expr.conformance.LibrarySubset stdlib = 5; -
getStdlibOrBuilder
Set of options to subset a subsettable library
.cel.expr.conformance.LibrarySubset stdlib = 5;- Specified by:
getStdlibOrBuilderin interfaceEnvironmentOrBuilder
-
getExtensionsList
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6;- Specified by:
getExtensionsListin interfaceEnvironmentOrBuilder
-
getExtensionsCount
public int getExtensionsCount()List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6;- Specified by:
getExtensionsCountin interfaceEnvironmentOrBuilder
-
getExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6;- Specified by:
getExtensionsin interfaceEnvironmentOrBuilder
-
setExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
setExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
addExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
addExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
addExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
addExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
addAllExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
clearExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
removeExtensions
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
getExtensionsBuilder
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
getExtensionsOrBuilder
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6;- Specified by:
getExtensionsOrBuilderin interfaceEnvironmentOrBuilder
-
getExtensionsOrBuilderList
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6;- Specified by:
getExtensionsOrBuilderListin interfaceEnvironmentOrBuilder
-
addExtensionsBuilder
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
addExtensionsBuilder
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
getExtensionsBuilderList
List of extensions to enable in the CEL environment.
repeated .cel.expr.conformance.Extension extensions = 6; -
hasContextVariable
public boolean hasContextVariable()If set, adds a context declaration from a proto message. Context messages have all of their top-level fields available as variables in the type checker.
.cel.expr.conformance.Environment.ContextVariable context_variable = 7;- Specified by:
hasContextVariablein interfaceEnvironmentOrBuilder- Returns:
- Whether the contextVariable field is set.
-
getContextVariable
If set, adds a context declaration from a proto message. Context messages have all of their top-level fields available as variables in the type checker.
.cel.expr.conformance.Environment.ContextVariable context_variable = 7;- Specified by:
getContextVariablein interfaceEnvironmentOrBuilder- Returns:
- The contextVariable.
-
setContextVariable
If set, adds a context declaration from a proto message. Context messages have all of their top-level fields available as variables in the type checker.
.cel.expr.conformance.Environment.ContextVariable context_variable = 7; -
setContextVariable
If set, adds a context declaration from a proto message. Context messages have all of their top-level fields available as variables in the type checker.
.cel.expr.conformance.Environment.ContextVariable context_variable = 7; -
mergeContextVariable
If set, adds a context declaration from a proto message. Context messages have all of their top-level fields available as variables in the type checker.
.cel.expr.conformance.Environment.ContextVariable context_variable = 7; -
clearContextVariable
If set, adds a context declaration from a proto message. Context messages have all of their top-level fields available as variables in the type checker.
.cel.expr.conformance.Environment.ContextVariable context_variable = 7; -
getContextVariableBuilder
If set, adds a context declaration from a proto message. Context messages have all of their top-level fields available as variables in the type checker.
.cel.expr.conformance.Environment.ContextVariable context_variable = 7; -
getContextVariableOrBuilder
If set, adds a context declaration from a proto message. Context messages have all of their top-level fields available as variables in the type checker.
.cel.expr.conformance.Environment.ContextVariable context_variable = 7;- Specified by:
getContextVariableOrBuilderin interfaceEnvironmentOrBuilder
-
getDeclarationsList
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8;- Specified by:
getDeclarationsListin interfaceEnvironmentOrBuilder
-
getDeclarationsCount
public int getDeclarationsCount()List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8;- Specified by:
getDeclarationsCountin interfaceEnvironmentOrBuilder
-
getDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8;- Specified by:
getDeclarationsin interfaceEnvironmentOrBuilder
-
setDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
setDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
addDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
addDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
addDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
addDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
addAllDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
clearDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
removeDeclarations
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
getDeclarationsBuilder
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
getDeclarationsOrBuilder
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8;- Specified by:
getDeclarationsOrBuilderin interfaceEnvironmentOrBuilder
-
getDeclarationsOrBuilderList
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8;- Specified by:
getDeclarationsOrBuilderListin interfaceEnvironmentOrBuilder
-
addDeclarationsBuilder
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
addDeclarationsBuilder
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
getDeclarationsBuilderList
List of declarations to be configured in the CEL environment. Note: The CEL environment can be configured with either the context_variable or a set of ident_decls provided as part of declarations. Providing both will result in an error.
repeated .cel.expr.Decl declarations = 8; -
getValidatorsList
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9;- Specified by:
getValidatorsListin interfaceEnvironmentOrBuilder
-
getValidatorsCount
public int getValidatorsCount()List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9;- Specified by:
getValidatorsCountin interfaceEnvironmentOrBuilder
-
getValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9;- Specified by:
getValidatorsin interfaceEnvironmentOrBuilder
-
setValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
setValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
addValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
addValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
addValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
addValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
addAllValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
clearValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
removeValidators
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
getValidatorsBuilder
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
getValidatorsOrBuilder
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9;- Specified by:
getValidatorsOrBuilderin interfaceEnvironmentOrBuilder
-
getValidatorsOrBuilderList
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9;- Specified by:
getValidatorsOrBuilderListin interfaceEnvironmentOrBuilder
-
addValidatorsBuilder
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
addValidatorsBuilder
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
getValidatorsBuilderList
List of validators for validating the parsed ast.
repeated .cel.expr.conformance.Validator validators = 9; -
getFeaturesList
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10;- Specified by:
getFeaturesListin interfaceEnvironmentOrBuilder
-
getFeaturesCount
public int getFeaturesCount()List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10;- Specified by:
getFeaturesCountin interfaceEnvironmentOrBuilder
-
getFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10;- Specified by:
getFeaturesin interfaceEnvironmentOrBuilder
-
setFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
setFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
addFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
addFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
addFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
addFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
addAllFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
clearFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
removeFeatures
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
getFeaturesBuilder
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
getFeaturesOrBuilder
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10;- Specified by:
getFeaturesOrBuilderin interfaceEnvironmentOrBuilder
-
getFeaturesOrBuilderList
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10;- Specified by:
getFeaturesOrBuilderListin interfaceEnvironmentOrBuilder
-
addFeaturesBuilder
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
addFeaturesBuilder
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
getFeaturesBuilderList
List of feature flags to be enabled or disabled.
repeated .cel.expr.conformance.Feature features = 10; -
getDisableStandardCelDeclarations
public boolean getDisableStandardCelDeclarations()Disables including the declarations from the standard CEL environment. NOTE: Do not disable the standard CEL declarations unless you are aware of the implications and have discussed your use case on cel-discuss@ or with the members of the cel-governance-team@ Deprecated: Use LibrarySubset to disable standard cel declarations instead: stdlib = LibrarySubset{ disable: true }bool disable_standard_cel_declarations = 11;- Specified by:
getDisableStandardCelDeclarationsin interfaceEnvironmentOrBuilder- Returns:
- The disableStandardCelDeclarations.
-
setDisableStandardCelDeclarations
Disables including the declarations from the standard CEL environment. NOTE: Do not disable the standard CEL declarations unless you are aware of the implications and have discussed your use case on cel-discuss@ or with the members of the cel-governance-team@ Deprecated: Use LibrarySubset to disable standard cel declarations instead: stdlib = LibrarySubset{ disable: true }bool disable_standard_cel_declarations = 11;- Parameters:
value- The disableStandardCelDeclarations to set.- Returns:
- This builder for chaining.
-
clearDisableStandardCelDeclarations
Disables including the declarations from the standard CEL environment. NOTE: Do not disable the standard CEL declarations unless you are aware of the implications and have discussed your use case on cel-discuss@ or with the members of the cel-governance-team@ Deprecated: Use LibrarySubset to disable standard cel declarations instead: stdlib = LibrarySubset{ disable: true }bool disable_standard_cel_declarations = 11;- Returns:
- This builder for chaining.
-
hasMessageTypeExtension
public boolean hasMessageTypeExtension()If provided, uses the provided FileDescriptorSet to extend types available the CEL expression. All "well-known" protobuf messages (google.protobuf.*) are known to the CEL compiler, but all others must be provided for type checking.
.google.protobuf.FileDescriptorSet message_type_extension = 12;- Specified by:
hasMessageTypeExtensionin interfaceEnvironmentOrBuilder- Returns:
- Whether the messageTypeExtension field is set.
-
getMessageTypeExtension
public com.google.protobuf.DescriptorProtos.FileDescriptorSet getMessageTypeExtension()If provided, uses the provided FileDescriptorSet to extend types available the CEL expression. All "well-known" protobuf messages (google.protobuf.*) are known to the CEL compiler, but all others must be provided for type checking.
.google.protobuf.FileDescriptorSet message_type_extension = 12;- Specified by:
getMessageTypeExtensionin interfaceEnvironmentOrBuilder- Returns:
- The messageTypeExtension.
-
setMessageTypeExtension
public Environment.Builder setMessageTypeExtension(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) If provided, uses the provided FileDescriptorSet to extend types available the CEL expression. All "well-known" protobuf messages (google.protobuf.*) are known to the CEL compiler, but all others must be provided for type checking.
.google.protobuf.FileDescriptorSet message_type_extension = 12; -
setMessageTypeExtension
public Environment.Builder setMessageTypeExtension(com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) If provided, uses the provided FileDescriptorSet to extend types available the CEL expression. All "well-known" protobuf messages (google.protobuf.*) are known to the CEL compiler, but all others must be provided for type checking.
.google.protobuf.FileDescriptorSet message_type_extension = 12; -
mergeMessageTypeExtension
public Environment.Builder mergeMessageTypeExtension(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) If provided, uses the provided FileDescriptorSet to extend types available the CEL expression. All "well-known" protobuf messages (google.protobuf.*) are known to the CEL compiler, but all others must be provided for type checking.
.google.protobuf.FileDescriptorSet message_type_extension = 12; -
clearMessageTypeExtension
If provided, uses the provided FileDescriptorSet to extend types available the CEL expression. All "well-known" protobuf messages (google.protobuf.*) are known to the CEL compiler, but all others must be provided for type checking.
.google.protobuf.FileDescriptorSet message_type_extension = 12; -
getMessageTypeExtensionBuilder
public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getMessageTypeExtensionBuilder()If provided, uses the provided FileDescriptorSet to extend types available the CEL expression. All "well-known" protobuf messages (google.protobuf.*) are known to the CEL compiler, but all others must be provided for type checking.
.google.protobuf.FileDescriptorSet message_type_extension = 12; -
getMessageTypeExtensionOrBuilder
public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getMessageTypeExtensionOrBuilder()If provided, uses the provided FileDescriptorSet to extend types available the CEL expression. All "well-known" protobuf messages (google.protobuf.*) are known to the CEL compiler, but all others must be provided for type checking.
.google.protobuf.FileDescriptorSet message_type_extension = 12;- Specified by:
getMessageTypeExtensionOrBuilderin interfaceEnvironmentOrBuilder
-
getEnableMacroCallTracking
public boolean getEnableMacroCallTracking()When macro call tracking is enabled, the resulting SourceInfo in the CheckedExpr will contain a collection of expressions representing the function calls which were replaced by macros. Deprecated: Use Feature to enable macro call tracking Feature{ name: "cel.feature.macro_call_tracking", enabled: true }bool enable_macro_call_tracking = 13;- Specified by:
getEnableMacroCallTrackingin interfaceEnvironmentOrBuilder- Returns:
- The enableMacroCallTracking.
-
setEnableMacroCallTracking
When macro call tracking is enabled, the resulting SourceInfo in the CheckedExpr will contain a collection of expressions representing the function calls which were replaced by macros. Deprecated: Use Feature to enable macro call tracking Feature{ name: "cel.feature.macro_call_tracking", enabled: true }bool enable_macro_call_tracking = 13;- Parameters:
value- The enableMacroCallTracking to set.- Returns:
- This builder for chaining.
-
clearEnableMacroCallTracking
When macro call tracking is enabled, the resulting SourceInfo in the CheckedExpr will contain a collection of expressions representing the function calls which were replaced by macros. Deprecated: Use Feature to enable macro call tracking Feature{ name: "cel.feature.macro_call_tracking", enabled: true }bool enable_macro_call_tracking = 13;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Environment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
mergeUnknownFields
public final Environment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-