Package com.google.api.expr.v1alpha1
Class Decl.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Decl,Decl.Builder>
com.google.api.expr.v1alpha1.Decl.Builder
- All Implemented Interfaces:
DeclOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- Decl
public static final class Decl.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Decl,Decl.Builder>
implements DeclOrBuilder
Represents a declaration of a named value or function. A declaration is part of the contract between the expression, the agent evaluating that expression, and the caller requesting evaluation.Protobuf type
google.api.expr.v1alpha1.Decl-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionFunction declaration.Identifier declaration.The fully qualified name of the declaration.Function declaration.getIdent()Identifier declaration.getName()The fully qualified name of the declaration.com.google.protobuf.ByteStringThe fully qualified name of the declaration.booleanFunction declaration.booleanhasIdent()Identifier declaration.mergeFunction(Decl.FunctionDecl value) Function declaration.mergeIdent(Decl.IdentDecl value) Identifier declaration.setFunction(Decl.FunctionDecl value) Function declaration.setFunction(Decl.FunctionDecl.Builder builderForValue) Function declaration.setIdent(Decl.IdentDecl value) Identifier declaration.setIdent(Decl.IdentDecl.Builder builderForValue) Identifier declaration.The fully qualified name of the declaration.setNameBytes(com.google.protobuf.ByteString value) The fully qualified name of the declaration.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getDeclKindCase
- Specified by:
getDeclKindCasein interfaceDeclOrBuilder
-
clearDeclKind
-
getName
The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `google.api.expr.Decl`. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceDeclOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `google.api.expr.Decl`. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceDeclOrBuilder- Returns:
- The bytes for name.
-
setName
The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `google.api.expr.Decl`. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].
string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `google.api.expr.Decl`. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].
string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
The fully qualified name of the declaration. Declarations are organized in containers and this represents the full path to the declaration in its container, as in `google.api.expr.Decl`. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].
string name = 1 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasIdent
public boolean hasIdent()Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];- Specified by:
hasIdentin interfaceDeclOrBuilder- Returns:
- Whether the ident field is set.
-
getIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"];- Specified by:
getIdentin interfaceDeclOrBuilder- Returns:
- The ident.
-
setIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; -
setIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; -
mergeIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; -
clearIdent
Identifier declaration.
.google.api.expr.v1alpha1.Decl.IdentDecl ident = 2 [json_name = "ident"]; -
hasFunction
public boolean hasFunction()Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];- Specified by:
hasFunctionin interfaceDeclOrBuilder- Returns:
- Whether the function field is set.
-
getFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];- Specified by:
getFunctionin interfaceDeclOrBuilder- Returns:
- The function.
-
setFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; -
setFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; -
mergeFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"]; -
clearFunction
Function declaration.
.google.api.expr.v1alpha1.Decl.FunctionDecl function = 3 [json_name = "function"];
-