Package com.elide.model
Class SpannerFieldOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.elide.model.SpannerFieldOptions
- All Implemented Interfaces:
SpannerFieldOptionsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class SpannerFieldOptions
extends com.google.protobuf.GeneratedMessageV3
implements SpannerFieldOptionsOrBuilder
Extended options for use with Cloud Spanner, which may be affixed to an individual model field.Protobuf type
elide.model.SpannerFieldOptions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classExtended options for use with Cloud Spanner, which may be affixed to an individual model field.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride column name in Spanner only.com.google.protobuf.ByteStringOverride column name in Spanner only.static SpannerFieldOptionsstatic final com.google.protobuf.Descriptors.DescriptorExpression value for this field.com.google.protobuf.ByteStringExpression value for this field.booleanWhether to ignore this column in Spanner specifically.booleangetJson()Override the field to store STRUCT objects as JSON.booleanSpecifies this column as `NONNULL`, in which case you cannot store `NULL` values in this field.com.google.protobuf.Parser<SpannerFieldOptions>booleanMarks a field as a member of a Spanner row's primary key.intintgetSize()Length of this field in the database, when expressed as a string.booleanSpecifies the `STORED` option for this field.getType()Override the field type in Spanner only.intOverride the field type in Spanner only.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic SpannerFieldOptions.Builderstatic SpannerFieldOptions.BuildernewBuilder(SpannerFieldOptions prototype) protected SpannerFieldOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SpannerFieldOptionsparseDelimitedFrom(InputStream input) static SpannerFieldOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpannerFieldOptionsparseFrom(byte[] data) static SpannerFieldOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpannerFieldOptionsparseFrom(com.google.protobuf.ByteString data) static SpannerFieldOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpannerFieldOptionsparseFrom(com.google.protobuf.CodedInputStream input) static SpannerFieldOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpannerFieldOptionsparseFrom(InputStream input) static SpannerFieldOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpannerFieldOptionsparseFrom(ByteBuffer data) static SpannerFieldOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SpannerFieldOptions>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
COLUMN_FIELD_NUMBER
public static final int COLUMN_FIELD_NUMBER- See Also:
-
IGNORE_FIELD_NUMBER
public static final int IGNORE_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
JSON_FIELD_NUMBER
public static final int JSON_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
NONNULL_FIELD_NUMBER
public static final int NONNULL_FIELD_NUMBER- See Also:
-
EXPRESSION_FIELD_NUMBER
public static final int EXPRESSION_FIELD_NUMBER- See Also:
-
STORED_FIELD_NUMBER
public static final int STORED_FIELD_NUMBER- See Also:
-
PRIMARY_KEY_FIELD_NUMBER
public static final int PRIMARY_KEY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getColumn
Override column name in Spanner only.
string column = 1 [json_name = "column"];- Specified by:
getColumnin interfaceSpannerFieldOptionsOrBuilder- Returns:
- The column.
-
getColumnBytes
public com.google.protobuf.ByteString getColumnBytes()Override column name in Spanner only.
string column = 1 [json_name = "column"];- Specified by:
getColumnBytesin interfaceSpannerFieldOptionsOrBuilder- Returns:
- The bytes for column.
-
getIgnore
public boolean getIgnore()Whether to ignore this column in Spanner specifically.
bool ignore = 2 [json_name = "ignore"];- Specified by:
getIgnorein interfaceSpannerFieldOptionsOrBuilder- Returns:
- The ignore.
-
getTypeValue
public int getTypeValue()Override the field type in Spanner only.
.elide.model.SpannerOptions.SpannerType type = 3 [json_name = "type"];- Specified by:
getTypeValuein interfaceSpannerFieldOptionsOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
Override the field type in Spanner only.
.elide.model.SpannerOptions.SpannerType type = 3 [json_name = "type"];- Specified by:
getTypein interfaceSpannerFieldOptionsOrBuilder- Returns:
- The type.
-
getJson
public boolean getJson()Override the field to store STRUCT objects as JSON.
bool json = 4 [json_name = "json"];- Specified by:
getJsonin interfaceSpannerFieldOptionsOrBuilder- Returns:
- The json.
-
getSize
public int getSize()Length of this field in the database, when expressed as a string.
uint32 size = 5 [json_name = "size"];- Specified by:
getSizein interfaceSpannerFieldOptionsOrBuilder- Returns:
- The size.
-
getNonnull
public boolean getNonnull()Specifies this column as `NONNULL`, in which case you cannot store `NULL` values in this field.
bool nonnull = 6 [json_name = "nonnull"];- Specified by:
getNonnullin interfaceSpannerFieldOptionsOrBuilder- Returns:
- The nonnull.
-
getExpression
Expression value for this field. Converts this field into a calculated value.
string expression = 7 [json_name = "expression"];- Specified by:
getExpressionin interfaceSpannerFieldOptionsOrBuilder- Returns:
- The expression.
-
getExpressionBytes
public com.google.protobuf.ByteString getExpressionBytes()Expression value for this field. Converts this field into a calculated value.
string expression = 7 [json_name = "expression"];- Specified by:
getExpressionBytesin interfaceSpannerFieldOptionsOrBuilder- Returns:
- The bytes for expression.
-
getStored
public boolean getStored()Specifies the `STORED` option for this field. Only applicable if an `expression` is present.
bool stored = 8 [json_name = "stored"];- Specified by:
getStoredin interfaceSpannerFieldOptionsOrBuilder- Returns:
- The stored.
-
getPrimaryKey
public boolean getPrimaryKey()Marks a field as a member of a Spanner row's primary key.
bool primary_key = 9 [json_name = "primaryKey"];- Specified by:
getPrimaryKeyin interfaceSpannerFieldOptionsOrBuilder- Returns:
- The primaryKey.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SpannerFieldOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpannerFieldOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpannerFieldOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpannerFieldOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpannerFieldOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpannerFieldOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SpannerFieldOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SpannerFieldOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SpannerFieldOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SpannerFieldOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SpannerFieldOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-