Class StructType.Builder (6.77.0)

public static final class StructType.Builder extends GeneratedMessageV3.Builder<StructType.Builder> implements StructTypeOrBuilder

StructType defines the fields of a STRUCT type.

Protobuf type google.spanner.v1.StructType

Implements

StructTypeOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFields(Iterable<? extends StructType.Field> values)

public StructType.Builder addAllFields(Iterable<? extends StructType.Field> values)

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Parameter
Name Description
values Iterable<? extends com.google.spanner.v1.StructType.Field>
Returns
Type Description
StructType.Builder

addFields(StructType.Field value)

public StructType.Builder addFields(StructType.Field value)

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Parameter
Name Description
value StructType.Field
Returns
Type Description
StructType.Builder

addFields(StructType.Field.Builder builderForValue)

public StructType.Builder addFields(StructType.Field.Builder builderForValue)

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Parameter
Name Description
builderForValue StructType.Field.Builder
Returns
Type Description
StructType.Builder

addFields(int index, StructType.Field value)

public StructType.Builder addFields(int index, StructType.Field value)

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Parameters
Name Description
index int
value StructType.Field
Returns
Type Description
StructType.Builder

addFields(int index, StructType.Field.Builder builderForValue)

public StructType.Builder addFields(int index, StructType.Field.Builder builderForValue)

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Parameters
Name Description
index int
builderForValue StructType.Field.Builder
Returns
Type Description
StructType.Builder

addFieldsBuilder()

public StructType.Field.Builder addFieldsBuilder()

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Returns
Type Description
StructType.Field.Builder

addFieldsBuilder(int index)

public StructType.Field.Builder addFieldsBuilder(int index)

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the SELECT clause of a query.

repeated .google.spanner.v1.StructType.Field fields = 1;

Parameter
Name Description
index int
Returns
Type Description
StructType.Field.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StructType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StructType.Builder
Overrides

build()

public StructType build()
Returns
Type Description
StructType

buildPartial()

public StructType buildPa