Package com.google.cloud.spanner
Class Struct.Builder
java.lang.Object
com.google.cloud.spanner.Struct.Builder
- Enclosing class:
- Struct
Builder for constructing non-
NULL
Struct
instances.-
Method Summary
Modifier and TypeMethodDescriptionAdds a new unnamed fieldfieldName
with the given value.build()
Returns a binder to set the value of a new field in the struct namedfieldName
.
-
Method Details
-
set
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
Adds a new unnamed fieldfieldName
with the given value. -
build
-