Interface StructType.FieldOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
StructType.Field, StructType.Field.Builder
Enclosing class:
StructType

public static interface StructType.FieldOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The name of the field.
    com.google.protobuf.ByteString
    The name of the field.
    The type of the field.
    The type of the field.
    boolean
    The type of the field.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getName

      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:
      The name.
    • getNameBytes

      com.google.protobuf.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:
      The bytes for name.
    • hasType

      boolean hasType()
       The type of the field.
       
      .google.spanner.v1.Type type = 2;
      Returns:
      Whether the type field is set.
    • getType

      Type getType()
       The type of the field.
       
      .google.spanner.v1.Type type = 2;
      Returns:
      The type.
    • getTypeOrBuilder

      TypeOrBuilder getTypeOrBuilder()
       The type of the field.
       
      .google.spanner.v1.Type type = 2;