Class Decl.IdentDecl.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Decl.IdentDecl,Decl.IdentDecl.Builder>
com.google.api.expr.v1alpha1.Decl.IdentDecl.Builder
All Implemented Interfaces:
Decl.IdentDeclOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
Decl.IdentDecl

public static final class Decl.IdentDecl.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Decl.IdentDecl,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 google.api.expr.v1alpha1.Decl.IdentDecl
  • Method Details

    • hasType

      public boolean hasType()
       Required. The type of the identifier.
       
      .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
      Specified by:
      hasType in interface Decl.IdentDeclOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public Type getType()
       Required. The type of the identifier.
       
      .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
      Specified by:
      getType in interface Decl.IdentDeclOrBuilder
      Returns:
      The type.
    • setType

      public Decl.IdentDecl.Builder setType(Type value)
       Required. The type of the identifier.
       
      .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
    • setType

      public Decl.IdentDecl.Builder setType(Type.Builder builderForValue)
       Required. The type of the identifier.
       
      .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
    • mergeType

      public Decl.IdentDecl.Builder mergeType(Type value)
       Required. The type of the identifier.
       
      .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
    • clearType

      public Decl.IdentDecl.Builder clearType()
       Required. The type of the identifier.
       
      .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
    • hasValue

      public boolean hasValue()
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
      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.
       
      .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
      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.
       
      .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
    • 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.
       
      .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
    • 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.
       
      .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
    • clearValue

      public Decl.IdentDecl.Builder clearValue()
       The constant value of the identifier. If not specified, the identifier
       must be supplied at evaluation time.
       
      .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
    • getDoc

      public String getDoc()
       Documentation string for the identifier.
       
      string doc = 3 [json_name = "doc"];
      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 [json_name = "doc"];
      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 [json_name = "doc"];
      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 [json_name = "doc"];
      Returns:
      This builder for chaining.
    • setDocBytes

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