deephaven_enterprise.proto.table_definition_pb2¶
Copyright (c) 2016-2019 Deephaven Data Labs and Patent Pending
Module Contents¶
- class ColumnDefinitionMessage(*, name=..., dataType=..., componentType=..., columnType=..., isVarSizeString=..., encoding=..., codec=..., codecArgs=..., objectWidthBytes=...)[source]¶
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
name (str)
dataType (str)
componentType (str | None)
columnType (Global___ColumnTypeEnum | None)
isVarSizeString (bool)
encoding (Global___EncodingTypeEnum | None)
codec (str | None)
codecArgs (str | None)
objectWidthBytes (int | None)
- ClearField(field_name)[source]¶
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- HasField(field_name)[source]¶
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- WhichOneof(oneof_group: Literal['_codec', b'_codec']) Literal['codec'] | None[source]¶
- WhichOneof(oneof_group: Literal['_codecArgs', b'_codecArgs']) Literal['codecArgs'] | None
- WhichOneof(oneof_group: Literal['_columnType', b'_columnType']) Literal['columnType'] | None
- WhichOneof(oneof_group: Literal['_componentType', b'_componentType']) Literal['componentType'] | None
- WhichOneof(oneof_group: Literal['_encoding', b'_encoding']) Literal['encoding'] | None
- WhichOneof(oneof_group: Literal['_objectWidthBytes', b'_objectWidthBytes']) Literal['objectWidthBytes'] | None
Returns the name of the field that is set inside a oneof group.
If no field is set, returns None.
- Parameters:
oneof_group (str) – the name of the oneof group to check.
- Returns:
The name of the group that is set, or None.
- Return type:
str or None
- Raises:
ValueError – no group with the given name exists
- DESCRIPTOR: google.protobuf.descriptor.Descriptor[source]¶
- columnType: Global___ColumnTypeEnum[source]¶
- encoding: Global___EncodingTypeEnum[source]¶
- class TableDefinitionMessage(*, namespace=..., tableName=..., columns=..., storageType=...)[source]¶
Bases:
google.protobuf.message.MessageAbstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- Parameters:
namespace (str | None)
tableName (str | None)
columns (collections.abc.Iterable[Global___ColumnDefinitionMessage] | None)
storageType (Global___StorageTypeEnum | None)
- ClearField(field_name)[source]¶
Clears the contents of a given field.
Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group,
ValueErroris raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Raises:
ValueError – if the field_name is not a member of this message.
- Return type:
None
- HasField(field_name)[source]¶
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueErrorwill be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
- Raises:
ValueError – if the field_name is not a member of this message.
- WhichOneof(oneof_group: Literal['_namespace', b'_namespace']) Literal['namespace'] | None[source]¶
- WhichOneof(oneof_group: Literal['_storageType', b'_storageType']) Literal['storageType'] | None
- WhichOneof(oneof_group: Literal['_tableName', b'_tableName']) Literal['tableName'] | None
Returns the name of the field that is set inside a oneof group.
If no field is set, returns None.
- Parameters:
oneof_group (str) – the name of the oneof group to check.
- Returns:
The name of the group that is set, or None.
- Return type:
str or None
- Raises:
ValueError – no group with the given name exists
- DESCRIPTOR: google.protobuf.descriptor.Descriptor[source]¶
- property columns: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ColumnDefinitionMessage][source]¶
- storageType: Global___StorageTypeEnum[source]¶
- CT_GROUPING: ColumnTypeEnum[source]¶
- CT_NORMAL: ColumnTypeEnum[source]¶
- CT_PARTITIONING: ColumnTypeEnum[source]¶
- CT_UNSPECIFIED: ColumnTypeEnum[source]¶
- CT_VIRTUAL: ColumnTypeEnum[source]¶
- ET_ISO_8859_1: EncodingTypeEnum[source]¶
- ET_UNSPECIFIED: EncodingTypeEnum[source]¶
- ET_US_ASCII: EncodingTypeEnum[source]¶
- ET_UTF_16: EncodingTypeEnum[source]¶
- ET_UTF_16BE: EncodingTypeEnum[source]¶
- ET_UTF_16LE: EncodingTypeEnum[source]¶
- ET_UTF_8: EncodingTypeEnum[source]¶
- type Global___ColumnDefinitionMessage = ColumnDefinitionMessage[source]¶
- type Global___ColumnTypeEnum = ColumnTypeEnum[source]¶
- type Global___EncodingTypeEnum = EncodingTypeEnum[source]¶
- type Global___StorageTypeEnum = StorageTypeEnum[source]¶
- type Global___TableDefinitionMessage = TableDefinitionMessage[source]¶
- ST_EXTENDED: StorageTypeEnum[source]¶
- ST_IN_MEMORY: StorageTypeEnum[source]¶
- ST_NESTED_PARTITIONED_ON_DISK: StorageTypeEnum[source]¶
- ST_SPLAYED_ON_DISK: StorageTypeEnum[source]¶
- ST_UNSPECIFIED: StorageTypeEnum[source]¶