Package com.google.cloud.spanner
Class Struct.Builder
- java.lang.Object
-
- com.google.cloud.spanner.Struct.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Struct.Builder
add(Value value)
Adds a new unnamed fieldfieldName
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 namedfieldName
.
-
-
-
Method Detail
-
set
public ValueBinder<Struct.Builder> set(String fieldName)
Returns a binder to set the value of a new field in the struct namedfieldName
.- Parameters:
fieldName
- name of the field to set. Can be empty or the same as an existing field name in theSTRUCT
-
add
public Struct.Builder add(Value value)
Adds a new unnamed fieldfieldName
with the given value.
-
build
public Struct build()
-
-