| Modifier and Type | Method and Description |
|---|---|
Struct.Builder |
add(Value value)
Adds a new unnamed field
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.fieldName - name of the field to set. Can be empty or the same as an existing field name
in the STRUCTpublic Struct.Builder add(Value value)
fieldName with the given value.public Struct build()
Copyright © 2019 Google LLC. All rights reserved.