Class ListValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ListValue,ListValue.Builder>
com.google.api.expr.v1beta1.ListValue.Builder
All Implemented Interfaces:
ListValueOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
ListValue

public static final class ListValue.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ListValue,ListValue.Builder> implements ListValueOrBuilder
 A list.

 Wrapped in a message so 'not set' and empty can be differentiated, which is
 required for use in a 'oneof'.
 
Protobuf type google.api.expr.v1beta1.ListValue
  • Method Details

    • getValuesList

      public List<Value> getValuesList()
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
      Specified by:
      getValuesList in interface ListValueOrBuilder
    • getValuesCount

      public int getValuesCount()
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
      Specified by:
      getValuesCount in interface ListValueOrBuilder
    • getValues

      public Value getValues(int index)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
      Specified by:
      getValues in interface ListValueOrBuilder
    • setValues

      public ListValue.Builder setValues(int index, Value value)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
    • setValues

      public ListValue.Builder setValues(int index, Value.Builder builderForValue)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
    • addValues

      public ListValue.Builder addValues(Value value)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
    • addValues

      public ListValue.Builder addValues(int index, Value value)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
    • addValues

      public ListValue.Builder addValues(Value.Builder builderForValue)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
    • addValues

      public ListValue.Builder addValues(int index, Value.Builder builderForValue)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
    • addAllValues

      public ListValue.Builder addAllValues(Iterable<? extends Value> values)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
    • clearValues

      public ListValue.Builder clearValues()
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];
    • removeValues

      public ListValue.Builder removeValues(int index)
       The ordered values in the list.
       
      repeated .google.api.expr.v1beta1.Value values = 1 [json_name = "values"];