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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructType.Field.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public StructType.Field build()
buildPartial()
public StructType.Field buildPartial()
clear()
public StructType.Field.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public StructType.Field.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public StructType.Field.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearType()
public StructType.Field.Builder clearType()
The type of the field.
.google.spanner.v1.Type type = 2;
clone()
public StructType.Field.Builder clone()
Overrides
getDefaultInstanceForType()
public StructType.Field getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
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;
getTypeOrBuilder()
public TypeOrBuilder getTypeOrBuilder()
The type of the field.
.google.spanner.v1.Type type = 2;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public StructType.Field.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public StructType.Field.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(StructType.Field other)
public StructType.Field.Builder mergeFrom(StructType.Field other)
mergeType(Type value)
public StructType.Field.Builder mergeType(Type value)
The type of the field.
.google.spanner.v1.Type type = 2;
Parameter |
---|
Name | Description |
value | Type
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructType.Field.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public StructType.Field.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructType.Field.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setType(Type value)
public StructType.Field.Builder setType(Type value)
The type of the field.
.google.spanner.v1.Type type = 2;
Parameter |
---|
Name | Description |
value | Type
|
setType(Type.Builder builderForValue)
public StructType.Field.Builder setType(Type.Builder builderForValue)
The type of the field.
.google.spanner.v1.Type type = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final StructType.Field.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides