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