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
  • 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 interface Expr.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`.
       
      .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
      Specified by:
      getOperand in interface Expr.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`.
       
      .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
    • 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`.
       
      .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
    • 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`.
       
      .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
    • 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`.
       
      .google.api.expr.v1beta1.Expr operand = 1 [json_name = "operand"];
    • getField

      public 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 [json_name = "field"];
      Specified by:
      getField in interface Expr.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 interface Expr.SelectOrBuilder
      Returns:
      The bytes for field.
    • setField

      public Expr.Select.Builder setField(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 [json_name = "field"];
      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 [json_name = "field"];
      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 [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 interface Expr.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 [json_name = "testOnly"];
      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 [json_name = "testOnly"];
      Returns:
      This builder for chaining.