Package dev.cel.expr

Class Decl.IdentDecl.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Decl.IdentDecl.Builder>
com.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
dev.cel.expr.Decl.IdentDecl.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Decl.IdentDeclOrBuilder, Cloneable
Enclosing class:
Decl.IdentDecl

public static final class Decl.IdentDecl.Builder extends com.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder> implements Decl.IdentDeclOrBuilder
 Identifier declaration which specifies its type and optional `Expr` value.

 An identifier without a value is a declaration that must be provided at
 evaluation time. An identifier with a value should resolve to a constant,
 but may be used in conjunction with other identifiers bound at evaluation
 time.
 
Protobuf type cel.expr.Decl.IdentDecl
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      public Decl.IdentDecl.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.GeneratedMessage.Builder<Decl.IdentDecl.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.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
    • getDefaultInstanceForType

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

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

      public Decl.IdentDecl buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(Decl.IdentDecl result)
    • mergeFrom

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

      public Decl.IdentDecl.Builder mergeFrom(Decl.IdentDecl other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Decl.IdentDecl.Builder>
    • mergeFrom

      public Decl.IdentDecl.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<Decl.IdentDecl.Builder>
      Throws:
      IOException
    • hasType

      public boolean hasType()
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
      Specified by:
      hasType in interface Decl.IdentDeclOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public Type getType()
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
      Specified by:
      getType in interface Decl.IdentDeclOrBuilder
      Returns:
      The type.
    • setType

      public Decl.IdentDecl.Builder setType(Type value)
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
    • setType

      public Decl.IdentDecl.Builder setType(Type.Builder builderForValue)
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
    • mergeType

      public Decl.IdentDecl.Builder mergeType(Type value)
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
    • clearType

      public Decl.IdentDecl.Builder clearType()
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
    • getTypeBuilder

      public Type.Builder getTypeBuilder()
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
    • getTypeOrBuilder

      public TypeOrBuilder getTypeOrBuilder()
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
      Specified by:
      getTypeOrBuilder in interface Decl.IdentDeclOrBuilder
    • internalGetTypeFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Type,Type.Builder,TypeOrBuilder> internalGetTypeFieldBuilder()
       Required. The type of the identifier.
       
      .cel.expr.Type type = 1;
    • hasValue

      public boolean hasValue()
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
      Specified by:
      hasValue in interface Decl.IdentDeclOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public Constant getValue()
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
      Specified by:
      getValue in interface Decl.IdentDeclOrBuilder
      Returns:
      The value.
    • setValue

      public Decl.IdentDecl.Builder setValue(Constant value)
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
    • setValue

      public Decl.IdentDecl.Builder setValue(Constant.Builder builderForValue)
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
    • mergeValue

      public Decl.IdentDecl.Builder mergeValue(Constant value)
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
    • clearValue

      public Decl.IdentDecl.Builder clearValue()
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
    • getValueBuilder

      public Constant.Builder getValueBuilder()
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
    • getValueOrBuilder

      public ConstantOrBuilder getValueOrBuilder()
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
      Specified by:
      getValueOrBuilder in interface Decl.IdentDeclOrBuilder
    • internalGetValueFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<Constant,Constant.Builder,ConstantOrBuilder> internalGetValueFieldBuilder()
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .cel.expr.Constant value = 2;
    • getDoc

      public String getDoc()
       Documentation string for the identifier.
       
      string doc = 3;
      Specified by:
      getDoc in interface Decl.IdentDeclOrBuilder
      Returns:
      The doc.
    • getDocBytes

      public com.google.protobuf.ByteString getDocBytes()
       Documentation string for the identifier.
       
      string doc = 3;
      Specified by:
      getDocBytes in interface Decl.IdentDeclOrBuilder
      Returns:
      The bytes for doc.
    • setDoc

      public Decl.IdentDecl.Builder setDoc(String value)
       Documentation string for the identifier.
       
      string doc = 3;
      Parameters:
      value - The doc to set.
      Returns:
      This builder for chaining.
    • clearDoc

      public Decl.IdentDecl.Builder clearDoc()
       Documentation string for the identifier.
       
      string doc = 3;
      Returns:
      This builder for chaining.
    • setDocBytes

      public Decl.IdentDecl.Builder setDocBytes(com.google.protobuf.ByteString value)
       Documentation string for the identifier.
       
      string doc = 3;
      Parameters:
      value - The bytes for doc to set.
      Returns:
      This builder for chaining.