Interface EnvironmentOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Environment, Environment.Builder

public interface EnvironmentOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Name of the environment
       
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Name of the environment
       
      string name = 1;
      Returns:
      The bytes for name.
    • getDescription

      String getDescription()
       Description for the current environment
       
      string description = 2;
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
       Description for the current environment
       
      string description = 2;
      Returns:
      The bytes for description.
    • getContainer

      String 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;
      Returns:
      The container.
    • getContainerBytes

      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;
      Returns:
      The bytes for container.
    • getImportsList

      List<Environment.Import> getImportsList()
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • getImports

      Environment.Import getImports(int index)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • getImportsCount

      int getImportsCount()
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • getImportsOrBuilderList

      List<? extends Environment.ImportOrBuilder> getImportsOrBuilderList()
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • getImportsOrBuilder

      Environment.ImportOrBuilder getImportsOrBuilder(int index)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • hasStdlib

      boolean hasStdlib()
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
      Returns:
      Whether the stdlib field is set.
    • getStdlib

      LibrarySubset getStdlib()
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
      Returns:
      The stdlib.
    • getStdlibOrBuilder

      LibrarySubsetOrBuilder getStdlibOrBuilder()
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
    • getExtensionsList

      List<Extension> getExtensionsList()
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • getExtensions

      Extension getExtensions(int index)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • getExtensionsCount

      int getExtensionsCount()
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • getExtensionsOrBuilderList

      List<? extends ExtensionOrBuilder> getExtensionsOrBuilderList()
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • getExtensionsOrBuilder

      ExtensionOrBuilder getExtensionsOrBuilder(int index)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • hasContextVariable

      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;
      Returns:
      Whether the contextVariable field is set.
    • getContextVariable

      Environment.ContextVariable 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;
      Returns:
      The contextVariable.
    • getContextVariableOrBuilder

      Environment.ContextVariableOrBuilder 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;
    • getDeclarationsList

      List<Decl> 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;
    • getDeclarations

      Decl getDeclarations(int index)
       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;
    • getDeclarationsCount

      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;
    • getDeclarationsOrBuilderList

      List<? extends DeclOrBuilder> 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;
    • getDeclarationsOrBuilder

      DeclOrBuilder getDeclarationsOrBuilder(int index)
       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<Validator> getValidatorsList()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • getValidators

      Validator getValidators(int index)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • getValidatorsCount

      int getValidatorsCount()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • getValidatorsOrBuilderList

      List<? extends ValidatorOrBuilder> getValidatorsOrBuilderList()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • getValidatorsOrBuilder

      ValidatorOrBuilder getValidatorsOrBuilder(int index)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • getFeaturesList

      List<Feature> getFeaturesList()
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • getFeatures

      Feature getFeatures(int index)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • getFeaturesCount

      int getFeaturesCount()
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • getFeaturesOrBuilderList

      List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • getFeaturesOrBuilder

      FeatureOrBuilder getFeaturesOrBuilder(int index)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • getDisableStandardCelDeclarations

      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;
      Returns:
      The disableStandardCelDeclarations.
    • hasMessageTypeExtension

      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;
      Returns:
      Whether the messageTypeExtension field is set.
    • getMessageTypeExtension

      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;
      Returns:
      The messageTypeExtension.
    • getMessageTypeExtensionOrBuilder

      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;
    • getEnableMacroCallTracking

      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;
      Returns:
      The enableMacroCallTracking.