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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructType.Field.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StructType.Field build()
Returns
buildPartial()
public StructType.Field buildPartial()
Returns
clear()
public StructType.Field.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public StructType.Field.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public StructType.Field.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearType()
public StructType.Field.Builder clearType()
The type of the field.
.google.spanner.v1.Type type = 2;
Returns
clone()
public StructType.Field.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public StructType.Field getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
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
getType()
The type of the field.
.google.spanner.v1.Type type = 2;
Returns
Type | Description |
Type | The type.
|
getTypeBuilder()
public Type.Builder getTypeBuilder()
The type of the field.
.google.spanner.v1.Type type = 2;
Returns
getTypeOrBuilder()
public TypeOrBuilder getTypeOrBuilder()
The type of the field.
.google.spanner.v1.Type type = 2;
Returns
hasType()
The type of the field.
.google.spanner.v1.Type type = 2;
Returns
Type | Description |
boolean | Whether the type field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public StructType.Field.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StructType.Field.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(StructType.Field other)
public StructType.Field.Builder mergeFrom(StructType.Field other)
Parameter
Returns
mergeType(Type value)
public StructType.Field.Builder mergeType(Type value)
The type of the field.
.google.spanner.v1.Type type = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructType.Field.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public StructType.Field.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The name to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructType.Field.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setType(Type value)
public StructType.Field.Builder setType(Type value)
The type of the field.
.google.spanner.v1.Type type = 2;
Parameter
Returns
setType(Type.Builder builderForValue)
public StructType.Field.Builder setType(Type.Builder builderForValue)
The type of the field.
.google.spanner.v1.Type type = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final StructType.Field.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides