Class StructType.Builder (6.25.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.v1.StructType.Field>
Returns
TypeDescription
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
NameDescription
valueStructType.Field
Returns
TypeDescription
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
NameDescription
builderForValueStructType.Field.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueStructType.Field
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStructType.Field.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
StructType.Field.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StructType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StructType.Builder
Overrides

build()

public StructType build()
Returns
TypeDescription
StructType

buildPartial()

public StructType buildPartial()
Returns
TypeDescription
StructType

clear()

public StructType.Builder clear()
Returns
TypeDescription
StructType.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StructType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
StructType.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public StructType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StructType.Builder
Overrides

clone()

public StructType.Builder clone()
Returns
TypeDescription
StructType.Builder
Overrides

getDefaultInstanceForType()

public StructType getDefaultInstanceForType()
Returns
TypeDescription
StructType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.spanner.v1.StructType.FieldOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StructType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructType.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StructType.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StructType.Builder
Overrides

mergeFrom(StructType other)

public StructType.Builder mergeFrom(StructType other)
Parameter
NameDescription
otherStructType
Returns
TypeDescription
StructType.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StructType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StructType.Builder
Overrides

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
NameDescription
indexint
Returns
TypeDescription
StructType.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StructType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StructType.Builder
Overrides

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
NameDescription
indexint
valueStructType.Field
Returns
TypeDescription
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
NameDescription
indexint
builderForValueStructType.Field.Builder
Returns
TypeDescription
StructType.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StructType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StructType.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StructType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StructType.Builder
Overrides