Modifier and Type | Method and Description |
---|---|
Struct.Builder |
add(String fieldName,
Iterable<Type.StructField> fieldTypes,
Iterable<Struct> elements)
Adds a new field of type
ARRAY<STRUCT<fieldTypes>> named fieldName with the
given element values. |
Struct.Builder |
add(String fieldName,
Value value)
Adds a new field named
fieldName with the given value. |
Struct |
build() |
ValueBinder<Struct.Builder> |
set(String fieldName)
Returns a binder to set the value of a new field in the struct named
fieldName . |
public ValueBinder<Struct.Builder> set(String fieldName)
fieldName
.public Struct.Builder add(String fieldName, Value value)
fieldName
with the given value.public Struct.Builder add(String fieldName, Iterable<Type.StructField> fieldTypes, @Nullable Iterable<Struct> elements)
ARRAY<STRUCT<fieldTypes>>
named fieldName
with the
given element values. elements
may be null, as may any member of elements
.
All non-null members of elements
must be of type STRUCT<fieldTypes>
public Struct build()
Copyright © 2017 Google. All rights reserved.