Package com.google.api.expr.v1alpha1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionclearDoc()
Documentation string for the identifier.Required.The constant value of the identifier.getDoc()
Documentation string for the identifier.com.google.protobuf.ByteString
Documentation string for the identifier.getType()
Required.getValue()
The constant value of the identifier.boolean
hasType()
Required.boolean
hasValue()
The constant value of the identifier.Required.mergeValue
(Constant value) The constant value of the identifier.Documentation string for the identifier.setDocBytes
(com.google.protobuf.ByteString value) Documentation string for the identifier.Required.setType
(Type.Builder builderForValue) Required.The constant value of the identifier.setValue
(Constant.Builder builderForValue) The constant value of the identifier.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
-
hasType
public boolean hasType()Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
- Specified by:
hasType
in interfaceDecl.IdentDeclOrBuilder
- Returns:
- Whether the type field is set.
-
getType
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
- Specified by:
getType
in interfaceDecl.IdentDeclOrBuilder
- Returns:
- The type.
-
setType
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
-
setType
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
-
mergeType
Required. The type of the identifier.
.google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
-
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 interfaceDecl.IdentDeclOrBuilder
- Returns:
- Whether the value field is set.
-
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 interfaceDecl.IdentDeclOrBuilder
- Returns:
- The value.
-
setValue
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
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
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
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
Documentation string for the identifier.
string doc = 3 [json_name = "doc"];
- Specified by:
getDoc
in interfaceDecl.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 interfaceDecl.IdentDeclOrBuilder
- Returns:
- The bytes for doc.
-
setDoc
Documentation string for the identifier.
string doc = 3 [json_name = "doc"];
- Parameters:
value
- The doc to set.- Returns:
- This builder for chaining.
-
clearDoc
Documentation string for the identifier.
string doc = 3 [json_name = "doc"];
- Returns:
- This builder for chaining.
-
setDocBytes
Documentation string for the identifier.
string doc = 3 [json_name = "doc"];
- Parameters:
value
- The bytes for doc to set.- Returns:
- This builder for chaining.
-