Builder

class Builder : GeneratedMessage.Builder<BuilderT> , SpannerFieldOptionsOrBuilder
Extended options for use with Cloud Spanner, which may be affixed to an individual model field.
Protobuf type elide.model.SpannerFieldOptions

Functions

Link copied to clipboard
open fun addRepeatedField(field: Descriptors.FieldDescriptor, value: Any): BuilderT
abstract fun addRepeatedField(field: Descriptors.FieldDescriptor, value: Any): Message.Builder
Link copied to clipboard
abstract fun build(): MessageLite
Link copied to clipboard
abstract fun buildPartial(): MessageLite
Link copied to clipboard
open fun clear(): BuilderType
abstract fun clear(): Message.Builder
Link copied to clipboard
Override column name in Spanner only.
string column = 1;
Link copied to clipboard
Expression value for this field. Converts this field into a calculated value.
string expression = 7;
Link copied to clipboard
open fun clearField(field: Descriptors.FieldDescriptor): BuilderT
abstract fun clearField(field: Descriptors.FieldDescriptor): Message.Builder
Link copied to clipboard
Whether to ignore this column in Spanner specifically.
bool ignore = 2;
Link copied to clipboard
Override the field to store STRUCT objects as JSON.
bool json = 4;
Link copied to clipboard
Specifies this column as `NONNULL`, in which case you cannot store `NULL` values in this field.
bool nonnull = 6;
Link copied to clipboard
open fun clearOneof(oneof: Descriptors.OneofDescriptor): BuilderType
open fun clearOneof(oneof: Descriptors.OneofDescriptor): BuilderT
abstract fun clearOneof(oneof: Descriptors.OneofDescriptor): Message.Builder
Link copied to clipboard
Marks a field as a member of a Spanner row's primary key.
bool primary_key = 9;
Link copied to clipboard
Length of this field in the database, when expressed as a string.
uint32 size = 5;
Link copied to clipboard
Specifies the `STORED` option for this field. Only applicable if an `expression` is present.
bool stored = 8;
Link copied to clipboard
Override the field type in Spanner only.
.elide.model.SpannerOptions.SpannerType type = 3;
Link copied to clipboard
open fun clone(): BuilderType
open fun clone(): BuilderT
abstract fun clone(): Message.Builder
Link copied to clipboard
Link copied to clipboard
open fun getAllFields(): Map<Descriptors.FieldDescriptor, Any>
Link copied to clipboard
open fun getColumn(): String
Override column name in Spanner only.
string column = 1;
Link copied to clipboard
open fun getColumnBytes(): ByteString
Override column name in Spanner only.
string column = 1;
Link copied to clipboard
Link copied to clipboard
fun getDescriptor(): Descriptors.Descriptor
Link copied to clipboard
open fun getDescriptorForType(): Descriptors.Descriptor
Link copied to clipboard
open fun getExpression(): String
Expression value for this field. Converts this field into a calculated value.
string expression = 7;
Link copied to clipboard
open fun getExpressionBytes(): ByteString
Expression value for this field. Converts this field into a calculated value.
string expression = 7;
Link copied to clipboard
open fun getField(field: Descriptors.FieldDescriptor): Any
Link copied to clipboard
open fun getFieldBuilder(field: Descriptors.FieldDescriptor): Message.Builder
Link copied to clipboard
open fun getIgnore(): Boolean
Whether to ignore this column in Spanner specifically.
bool ignore = 2;
Link copied to clipboard
open fun getJson(): Boolean
Override the field to store STRUCT objects as JSON.
bool json = 4;
Link copied to clipboard
open fun getNonnull(): Boolean
Specifies this column as `NONNULL`, in which case you cannot store `NULL` values in this field.
bool nonnull = 6;
Link copied to clipboard
open fun getOneofFieldDescriptor(oneof: Descriptors.OneofDescriptor): Descriptors.FieldDescriptor
Link copied to clipboard
Marks a field as a member of a Spanner row's primary key.
bool primary_key = 9;
Link copied to clipboard
open fun getRepeatedField(field: Descriptors.FieldDescriptor, index: Int): Any
Link copied to clipboard
open fun getRepeatedFieldBuilder(field: Descriptors.FieldDescriptor, index: Int): Message.Builder
Link copied to clipboard
open fun getRepeatedFieldCount(field: Descriptors.FieldDescriptor): Int
Link copied to clipboard
open fun getSize(): Int
Length of this field in the database, when expressed as a string.
uint32 size = 5;
Link copied to clipboard
open fun getStored(): Boolean
Specifies the `STORED` option for this field. Only applicable if an `expression` is present.
bool stored = 8;
Link copied to clipboard
Override the field type in Spanner only.
.elide.model.SpannerOptions.SpannerType type = 3;
Link copied to clipboard
open fun getTypeValue(): Int
Override the field type in Spanner only.
.elide.model.SpannerOptions.SpannerType type = 3;
Link copied to clipboard
fun getUnknownFields(): UnknownFieldSet
Link copied to clipboard
open fun hasField(field: Descriptors.FieldDescriptor): Boolean
Link copied to clipboard
open fun hasOneof(oneof: Descriptors.OneofDescriptor): Boolean
Link copied to clipboard
Link copied to clipboard
open fun mergeDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): Boolean
Link copied to clipboard
abstract fun mergeFrom(other: Message): Message.Builder
open fun mergeFrom(other: Message): SpannerFieldOptions.Builder
open fun mergeFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): SpannerFieldOptions.Builder
Link copied to clipboard
open fun mergeUnknownFields(unknownFields: UnknownFieldSet): BuilderType
open fun mergeUnknownFields(unknownFields: UnknownFieldSet): BuilderT
abstract fun mergeUnknownFields(unknownFields: UnknownFieldSet): Message.Builder
Link copied to clipboard
open fun newBuilderForField(field: Descriptors.FieldDescriptor): Message.Builder
Link copied to clipboard
Override column name in Spanner only.
string column = 1;
Link copied to clipboard
open fun setColumnBytes(value: ByteString): SpannerFieldOptions.Builder
Override column name in Spanner only.
string column = 1;
Link copied to clipboard
Expression value for this field. Converts this field into a calculated value.
string expression = 7;
Link copied to clipboard
open fun setExpressionBytes(value: ByteString): SpannerFieldOptions.Builder
Expression value for this field. Converts this field into a calculated value.
string expression = 7;
Link copied to clipboard
open fun setField(field: Descriptors.FieldDescriptor, value: Any): BuilderT
abstract fun setField(field: Descriptors.FieldDescriptor, value: Any): Message.Builder
Link copied to clipboard
Whether to ignore this column in Spanner specifically.
bool ignore = 2;
Link copied to clipboard
Override the field to store STRUCT objects as JSON.
bool json = 4;
Link copied to clipboard
Specifies this column as `NONNULL`, in which case you cannot store `NULL` values in this field.
bool nonnull = 6;
Link copied to clipboard
Marks a field as a member of a Spanner row's primary key.
bool primary_key = 9;
Link copied to clipboard
open fun setRepeatedField(field: Descriptors.FieldDescriptor, index: Int, value: Any): BuilderT
abstract fun setRepeatedField(field: Descriptors.FieldDescriptor, index: Int, value: Any): Message.Builder
Link copied to clipboard
Length of this field in the database, when expressed as a string.
uint32 size = 5;
Link copied to clipboard
Specifies the `STORED` option for this field. Only applicable if an `expression` is present.
bool stored = 8;
Link copied to clipboard
Override the field type in Spanner only.
.elide.model.SpannerOptions.SpannerType type = 3;
Link copied to clipboard
Override the field type in Spanner only.
.elide.model.SpannerOptions.SpannerType type = 3;
Link copied to clipboard
open fun setUnknownFields(unknownFields: UnknownFieldSet): BuilderT
abstract fun setUnknownFields(unknownFields: UnknownFieldSet): Message.Builder
Link copied to clipboard
open fun toString(): String