Class ListValue.Builder

All Implemented Interfaces:
ListValueOrBuilder, MessageLite.Builder, MessageLiteOrBuilder, Cloneable
Enclosing class:
ListValue

public static final class ListValue.Builder extends GeneratedMessageLite.Builder<ListValue, ListValue.Builder> implements ListValueOrBuilder
`ListValue` is a wrapper around a repeated field of values.

The JSON representation for `ListValue` is JSON array.
Protobuf type google.protobuf.ListValue
  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • getValuesList

      public List<Value> getValuesList()
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
      Specified by:
      getValuesList in interface ListValueOrBuilder
    • getValuesCount

      public int getValuesCount()
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
      Specified by:
      getValuesCount in interface ListValueOrBuilder
    • getValues

      public Value getValues(int index)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
      Specified by:
      getValues in interface ListValueOrBuilder
    • setValues

      public ListValue.Builder setValues(int index, Value value)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
    • setValues

      public ListValue.Builder setValues(int index, Value.Builder builderForValue)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
    • addValues

      public ListValue.Builder addValues(Value value)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
    • addValues

      public ListValue.Builder addValues(int index, Value value)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
    • addValues

      public ListValue.Builder addValues(Value.Builder builderForValue)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
    • addValues

      public ListValue.Builder addValues(int index, Value.Builder builderForValue)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
    • addAllValues

      public ListValue.Builder addAllValues(Iterable<? extends Value> values)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
    • clearValues

      public ListValue.Builder clearValues()
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;
    • removeValues

      public ListValue.Builder removeValues(int index)
      Repeated field of dynamically typed values.
      
      repeated .google.protobuf.Value values = 1;