Package com.google.api.expr.v1beta1
Class ParsedExpr.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ParsedExpr,ParsedExpr.Builder>
com.google.api.expr.v1beta1.ParsedExpr.Builder
- All Implemented Interfaces:
ParsedExprOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- ParsedExpr
public static final class ParsedExpr.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ParsedExpr,ParsedExpr.Builder>
implements ParsedExprOrBuilder
An expression together with source information as returned by the parser.Protobuf type
google.api.expr.v1beta1.ParsedExpr
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe parsed expression.The source info derived from input that generated the parsed `expr`.The syntax version of the source, e.g.getExpr()
The parsed expression.The source info derived from input that generated the parsed `expr`.The syntax version of the source, e.g.com.google.protobuf.ByteString
The syntax version of the source, e.g.boolean
hasExpr()
The parsed expression.boolean
The source info derived from input that generated the parsed `expr`.The parsed expression.mergeSourceInfo
(SourceInfo value) The source info derived from input that generated the parsed `expr`.The parsed expression.setExpr
(Expr.Builder builderForValue) The parsed expression.setSourceInfo
(SourceInfo value) The source info derived from input that generated the parsed `expr`.setSourceInfo
(SourceInfo.Builder builderForValue) The source info derived from input that generated the parsed `expr`.setSyntaxVersion
(String value) The syntax version of the source, e.g.setSyntaxVersionBytes
(com.google.protobuf.ByteString value) The syntax version of the source, e.g.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
-
hasExpr
public boolean hasExpr()The parsed expression.
.google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"];
- Specified by:
hasExpr
in interfaceParsedExprOrBuilder
- Returns:
- Whether the expr field is set.
-
getExpr
The parsed expression.
.google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"];
- Specified by:
getExpr
in interfaceParsedExprOrBuilder
- Returns:
- The expr.
-
setExpr
The parsed expression.
.google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"];
-
setExpr
The parsed expression.
.google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"];
-
mergeExpr
The parsed expression.
.google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"];
-
clearExpr
The parsed expression.
.google.api.expr.v1beta1.Expr expr = 2 [json_name = "expr"];
-
hasSourceInfo
public boolean hasSourceInfo()The source info derived from input that generated the parsed `expr`.
.google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"];
- Specified by:
hasSourceInfo
in interfaceParsedExprOrBuilder
- Returns:
- Whether the sourceInfo field is set.
-
getSourceInfo
The source info derived from input that generated the parsed `expr`.
.google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"];
- Specified by:
getSourceInfo
in interfaceParsedExprOrBuilder
- Returns:
- The sourceInfo.
-
setSourceInfo
The source info derived from input that generated the parsed `expr`.
.google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"];
-
setSourceInfo
The source info derived from input that generated the parsed `expr`.
.google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"];
-
mergeSourceInfo
The source info derived from input that generated the parsed `expr`.
.google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"];
-
clearSourceInfo
The source info derived from input that generated the parsed `expr`.
.google.api.expr.v1beta1.SourceInfo source_info = 3 [json_name = "sourceInfo"];
-
getSyntaxVersion
The syntax version of the source, e.g. `cel1`.
string syntax_version = 4 [json_name = "syntaxVersion"];
- Specified by:
getSyntaxVersion
in interfaceParsedExprOrBuilder
- Returns:
- The syntaxVersion.
-
getSyntaxVersionBytes
public com.google.protobuf.ByteString getSyntaxVersionBytes()The syntax version of the source, e.g. `cel1`.
string syntax_version = 4 [json_name = "syntaxVersion"];
- Specified by:
getSyntaxVersionBytes
in interfaceParsedExprOrBuilder
- Returns:
- The bytes for syntaxVersion.
-
setSyntaxVersion
The syntax version of the source, e.g. `cel1`.
string syntax_version = 4 [json_name = "syntaxVersion"];
- Parameters:
value
- The syntaxVersion to set.- Returns:
- This builder for chaining.
-
clearSyntaxVersion
The syntax version of the source, e.g. `cel1`.
string syntax_version = 4 [json_name = "syntaxVersion"];
- Returns:
- This builder for chaining.
-
setSyntaxVersionBytes
The syntax version of the source, e.g. `cel1`.
string syntax_version = 4 [json_name = "syntaxVersion"];
- Parameters:
value
- The bytes for syntaxVersion to set.- Returns:
- This builder for chaining.
-