Package com.google.api.expr.v1beta1
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.v1beta1.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
A declaration.Protobuf type
google.api.expr.v1beta1.Decl
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionclearDoc()
The documentation string for the declaration.A function declaration.clearId()
The id of the declaration.An identifier declaration.The name of the declaration.getDoc()
The documentation string for the declaration.com.google.protobuf.ByteString
The documentation string for the declaration.A function declaration.int
getId()
The id of the declaration.getIdent()
An identifier declaration.getName()
The name of the declaration.com.google.protobuf.ByteString
The name of the declaration.boolean
A function declaration.boolean
hasIdent()
An identifier declaration.mergeFunction
(FunctionDecl value) A function declaration.mergeIdent
(IdentDecl value) An identifier declaration.The documentation string for the declaration.setDocBytes
(com.google.protobuf.ByteString value) The documentation string for the declaration.setFunction
(FunctionDecl value) A function declaration.setFunction
(FunctionDecl.Builder builderForValue) A function declaration.setId
(int value) The id of the declaration.An identifier declaration.setIdent
(IdentDecl.Builder builderForValue) An identifier declaration.The name of the declaration.setNameBytes
(com.google.protobuf.ByteString value) The 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, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getKindCase
- Specified by:
getKindCase
in interfaceDeclOrBuilder
-
clearKind
-
getId
public int getId()The id of the declaration.
int32 id = 1 [json_name = "id"];
- Specified by:
getId
in interfaceDeclOrBuilder
- Returns:
- The id.
-
setId
The id of the declaration.
int32 id = 1 [json_name = "id"];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
The id of the declaration.
int32 id = 1 [json_name = "id"];
- Returns:
- This builder for chaining.
-
getName
The name of the declaration.
string name = 2 [json_name = "name"];
- Specified by:
getName
in interfaceDeclOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the declaration.
string name = 2 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceDeclOrBuilder
- Returns:
- The bytes for name.
-
setName
The name of the declaration.
string name = 2 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the declaration.
string name = 2 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
The name of the declaration.
string name = 2 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDoc
The documentation string for the declaration.
string doc = 3 [json_name = "doc"];
- Specified by:
getDoc
in interfaceDeclOrBuilder
- Returns:
- The doc.
-
getDocBytes
public com.google.protobuf.ByteString getDocBytes()The documentation string for the declaration.
string doc = 3 [json_name = "doc"];
- Specified by:
getDocBytes
in interfaceDeclOrBuilder
- Returns:
- The bytes for doc.
-
setDoc
The documentation string for the declaration.
string doc = 3 [json_name = "doc"];
- Parameters:
value
- The doc to set.- Returns:
- This builder for chaining.
-
clearDoc
The documentation string for the declaration.
string doc = 3 [json_name = "doc"];
- Returns:
- This builder for chaining.
-
setDocBytes
The documentation string for the declaration.
string doc = 3 [json_name = "doc"];
- Parameters:
value
- The bytes for doc to set.- Returns:
- This builder for chaining.
-
hasIdent
public boolean hasIdent()An identifier declaration.
.google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
- Specified by:
hasIdent
in interfaceDeclOrBuilder
- Returns:
- Whether the ident field is set.
-
getIdent
An identifier declaration.
.google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
- Specified by:
getIdent
in interfaceDeclOrBuilder
- Returns:
- The ident.
-
setIdent
An identifier declaration.
.google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
-
setIdent
An identifier declaration.
.google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
-
mergeIdent
An identifier declaration.
.google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
-
clearIdent
An identifier declaration.
.google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
-
hasFunction
public boolean hasFunction()A function declaration.
.google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
- Specified by:
hasFunction
in interfaceDeclOrBuilder
- Returns:
- Whether the function field is set.
-
getFunction
A function declaration.
.google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
- Specified by:
getFunction
in interfaceDeclOrBuilder
- Returns:
- The function.
-
setFunction
A function declaration.
.google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
-
setFunction
A function declaration.
.google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
-
mergeFunction
A function declaration.
.google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
-
clearFunction
A function declaration.
.google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
-