Class StructType.Builder (6.108.0)

public static final class StructType.Builder extends GeneratedMessage.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

build()

public StructType build()
Returns
Type Description
StructType

buildPartial()

public StructType buildPartial()
Returns
Type Description
StructType

clear()

public StructType.Builder clear()
Returns
Type Description
StructType.Builder
Overrides

clearFields()

public StructType.Builder clearFields()

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.Builder

getDefaultInstanceForType()

public StructType getDefaultInstanceForType()
Returns
Type Description
StructType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFields(int index)

public StructType.Field getFields(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

getFieldsBuilder(int index)

public StructType.Field.Builder getFieldsBuilder(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

getFieldsBuilderList()

public List<StructType.Field.Builder> getFieldsBuilderList()

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
List<Builder>

getFieldsCount()

public int getFieldsCount()

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
int

getFieldsList()

public List<StructType.Field> getFieldsList()

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
List<Field>

getFieldsOrBuilder(int index)

public StructType.FieldOrBuilder getFieldsOrBuilder(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.FieldOrBuilder

getFieldsOrBuilderList()

public List<? extends StructType.FieldOrBuilder> getFieldsOrBuilderList()

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
List<? extends com.google.spanner.v1.StructType.FieldOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StructType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StructType.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StructType.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StructType.Builder
Overrides

mergeFrom(StructType other)

public StructType.Builder mergeFrom(StructType other)
Parameter
Name Description
other StructType
Returns
Type Description
StructType.Builder

removeFields(int index)

public StructType.Builder removeFields(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.Builder

setFields(int index, StructType.Field value)

public StructType.Builder setFields(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

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

public StructType.Builder setFields(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