Package com.google.api.expr.v1beta1
Class Expr.Select.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Expr.Select,Expr.Select.Builder>
com.google.api.expr.v1beta1.Expr.Select.Builder
- All Implemented Interfaces:
Expr.SelectOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- Expr.Select
public static final class Expr.Select.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Expr.Select,Expr.Select.Builder>
implements Expr.SelectOrBuilder
A field selection expression. e.g. `request.auth`.Protobuf type
google.api.expr.v1beta1.Expr.Select
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionRequired.Required.Whether the select is to be interpreted as a field presence test.getField()
Required.com.google.protobuf.ByteString
Required.Required.boolean
Whether the select is to be interpreted as a field presence test.boolean
Required.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.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
-
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`.
.google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
- 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`.
.google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
- 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`.
.google.api.expr.v1beta1.Expr operand = 1 [json_name = "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`.
.google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
-
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`.
.google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
-
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`.
.google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
-
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 [json_name = "field"];
- 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 [json_name = "field"];
- 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 [json_name = "field"];
- 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 [json_name = "field"];
- 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 [json_name = "field"];
- 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 [json_name = "testOnly"];
- 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 [json_name = "testOnly"];
- 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 [json_name = "testOnly"];
- Returns:
- This builder for chaining.
-