Class StructType.Field.Builder (6.60.0)

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

Message representing a single field of a struct.

Protobuf type google.spanner.v1.StructType.Field

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StructType.Field build()
Returns
TypeDescription
StructType.Field

buildPartial()

public StructType.Field buildPartial()
Returns
TypeDescription
StructType.Field

clear()

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

clearField(Descriptors.FieldDescriptor field)

public StructType.Field.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StructType.Field.Builder
Overrides

clearName()

public StructType.Field.Builder clearName()

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., "Word" in the query "SELECT 'hello' AS Word"), or the column name (e.g., "ColName" in the query "SELECT ColName FROM Table"). Some columns might have an empty name (e.g., "SELECT UPPER(ColName)"). Note that a query result can contain multiple fields with the same name.

string name = 1;

Returns
TypeDescription
StructType.Field.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public StructType.Field.Builder clearType()

The type of the field.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
StructType.Field.Builder

clone()

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

getDefaultInstanceForType()

public StructType.Field getDefaultInstanceForType()
Returns
TypeDescription
StructType.Field

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., "Word" in the query "SELECT 'hello' AS Word"), or the column name (e.g., "ColName" in the query "SELECT ColName FROM Table"). Some columns might have an empty name (e.g., "SELECT UPPER(ColName)"). Note that a query result can contain multiple fields with the same name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., "Word" in the query "SELECT 'hello' AS Word"), or the column name (e.g., "ColName" in the query "SELECT ColName FROM Table"). Some columns might have an empty name (e.g., "SELECT UPPER(ColName)"). Note that a query result can contain multiple fields with the same name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getType()

public Type getType()

The type of the field.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
Type

The type.

getTypeBuilder()

public Type.Builder getTypeBuilder()

The type of the field.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
Type.Builder

getTypeOrBuilder()

public TypeOrBuilder getTypeOrBuilder()

The type of the field.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
TypeOrBuilder

hasType()

public boolean hasType()

The type of the field.

.google.spanner.v1.Type type = 2;

Returns
TypeDescription
boolean

Whether the type field is set.

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.Field.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StructType.Field.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(StructType.Field other)

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

mergeType(Type value)

public StructType.Field.Builder mergeType(Type value)

The type of the field.

.google.spanner.v1.Type type = 2;

Parameter
NameDescription
valueType
Returns
TypeDescription
StructType.Field.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public StructType.Field.Builder setName(String value)

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., "Word" in the query "SELECT 'hello' AS Word"), or the column name (e.g., "ColName" in the query "SELECT ColName FROM Table"). Some columns might have an empty name (e.g., "SELECT UPPER(ColName)"). Note that a query result can contain multiple fields with the same name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
StructType.Field.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StructType.Field.Builder setNameBytes(ByteString value)

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., "Word" in the query "SELECT 'hello' AS Word"), or the column name (e.g., "ColName" in the query "SELECT ColName FROM Table"). Some columns might have an empty name (e.g., "SELECT UPPER(ColName)"). Note that a query result can contain multiple fields with the same name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
StructType.Field.Builder

This builder for chaining.

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

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

setType(Type value)

public StructType.Field.Builder setType(Type value)

The type of the field.

.google.spanner.v1.Type type = 2;

Parameter
NameDescription
valueType
Returns
TypeDescription
StructType.Field.Builder

setType(Type.Builder builderForValue)

public StructType.Field.Builder setType(Type.Builder builderForValue)

The type of the field.

.google.spanner.v1.Type type = 2;

Parameter
NameDescription
builderForValueType.Builder
Returns
TypeDescription
StructType.Field.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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