Class Expr.CreateList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateList,Expr.CreateList.Builder>
com.google.api.expr.v1alpha1.Expr.CreateList.Builder
All Implemented Interfaces:
Expr.CreateListOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
Expr.CreateList

public static final class Expr.CreateList.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Expr.CreateList,Expr.CreateList.Builder> implements Expr.CreateListOrBuilder
 A list creation expression.

 Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
 `dyn([1, 'hello', 2.0])`
 
Protobuf type google.api.expr.v1alpha1.Expr.CreateList
  • Method Details

    • getElementsList

      public List<Expr> getElementsList()
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
      Specified by:
      getElementsList in interface Expr.CreateListOrBuilder
    • getElementsCount

      public int getElementsCount()
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
      Specified by:
      getElementsCount in interface Expr.CreateListOrBuilder
    • getElements

      public Expr getElements(int index)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
      Specified by:
      getElements in interface Expr.CreateListOrBuilder
    • setElements

      public Expr.CreateList.Builder setElements(int index, Expr value)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • setElements

      public Expr.CreateList.Builder setElements(int index, Expr.Builder builderForValue)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • addElements

      public Expr.CreateList.Builder addElements(Expr value)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • addElements

      public Expr.CreateList.Builder addElements(int index, Expr value)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • addElements

      public Expr.CreateList.Builder addElements(Expr.Builder builderForValue)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • addElements

      public Expr.CreateList.Builder addElements(int index, Expr.Builder builderForValue)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • addAllElements

      public Expr.CreateList.Builder addAllElements(Iterable<? extends Expr> values)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • clearElements

      public Expr.CreateList.Builder clearElements()
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • removeElements

      public Expr.CreateList.Builder removeElements(int index)
       The elements part of the list.
       
      repeated .google.api.expr.v1alpha1.Expr elements = 1 [json_name = "elements"];
    • getOptionalIndicesList

      public List<Integer> getOptionalIndicesList()
       The indices within the elements list which are marked as optional
       elements.
      
       When an optional-typed value is present, the value it contains
       is included in the list. If the optional-typed value is absent, the list
       element is omitted from the CreateList result.
       
      repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
      Specified by:
      getOptionalIndicesList in interface Expr.CreateListOrBuilder
      Returns:
      A list containing the optionalIndices.
    • getOptionalIndicesCount

      public int getOptionalIndicesCount()
       The indices within the elements list which are marked as optional
       elements.
      
       When an optional-typed value is present, the value it contains
       is included in the list. If the optional-typed value is absent, the list
       element is omitted from the CreateList result.
       
      repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
      Specified by:
      getOptionalIndicesCount in interface Expr.CreateListOrBuilder
      Returns:
      The count of optionalIndices.
    • getOptionalIndices

      public int getOptionalIndices(int index)
       The indices within the elements list which are marked as optional
       elements.
      
       When an optional-typed value is present, the value it contains
       is included in the list. If the optional-typed value is absent, the list
       element is omitted from the CreateList result.
       
      repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
      Specified by:
      getOptionalIndices in interface Expr.CreateListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The optionalIndices at the given index.
    • setOptionalIndices

      public Expr.CreateList.Builder setOptionalIndices(int index, int value)
       The indices within the elements list which are marked as optional
       elements.
      
       When an optional-typed value is present, the value it contains
       is included in the list. If the optional-typed value is absent, the list
       element is omitted from the CreateList result.
       
      repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
      Parameters:
      value - The optionalIndices to set.
      Returns:
      This builder for chaining.
    • addOptionalIndices

      public Expr.CreateList.Builder addOptionalIndices(int value)
       The indices within the elements list which are marked as optional
       elements.
      
       When an optional-typed value is present, the value it contains
       is included in the list. If the optional-typed value is absent, the list
       element is omitted from the CreateList result.
       
      repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
      Parameters:
      value - The optionalIndices to add.
      Returns:
      This builder for chaining.
    • addAllOptionalIndices

      public Expr.CreateList.Builder addAllOptionalIndices(Iterable<? extends Integer> values)
       The indices within the elements list which are marked as optional
       elements.
      
       When an optional-typed value is present, the value it contains
       is included in the list. If the optional-typed value is absent, the list
       element is omitted from the CreateList result.
       
      repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
      Parameters:
      values - The optionalIndices to add.
      Returns:
      This builder for chaining.
    • clearOptionalIndices

      public Expr.CreateList.Builder clearOptionalIndices()
       The indices within the elements list which are marked as optional
       elements.
      
       When an optional-typed value is present, the value it contains
       is included in the list. If the optional-typed value is absent, the list
       element is omitted from the CreateList result.
       
      repeated int32 optional_indices = 2 [json_name = "optionalIndices"];
      Returns:
      This builder for chaining.