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 int
private Object
private Expr
private com.google.protobuf.SingleFieldBuilder
<Expr, Expr.Builder, ExprOrBuilder> private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(Expr.Select result) clear()
Required.Required.Whether the select is to be interpreted as a field presence test.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getField()
Required.com.google.protobuf.ByteString
Required.Required.Required.Required.boolean
Whether the select is to be interpreted as a field presence test.boolean
Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<Expr, Expr.Builder, ExprOrBuilder> Required.final boolean
private void
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Expr.Select.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Expr.Select.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasOperand
in 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:
getOperand
in 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:
getOperandOrBuilder
in interfaceExpr.SelectOrBuilder
-
internalGetOperandFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Expr,Expr.Builder, internalGetOperandFieldBuilder()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:
getField
in 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:
getFieldBytes
in 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:
getTestOnly
in 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.
-