public static final class StructType.Field extends GeneratedMessageV3 implements StructType.FieldOrBuilder
Message representing a single field of a struct.
Protobuf type google.spanner.v1.StructType.Field
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > StructType.FieldImplements
StructType.FieldOrBuilderStatic Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static StructType.Field getDefaultInstance()
Type | Description |
StructType.Field |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static StructType.Field.Builder newBuilder()
Type | Description |
StructType.Field.Builder |
newBuilder(StructType.Field prototype)
public static StructType.Field.Builder newBuilder(StructType.Field prototype)
Name | Description |
prototype | StructType.Field |
Type | Description |
StructType.Field.Builder |
parseDelimitedFrom(InputStream input)
public static StructType.Field parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
StructType.Field |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StructType.Field parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StructType.Field |
Type | Description |
IOException |
parseFrom(byte[] data)
public static StructType.Field parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
StructType.Field |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StructType.Field parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StructType.Field |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static StructType.Field parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
StructType.Field |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StructType.Field parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StructType.Field |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static StructType.Field parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
StructType.Field |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StructType.Field parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StructType.Field |
Type | Description |
IOException |
parseFrom(InputStream input)
public static StructType.Field parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
StructType.Field |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StructType.Field parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StructType.Field |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static StructType.Field parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
StructType.Field |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StructType.Field parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StructType.Field |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<StructType.Field> parser()
Type | Description |
Parser<Field> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public StructType.Field getDefaultInstanceForType()
Type | Description |
StructType.Field |
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. |
getParserForType()
public Parser<StructType.Field> getParserForType()
Type | Description |
Parser<Field> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getType()
public Type getType()
The type of the field.
.google.spanner.v1.Type type = 2;
Type | Description |
Type | The type. |
getTypeOrBuilder()
public TypeOrBuilder getTypeOrBuilder()
The type of the field.
.google.spanner.v1.Type type = 2;
Type | Description |
TypeOrBuilder |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasType()
public boolean hasType()
The type of the field.
.google.spanner.v1.Type type = 2;
Type | Description |
boolean | Whether the type field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public StructType.Field.Builder newBuilderForType()
Type | Description |
StructType.Field.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected StructType.Field.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
StructType.Field.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public StructType.Field.Builder toBuilder()
Type | Description |
StructType.Field.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |