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.ByteStringThe documentation string for the declaration.A function declaration.intgetId()The id of the declaration.getIdent()An identifier declaration.getName()The name of the declaration.com.google.protobuf.ByteStringThe name of the declaration.booleanA function declaration.booleanhasIdent()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, 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
-
getKindCase
- Specified by:
getKindCasein interfaceDeclOrBuilder
-
clearKind
-
getId
public int getId()The id of the declaration.
int32 id = 1 [json_name = "id"];- Specified by:
getIdin 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:
getNamein interfaceDeclOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the declaration.
string name = 2 [json_name = "name"];- Specified by:
getNameBytesin 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:
getDocin 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:
getDocBytesin 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:
hasIdentin interfaceDeclOrBuilder- Returns:
- Whether the ident field is set.
-
getIdent
An identifier declaration.
.google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];- Specified by:
getIdentin 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:
hasFunctionin interfaceDeclOrBuilder- Returns:
- Whether the function field is set.
-
getFunction
A function declaration.
.google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];- Specified by:
getFunctionin 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"];
-