Package dev.cel.expr
Class Expr.Select.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Expr.Select.Builder>
com.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
dev.cel.expr.Expr.Select.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Expr.SelectOrBuilder,Cloneable
- Enclosing class:
Expr.Select
public static final class Expr.Select.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
implements Expr.SelectOrBuilder
A field selection expression. e.g. `request.auth`.Protobuf type
cel.expr.Expr.Select-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate Exprprivate com.google.protobuf.SingleFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(Expr.Select result) clear()Required.Required.Whether the select is to be interpreted as a field presence test.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetField()Required.com.google.protobuf.ByteStringRequired.Required.Required.private com.google.protobuf.SingleFieldBuilder<Expr, Expr.Builder, ExprOrBuilder> Required.Required.booleanWhether the select is to be interpreted as a field presence test.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Expr.Select other) mergeOperand(Expr value) Required.Required.setFieldBytes(com.google.protobuf.ByteString value) Required.setOperand(Expr value) Required.setOperand(Expr.Builder builderForValue) Required.setTestOnly(boolean value) Whether the select is to be interpreted as a field presence test.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
operand_
-
operandBuilder_
-
field_
-
testOnly_
private boolean testOnly_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Expr.Select.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
-
mergeFrom
public Expr.Select.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Expr.Select.Builder>- Throws:
IOException
-
hasOperand
public boolean hasOperand()Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1;- Specified by:
hasOperandin interfaceExpr.SelectOrBuilder- Returns:
- Whether the operand field is set.
-
getOperand
Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1;- Specified by:
getOperandin interfaceExpr.SelectOrBuilder- Returns:
- The operand.
-
setOperand
Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1; -
setOperand
Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1; -
mergeOperand
Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1; -
clearOperand
Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1; -
getOperandBuilder
Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1; -
getOperandOrBuilder
Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1;- Specified by:
getOperandOrBuilderin interfaceExpr.SelectOrBuilder
-
getOperandFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder, getOperandFieldBuilder()ExprOrBuilder> Required. The target of the selection expression. For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
.cel.expr.Expr operand = 1; -
getField
Required. The name of the field to select. For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`.
string field = 2;- Specified by:
getFieldin interfaceExpr.SelectOrBuilder- Returns:
- The field.
-
getFieldBytes
public com.google.protobuf.ByteString getFieldBytes()Required. The name of the field to select. For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`.
string field = 2;- Specified by:
getFieldBytesin interfaceExpr.SelectOrBuilder- Returns:
- The bytes for field.
-
setField
Required. The name of the field to select. For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`.
string field = 2;- Parameters:
value- The field to set.- Returns:
- This builder for chaining.
-
clearField
Required. The name of the field to select. For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`.
string field = 2;- Returns:
- This builder for chaining.
-
setFieldBytes
Required. The name of the field to select. For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`.
string field = 2;- Parameters:
value- The bytes for field to set.- Returns:
- This builder for chaining.
-
getTestOnly
public boolean getTestOnly()Whether the select is to be interpreted as a field presence test. This results from the macro `has(request.auth)`.
bool test_only = 3;- Specified by:
getTestOnlyin interfaceExpr.SelectOrBuilder- Returns:
- The testOnly.
-
setTestOnly
Whether the select is to be interpreted as a field presence test. This results from the macro `has(request.auth)`.
bool test_only = 3;- Parameters:
value- The testOnly to set.- Returns:
- This builder for chaining.
-
clearTestOnly
Whether the select is to be interpreted as a field presence test. This results from the macro `has(request.auth)`.
bool test_only = 3;- Returns:
- This builder for chaining.
-