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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • clear

      public Environment.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • getDefaultInstanceForType

      public Environment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Environment build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Environment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Environment.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • setField

      public Environment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • clearField

      public Environment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • clearOneof

      public Environment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • setRepeatedField

      public Environment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • addRepeatedField

      public Environment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • mergeFrom

      public Environment.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.Builder>
    • mergeFrom

      public Environment.Builder mergeFrom(Environment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Name of the environment
       
      string name = 1;
      Specified by:
      getName in interface EnvironmentOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the environment
       
      string name = 1;
      Specified by:
      getNameBytes in interface EnvironmentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Environment.Builder setName(String value)
       Name of the environment
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Environment.Builder clearName()
       Name of the environment
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Environment.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the environment
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Description for the current environment
       
      string description = 2;
      Specified by:
      getDescription in interface EnvironmentOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Description for the current environment
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface EnvironmentOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Environment.Builder setDescription(String value)
       Description for the current environment
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Environment.Builder clearDescription()
       Description for the current environment
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Environment.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Description for the current environment
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getContainer

      public 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;
      Specified by:
      getContainer in interface EnvironmentOrBuilder
      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:
      getContainerBytes in interface EnvironmentOrBuilder
      Returns:
      The bytes for container.
    • setContainer

      public Environment.Builder setContainer(String value)
       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

      public Environment.Builder 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

      public Environment.Builder setContainerBytes(com.google.protobuf.ByteString value)
       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

      public List<Environment.Import> getImportsList()
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
      Specified by:
      getImportsList in interface EnvironmentOrBuilder
    • getImportsCount

      public int getImportsCount()
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
      Specified by:
      getImportsCount in interface EnvironmentOrBuilder
    • getImports

      public Environment.Import getImports(int index)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
      Specified by:
      getImports in interface EnvironmentOrBuilder
    • setImports

      public Environment.Builder setImports(int index, Environment.Import value)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • setImports

      public Environment.Builder setImports(int index, Environment.Import.Builder builderForValue)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • addImports

      public Environment.Builder addImports(Environment.Import value)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • addImports

      public Environment.Builder addImports(int index, Environment.Import value)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • addImports

      public Environment.Builder addImports(Environment.Import.Builder builderForValue)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • addImports

      public Environment.Builder addImports(int index, Environment.Import.Builder builderForValue)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • addAllImports

      public Environment.Builder addAllImports(Iterable<? extends Environment.Import> values)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • clearImports

      public Environment.Builder clearImports()
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • removeImports

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

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

      public Environment.ImportOrBuilder getImportsOrBuilder(int index)
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
      Specified by:
      getImportsOrBuilder in interface EnvironmentOrBuilder
    • getImportsOrBuilderList

      public List<? extends Environment.ImportOrBuilder> getImportsOrBuilderList()
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
      Specified by:
      getImportsOrBuilderList in interface EnvironmentOrBuilder
    • addImportsBuilder

      public Environment.Import.Builder addImportsBuilder()
       List of abbreviations to be added to the CEL environment
       
      repeated .cel.expr.conformance.Environment.Import imports = 4;
    • addImportsBuilder

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

      public List<Environment.Import.Builder> 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:
      hasStdlib in interface EnvironmentOrBuilder
      Returns:
      Whether the stdlib field is set.
    • getStdlib

      public LibrarySubset getStdlib()
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
      Specified by:
      getStdlib in interface EnvironmentOrBuilder
      Returns:
      The stdlib.
    • setStdlib

      public Environment.Builder setStdlib(LibrarySubset value)
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
    • setStdlib

      public Environment.Builder setStdlib(LibrarySubset.Builder builderForValue)
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
    • mergeStdlib

      public Environment.Builder mergeStdlib(LibrarySubset value)
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
    • clearStdlib

      public Environment.Builder clearStdlib()
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
    • getStdlibBuilder

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

      public LibrarySubsetOrBuilder getStdlibOrBuilder()
       Set of options to subset a subsettable library
       
      .cel.expr.conformance.LibrarySubset stdlib = 5;
      Specified by:
      getStdlibOrBuilder in interface EnvironmentOrBuilder
    • getExtensionsList

      public List<Extension> getExtensionsList()
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
      Specified by:
      getExtensionsList in interface EnvironmentOrBuilder
    • getExtensionsCount

      public int getExtensionsCount()
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
      Specified by:
      getExtensionsCount in interface EnvironmentOrBuilder
    • getExtensions

      public Extension getExtensions(int index)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
      Specified by:
      getExtensions in interface EnvironmentOrBuilder
    • setExtensions

      public Environment.Builder setExtensions(int index, Extension value)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • setExtensions

      public Environment.Builder setExtensions(int index, Extension.Builder builderForValue)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • addExtensions

      public Environment.Builder addExtensions(Extension value)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • addExtensions

      public Environment.Builder addExtensions(int index, Extension value)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • addExtensions

      public Environment.Builder addExtensions(Extension.Builder builderForValue)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • addExtensions

      public Environment.Builder addExtensions(int index, Extension.Builder builderForValue)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • addAllExtensions

      public Environment.Builder addAllExtensions(Iterable<? extends Extension> values)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • clearExtensions

      public Environment.Builder clearExtensions()
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • removeExtensions

      public Environment.Builder removeExtensions(int index)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • getExtensionsBuilder

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

      public ExtensionOrBuilder getExtensionsOrBuilder(int index)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
      Specified by:
      getExtensionsOrBuilder in interface EnvironmentOrBuilder
    • getExtensionsOrBuilderList

      public List<? extends ExtensionOrBuilder> getExtensionsOrBuilderList()
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
      Specified by:
      getExtensionsOrBuilderList in interface EnvironmentOrBuilder
    • addExtensionsBuilder

      public Extension.Builder addExtensionsBuilder()
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • addExtensionsBuilder

      public Extension.Builder addExtensionsBuilder(int index)
       List of extensions to enable in the CEL environment.
       
      repeated .cel.expr.conformance.Extension extensions = 6;
    • getExtensionsBuilderList

      public List<Extension.Builder> 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:
      hasContextVariable in interface EnvironmentOrBuilder
      Returns:
      Whether the contextVariable field is set.
    • getContextVariable

      public 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;
      Specified by:
      getContextVariable in interface EnvironmentOrBuilder
      Returns:
      The contextVariable.
    • setContextVariable

      public Environment.Builder setContextVariable(Environment.ContextVariable value)
       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

      public Environment.Builder setContextVariable(Environment.ContextVariable.Builder builderForValue)
       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

      public Environment.Builder mergeContextVariable(Environment.ContextVariable value)
       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

      public Environment.Builder 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

      public Environment.ContextVariable.Builder 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

      public 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;
      Specified by:
      getContextVariableOrBuilder in interface EnvironmentOrBuilder
    • getDeclarationsList

      public 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;
      Specified by:
      getDeclarationsList in interface EnvironmentOrBuilder
    • 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:
      getDeclarationsCount in interface EnvironmentOrBuilder
    • getDeclarations

      public 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;
      Specified by:
      getDeclarations in interface EnvironmentOrBuilder
    • setDeclarations

      public Environment.Builder setDeclarations(int index, Decl value)
       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

      public Environment.Builder setDeclarations(int index, Decl.Builder builderForValue)
       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

      public Environment.Builder addDeclarations(Decl value)
       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

      public Environment.Builder addDeclarations(int index, Decl value)
       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

      public Environment.Builder addDeclarations(Decl.Builder builderForValue)
       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

      public Environment.Builder addDeclarations(int index, Decl.Builder builderForValue)
       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

      public Environment.Builder addAllDeclarations(Iterable<? extends Decl> values)
       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

      public Environment.Builder 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

      public Environment.Builder removeDeclarations(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;
    • getDeclarationsBuilder

      public Decl.Builder getDeclarationsBuilder(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;
    • getDeclarationsOrBuilder

      public 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;
      Specified by:
      getDeclarationsOrBuilder in interface EnvironmentOrBuilder
    • getDeclarationsOrBuilderList

      public 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;
      Specified by:
      getDeclarationsOrBuilderList in interface EnvironmentOrBuilder
    • addDeclarationsBuilder

      public Decl.Builder 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

      public Decl.Builder addDeclarationsBuilder(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;
    • getDeclarationsBuilderList

      public List<Decl.Builder> 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

      public List<Validator> getValidatorsList()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
      Specified by:
      getValidatorsList in interface EnvironmentOrBuilder
    • getValidatorsCount

      public int getValidatorsCount()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
      Specified by:
      getValidatorsCount in interface EnvironmentOrBuilder
    • getValidators

      public Validator getValidators(int index)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
      Specified by:
      getValidators in interface EnvironmentOrBuilder
    • setValidators

      public Environment.Builder setValidators(int index, Validator value)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • setValidators

      public Environment.Builder setValidators(int index, Validator.Builder builderForValue)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • addValidators

      public Environment.Builder addValidators(Validator value)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • addValidators

      public Environment.Builder addValidators(int index, Validator value)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • addValidators

      public Environment.Builder addValidators(Validator.Builder builderForValue)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • addValidators

      public Environment.Builder addValidators(int index, Validator.Builder builderForValue)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • addAllValidators

      public Environment.Builder addAllValidators(Iterable<? extends Validator> values)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • clearValidators

      public Environment.Builder clearValidators()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • removeValidators

      public Environment.Builder removeValidators(int index)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • getValidatorsBuilder

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

      public ValidatorOrBuilder getValidatorsOrBuilder(int index)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
      Specified by:
      getValidatorsOrBuilder in interface EnvironmentOrBuilder
    • getValidatorsOrBuilderList

      public List<? extends ValidatorOrBuilder> getValidatorsOrBuilderList()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
      Specified by:
      getValidatorsOrBuilderList in interface EnvironmentOrBuilder
    • addValidatorsBuilder

      public Validator.Builder addValidatorsBuilder()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • addValidatorsBuilder

      public Validator.Builder addValidatorsBuilder(int index)
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • getValidatorsBuilderList

      public List<Validator.Builder> getValidatorsBuilderList()
       List of validators for validating the parsed ast.
       
      repeated .cel.expr.conformance.Validator validators = 9;
    • getFeaturesList

      public List<Feature> getFeaturesList()
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
      Specified by:
      getFeaturesList in interface EnvironmentOrBuilder
    • getFeaturesCount

      public int getFeaturesCount()
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
      Specified by:
      getFeaturesCount in interface EnvironmentOrBuilder
    • getFeatures

      public Feature getFeatures(int index)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
      Specified by:
      getFeatures in interface EnvironmentOrBuilder
    • setFeatures

      public Environment.Builder setFeatures(int index, Feature value)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • setFeatures

      public Environment.Builder setFeatures(int index, Feature.Builder builderForValue)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • addFeatures

      public Environment.Builder addFeatures(Feature value)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • addFeatures

      public Environment.Builder addFeatures(int index, Feature value)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • addFeatures

      public Environment.Builder addFeatures(Feature.Builder builderForValue)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • addFeatures

      public Environment.Builder addFeatures(int index, Feature.Builder builderForValue)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • addAllFeatures

      public Environment.Builder addAllFeatures(Iterable<? extends Feature> values)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • clearFeatures

      public Environment.Builder clearFeatures()
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • removeFeatures

      public Environment.Builder removeFeatures(int index)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • getFeaturesBuilder

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

      public FeatureOrBuilder getFeaturesOrBuilder(int index)
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
      Specified by:
      getFeaturesOrBuilder in interface EnvironmentOrBuilder
    • getFeaturesOrBuilderList

      public List<? extends FeatureOrBuilder> getFeaturesOrBuilderList()
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
      Specified by:
      getFeaturesOrBuilderList in interface EnvironmentOrBuilder
    • addFeaturesBuilder

      public Feature.Builder addFeaturesBuilder()
       List of feature flags to be enabled or disabled.
       
      repeated .cel.expr.conformance.Feature features = 10;
    • addFeaturesBuilder

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

      public List<Feature.Builder> 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:
      getDisableStandardCelDeclarations in interface EnvironmentOrBuilder
      Returns:
      The disableStandardCelDeclarations.
    • setDisableStandardCelDeclarations

      public Environment.Builder setDisableStandardCelDeclarations(boolean value)
       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

      public Environment.Builder 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:
      hasMessageTypeExtension in interface EnvironmentOrBuilder
      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:
      getMessageTypeExtension in interface EnvironmentOrBuilder
      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

      public Environment.Builder 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:
      getMessageTypeExtensionOrBuilder in interface EnvironmentOrBuilder
    • 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:
      getEnableMacroCallTracking in interface EnvironmentOrBuilder
      Returns:
      The enableMacroCallTracking.
    • setEnableMacroCallTracking

      public Environment.Builder 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.
      
       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

      public Environment.Builder 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    • mergeUnknownFields

      public final Environment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>