Package dev.cel.expr
Class Expr.Select.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typecel.expr.Expr.Select
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Expr.Selectbuild()Expr.SelectbuildPartial()Expr.Select.Builderclear()Expr.Select.BuilderclearField()Required.Expr.Select.BuilderclearOperand()Required.Expr.Select.BuilderclearTestOnly()Whether the select is to be interpreted as a field presence test.Expr.SelectgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetField()Required.com.google.protobuf.ByteStringgetFieldBytes()Required.ExprgetOperand()Required.Expr.BuildergetOperandBuilder()Required.ExprOrBuildergetOperandOrBuilder()Required.booleangetTestOnly()Whether the select is to be interpreted as a field presence test.booleanhasOperand()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Expr.Select.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Expr.Select.BuildermergeFrom(com.google.protobuf.Message other)Expr.Select.BuildermergeFrom(Expr.Select other)Expr.Select.BuildermergeOperand(Expr value)Required.Expr.Select.BuildersetField(java.lang.String value)Required.Expr.Select.BuildersetFieldBytes(com.google.protobuf.ByteString value)Required.Expr.Select.BuildersetOperand(Expr value)Required.Expr.Select.BuildersetOperand(Expr.Builder builderForValue)Required.Expr.Select.BuildersetTestOnly(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
-
-
-
-
Method Detail
-
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>
-
clear
public Expr.Select.Builder 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
public Expr.Select getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Expr.Select build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Expr.Select buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Expr.Select.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Expr.Select.Builder>
-
mergeFrom
public Expr.Select.Builder mergeFrom(Expr.Select other)
-
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 java.io.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:
java.io.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
public Expr 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
public Expr.Select.Builder setOperand(Expr value)
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
public Expr.Select.Builder setOperand(Expr.Builder builderForValue)
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
public Expr.Select.Builder mergeOperand(Expr value)
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
public Expr.Select.Builder 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
public Expr.Builder 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
public ExprOrBuilder 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
-
getField
public java.lang.String 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
public Expr.Select.Builder setField(java.lang.String value)
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
public Expr.Select.Builder 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
public Expr.Select.Builder setFieldBytes(com.google.protobuf.ByteString value)
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
public Expr.Select.Builder setTestOnly(boolean value)
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
public Expr.Select.Builder 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.
-
-